@momentum-design/components 0.141.4 → 0.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";(()=>{var ix=Object.create;var mh=Object.defineProperty;var pf=Object.getOwnPropertyDescriptor;var ox=Object.getOwnPropertyNames;var sx=Object.getPrototypeOf,ax=Object.prototype.hasOwnProperty;var nx=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var lx=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of ox(o))!ax.call(n,i)&&i!==t&&mh(n,i,{get:()=>o[i],enumerable:!(e=pf(o,i))||e.enumerable});return n};var dx=(n,o,t)=>(t=n!=null?ix(sx(n)):{},lx(o||!n||!n.__esModule?mh(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,o,t,e)=>{for(var i=e>1?void 0:e?pf(o,t):o,a=n.length-1,d;a>=0;a--)(d=n[a])&&(i=(e?d(o,t,i):d(i))||i);return e&&i&&mh(o,t,i),i};var xv=nx((Tn,ld)=>{typeof navigator<"u"&&function(n,o){typeof Tn=="object"&&typeof ld<"u"?ld.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(Tn,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},a=function(){return t},d=function(s){o=s},f=function(){return o};function v(r){return document.createElement(r)}function S(r,s){var l,c=r.length,m;for(l=0;l<c;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function U(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].pause()},resume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].resume()},setRate:function(l){var c,m=this.audios.length;for(c=0;c<m;c+=1)this.audios[c].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),j=function(){function r(l,c){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<c;m+=1)p.push(b);return p}function s(l,c){return l==="float32"?new Float32Array(c):l==="int16"?new Int16Array(c):l==="uint8c"?new Uint8ClampedArray(c):r(l,c)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Z(r){return Array.apply(null,{length:r})}function rt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rt=function(l){return typeof l}:rt=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},rt(r)}var st=!0,ht=null,bt=null,yt="",Ct=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,qt=Math.min,xe={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)xe[r[s]]=Math[r[s]]})();function Ae(){return{}}xe.random=Math.random,xe.abs=function(r){var s=rt(r);if(s==="object"&&r.length){var l=Z(r.length),c,m=r.length;for(c=0;c<m;c+=1)l[c]=Math.abs(r[c]);return l}return Math.abs(r)};var Se=150,Nt=Math.PI/180,se=.5519;function Ke(r){Rt=!!r}function Je(r){return Rt?Math.round(r):r}function tr(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function _r(r,s,l,c){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=c<0?-1:1}function ul(r,s){this.type=r,this.direction=s<0?-1:1}function bu(r,s,l,c){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=c<0?-1:1}function yu(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function Eu(r,s){this.type=r,this.target=s}function iT(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function oT(r){this.type="configError",this.nativeError=r}function EC(r,s){this.type=r,this.nativeError=s}var er=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function th(r,s,l){var c,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:c=l,m=M,p=y;break;case 1:c=k,m=l,p=y;break;case 2:c=y,m=l,p=M;break;case 3:c=y,m=k,p=l;break;case 4:c=M,m=y,p=l;break;case 5:c=l,m=y,p=k;break;default:break}return[c,m,p]}function eh(r,s,l){var c=Math.max(r,s,l),m=Math.min(r,s,l),p=c-m,b,I=c===0?0:p/c,y=c/255;switch(c){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function Tu(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),th(l[0],l[1],l[2])}function xu(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),th(l[0],l[1],l[2])}function Au(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),th(l[0],l[1],l[2])}var TC=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(c,m,p){return c<0&&(c=0),m<0&&(m=0),p<0&&(p=0),"#"+r[c]+r[m]+r[p]}}(),sT=function(s){st=!!s},aT=function(){return st},nT=function(s){ht=s},fl=function(){return ht},xC=function(s){bt=s},Su=function(){return bt},vl=function(s){Se=s},$a=function(){return Se},lT=function(s){yt=s},AC=function(){return yt};function _t(r){return document.createElementNS(n,r)}function gl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gl=function(l){return typeof l}:gl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},gl(r)}var Va=function(){var r=1,s=[],l,c,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(x){if(window.Worker&&window.Blob&&a()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=x,m}function I(){c||(c=b(function(O){function F(){function K(it,_){var P,g,E=it.length,q,B,ct,gt;for(g=0;g<E;g+=1)if(P=it[g],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var It=P.masksProperties;for(B=It.length,q=0;q<B;q+=1)if(It[q].pt.k.i)N(It[q].pt.k);else for(gt=It[q].pt.k.length,ct=0;ct<gt;ct+=1)It[q].pt.k[ct].s&&N(It[q].pt.k[ct].s[0]),It[q].pt.k[ct].e&&N(It[q].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),K(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&wt(P)}}function L(it,_){if(it){var P=0,g=it.length;for(P=0;P<g;P+=1)it[P].t===1&&(it[P].data.layers=T(it[P].data.refId,_),K(it[P].data.layers,_))}}function w(it,_){for(var P=0,g=_.length;P<g;){if(_[P].id===it)return _[P];P+=1}return null}function T(it,_){var P=w(it,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(it){var _,P=it.length,g,E;for(_=P-1;_>=0;_-=1)if(it[_].ty==="sh")if(it[_].ks.k.i)N(it[_].ks.k);else for(E=it[_].ks.k.length,g=0;g<E;g+=1)it[_].ks.k[g].s&&N(it[_].ks.k[g].s[0]),it[_].ks.k[g].e&&N(it[_].ks.k[g].e[0]);else it[_].ty==="gr"&&C(it[_].it)}function N(it){var _,P=it.i.length;for(_=0;_<P;_+=1)it.i[_][0]+=it.v[_][0],it.i[_][1]+=it.v[_][1],it.o[_][0]+=it.v[_][0],it.o[_][1]+=it.v[_][1]}function V(it,_){var P=_?_.split("."):[100,100,100];return it[0]>P[0]?!0:P[0]>it[0]?!1:it[1]>P[1]?!0:P[1]>it[1]?!1:it[2]>P[2]?!0:P[2]>it[2]?!1:null}var W=function(){var it=[4,4,14];function _(g){var E=g.t.d;g.t.d={k:[{s:E,t:0}]}}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),X=function(){var it=[4,7,99];return function(_){if(_.chars&&!V(it,_.v)){var P,g=_.chars.length;for(P=0;P<g;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),ot=function(){var it=[5,7,15];function _(g){var E=g.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),St=function(){var it=[4,1,9];function _(g){var E,q=g.length,B,ct;for(E=0;E<q;E+=1)if(g[E].ty==="gr")_(g[E].it);else if(g[E].ty==="fl"||g[E].ty==="st")if(g[E].c.k&&g[E].c.k[0].i)for(ct=g[E].c.k.length,B=0;B<ct;B+=1)g[E].c.k[B].s&&(g[E].c.k[B].s[0]/=255,g[E].c.k[B].s[1]/=255,g[E].c.k[B].s[2]/=255,g[E].c.k[B].s[3]/=255),g[E].c.k[B].e&&(g[E].c.k[B].e[0]/=255,g[E].c.k[B].e[1]/=255,g[E].c.k[B].e[2]/=255,g[E].c.k[B].e[3]/=255);else g[E].c.k[0]/=255,g[E].c.k[1]/=255,g[E].c.k[2]/=255,g[E].c.k[3]/=255}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===4&&_(g[E].shapes)}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),ft=function(){var it=[4,4,18];function _(g){var E,q=g.length,B,ct;for(E=q-1;E>=0;E-=1)if(g[E].ty==="sh")if(g[E].ks.k.i)g[E].ks.k.c=g[E].closed;else for(ct=g[E].ks.k.length,B=0;B<ct;B+=1)g[E].ks.k[B].s&&(g[E].ks.k[B].s[0].c=g[E].closed),g[E].ks.k[B].e&&(g[E].ks.k[B].e[0].c=g[E].closed);else g[E].ty==="gr"&&_(g[E].it)}function P(g){var E,q,B=g.length,ct,gt,It,Bt;for(q=0;q<B;q+=1){if(E=g[q],E.hasMask){var Ut=E.masksProperties;for(gt=Ut.length,ct=0;ct<gt;ct+=1)if(Ut[ct].pt.k.i)Ut[ct].pt.k.c=Ut[ct].cl;else for(Bt=Ut[ct].pt.k.length,It=0;It<Bt;It+=1)Ut[ct].pt.k[It].s&&(Ut[ct].pt.k[It].s[0].c=Ut[ct].cl),Ut[ct].pt.k[It].e&&(Ut[ct].pt.k[It].e[0].c=Ut[ct].cl)}E.ty===4&&_(E.shapes)}}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}();function nt(it){it.__complete||(St(it),W(it),X(it),ot(it),ft(it),K(it.layers,it.assets),L(it.chars,it.assets),it.__complete=!0)}function wt(it){it.t.a.length===0&&"m"in it.t.p}var mt={};return mt.completeData=nt,mt.checkColors=St,mt.checkChars=X,mt.checkPathProperties=ot,mt.checkShapes=ft,mt.completeLayers=K,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function K(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&gl(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,C,N){var V,W=new XMLHttpRequest;try{W.responseType="json"}catch{}W.onreadystatechange=function(){if(W.readyState===4)if(W.status===200)V=K(W),C(V);else try{V=K(W),C(V)}catch(X){N&&N(X)}};try{W.open(["G","E","T"].join(""),w,!0)}catch{W.open(["G","E","T"].join(""),T+"/"+w,!0)}W.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(K){p.dataManager.completeData(K),p.postMessage({id:O.data.id,payload:K,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(K){p.postMessage({id:O.data.id,payload:K,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),c.onmessage=function(x){var O=x.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(x,O){r+=1;var F="processId_"+r;return s[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var D=y(O,F);c.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function M(x,O,F){I();var D=y(O,F);c.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function Y(x,O,F){I();var D=y(O,F);c.postMessage({type:"complete",animation:x,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:Y}}(),dT=function(){var r=function(){var L=v("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function c(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=c(L,this.assetsPath,this.path),T=_t("image");Ct?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=c(L,this.assetsPath,this.path),T=v("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=c(L,this.assetsPath,this.path);return Va.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function Y(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function K(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return K.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:Y,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},K}();function Iu(){}Iu.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var c=this._cbs[s],m=0;m<c.length;m+=1)c[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var c=0,m=this._cbs[s].length;c<m;)this._cbs[s][c]===l&&(this._cbs[s].splice(c,1),c-=1,m-=1),c+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var cT=function(){function r(s){for(var l=s.split(`\r
2
- `),c={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(c[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return c}return function(s){for(var l=[],c=0;c<s.length;c+=1){var m=s[c],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[c].cm)}catch{try{p.payload=r(s[c].cm)}catch{p.payload={name:s[c].cm}}}l.push(p)}return l}}(),hT=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var c=0,m=this.compositions.length;c<m;){if(this.compositions[c].data&&this.compositions[c].data.nm===l)return this.compositions[c].prepareFrame&&this.compositions[c].data.xt&&this.compositions[c].prepareFrame(this.currentFrame),this.compositions[c].compInterface;c+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),za={},pT=function(s,l){za[s]=l};function mT(r){return za[r]}function uT(){if(za.canvas)return"canvas";for(var r in za)if(za[r])return r;return""}function Ba(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ba=function(l){return typeof l}:Ba=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ba(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=er(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=aT(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=hT(),this.imagePreloader=new dT,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new _r("drawnFrame",0,0,0),this.expressionsPlugin=fl()};S([Iu],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=mT(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Va.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Va.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ba(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},c=r.attributes;l.path=c.getNamedItem("data-animation-path")?c.getNamedItem("data-animation-path").value:c.getNamedItem("data-bm-path")?c.getNamedItem("data-bm-path").value:c.getNamedItem("bm-path")?c.getNamedItem("bm-path").value:"",l.animType=c.getNamedItem("data-anim-type")?c.getNamedItem("data-anim-type").value:c.getNamedItem("data-bm-type")?c.getNamedItem("data-bm-type").value:c.getNamedItem("bm-type")?c.getNamedItem("bm-type").value:c.getNamedItem("data-bm-renderer")?c.getNamedItem("data-bm-renderer").value:c.getNamedItem("bm-renderer")?c.getNamedItem("bm-renderer").value:uT()||"canvas";var m=c.getNamedItem("data-anim-loop")?c.getNamedItem("data-anim-loop").value:c.getNamedItem("data-bm-loop")?c.getNamedItem("data-bm-loop").value:c.getNamedItem("bm-loop")?c.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=c.getNamedItem("data-anim-autoplay")?c.getNamedItem("data-anim-autoplay").value:c.getNamedItem("data-bm-autoplay")?c.getNamedItem("data-bm-autoplay").value:c.getNamedItem("bm-autoplay")?c.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=c.getNamedItem("data-name")?c.getNamedItem("data-name").value:c.getNamedItem("data-bm-name")?c.getNamedItem("data-bm-name").value:c.getNamedItem("bm-name")?c.getNamedItem("bm-name").value:"";var b=c.getNamedItem("data-anim-prerender")?c.getNamedItem("data-anim-prerender").value:c.getNamedItem("data-bm-prerender")?c.getNamedItem("data-bm-prerender").value:c.getNamedItem("bm-prerender")?c.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,c=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<c;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(c=r.assets.length,l=0;l<c;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Va.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=fl();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Va.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=cT(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=fl();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,c=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,c)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(c,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ba(r[0])==="object"){var l,c=r.length;for(l=0;l<c;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var c=this.renderer.getElementByPath(r);c.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new _r(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new bu(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new ul(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new yu(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Eu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new _r(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new bu(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new ul(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new yu(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Eu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new iT(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new oT(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var be=function(){var r={},s=[],l=0,c=0,m=0,p=!0,b=!1;function I(_){for(var P=0,g=_.target;P<c;)s[P].animation===g&&(s.splice(P,1),P-=1,c-=1,g.isPaused||Y()),P+=1}function y(_,P){if(!_)return null;for(var g=0;g<c;){if(s[g].elem===_&&s[g].elem!==null)return s[g].animation;g+=1}var E=new vt;return x(E,_),E.setData(_,P),E}function k(){var _,P=s.length,g=[];for(_=0;_<P;_+=1)g.push(s[_].animation);return g}function M(){m+=1,St()}function Y(){m-=1}function x(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",Y),s.push({elem:P,animation:_}),c+=1}function O(_){var P=new vt;return x(P,null),P.setParams(_),P}function F(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setSpeed(_,P)}function D(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setDirection(_,P)}function K(_){var P;for(P=0;P<c;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,g;for(g=0;g<c;g+=1)s[g].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<c;P+=1)s[P].animation.pause(_)}function C(_,P,g){var E;for(E=0;E<c;E+=1)s[E].animation.goToAndStop(_,P,g)}function N(_){var P;for(P=0;P<c;P+=1)s[P].animation.stop(_)}function V(_){var P;for(P=0;P<c;P+=1)s[P].animation.togglePause(_)}function W(_){var P;for(P=c-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,g){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),q,B=E.length;for(q=0;q<B;q+=1)g&&E[q].setAttribute("data-bm-type",g),y(E[q],_);if(P&&B===0){g||(g="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=v("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",g),ct.appendChild(gt),y(gt,_)}}function ot(){var _;for(_=0;_<c;_+=1)s[_].animation.resize()}function St(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,St()}function wt(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<c;P+=1)s[P].animation.mute(_)}function it(_){var P;for(P=0;P<c;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=K,r.pause=T,r.stop=N,r.togglePause=V,r.searchAnimations=X,r.resize=ot,r.goToAndStop=C,r.destroy=W,r.freeze=ft,r.unfreeze=nt,r.setVolume=wt,r.mute=mt,r.unmute=it,r.getRegisteredAnimations=k,r}(),Ua=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,V){var W=V||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[W])return s[W];var X=new L([w,T,C,N]);return s[W]=X,X}var c=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function Y(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+Y(T,C))*w+x(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*Y(T,C)*w+x(T)}function D(w,T,C,N,V){var W,X,ot=0;do X=T+(C-T)/2,W=O(X,N,V)-w,W>0?C=X:T=X;while(Math.abs(W)>p&&++ot<b);return X}function K(w,T,C,N){for(var V=0;V<c;++V){var W=F(T,C,N);if(W===0)return T;var X=O(T,C,N)-w;T-=X/W}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],V=this._p[2],W=this._p[3];return this._precomputed||this._precompute(),C===N&&V===W?T:T===0?0:T===1?1:O(this._getTForX(T),N,W)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],V=this._p[3];this._precomputed=!0,(T!==C||N!==V)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],V=this._mSampleValues,W=0,X=1,ot=I-1;X!==ot&&V[X]<=T;++X)W+=y;--X;var St=(T-V[X])/(V[X+1]-V[X]),ft=W+St*y,nt=F(ft,C,N);return nt>=m?K(T,ft,C,N):nt===0?ft:D(T,W,W+y,C,N)}},r}(),Cu=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),bl=function(){return function(r,s,l){var c=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return c?(c-=1,k=p[c]):k=s(),k}function y(k){c===m&&(p=Cu.double(p),m*=2),l&&l(k),p[c]=k,c+=1}return b}}(),_u=function(){function r(){return{addedLength:0,percents:j("float32",$a()),lengths:j("float32",$a())}}return bl(8,r)}(),wu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var c,m=l.lengths.length;for(c=0;c<m;c+=1)_u.release(l.lengths[c]);l.lengths.length=0}return bl(8,r,s)}();function fT(){var r=Math;function s(x,O,F,D,K,L){var w=x*D+O*K+F*L-K*D-L*x-F*O;return w>-.001&&w<.001}function l(x,O,F,D,K,L,w,T,C){if(F===0&&L===0&&C===0)return s(x,O,D,K,w,T);var N=r.sqrt(r.pow(D-x,2)+r.pow(K-O,2)+r.pow(L-F,2)),V=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-F,2)),W=r.sqrt(r.pow(w-D,2)+r.pow(T-K,2)+r.pow(C-L,2)),X;return N>V?N>W?X=N-V-W:X=W-V-N:W>V?X=W-V-N:X=V-N-W,X>-1e-4&&X<1e-4}var c=function(){return function(x,O,F,D){var K=$a(),L,w,T,C,N,V=0,W,X=[],ot=[],St=_u.newElement();for(T=F.length,L=0;L<K;L+=1){for(N=L/(K-1),W=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,ot[w]!==null&&(W+=Gt(X[w]-ot[w],2)),ot[w]=X[w];W&&(W=Pt(W),V+=W),St.percents[L]=N,St.lengths[L]=V}return St.addedLength=V,St}}();function m(x){var O=wu.newElement(),F=x.c,D=x.v,K=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=c(D[w],D[w+1],K[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=c(D[w],D[0],K[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,D,K){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+K[0]+"_"+K[1]).replace(/\./g,"p");if(!x[L]){var w=$a(),T,C,N,V,W,X=0,ot,St,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+K[0],F[1]+K[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(St=Z(N),W=T/(w-1),ot=0,C=0;C<N;C+=1)V=Gt(1-W,3)*O[C]+3*Gt(1-W,2)*W*(O[C]+D[C])+3*(1-W)*Gt(W,2)*(F[C]+K[C])+Gt(W,3)*F[C],St[C]=V,ft!==null&&(ot+=Gt(St[C]-ft[C],2));ot=Pt(ot),X+=ot,nt.points[T]=new b(ot,St),ft=St}nt.segmentLength=X,x[L]=nt}return x[L]}}();function y(x,O){var F=O.percents,D=O.lengths,K=F.length,L=ne((K-1)*x),w=x*O.addedLength,T=0;if(L===K-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=K-1){if(L===K-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(x,O,F,D,K,L){var w=y(K,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=j("float32",8);function Y(x,O,F,D,K,L,w){K<0?K=0:K>1&&(K=1);var T=y(K,w);L=L>1?1:L;var C=y(L,w),N,V=x.length,W=1-T,X=1-C,ot=W*W*W,St=T*W*W*3,ft=T*T*W*3,nt=T*T*T,wt=W*W*X,mt=T*W*X+W*T*X+W*W*C,it=T*T*X+W*T*C+T*W*C,_=T*T*C,P=W*X*X,g=T*X*X+W*C*X+W*X*C,E=T*C*X+W*C*C+T*X*C,q=T*C*C,B=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,It=C*C*C;for(N=0;N<V;N+=1)M[N*4]=r.round((ot*x[N]+St*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((wt*x[N]+mt*F[N]+it*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*x[N]+g*F[N]+E*D[N]+q*O[N])*1e3)/1e3,M[N*4+3]=r.round((B*x[N]+ct*F[N]+gt*D[N]+It*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:Y,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var ti=fT(),Bo=e,ku=Math.abs;function Nu(r,s){var l=this.offsetTime,c;this.propType==="multidimensional"&&(c=j("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var Y,x,O,F,D,K,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=ti.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[N].point[Y]}else{M.__fnct?K=M.__fnct:(K=Ua.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=K),O=K((r-w)/(L-w));var V=C.segmentLength*O,W,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,V===0||O===0||D===C.points.length-1){for(x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y];break}else if(V>=X&&V<X+C.points[D+1].partialLength){for(W=(V-X)/C.points[D+1].partialLength,x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y]+(C.points[D+1].point[Y]-C.points[D].point[Y])*W;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var ot,St,ft,nt,wt;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)c[0]=T[0],c[1]=T[1],c[2]=T[2];else if(r<=w)c[0]=y.s[0],c[1]=y.s[1],c[2]=y.s[2];else{var mt=Lu(y.s),it=Lu(T),_=(r-w)/(L-w);gT(c,vT(mt,it,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?K=M.__fnct[p]:(ot=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],St=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],K=Ua.getBezierEasing(ot,St,ft,nt).get,M.__fnct[p]=K)):M.__fnct?K=M.__fnct:(ot=y.o.x,St=y.o.y,ft=y.i.x,nt=y.i.y,K=Ua.getBezierEasing(ot,St,ft,nt).get,y.keyframeMetadata=K),O=K((r-w)/(L-w)))),T=k.s||y.e,wt=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?c[p]=wt:c=wt}return s.lastIndex=m,c}function vT(r,s,l){var c=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],Y=s[3],x,O,F,D,K;return O=m*y+p*k+b*M+I*Y,O<0&&(O=-O,y=-y,k=-k,M=-M,Y=-Y),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),D=Math.sin((1-l)*x)/F,K=Math.sin(l*x)/F):(D=1-l,K=l),c[0]=D*m+K*y,c[1]=D*p+K*k,c[2]=D*b+K*M,c[3]=D*I+K*Y,c}function gT(r,s){var l=s[0],c=s[1],m=s[2],p=s[3],b=Math.atan2(2*c*p-2*l*m,1-2*c*c-2*m*m),I=Math.asin(2*l*c+2*m*p),y=Math.atan2(2*l*p-2*c*m,1-2*l*l-2*m*m);r[0]=b/Nt,r[1]=I/Nt,r[2]=y/Nt}function Lu(r){var s=r[0]*Nt,l=r[1]*Nt,c=r[2]*Nt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(c/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(c/2),M=m*p*b-I*y*k,Y=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[Y,x,O,M]}function Mu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Bo&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(r,this._caching);this.pv=c}return this._caching.lastFrame=r,this.pv}function yl(r){var s;if(this.propType==="unidimensional")s=r*this.mult,ku(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)s=r[l]*this.mult,ku(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function El(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Tl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function bT(r,s,l,c){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=El,this.setVValue=yl,this.addEffect=Tl}function yT(r,s,l,c){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=j("float32",p),this.pv=j("float32",p),this.vel=j("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=El,this.setVValue=yl,this.addEffect=Tl}function ET(r,s,l,c){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Bo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.v=Bo,this.pv=Bo,this._isFirstFrame=!0,this.getValue=El,this.setVValue=yl,this.interpolateValue=Nu,this.effectsSequence=[Mu.bind(this)],this.addEffect=Tl}function TT(r,s,l,c){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&ti.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&ti.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&ti.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&ti.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Mu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.getValue=El,this.setVValue=yl,this.interpolateValue=Nu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=j("float32",M),this.pv=j("float32",M),m=0;m<M;m+=1)this.v[m]=Bo,this.pv[m]=Bo;this._caching={lastFrame:Bo,lastIndex:0,value:j("float32",M)},this.addEffect=Tl}var dt=function(){function r(l,c,m,p,b){c.sid&&(c=l.globalData.slotManager.getProp(c));var I;if(!c.k.length)I=new bT(l,c,p,b);else if(typeof c.k[0]=="number")I=new yT(l,c,p,b);else switch(m){case 0:I=new ET(l,c,p,b);break;case 1:I=new TT(l,c,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Uo=function(){function r(){return j("float32",2)}return bl(8,r)}();function _i(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}_i.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=Uo.newElement(),this.o[l]=Uo.newElement(),this.i[l]=Uo.newElement(),l+=1},_i.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},_i.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},_i.prototype.setXYAt=function(r,s,l,c,m){var p;switch(this._length=Math.max(this._length,c+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[c]||p[c]&&!m)&&(p[c]=Uo.newElement()),p[c][0]=r,p[c][1]=s},_i.prototype.setTripleAt=function(r,s,l,c,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,c,"o",b,I),this.setXYAt(m,p,"i",b,I)},_i.prototype.reverse=function(){var r=new _i;r.setPathData(this.c,this._length);var s=this.v,l=this.o,c=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],c[0][0],c[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],c[p][0],c[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},_i.prototype.length=function(){return this._length};var De=function(){function r(){return new _i}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Uo.release(m.v[b]),Uo.release(m.i[b]),Uo.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=c.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var c=bl(4,r,s);return c.clone=l,c}();function rh(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}rh.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},rh.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ds=function(){var r={newShapeCollection:m,release:p},s=0,l=4,c=Z(l);function m(){var b;return s?(s-=1,b=c[s]):b=new rh,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(c=Cu.double(c),l*=2),c[s]=b,s+=1}return r}(),xl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,V,W,X,ot,St,ft,nt,wt,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],W=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],W=!0;else{for(var it=C,_=mt.length-1,P=!0,g,E,q;P&&(g=mt[it],E=mt[it+1],!(E.t-this.offsetTime>L));)it<_-1?it+=1:P=!1;if(q=this.keyframesMetadata[it]||{},W=g.h===1,C=it,!W){if(L>=E.t-this.offsetTime)nt=1;else if(L<g.t-this.offsetTime)nt=0;else{var B;q.__fnct?B=q.__fnct:(B=Ua.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,q.__fnct=B),nt=B((L-(g.t-this.offsetTime))/(E.t-this.offsetTime-(g.t-this.offsetTime)))}V=E.s?E.s[0]:g.e[0]}N=g.s[0]}for(St=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<St;X+=1)for(ot=0;ot<ft;ot+=1)wt=W?N.i[X][ot]:N.i[X][ot]+(V.i[X][ot]-N.i[X][ot])*nt,w.i[X][ot]=wt,wt=W?N.o[X][ot]:N.o[X][ot]+(V.o[X][ot]-N.o[X][ot])*nt,w.o[X][ot]=wt,wt=W?N.v[X][ot]:N.v[X][ot]+(V.v[X][ot]-N.v[X][ot])*nt,w.v[X][ot]=wt}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function c(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=c,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=c,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=se;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=dt.getProp(T,C.p,1,0,this),this.s=dt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],V=this.s.v[0]/2,W=this.s.v[1]/2,X=this.d!==3,ot=this.v;ot.v[0][0]=C,ot.v[0][1]=N-W,ot.v[1][0]=X?C+V:C-V,ot.v[1][1]=N,ot.v[2][0]=C,ot.v[2][1]=N+W,ot.v[3][0]=X?C-V:C+V,ot.v[3][1]=N,ot.i[0][0]=X?C-V*L:C+V*L,ot.i[0][1]=N-W,ot.i[1][0]=X?C+V:C-V,ot.i[1][1]=N-W*L,ot.i[2][0]=X?C+V*L:C-V*L,ot.i[2][1]=N+W,ot.i[3][0]=X?C-V:C+V,ot.i[3][1]=N+W*L,ot.o[0][0]=X?C+V*L:C-V*L,ot.o[0][1]=N-W,ot.o[1][0]=X?C+V:C-V,ot.o[1][1]=N+W*L,ot.o[2][0]=X?C-V*L:C+V*L,ot.o[2][1]=N+W,ot.o[3][0]=X?C-V:C+V,ot.o[3][1]=N-W*L}},S([Ne],w),w}(),Y=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=dt.getProp(w,T.ir,0,0,this),this.is=dt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=dt.getProp(w,T.pt,0,0,this),this.p=dt.getProp(w,T.p,1,0,this),this.r=dt.getProp(w,T.r,0,Nt,this),this.or=dt.getProp(w,T.or,0,0,this),this.os=dt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ds.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,V=this.or.v,W=this.ir.v,X=this.os.v,ot=this.is.v,St=2*Math.PI*V/(T*2),ft=2*Math.PI*W/(T*2),nt,wt,mt,it,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){wt=N?V:W,mt=N?X:ot,it=N?St:ft;var g=wt*Math.cos(_),E=wt*Math.sin(_),q=g===0&&E===0?0:E/Math.sqrt(g*g+E*E),B=g===0&&E===0?0:-g/Math.sqrt(g*g+E*E);g+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(g,E,g-q*it*mt*P,E-B*it*mt*P,g+q*it*mt*P,E+B*it*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,V=this.os.v,W=2*Math.PI*N/(T*4),X,ot=-Math.PI*.5,St=this.data.d===3?-1:1;for(ot+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(ot),nt=N*Math.sin(ot),wt=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-wt*W*V*St,nt-mt*W*V*St,ft+wt*W*V*St,nt+mt*W*V*St,X,!0),ot+=C*St}this.paths.length=0,this.paths[0]=this.v}},S([Ne],L),L}(),x=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Ds.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=dt.getProp(w,T.p,1,0,this),this.s=dt.getProp(w,T.s,1,0,this),this.r=dt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,V=this.s.v[1]/2,W=qt(N,V,this.r.v),X=W*(1-se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-V+W,T+N,C-V+W,T+N,C-V+X,0,!0),this.v.setTripleAt(T+N,C+V-W,T+N,C+V-X,T+N,C+V-W,1,!0),W!==0?(this.v.setTripleAt(T+N-W,C+V,T+N-W,C+V,T+N-X,C+V,2,!0),this.v.setTripleAt(T-N+W,C+V,T-N+X,C+V,T-N+W,C+V,3,!0),this.v.setTripleAt(T-N,C+V-W,T-N,C+V-W,T-N,C+V-X,4,!0),this.v.setTripleAt(T-N,C-V+W,T-N,C-V+X,T-N,C-V+W,5,!0),this.v.setTripleAt(T-N+W,C-V,T-N+W,C-V,T-N+X,C-V,6,!0),this.v.setTripleAt(T+N-W,C-V,T+N-X,C-V,T+N-W,C-V,7,!0)):(this.v.setTripleAt(T-N,C+V,T-N+X,C+V,T-N,C+V,2),this.v.setTripleAt(T-N,C-V,T-N,C-V+X,T-N,C-V,3))):(this.v.setTripleAt(T+N,C-V+W,T+N,C-V+X,T+N,C-V+W,0,!0),W!==0?(this.v.setTripleAt(T+N-W,C-V,T+N-W,C-V,T+N-X,C-V,1,!0),this.v.setTripleAt(T-N+W,C-V,T-N+X,C-V,T-N+W,C-V,2,!0),this.v.setTripleAt(T-N,C-V+W,T-N,C-V+W,T-N,C-V+X,3,!0),this.v.setTripleAt(T-N,C+V-W,T-N,C+V-X,T-N,C+V-W,4,!0),this.v.setTripleAt(T-N+W,C+V,T-N+W,C+V,T-N+X,C+V,5,!0),this.v.setTripleAt(T+N-W,C+V,T+N-X,C+V,T+N-W,C+V,6,!0),this.v.setTripleAt(T+N,C+V-W,T+N,C+V-W,T+N,C+V-X,7,!0)):(this.v.setTripleAt(T-N,C-V,T-N+X,C-V,T-N,C-V,1,!0),this.v.setTripleAt(T-N,C+V,T-N,C+V-X,T-N,C+V,2,!0),this.v.setTripleAt(T+N,C+V,T+N-X,C+V,T+N,C+V,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:c},S([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,V=N.k;V.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new Y(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var K={};return K.getShapeProp=O,K.getConstructorFunction=F,K.getKeyframedConstructorFunction=D,K}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,c=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function b(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(1,0,0,0,0,E,-q,0,0,q,E,0,0,0,0,1)}function I(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,0,q,0,0,1,0,0,-q,0,E,0,0,0,0,1)}function y(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function k(g,E){return this._t(1,E,g,1,0,0)}function M(g,E){return this.shear(l(g),l(E))}function Y(g,E){var q=r(E),B=s(E);return this._t(q,B,0,0,-B,q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(g),1,0,0,0,0,1,0,0,0,0,1)._t(q,-B,0,0,B,q,0,0,0,0,1,0,0,0,0,1)}function x(g,E,q){return!q&&q!==0&&(q=1),g===1&&E===1&&q===1?this:this._t(g,0,0,0,0,E,0,0,0,0,q,0,0,0,0,1)}function O(g,E,q,B,ct,gt,It,Bt,Ut,ye,ir,ri,or,Le,yr,Yt){return this.props[0]=g,this.props[1]=E,this.props[2]=q,this.props[3]=B,this.props[4]=ct,this.props[5]=gt,this.props[6]=It,this.props[7]=Bt,this.props[8]=Ut,this.props[9]=ye,this.props[10]=ir,this.props[11]=ri,this.props[12]=or,this.props[13]=Le,this.props[14]=yr,this.props[15]=Yt,this}function F(g,E,q){return q=q||0,g!==0||E!==0||q!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,g,E,q,1):this}function D(g,E,q,B,ct,gt,It,Bt,Ut,ye,ir,ri,or,Le,yr,Yt){var ut=this.props;if(g===1&&E===0&&q===0&&B===0&&ct===0&&gt===1&&It===0&&Bt===0&&Ut===0&&ye===0&&ir===1&&ri===0)return ut[12]=ut[12]*g+ut[15]*or,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*ir+ut[15]*yr,ut[15]*=Yt,this._identityCalculated=!1,this;var Ni=ut[0],lo=ut[1],Li=ut[2],ii=ut[3],Mi=ut[4],Oi=ut[5],sr=ut[6],co=ut[7],ho=ut[8],zr=ut[9],po=ut[10],Br=ut[11],Wo=ut[12],Ll=ut[13],Ml=ut[14],Ol=ut[15];return ut[0]=Ni*g+lo*ct+Li*Ut+ii*or,ut[1]=Ni*E+lo*gt+Li*ye+ii*Le,ut[2]=Ni*q+lo*It+Li*ir+ii*yr,ut[3]=Ni*B+lo*Bt+Li*ri+ii*Yt,ut[4]=Mi*g+Oi*ct+sr*Ut+co*or,ut[5]=Mi*E+Oi*gt+sr*ye+co*Le,ut[6]=Mi*q+Oi*It+sr*ir+co*yr,ut[7]=Mi*B+Oi*Bt+sr*ri+co*Yt,ut[8]=ho*g+zr*ct+po*Ut+Br*or,ut[9]=ho*E+zr*gt+po*ye+Br*Le,ut[10]=ho*q+zr*It+po*ir+Br*yr,ut[11]=ho*B+zr*Bt+po*ri+Br*Yt,ut[12]=Wo*g+Ll*ct+Ml*Ut+Ol*or,ut[13]=Wo*E+Ll*gt+Ml*ye+Ol*Le,ut[14]=Wo*q+Ll*It+Ml*ir+Ol*yr,ut[15]=Wo*B+Ll*Bt+Ml*ri+Ol*Yt,this._identityCalculated=!1,this}function K(g){var E=g.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(g){for(var E=0;E<16;){if(g.props[E]!==this.props[E])return!1;E+=1}return!0}function T(g){var E;for(E=0;E<16;E+=1)g.props[E]=this.props[E];return g}function C(g){var E;for(E=0;E<16;E+=1)this.props[E]=g[E]}function N(g,E,q){return{x:g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],y:g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],z:g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}}function V(g,E,q){return g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12]}function W(g,E,q){return g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13]}function X(g,E,q){return g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}function ot(){var g=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/g,q=-this.props[1]/g,B=-this.props[4]/g,ct=this.props[0]/g,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/g,It=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/g,Bt=new Pe;return Bt.props[0]=E,Bt.props[1]=q,Bt.props[4]=B,Bt.props[5]=ct,Bt.props[12]=gt,Bt.props[13]=It,Bt}function St(g){var E=this.getInverseMatrix();return E.applyToPointArray(g[0],g[1],g[2]||0)}function ft(g){var E,q=g.length,B=[];for(E=0;E<q;E+=1)B[E]=St(g[E]);return B}function nt(g,E,q){var B=j("float32",6);if(this.isIdentity())B[0]=g[0],B[1]=g[1],B[2]=E[0],B[3]=E[1],B[4]=q[0],B[5]=q[1];else{var ct=this.props[0],gt=this.props[1],It=this.props[4],Bt=this.props[5],Ut=this.props[12],ye=this.props[13];B[0]=g[0]*ct+g[1]*It+Ut,B[1]=g[0]*gt+g[1]*Bt+ye,B[2]=E[0]*ct+E[1]*It+Ut,B[3]=E[0]*gt+E[1]*Bt+ye,B[4]=q[0]*ct+q[1]*It+Ut,B[5]=q[0]*gt+q[1]*Bt+ye}return B}function wt(g,E,q){var B;return this.isIdentity()?B=[g,E,q]:B=[g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]],B}function mt(g,E){if(this.isIdentity())return g+","+E;var q=this.props;return Math.round((g*q[0]+E*q[4]+q[12])*100)/100+","+Math.round((g*q[1]+E*q[5]+q[13])*100)/100}function it(){for(var g=0,E=this.props,q="matrix3d(",B=1e4;g<16;)q+=c(E[g]*B)/B,q+=g===15?")":",",g+=1;return q}function _(g){var E=1e4;return g<1e-6&&g>0||g>-1e-6&&g<0?c(g*E)/E:g}function P(){var g=this.props,E=_(g[0]),q=_(g[1]),B=_(g[4]),ct=_(g[5]),gt=_(g[12]),It=_(g[13]);return"matrix("+E+","+q+","+B+","+ct+","+gt+","+It+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=Y,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=K,this.applyToPoint=N,this.applyToX=V,this.applyToY=W,this.applyToZ=X,this.applyToPointArray=wt,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=it,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=St,this.getInverseMatrix=ot,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=j("float32",16),this.reset()}}();function Al(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Al=function(l){return typeof l}:Al=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Al(r)}var Wt={},Sl="__[STANDALONE]__",Ou="__[ANIMATIONDATA]__",Ru="";function xT(r){d(r)}function Du(){Sl===!0?be.searchAnimations(Ou,Sl,Ru):be.searchAnimations()}function AT(r){sT(r)}function ST(r){lT(r)}function IT(r){return Sl===!0&&(r.animationData=JSON.parse(Ou)),be.loadAnimation(r)}function CT(r){if(typeof r=="string")switch(r){case"high":vl(200);break;default:case"medium":vl(50);break;case"low":vl(10);break}else!isNaN(r)&&r>1&&vl(r);$a()>=50?Ke(!1):Ke(!0)}function _T(){return typeof navigator<"u"}function wT(r,s){r==="expressions"&&nT(s)}function kT(r){switch(r){case"propertyFactory":return dt;case"shapePropertyFactory":return xl;case"matrix":return Pe;default:return null}}Wt.play=be.play,Wt.pause=be.pause,Wt.setLocationHref=xT,Wt.togglePause=be.togglePause,Wt.setSpeed=be.setSpeed,Wt.setDirection=be.setDirection,Wt.stop=be.stop,Wt.searchAnimations=Du,Wt.registerAnimation=be.registerAnimation,Wt.loadAnimation=IT,Wt.setSubframeRendering=AT,Wt.resize=be.resize,Wt.goToAndStop=be.goToAndStop,Wt.destroy=be.destroy,Wt.setQuality=CT,Wt.inBrowser=_T,Wt.installPlugin=wT,Wt.freeze=be.freeze,Wt.unfreeze=be.unfreeze,Wt.setVolume=be.setVolume,Wt.mute=be.mute,Wt.unmute=be.unmute,Wt.getRegisteredAnimations=be.getRegisteredAnimations,Wt.useWebWorker=i,Wt.setIDPrefix=ST,Wt.__getFactory=kT,Wt.version="5.12.2";function NT(){document.readyState==="complete"&&(clearInterval(OT),Du())}function LT(r){for(var s=Pu.split("&"),l=0;l<s.length;l+=1){var c=s[l].split("=");if(decodeURIComponent(c[0])==r)return decodeURIComponent(c[1])}return null}var Pu="";if(Sl){var Fu=document.getElementsByTagName("script"),MT=Fu.length-1,$u=Fu[MT]||{src:""};Pu=$u.src?$u.src.replace(/^[^\?]+\??/,""):"",Ru=LT("renderer")}var OT=setInterval(NT,100);try{!((typeof Tn>"u"?"undefined":Al(Tn))==="object"&&typeof ld<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Wt)}catch{}var ro=function(){var r={},s={};r.registerModifier=l,r.getModifier=c;function l(m,p){s[m]||(s[m]=p)}function c(m,p,b){return new s[m](p,b)}return r}();function wr(){}wr.prototype.initModifierProperties=function(){},wr.prototype.addShapeToModifier=function(){},wr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ds.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},wr.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},wr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},S([Ne],wr);function Vr(){}S([wr],Vr),Vr.prototype.initModifierProperties=function(r,s){this.s=dt.getProp(r,s.s,0,.01,this),this.e=dt.getProp(r,s.e,0,.01,this),this.o=dt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Vr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Vr.prototype.calculateShapeEdges=function(r,s,l,c,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<c||k.s*m>c+l)){var M,Y;k.s*m<=c?M=0:M=(k.s*m-c)/l,k.e*m>=c+l?Y=1:Y=(k.e*m-c)/l,b.push([M,Y])}return b.length||b.push([0,0]),b},Vr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)wu.release(r[s]);return r.length=0,r},Vr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var c=this.o.v%360/360;if(c<0&&(c+=1),this.s.v>1?s=1+c:this.s.v<0?s=0+c:s=this.s.v+c,this.e.v>1?l=1+c:this.e.v<0?l=0+c:l=this.e.v+c,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,Y,x,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,K;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,x=0,!D.shape._mdf&&D.pathsData.length)x=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)Y=ti.getSegmentsLength(p.shapes[y]),M.push(Y),x+=Y.totalLength;D.totalShapeLength=x,D.pathsData=M}O+=x,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(K=D.localShapeCollection,K.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var V=D.shape.paths.shapes[D.shape.paths._length-1];if(V.c){var W=N.pop();this.addPaths(N,K),N=this.addShapes(D,F[1],W)}else this.addPaths(N,K),N=this.addShapes(D,F[1])}this.addPaths(N,K)}}D.shape.paths=K}}},Vr.prototype.addPaths=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)s.addShape(r[l])},Vr.prototype.addSegment=function(r,s,l,c,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(c[0],c[1],"v",p+1)},Vr.prototype.addSegmentFromArray=function(r,s,l,c){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),c&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Vr.prototype.addShapes=function(r,s,l){var c=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,Y,x,O,F=[],D,K=!0;for(l?(Y=l._length,D=l._length):(l=De.newElement(),Y=0,D=0),F.push(l),p=0;p<b;p+=1){for(x=c[p].lengths,l.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,Y,K),K=!1):(O=ti.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,l,Y,K),K=!1,l.c=!1),k+=M.addedLength,Y+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,Y,K),K=!1):(O=ti.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,l,Y,K),K=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,Y+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),K=!0,F.push(l),Y=0)}return F};function Ha(){}S([wr],Ha),Ha.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=dt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ha.prototype.processPath=function(r,s){var l=s/100,c=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)c[0]+=r.v[p][0],c[1]+=r.v[p][1];c[0]/=m,c[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,Y,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(c[0]-r.v[p][0])*l,y=r.v[p][1]+(c[1]-r.v[p][1])*l,k=r.o[p][0]+(c[0]-r.o[p][0])*-l,M=r.o[p][1]+(c[1]-r.o[p][1])*-l,Y=r.i[p][0]+(c[0]-r.i[p][0])*-l,x=r.i[p][1]+(c[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,Y,x,p);return b},Ha.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ih=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,Y;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),Y=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,Y=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],Y=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),Y[0]=x.getValueAtTime(x.keyframes[0].t/k,0),Y[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),Y[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),Y[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],Y[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),Y[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else Y=r,M=Y;this.v.rotate(-Math.atan2(M[1]-Y[1],M[0]-Y[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function c(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=dt.getProp(y,k.p.x,0,0,this),this.py=dt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=dt.getProp(y,k.p.z,0,0,this))):this.p=dt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=dt.getProp(y,k.rx,0,Nt,this),this.ry=dt.getProp(y,k.ry,0,Nt,this),this.rz=dt.getProp(y,k.rz,0,Nt,this),k.or.k[0].ti){var Y,x=k.or.k.length;for(Y=0;Y<x;Y+=1)k.or.k[Y].to=null,k.or.k[Y].ti=null}this.or=dt.getProp(y,k.or,1,Nt,this),this.or.sh=!0}else this.r=dt.getProp(y,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=dt.getProp(y,k.sk,0,Nt,this),this.sa=dt.getProp(y,k.sa,0,Nt,this)),this.a=dt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=dt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=dt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:c,autoOrient:m},S([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function ei(){}S([wr],ei),ei.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=dt.getProp(r,s.c,0,null,this),this.o=dt.getProp(r,s.o,0,null,this),this.tr=ih.getTransformProperty(r,s.tr,this),this.so=dt.getProp(r,s.tr.so,0,.01,this),this.eo=dt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},ei.prototype.applyTransforms=function(r,s,l,c,m,p){var b=p?-1:1,I=c.s.v[0]+(1-c.s.v[0])*(1-m),y=c.s.v[1]+(1-c.s.v[1])*(1-m);r.translate(c.p.v[0]*b*m,c.p.v[1]*b*m,c.p.v[2]),s.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),s.rotate(-c.r.v*b*m),s.translate(c.a.v[0],c.a.v[1],c.a.v[2]),l.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(c.a.v[0],c.a.v[1],c.a.v[2])},ei.prototype.init=function(r,s,l,c){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=c,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ei.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},ei.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},ei.prototype.changeGroupRender=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},ei.prototype.processShapes=function(r){var s,l,c,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(c=0;c<=this._groups.length-1;c+=1){if(k=p<I,this._groups[c]._render=k,this.changeGroupRender(this._groups[c].it,k),!k){var M=this.elemsData[c].it,Y=M[M.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),D=this.pMatrix.props,K=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}c=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),w!==0){for((c!==0&&m===1||c!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],K[8],K[9],K[10],K[11],K[12],K[13],K[14],K[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,c+=m}}else for(p=this._currentCopies,c=0,m=1;p;)s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,c+=m;return b},ei.prototype.addShape=function(){};function Ga(){}S([wr],Ga),Ga.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=dt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ga.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var c,m=r._length,p,b,I,y,k,M,Y=0,x,O,F,D,K,L;for(c=0;c<m;c+=1)p=r.v[c],I=r.o[c],b=r.i[c],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(c===0||c===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],Y),Y+=1):(c===0?y=r.v[m-1]:y=r.v[c-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,K=p[0]+(y[0]-p[0])*M,x=K,L=p[1]-(p[1]-y[1])*M,O=L,F=x-(x-p[0])*se,D=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,K,L,Y),Y+=1,c===m-1?y=r.v[0]:y=r.v[c+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,x=F,D=p[1]+(y[1]-p[1])*M,O=D,K=x-(x-p[0])*se,L=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,K,L,Y),Y+=1):(l.setTripleAt(r.v[c][0],r.v[c][1],r.o[c][0],r.o[c][1],r.i[c][0],r.i[c][1],Y),Y+=1);return l},Ga.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Il(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function oh(r){return Math.abs(r)<=1e-5}function Vu(r,s,l){return r*(1-l)+s*l}function io(r,s,l){return[Vu(r[0],s[0],l),Vu(r[1],s[1],l)]}function RT(r,s,l){if(r===0)return[];var c=s*s-4*r*l;if(c<0)return[];var m=-s/(2*r);if(c===0)return[m];var p=Math.sqrt(c)/(2*r);return[m-p,m+p]}function zu(r,s,l,c){return[-r+3*s-3*l+c,3*r-6*s+3*l,-3*r+3*s,r]}function Bu(r){return new de(r,r,r,r,!1)}function de(r,s,l,c,m){m&&Fs(r,s)&&(s=io(r,c,1/3)),m&&Fs(l,c)&&(l=io(r,c,2/3));var p=zu(r[0],s[0],l[0],c[0]),b=zu(r[1],s[1],l[1],c[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,c]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(oh(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var c=Math.sqrt(l);return oh(c)?c>0&&c<1?[s]:[]:[s-c,s+c].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[Bu(this.points[0]),this];if(r>=1)return[this,Bu(this.points[this.points.length-1])];var s=io(this.points[0],this.points[1],r),l=io(this.points[1],this.points[2],r),c=io(this.points[2],this.points[3],r),m=io(s,l,r),p=io(l,c,r),b=io(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,c,this.points[3],!0)]};function Uu(r,s){var l=r.points[0][s],c=r.points[r.points.length-1][s];if(l>c){var m=c;c=l,l=m}for(var p=RT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>c&&(c=I)}return{min:l,max:c}}de.prototype.bounds=function(){return{x:Uu(this,0),y:Uu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function Cl(r,s,l){var c=r.boundingBox();return{cx:c.cx,cy:c.cy,width:c.width,height:c.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Hu(r){var s=r.bez.split(.5);return[Cl(s[0],r.t1,r.t),Cl(s[1],r.t,r.t2)]}function DT(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Ka(r,s,l,c,m,p){if(DT(r,s)){if(l>=p||r.width<=c&&r.height<=c&&s.width<=c&&s.height<=c){m.push([r.t,s.t]);return}var b=Hu(r),I=Hu(s);Ka(b[0],I[0],l+1,c,m,p),Ka(b[0],I[1],l+1,c,m,p),Ka(b[1],I[0],l+1,c,m,p),Ka(b[1],I[1],l+1,c,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var c=[];return Ka(Cl(this,0,1),Cl(r,0,1),0,s,c,l),c},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function sh(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function _l(r,s,l,c){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[c[0],c[1],1],y=sh(sh(m,p),sh(b,I));return oh(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Ps(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function ah(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Fs(r,s){return Il(r[0],s[0])&&Il(r[1],s[1])}function Wa(){}S([wr],Wa),Wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=dt.getProp(r,s.s,0,null,this),this.frequency=dt.getProp(r,s.r,0,null,this),this.pointsType=dt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Gu(r,s,l,c,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*c*m,M=s[1]-Math.sin(l)*c*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function PT(r,s){var l=[s[0]-r[0],s[1]-r[1]],c=-Math.PI*.5,m=[Math.cos(c)*l[0]-Math.sin(c)*l[1],Math.sin(c)*l[0]+Math.cos(c)*l[1]];return m}function FT(r,s){var l=s===0?r.length()-1:s-1,c=(s+1)%r.length(),m=r.v[l],p=r.v[c],b=PT(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Ku(r,s,l,c,m,p,b){var I=FT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],Y=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Gu(r,s.v[l%s._length],I,b,c,x/((m+1)*2),Y/((m+1)*2),p)}function $T(r,s,l,c,m,p){for(var b=0;b<c;b+=1){var I=(b+1)/(c+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);Gu(r,M,k,p,l,y/((c+1)*2),y/((c+1)*2),m),p=-p}return p}Wa.prototype.processPath=function(r,s,l,c){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Ku(p,r,0,s,l,c,b);for(var y=0;y<m;y+=1)b=$T(p,I,s,l,c,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Ku(p,r,y+1,s,l,c,b);return p},Wa.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nh(r,s,l){var c=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Ps(r,c,l),Ps(s,c,l)]}function $s(r,s){var l,c,m,p,b,I,y;y=nh(r.points[0],r.points[1],s),l=y[0],c=y[1],y=nh(r.points[1],r.points[2],s),m=y[0],p=y[1],y=nh(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=_l(l,c,m,p);k===null&&(k=c);var M=_l(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Wu(r,s,l,c,m){var p=s.points[3],b=l.points[0];if(c===3||Fs(p,b))return p;if(c===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=_l(p,Ps(p,I+Math.PI/2,100),b,Ps(b,I+Math.PI/2,100)),M=k?ah(k,p):ah(p,b)/2,Y=Ps(p,I,2*M*se);return r.setXYAt(Y[0],Y[1],"o",r.length()-1),Y=Ps(b,y,2*M*se),r.setTripleAt(b[0],b[1],b[0],b[1],Y[0],Y[1],r.length()),b}var x=Fs(p,s.points[2])?s.points[0]:s.points[2],O=Fs(b,l.points[1])?l.points[3]:l.points[1],F=_l(x,p,b,O);return F&&ah(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Yu(r,s){var l=r.intersections(s);return l.length&&Il(l[0][0],1)&&l.shift(),l.length?l[0]:null}function ju(r,s){var l=r.slice(),c=s.slice(),m=Yu(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],c[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Yu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,c]}function VT(r){for(var s,l=1;l<r.length;l+=1)s=ju(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=ju(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function qu(r,s){var l=r.inflectionPoints(),c,m,p,b;if(l.length===0)return[$s(r,s)];if(l.length===1||Il(l[1],1))return p=r.split(l[0]),c=p[0],m=p[1],[$s(c,s),$s(m,s)];p=r.split(l[0]),c=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[$s(c,s),$s(b,s),$s(m,s)]}function Ya(){}S([wr],Ya),Ya.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=dt.getProp(r,s.a,0,null,this),this.miterLimit=dt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ya.prototype.processPath=function(r,s,l,c){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(qu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(qu(y,s));k=VT(k);var M=null,Y=null;for(b=0;b<k.length;b+=1){var x=k[b];for(Y&&(M=Wu(m,Y,x[0],l,c)),Y=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&Fs(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&Wu(m,Y,k[0][0],l,c),m},Ya.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Xu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",c="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":c="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:c,weight:r.fWeight||l}}var Ho=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var c=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),g,E=P.length,q=[];for(g=0;g<E;g+=1)P[g]!=="sans-serif"&&P[g]!=="monospace"&&q.push(P[g]);return q.join(",")}function O(_,P){var g=v("span");g.setAttribute("aria-hidden",!0),g.style.fontFamily=P;var E=v("span");E.innerText="giItT1WQy@!-/#",g.style.position="absolute",g.style.left="-10000px",g.style.top="-10000px",g.style.fontSize="300px",g.style.fontVariant="normal",g.style.fontStyle="normal",g.style.fontWeight="normal",g.style.letterSpacing="0",g.appendChild(E),document.body.appendChild(g);var q=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:q,parent:g}}function F(){var _,P=this.fonts.length,g,E,q=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?q-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(g=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,g.offsetWidth!==E?(q-=1,this.fonts[_].loaded=!0):(g=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,g.offsetWidth!==E&&(q-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));q!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var g=document.body&&P?"svg":"canvas",E,q=Xu(_);if(g==="svg"){var B=_t("text");B.style.fontSize="100px",B.setAttribute("font-family",_.fFamily),B.setAttribute("font-style",q.style),B.setAttribute("font-weight",q.weight),B.textContent="1",_.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",_.fClass)):B.style.fontFamily=_.fFamily,P.appendChild(B),E=B}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=q.style+" "+q.weight+" 100px "+_.fFamily,E=ct}function gt(It){return g==="svg"?(E.textContent=It,E.getComputedTextLength()):E.measureText(It).width}return{measureText:gt}}function K(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(ir){ir.helper=D(ir),ir.cache={}}),this.fonts=_.list;return}var g=_.list,E,q=g.length,B=q;for(E=0;E<q;E+=1){var ct=!0,gt,It;if(g[E].loaded=!1,g[E].monoCase=O(g[E].fFamily,"monospace"),g[E].sansCase=O(g[E].fFamily,"sans-serif"),!g[E].fPath)g[E].loaded=!0,B-=1;else if(g[E].fOrigin==="p"||g[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[E].fFamily+'"], style[f-origin="3"][f-family="'+g[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Bt=v("style");Bt.setAttribute("f-forigin",g[E].fOrigin),Bt.setAttribute("f-origin",g[E].origin),Bt.setAttribute("f-family",g[E].fFamily),Bt.type="text/css",Bt.innerText="@font-face {font-family: "+g[E].fFamily+"; font-style: normal; src: url('"+g[E].fPath+"');}",P.appendChild(Bt)}}else if(g[E].fOrigin==="g"||g[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),It=0;It<gt.length;It+=1)gt[It].href.indexOf(g[E].fPath)!==-1&&(ct=!1);if(ct){var Ut=v("link");Ut.setAttribute("f-forigin",g[E].fOrigin),Ut.setAttribute("f-origin",g[E].origin),Ut.type="text/css",Ut.rel="stylesheet",Ut.href=g[E].fPath,document.body.appendChild(Ut)}}else if(g[E].fOrigin==="t"||g[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),It=0;It<gt.length;It+=1)g[E].fPath===gt[It].src&&(ct=!1);if(ct){var ye=v("link");ye.setAttribute("f-forigin",g[E].fOrigin),ye.setAttribute("f-origin",g[E].origin),ye.setAttribute("rel","stylesheet"),ye.setAttribute("href",g[E].fPath),P.appendChild(ye)}}g[E].helper=D(g[E],P),g[E].cache={},this.fonts.push(g[E])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,g=_.length,E,q=this.chars.length,B;for(P=0;P<g;P+=1){for(E=0,B=!1;E<q;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(B=!0),E+=1;B||(this.chars.push(_[P]),q+=1)}}}function w(_,P,g){for(var E=0,q=this.chars.length;E<q;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===g)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,P,g)),s}function T(_,P,g){var E=this.getFontByName(P),q=_;if(!E.cache[q]){var B=E.helper;if(_===" "){var ct=B.measureText("|"+_+"|"),gt=B.measureText("||");E.cache[q]=(ct-gt)/100}else E.cache[q]=B.measureText(_)/100}return E.cache[q]*g}function C(_){for(var P=0,g=this.fonts.length;P<g;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,g=_.charCodeAt(0);if(g>=55296&&g<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(g-55296)*1024+E-56320+65536)}return P}function V(_,P){var g=_.toString(16)+P.toString(16);return Y.indexOf(g)!==-1}function W(_){return _===y}function X(_){return _===I}function ot(_){var P=N(_);return P>=k&&P<=M}function St(_){return ot(_.substr(0,2))&&ot(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var g=N(_.substr(P,2));if(g!==c)return!1;var E=0;for(P+=2;E<5;){if(g=N(_.substr(P,2)),g<p||g>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function wt(){this.isLoaded=!0}var mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};mt.isModifier=V,mt.isZeroWidthJoiner=W,mt.isFlagEmoji=St,mt.isRegionalCode=ot,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=c;var it={addChars:L,addFonts:K,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:wt};return mt.prototype=it,mt}();function Zu(r){this.animationData=r}Zu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function zT(r){return new Zu(r)}function wl(){}wl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var lh=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function BT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function UT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function HT(r,s,l){this.p=dt.getProp(s,r.v,1,0,l)}function GT(r,s,l){this.p=dt.getProp(s,r.v,1,0,l)}function KT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function WT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function YT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function jT(){this.p={}}function Qu(r,s){var l=r.ef||[];this.effectElements=[];var c,m=l.length,p;for(c=0;c<m;c+=1)p=new ja(l[c],s),this.effectElements.push(p)}function ja(r,s){this.init(r,s)}S([Ne],ja),ja.prototype.getValue=ja.prototype.iterateDynamicProperties,ja.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,c=this.data.ef.length,m,p=this.data.ef;for(l=0;l<c;l+=1){switch(m=null,p[l].ty){case 0:m=new BT(p[l],s,this);break;case 1:m=new UT(p[l],s,this);break;case 2:m=new HT(p[l],s,this);break;case 3:m=new GT(p[l],s,this);break;case 4:case 7:m=new YT(p[l],s,this);break;case 10:m=new KT(p[l],s,this);break;case 11:m=new WT(p[l],s,this);break;case 5:m=new Qu(p[l],s,this);break;default:m=new jT(p[l],s,this);break}m&&this.effectElements.push(m)}};function oo(){}oo.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Su();if(s){var l=s("layer"),c=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=c.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=lh(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,c){this.globalData=l,this.comp=c,this.data=s,this.layerId=er(),this.data.sr||(this.data.sr=1),this.effectsManager=new Qu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function so(){}so.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var c,m=this.dynamicProperties.length;for(c=0;c<m;c+=1)(l||this._isParent&&this.dynamicProperties[c].propType==="transform")&&(this.dynamicProperties[c].getValue(),this.dynamicProperties[c]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ao(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}ao.prototype.prepareFrame=function(){},S([wl,oo,so],ao),ao.prototype.getBaseElement=function(){return null},ao.prototype.renderFrame=function(){},ao.prototype.destroy=function(){},ao.prototype.initExpressions=function(){var r=Su();if(r){var s=r("footage");this.layerInterface=s(this)}},ao.prototype.getFootageData=function(){return this.footageData};function rr(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var c=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(c),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?dt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=dt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}rr.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},S([wl,oo,so],rr),rr.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))},rr.prototype.show=function(){},rr.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},rr.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},rr.prototype.resume=function(){this._canPlay=!0},rr.prototype.setRate=function(r){this.audio.rate(r)},rr.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},rr.prototype.getBaseElement=function(){return null},rr.prototype.destroy=function(){},rr.prototype.sourceRectAtTime=function(){},rr.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,c;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(c=this.layers[s],c.ip-c.st<=r-this.layers[s].st&&c.op-c.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new rr(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new ao(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,c,m=this.layers.length;for(s=0;s<l;s+=1)for(c=0;c<m;){if(this.layers[c].id===r[s].id){this.layers[c]=r[s];break}c+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var c=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!c[p]||c[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(c[p]),c[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var c=this.createComp(r[s]);c.initExpressions(),this.globalData.projectInterface.registerComposition(c)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var c,m=this.elements.length;for(c=0;c<m;c+=1)if(this.elements[c].data.nm===s){l=this.elements[c];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Ho,this.globalData.slotManager=zT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var qT={TRANSFORM_EFFECT:"transformEFfect"};function Vs(){}Vs.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?ih.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,c=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;c<m;){if(this.hierarchy[c].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}c+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),c=0;c<m;c+=1)l.multiply(this.hierarchy[c].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var c=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(c),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;c.multiply(m)}c.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(qT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,c=s.length;for(l=0;l<c;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var c=!0,m=this.comp;c;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):c=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Go(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var c=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,Y,x=er(),O,F,D,K,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=_t("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=_t("path"),I[m].mode==="n")this.viewData[m]={op:dt.getProp(this.element,I[m].o,0,.01,this.element),prop:xl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},c.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",K=dt.getProp(this.element,I[m].x,0,null,this.element),T=er(),F=_t("filter"),F.setAttribute("id",T),D=_t("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),c.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,K=null),this.storedData[m]={elem:b,x:K,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){Y=k.length;var C=_t("g");for(M=0;M<Y;M+=1)C.appendChild(k[M]);var N=_t("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),c.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:dt.getProp(this.element,I[m].o,0,.01,this.element),prop:xl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=_t(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),c.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Go.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Go.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,c=this.masksProperties.length;for(l=0;l<c;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},Go.prototype.getMaskelement=function(){return this.maskElement},Go.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Go.prototype.drawPath=function(r,s,l){var c=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==c){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+c:c),l.elem.setAttribute("d",b)),l.lastPath=c}},Go.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var qa=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(c,m){var p=_t("filter");return p.setAttribute("id",c),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var c=_t("feColorMatrix");return c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),c}return r}(),Ju=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),kl={},tf="filter_result_";function dh(r){var s,l="SourceGraphic",c=r.data.ef?r.data.ef.length:0,m=er(),p=qa.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<c;s+=1){I=null;var y=r.data.ef[s].ty;if(kl[y]){var k=kl[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,tf+b,l),l=tf+b,kl[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}dh.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},dh.prototype.getEffects=function(r){var s,l=this.filters.length,c=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&c.push(this.filters[s]);return c};function SC(r,s,l){kl[r]={effect:s,countsAsEffect:l}}function Xa(){}Xa.prototype={initRendererElement:function(){this.layerElement=_t("g")},createContainerElements:function(){this.matteElement=_t("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=_t("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var c=_t("clipPath"),m=_t("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=er();if(c.setAttribute("id",p),c.appendChild(m),this.globalData.defs.appendChild(c),this.checkMasks()){var b=_t("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Go(this.data,this,this.globalData),this.renderableEffectsManager=new dh(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,c,m,p,b;if(s===1||s===3){var I=_t("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=_t("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Ju.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),c=er(),m=qa.createFilter(c),this.globalData.defs.appendChild(m),m.appendChild(qa.createAlphaToLuminanceFilter()),b=_t("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+c+")"))}else if(s===2){var y=_t("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=_t("g");y.appendChild(k),c=er(),m=qa.createFilter(c);var M=_t("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var Y=_t("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),M.appendChild(Y),this.globalData.defs.appendChild(m);var x=_t("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+c+")"),k.appendChild(x),p=_t("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Ju.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(qa.createAlphaToLuminanceFilter()),b=_t("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function zs(){}zs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Za(){}(function(){var r={initElement:function(l,c,m){this.initFrame(),this.initBaseData(l,c,m),this.initTransform(l,c,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};S([wl,U(r)],Za)})();function Qa(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}S([oo,Vs,Xa,zs,so,Za],Qa),Qa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=_t("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Qa.prototype.sourceRectAtTime=function(){return this.sourceRect};function XT(r,s){this.elem=r,this.pos=s}function ef(){}ef.prototype={addShapeToModifiers:function(s){var l,c=this.shapeModifiers.length;for(l=0;l<c;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,c=this.shapeModifiers.length;l<c;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var c;for(s=l-1;s>=0&&(c=this.shapeModifiers[s].processShapes(this._isFirstFrame),!c);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,c=0,m=l.length;c<m;){if(l[c].elem===s)return l[c].pos;c+=1}return 0},addProcessedElement:function(s,l){for(var c=this.processedElements,m=c.length;m;)if(m-=1,c[m].elem===s){c[m].pos=l;return}c.push(new XT(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var rf={1:"butt",2:"round",3:"square"},of={1:"miter",2:"round",3:"bevel"};function sf(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var c=0,m=r.length;c<m;){if(r[c].mProps.dynamicProperties.length){this._isAnimated=!0;break}c+=1}}sf.prototype.setAsAnimated=function(){this._isAnimated=!0};function af(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=_t("path"),this.msElem=null}af.prototype.reset=function(){this.d="",this._mdf=!1};function Nl(r,s,l,c){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=j("float32",s.length?s.length-1:0),this.dashoffset=j("float32",1),this.initDynamicPropertyContainer(c);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=dt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}Nl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},S([Ne],Nl);function nf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(r,s.o,0,.01,this),this.w=dt.getProp(r,s.w,0,null,this),this.d=new Nl(r,s.d||{},"svg",this),this.c=dt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}S([Ne],nf);function lf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(r,s.o,0,.01,this),this.c=dt.getProp(r,s.c,1,255,this),this.style=l}S([Ne],lf);function df(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}S([Ne],df);function Ja(r,s,l){this.data=s,this.c=j("uint8c",s.p*4);var c=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=j("float32",c),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=c,this.initDynamicPropertyContainer(l),this.prop=dt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ja.prototype.comparePoints=function(r,s){for(var l=0,c=this.o.length/2,m;l<c;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},Ja.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ja.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,c,m;for(s=0;s<l;s+=1)c=s%4===0?100:255,m=Math.round(this.prop.v[s]*c),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)c=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},S([Ne],Ja);function Bs(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}Bs.prototype.initGradientData=function(r,s,l){this.o=dt.getProp(r,s.o,0,.01,this),this.s=dt.getProp(r,s.s,1,null,this),this.e=dt.getProp(r,s.e,1,null,this),this.h=dt.getProp(r,s.h||{k:0},0,.01,this),this.a=dt.getProp(r,s.a||{k:0},0,Nt,this),this.g=new Ja(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},Bs.prototype.setGradientData=function(r,s){var l=er(),c=_t(s.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=_t("stop"),c.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=c,this.cst=m},Bs.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,c,m,p=_t("mask"),b=_t("path");p.appendChild(b);var I=er(),y=er();p.setAttribute("id",y);var k=_t(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(c=r.g.p*4;c<m;c+=2)l=_t("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",rf[r.lc||2]),b.setAttribute("stroke-linejoin",of[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},S([Ne],Bs);function cf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=dt.getProp(r,s.w,0,null,this),this.d=new Nl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}S([Bs,Ne],cf);function ZT(){this.it=[],this.prevViewData=[],this.gr=_t("g")}function QT(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var hf=function(s,l,c,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return c&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},JT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:c};function c(Y){switch(Y.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(Y,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(Y,x,O){var F,D,K,L,w,T,C=x.styles.length,N=x.lvl,V,W,X,ot;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(W=s.reset(),X=N-x.styles[T].lvl,ot=x.transformers.length-1;!L&&X>0;)L=x.transformers[ot].mProps._mdf||L,X-=1,ot-=1;if(L)for(X=N-x.styles[T].lvl,ot=x.transformers.length-1;X>0;)W.multiply(x.transformers[ot].mProps.v),X-=1,ot-=1}else W=r;if(V=x.sh.paths,D=V._length,L){for(K="",F=0;F<D;F+=1)w=V.shapes[F],w&&w._length&&(K+=hf(w,w._length,w.c,W));x.caches[T]=K}else K=x.caches[T];x.styles[T].d+=Y.hd===!0?"":K,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(Y,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function y(Y,x,O){k(Y,x,O),M(Y,x,O)}function k(Y,x,O){var F=x.gf,D=x.g._hasOpacity,K=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=Y.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=Y.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,K[0]),F.setAttribute(C,K[1]),D&&!x.g._collapsable&&(x.of.setAttribute(T,K[0]),x.of.setAttribute(C,K[1]))}var N,V,W,X;if(x.g._cmdf||O){N=x.cst;var ot=x.g.c;for(W=N.length,V=0;V<W;V+=1)X=N[V],X.setAttribute("offset",ot[V*4]+"%"),X.setAttribute("stop-color","rgb("+ot[V*4+1]+","+ot[V*4+2]+","+ot[V*4+3]+")")}if(D&&(x.g._omdf||O)){var St=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,W=N.length,V=0;V<W;V+=1)X=N[V],x.g._collapsable||X.setAttribute("offset",St[V*2]+"%"),X.setAttribute("stop-opacity",St[V*2+1])}if(Y.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(K[0]-L[0],2)+Math.pow(K[1]-L[1],2)),F.setAttribute("r",ft),D&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(K[0]-L[0],2)+Math.pow(K[1]-L[1],2)));var nt=Math.atan2(L[1]-K[1],L[0]-K[0]),wt=x.h.v;wt>=1?wt=.99:wt<=-1&&(wt=-.99);var mt=ft*wt,it=Math.cos(nt+x.a.v)*mt+K[0],_=Math.sin(nt+x.a.v)*mt+K[1];F.setAttribute("fx",it),F.setAttribute("fy",_),D&&!x.g._collapsable&&(x.of.setAttribute("fx",it),x.of.setAttribute("fy",_))}}}function M(Y,x,O){var F=x.style,D=x.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return l}();function he(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}S([oo,Vs,Xa,ef,zs,so,Za],he),he.prototype.initSecondaryElement=function(){},he.prototype.identityMatrix=new Pe,he.prototype.buildExpressionInterface=function(){},he.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},he.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,c,m=this.stylesList.length,p,b=[],I=!1;for(c=0;c<m;c+=1){for(p=this.stylesList[c],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},he.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},he.prototype.createStyleElement=function(r,s){var l,c=new af(r,s),m=c.pElem;if(r.ty==="st")l=new nf(this,r,c);else if(r.ty==="fl")l=new lf(this,r,c);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Bs:cf;l=new p(this,r,c),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new df(this,r,c));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",rf[r.lc||2]),m.setAttribute("stroke-linejoin",of[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=lh(r.bm)),this.stylesList.push(c),this.addToAnimatedContents(r,l),l},he.prototype.createGroupElement=function(r){var s=new ZT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=lh(r.bm)),s},he.prototype.createTransformElement=function(r,s){var l=ih.getTransformProperty(this,r,this),c=new QT(l,l.o,s);return this.addToAnimatedContents(r,c),c},he.prototype.createShapeElement=function(r,s,l){var c=4;r.ty==="rc"?c=5:r.ty==="el"?c=6:r.ty==="sr"&&(c=7);var m=xl.getShapeProp(this,r,c,this),p=new sf(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},he.prototype.addToAnimatedContents=function(r,s){for(var l=0,c=this.animatedContents.length;l<c;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:JT.createRenderFunction(r),element:s,data:r})},he.prototype.setElementStyles=function(r){var s=r.styles,l,c=this.stylesList.length;for(l=0;l<c;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},he.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},he.prototype.searchShapes=function(r,s,l,c,m,p,b){var I=[].concat(p),y,k=r.length-1,M,Y,x=[],O=[],F,D,K;for(y=k;y>=0;y-=1){if(K=this.searchProcessedElement(r[y]),K?s[y]=l[K-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")K?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==c&&c.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!K)s[y]=this.createGroupElement(r[y]);else for(Y=s[y].it.length,M=0;M<Y;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==c&&c.appendChild(s[y].gr)}else r[y].ty==="tr"?(K||(s[y]=this.createTransformElement(r[y],c)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(K||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(K?(D=s[y],D.closed=!1):(D=ro.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(K?(D=s[y],D.closed=!0):(D=ro.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},he.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},he.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},he.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ch(r,s,l,c,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=c,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!c,m:!0,p:!0}}ch.prototype.update=function(r,s,l,c,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==c&&(this.fc=c,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var c,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(c=0;c<m;c+=1)l!==this.keysIndex?p=this.effectsSequence[c](p,p.t):p=this.effectsSequence[c](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,c=r.length;l<=c-1&&!(l===c-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,c=r.length,m,p,b=!1,I=!1,y="";l<c;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),Ho.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Ho.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&(Ho.isModifier(m,p)?(y=r.substr(l,2),b=!0):Ho.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),Ho.isVariationSelector(m)&&(b=!0)):Ho.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,c=[],m,p,b,I=0,y,k=l.m.g,M=0,Y=0,x=0,O=[],F=0,D=0,K,L,w=s.getFontByName(r.f),T,C=0,N=Xu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var V=r.tr/1e3*r.finalSize,W;if(r.sz)for(var X=!0,ot=r.sz[0],St=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,V=r.tr/1e3*r.finalSize;var wt=-1;for(m=0;m<p;m+=1)W=nt[m].charCodeAt(0),b=!1,nt[m]===" "?wt=m:(W===13||W===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>ot&&nt[m]!==" "?(wt===-1?p+=1:m=wt,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,wt===m?1:0,"\r"),wt=-1,F=0):(F+=C,F+=V);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&St<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-V,C=0;var mt=0,it;for(m=0;m<p;m+=1)if(b=!1,it=r.finalText[m],W=it.charCodeAt(0),W===13||W===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*V,y="",b=!0,x+=1):y=it,s.chars?(T=s.getCharData(it,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),it===" "?mt+=C+V:(F+=C+V+mt,mt=0),c.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;M=0,I+=1}}else c[I].ind=I,c[I].extra=0,I+=1;if(r.l=c,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,g;L=_.length;var E,q,B=[];for(K=0;K<L;K+=1){for(P=_[K],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),q=0,E=P.s.b,m=0;m<p;m+=1)g=c[m],g.anIndexes[K]=q,(E==1&&g.val!==""||E==2&&g.val!==""&&g.val!==" "||E==3&&(g.n||g.val==" "||m==p-1)||E==4&&(g.n||m==p-1))&&(P.s.rn===1&&B.push(q),q+=1);l.a[K].s.totalChars=q;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)g=c[m],ct!=g.anIndexes[K]&&(ct=g.anIndexes[K],gt=B.splice(Math.floor(Math.random()*B.length),1)[0]),g.anIndexes[K]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var tx=function(){var r=Math.max,s=Math.min,l=Math.floor;function c(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=dt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=dt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=dt.getProp(p,b.o||{k:0},0,0,this),this.xe=dt.getProp(p,b.xe||{k:0},0,0,this),this.ne=dt.getProp(p,b.ne||{k:0},0,0,this),this.sm=dt.getProp(p,b.sm||{k:100},0,0,this),this.a=dt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}c.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var Y=Ua.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?x=b>=F?1:0:x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===3)F===O?x=b>=F?0:1:x=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===4)F===O?x=0:(x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=Y(x);else if(D===5){if(F===O)x=0;else{var K=F-O;b=s(r(0,b+.5-O),F-O);var L=-K/2+b,w=K/2;x=Math.sqrt(1-L*L/(w*w))}x=Y(x)}else D===6?(F===O?x=0:(b=s(r(0,b+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),x=Y(x)):(b>=l(O)&&(b-O<0?x=r(0,s(s(F,1)-(O-b),1)):x=r(0,s(F-b,1))),x=Y(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var Y=k;k=M,M=Y}this.finalS=k,this.finalE=M}},S([Ne],c);function m(p,b,I){return new c(p,b,I)}return{getTextSelectorProp:m}}();function ex(r,s,l){var c={propType:!1},m=dt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,Nt,l):c,rx:p.rx?m(r,p.rx,0,Nt,l):c,ry:p.ry?m(r,p.ry,0,Nt,l):c,sk:p.sk?m(r,p.sk,0,Nt,l):c,sa:p.sa?m(r,p.sa,0,Nt,l):c,s:p.s?m(r,p.s,1,.01,l):c,a:p.a?m(r,p.a,1,0,l):c,o:p.o?m(r,p.o,0,.01,l):c,p:p.p?m(r,p.p,1,0,l):c,sw:p.sw?m(r,p.sw,0,0,l):c,sc:p.sc?m(r,p.sc,1,0,l):c,fc:p.fc?m(r,p.fc,1,0,l):c,fh:p.fh?m(r,p.fh,0,0,l):c,fs:p.fs?m(r,p.fs,0,.01,l):c,fb:p.fb?m(r,p.fb,0,.01,l):c,t:p.t?m(r,p.t,0,0,l):c},this.s=tx.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function Ko(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}Ko.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,c=dt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new ex(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:c(this._elem,this._textData.p.a,0,0,this),f:c(this._elem,this._textData.p.f,0,0,this),l:c(this._elem,this._textData.p.l,0,0,this),r:c(this._elem,this._textData.p.r,0,0,this),p:c(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=c(this._elem,this._textData.m.a,1,0,this)},Ko.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,c=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,Y,x=r.l,O,F,D,K,L,w,T,C,N,V,W,X,ot,St,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},Y=nt._length-1;var wt;for(X=0,M=0;M<Y;M+=1)wt=ti.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=wt.segmentLength,O.segments.push(wt),X+=wt.segmentLength;M=Y,ft.v.c&&(wt=ti.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=wt.segmentLength,O.segments.push(wt),X+=wt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,K=0,L=!0,V=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=V.length-1,N=V[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=V[T].points,w=N.length-1);N=V[T].points,C=N[w-1],D=N[w],W=D.partialLength}Y=x.length,y=0,k=0;var mt=r.finalSize*1.2*.714,it=!0,_,P,g,E,q;E=c.length;var B,ct=-1,gt,It,Bt,Ut=F,ye=T,ir=w,ri=-1,or,Le,yr,Yt,ut,Ni,lo,Li,ii="",Mi=this.defaultPropsArray,Oi;if(r.j===2||r.j===1){var sr=0,co=0,ho=r.j===2?-.5:-1,zr=0,po=!0;for(M=0;M<Y;M+=1)if(x[M].n){for(sr&&(sr+=co);zr<M;)x[zr].animatorJustifyOffset=sr,zr+=1;sr=0,po=!0}else{for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(po&&r.j===2&&(co+=_.t.v*ho),P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?sr+=_.t.v*B[0]*ho:sr+=_.t.v*B*ho);po=!1}for(sr&&(sr+=co);zr<M;)x[zr].animatorJustifyOffset=sr,zr+=1}for(M=0;M<Y;M+=1){if(p.reset(),or=1,x[M].n)y=0,k+=r.yOffset,k+=it?1:0,F=Ut,it=!1,this._hasMaskedPath&&(T=ye,w=ir,N=V[T].points,C=N[w-1],D=N[w],W=D.partialLength,K=0),ii="",Li="",Ni="",Oi="",Mi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ri!==x[M].line){switch(r.j){case 1:F+=X-r.lineWidths[x[M].line];break;case 2:F+=(X-r.lineWidths[x[M].line])/2;break;default:break}ri=x[M].line}ct!==x[M].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[M].an/2,ct=x[M].ind),F+=l[0]*x[M].an*.005;var Br=0;for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Br+=_.p.v[0]*B[0]:Br+=_.p.v[0]*B),_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Br+=_.a.v[0]*B[0]:Br+=_.a.v[0]*B);for(L=!0,this._pathData.a.v&&(F=x[0].an*.5+(X-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(Y-1),F+=this._pathData.f.v);L;)K+W>=F+Br||!N?(ot=(F+Br-K)/D.partialLength,It=C.point[0]+(D.point[0]-C.point[0])*ot,Bt=C.point[1]+(D.point[1]-C.point[1])*ot,p.translate(-l[0]*x[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(K+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,V[T]?N=V[T].points:ft.v.c?(w=0,T=0,N=V[T].points):(K-=D.partialLength,N=null)),N&&(C=D,D=N[w],W=D.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-l[0]*x[M].an*.005,-l[1]*mt*.01,0);for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?B.length?F+=_.t.v*B[0]:F+=_.t.v*B:B.length?y+=_.t.v*B[0]:y+=_.t.v*B));for(r.strokeWidthAnim&&(yr=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Yt=[r.fc[0],r.fc[1],r.fc[2]]),g=0;g<E;g+=1)_=c[g].a,_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.translate(-_.a.v[0]*B[0],-_.a.v[1]*B[1],_.a.v[2]*B[2]):p.translate(-_.a.v[0]*B,-_.a.v[1]*B,_.a.v[2]*B));for(g=0;g<E;g+=1)_=c[g].a,_.s.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.scale(1+(_.s.v[0]-1)*B[0],1+(_.s.v[1]-1)*B[1],1):p.scale(1+(_.s.v[0]-1)*B,1+(_.s.v[1]-1)*B,1));for(g=0;g<E;g+=1){if(_=c[g].a,P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),_.sk.propType&&(B.length?p.skewFromAxis(-_.sk.v*B[0],_.sa.v*B[1]):p.skewFromAxis(-_.sk.v*B,_.sa.v*B)),_.r.propType&&(B.length?p.rotateZ(-_.r.v*B[2]):p.rotateZ(-_.r.v*B)),_.ry.propType&&(B.length?p.rotateY(_.ry.v*B[1]):p.rotateY(_.ry.v*B)),_.rx.propType&&(B.length?p.rotateX(_.rx.v*B[0]):p.rotateX(_.rx.v*B)),_.o.propType&&(B.length?or+=(_.o.v*B[0]-or)*B[0]:or+=(_.o.v*B-or)*B),r.strokeWidthAnim&&_.sw.propType&&(B.length?yr+=_.sw.v*B[0]:yr+=_.sw.v*B),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)B.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*B[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*B;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)B.length?Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B[0]:Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B;_.fh.propType&&(B.length?Yt=Au(Yt,_.fh.v*B[0]):Yt=Au(Yt,_.fh.v*B)),_.fs.propType&&(B.length?Yt=Tu(Yt,_.fs.v*B[0]):Yt=Tu(Yt,_.fs.v*B)),_.fb.propType&&(B.length?Yt=xu(Yt,_.fb.v*B[0]):Yt=xu(Yt,_.fb.v*B))}}for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),this._hasMaskedPath?B.length?p.translate(0,_.p.v[1]*B[0],-_.p.v[2]*B[1]):p.translate(0,_.p.v[1]*B,-_.p.v[2]*B):B.length?p.translate(_.p.v[0]*B[0],_.p.v[1]*B[1],-_.p.v[2]*B[2]):p.translate(_.p.v[0]*B,_.p.v[1]*B,-_.p.v[2]*B));if(r.strokeWidthAnim&&(Ni=yr<0?0:yr),r.strokeColorAnim&&(lo="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Li="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,l[1]*mt*.01+k,0),this._pathData.p.v){St=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Wo=Math.atan(St)*180/Math.PI;D.point[0]<C.point[0]&&(Wo+=180),p.rotate(-Wo*Math.PI/180)}p.translate(It,Bt,0),F-=l[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(F+=x[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*x[M].an*.005,l[1]*mt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?ii=p.toCSS():b==="svg"?ii=p.to2dCSS():Mi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Oi=or}I<=M?(q=new ch(Oi,Ni,lo,Li,ii,Mi),this.renderedLetters.push(q),I+=1,this.lettersChangedFlag=!0):(q=this.renderedLetters[M],this.lettersChangedFlag=q.update(Oi,Ni,lo,Li,ii,Mi)||this.lettersChangedFlag)}}},Ko.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Ko.prototype.mHelper=new Pe,Ko.prototype.defaultPropsArray=[],S([Ne],Ko);function kr(){}kr.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Ko(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},kr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},kr.prototype.createPathShape=function(r,s){var l,c=s.length,m,p="";for(l=0;l<c;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=hf(m,m.i.length,!0,r));return p},kr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},kr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},kr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},kr.prototype.applyTextPropertiesToMatrix=function(r,s,l,c,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(c,m,0)},kr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},kr.prototype.emptyProp=new ch,kr.prototype.destroy=function(){},kr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var rx={shapes:[]};function wi(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}S([oo,Vs,Xa,zs,so,Za,kr],wi),wi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=_t("text"))},wi.prototype.buildTextContents=function(r){for(var s=0,l=r.length,c=[],m="";s<l;)r[s]==="\r"||r[s]===""?(c.push(m),m=""):m+=r[s],s+=1;return c.push(m),c},wi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var c=l.it[l.it.length-1];c.s&&(c.s.k[0]=s,c.s.k[1]=s)}}return r},wi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var c=this.globalData.fontManager.getFontByName(l.f);if(c.fClass)this.layerElement.setAttribute("class",c.fClass);else{this.layerElement.setAttribute("font-family",c.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",Y=this.data.singleShape,x=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(Y&&!I&&!l.sz){var K=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}K.setAttribute("text-anchor",L),K.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||_t("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",K.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(K)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!Y||r===0){if(y=T>r?this.textSpans[r].span:_t(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=_t("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),Y&&(b[r].n&&(x=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,x,O),x+=b[r].l||0,x+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],c.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var V;if(C.t===1)V=new tn(C.data,this.globalData,this);else{var W=rx;C.data&&C.data.shapes&&(W=this.buildShapeData(C.data,l.finalSize)),V=new he(W,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=V,V._debug=!0,V.prepareFrame(0),V.renderFrame(),this.textSpans[r].childSpan.appendChild(V.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else Y&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},wi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},wi.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},wi.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;s=c.length;var m,p,b;for(r=0;r<s;r+=1)c[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function hh(r,s,l){this.initElement(r,s,l)}S([Qa],hh),hh.prototype.createContent=function(){var r=_t("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function no(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}no.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},no.prototype.renderFrame=function(){},no.prototype.getBaseElement=function(){return null},no.prototype.destroy=function(){},no.prototype.sourceRectAtTime=function(){},no.prototype.hide=function(){},S([oo,Vs,zs,so],no);function Ie(){}S([Fe],Ie),Ie.prototype.createNull=function(r){return new no(r,this.globalData,this)},Ie.prototype.createShape=function(r){return new he(r,this.globalData,this)},Ie.prototype.createText=function(r){return new wi(r,this.globalData,this)},Ie.prototype.createImage=function(r){return new Qa(r,this.globalData,this)},Ie.prototype.createSolid=function(r){return new hh(r,this.globalData,this)},Ie.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=_t("clipPath"),c=_t("rect");c.setAttribute("width",r.w),c.setAttribute("height",r.h),c.setAttribute("x",0),c.setAttribute("y",0);var m=er();l.setAttribute("id",m),l.appendChild(c),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ie.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ie.prototype.updateContainerSize=function(){},Ie.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ie.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,fl()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var c="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(c===-1)return;if(!this.elements[c]||this.elements[c]===!0)this.buildItem(c),this.addPendingElement(l);else{var m=s[c],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ie.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var c="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[c],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ie.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ie.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var c=0,m;c<s;)this.elements[c]&&this.elements[c]!==!0&&this.elements[c].getBaseElement()&&(m=this.elements[c].getBaseElement()),c+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ie.prototype.hide=function(){this.layerElement.style.display="none"},Ie.prototype.show=function(){this.layerElement.style.display="block"};function ki(){}S([oo,Vs,zs,so,Za],ki),ki.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},ki.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,c=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=c-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},ki.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},ki.prototype.setElements=function(r){this.elements=r},ki.prototype.getElements=function(){return this.elements},ki.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},ki.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function tn(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?dt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}S([Ie,ki,Xa],tn),tn.prototype.createComp=function(r){return new tn(r,this.globalData,this)};function ph(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=_t("svg");var l="";if(s&&s.title){var c=_t("title"),m=er();c.setAttribute("id",m),c.textContent=s.title,this.svgElement.appendChild(c),l+=m}if(s&&s.description){var p=_t("desc"),b=er();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=_t("defs");this.svgElement.appendChild(I);var y=_t("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return S([Ie],ph),ph.prototype.createComp=function(r){return new tn(r,this.globalData,this)},pT("svg",ph),ro.registerModifier("tm",Vr),ro.registerModifier("pb",Ha),ro.registerModifier("rp",ei),ro.registerModifier("rd",Ga),ro.registerModifier("zz",Wa),ro.registerModifier("op",Ya),Wt})});var Rl=globalThis,Dl=Rl.ShadowRoot&&(Rl.ShadyCSS===void 0||Rl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uh=Symbol(),mf=new WeakMap,en=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==uh)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(Dl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=mf.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&mf.set(t,o))}return o}toString(){return this.cssText}},uf=n=>new en(typeof n=="string"?n:n+"",void 0,uh),z=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,i,a)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[a+1],n[0]);return new en(t,n,uh)},fh=(n,o)=>{if(Dl)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=Rl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,n.appendChild(e)}},Pl=Dl?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return uf(t)})(n):n;var{is:cx,defineProperty:hx,getOwnPropertyDescriptor:px,getOwnPropertyNames:mx,getOwnPropertySymbols:ux,getPrototypeOf:fx}=Object,mo=globalThis,ff=mo.trustedTypes,vx=ff?ff.emptyScript:"",vh=mo.reactiveElementPolyfillSupport,rn=(n,o)=>n,on={toAttribute(n,o){switch(o){case Boolean:n=n?vx: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}},Fl=(n,o)=>!cx(n,o),vf={attribute:!0,type:String,converter:on,reflect:!1,hasChanged:Fl},gf,bf;(gf=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(bf=mo.litPropertyMetadata)!=null||(mo.litPropertyMetadata=new WeakMap);var Ri=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=vf){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&hx(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var d;let{get:i,set:a}=(d=px(this.prototype,o))!=null?d:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let v=i==null?void 0:i.call(this);a.call(this,f),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:vf}static _$Ei(){if(this.hasOwnProperty(rn("elementProperties")))return;let o=fx(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(rn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rn("properties"))){let t=this.properties,e=[...mx(t),...ux(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(Pl(i))}else o!==void 0&&t.push(Pl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return fh(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var a;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let d=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:on).toAttribute(t,e.type);this._$Em=o,d==null?this.removeAttribute(i):this.setAttribute(i,d),this._$Em=null}}_$AK(o,t){var a;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let d=e.getPropertyOptions(i),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((a=d.converter)==null?void 0:a.fromAttribute)!==void 0?d.converter:on;this._$Em=i,this[i]=f.fromAttribute(t,d.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:Fl)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[d,f]of a)f.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(a=>{var d;return(d=a.hostUpdate)==null?void 0:d.call(a)}),this.update(t)):this._$EU()}catch(a){throw o=!1,this._$EU(),a}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},yf;Ri.elementStyles=[],Ri.shadowRootOptions={mode:"open"},Ri[rn("elementProperties")]=new Map,Ri[rn("finalized")]=new Map,vh==null||vh({ReactiveElement:Ri}),((yf=mo.reactiveElementVersions)!=null?yf:mo.reactiveElementVersions=[]).push("2.0.4");var an=globalThis,$l=an.trustedTypes,Ef=$l?$l.createPolicy("lit-html",{createHTML:n=>n}):void 0,yh="$lit$",Di=`lit$${Math.random().toFixed(9).slice(2)}$`,Eh="?"+Di,gx=`<${Eh}>`,qo=document,nn=()=>qo.createComment(""),ln=n=>n===null||typeof n!="object"&&typeof n!="function",Th=Array.isArray,_f=n=>Th(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",gh=`[
2
+ `),c={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(c[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return c}return function(s){for(var l=[],c=0;c<s.length;c+=1){var m=s[c],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[c].cm)}catch{try{p.payload=r(s[c].cm)}catch{p.payload={name:s[c].cm}}}l.push(p)}return l}}(),hT=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var c=0,m=this.compositions.length;c<m;){if(this.compositions[c].data&&this.compositions[c].data.nm===l)return this.compositions[c].prepareFrame&&this.compositions[c].data.xt&&this.compositions[c].prepareFrame(this.currentFrame),this.compositions[c].compInterface;c+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),za={},pT=function(s,l){za[s]=l};function mT(r){return za[r]}function uT(){if(za.canvas)return"canvas";for(var r in za)if(za[r])return r;return""}function Ba(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ba=function(l){return typeof l}:Ba=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ba(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=er(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=aT(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=hT(),this.imagePreloader=new dT,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new _r("drawnFrame",0,0,0),this.expressionsPlugin=fl()};S([Iu],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=mT(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Va.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Va.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ba(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},c=r.attributes;l.path=c.getNamedItem("data-animation-path")?c.getNamedItem("data-animation-path").value:c.getNamedItem("data-bm-path")?c.getNamedItem("data-bm-path").value:c.getNamedItem("bm-path")?c.getNamedItem("bm-path").value:"",l.animType=c.getNamedItem("data-anim-type")?c.getNamedItem("data-anim-type").value:c.getNamedItem("data-bm-type")?c.getNamedItem("data-bm-type").value:c.getNamedItem("bm-type")?c.getNamedItem("bm-type").value:c.getNamedItem("data-bm-renderer")?c.getNamedItem("data-bm-renderer").value:c.getNamedItem("bm-renderer")?c.getNamedItem("bm-renderer").value:uT()||"canvas";var m=c.getNamedItem("data-anim-loop")?c.getNamedItem("data-anim-loop").value:c.getNamedItem("data-bm-loop")?c.getNamedItem("data-bm-loop").value:c.getNamedItem("bm-loop")?c.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=c.getNamedItem("data-anim-autoplay")?c.getNamedItem("data-anim-autoplay").value:c.getNamedItem("data-bm-autoplay")?c.getNamedItem("data-bm-autoplay").value:c.getNamedItem("bm-autoplay")?c.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=c.getNamedItem("data-name")?c.getNamedItem("data-name").value:c.getNamedItem("data-bm-name")?c.getNamedItem("data-bm-name").value:c.getNamedItem("bm-name")?c.getNamedItem("bm-name").value:"";var b=c.getNamedItem("data-anim-prerender")?c.getNamedItem("data-anim-prerender").value:c.getNamedItem("data-bm-prerender")?c.getNamedItem("data-bm-prerender").value:c.getNamedItem("bm-prerender")?c.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,c=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<c;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(c=r.assets.length,l=0;l<c;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Va.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=fl();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Va.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=cT(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=fl();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,c=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,c)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(c,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ba(r[0])==="object"){var l,c=r.length;for(l=0;l<c;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var c=this.renderer.getElementByPath(r);c.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new _r(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new bu(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new ul(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new yu(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Eu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new _r(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new bu(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new ul(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new yu(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Eu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new iT(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new oT(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var be=function(){var r={},s=[],l=0,c=0,m=0,p=!0,b=!1;function I(_){for(var P=0,g=_.target;P<c;)s[P].animation===g&&(s.splice(P,1),P-=1,c-=1,g.isPaused||Y()),P+=1}function y(_,P){if(!_)return null;for(var g=0;g<c;){if(s[g].elem===_&&s[g].elem!==null)return s[g].animation;g+=1}var E=new vt;return x(E,_),E.setData(_,P),E}function k(){var _,P=s.length,g=[];for(_=0;_<P;_+=1)g.push(s[_].animation);return g}function M(){m+=1,St()}function Y(){m-=1}function x(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",Y),s.push({elem:P,animation:_}),c+=1}function O(_){var P=new vt;return x(P,null),P.setParams(_),P}function F(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setSpeed(_,P)}function D(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setDirection(_,P)}function K(_){var P;for(P=0;P<c;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,g;for(g=0;g<c;g+=1)s[g].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<c;P+=1)s[P].animation.pause(_)}function C(_,P,g){var E;for(E=0;E<c;E+=1)s[E].animation.goToAndStop(_,P,g)}function N(_){var P;for(P=0;P<c;P+=1)s[P].animation.stop(_)}function V(_){var P;for(P=0;P<c;P+=1)s[P].animation.togglePause(_)}function W(_){var P;for(P=c-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,g){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),q,B=E.length;for(q=0;q<B;q+=1)g&&E[q].setAttribute("data-bm-type",g),y(E[q],_);if(P&&B===0){g||(g="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=v("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",g),ct.appendChild(gt),y(gt,_)}}function ot(){var _;for(_=0;_<c;_+=1)s[_].animation.resize()}function St(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,St()}function wt(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<c;P+=1)s[P].animation.mute(_)}function it(_){var P;for(P=0;P<c;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=K,r.pause=T,r.stop=N,r.togglePause=V,r.searchAnimations=X,r.resize=ot,r.goToAndStop=C,r.destroy=W,r.freeze=ft,r.unfreeze=nt,r.setVolume=wt,r.mute=mt,r.unmute=it,r.getRegisteredAnimations=k,r}(),Ua=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,V){var W=V||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[W])return s[W];var X=new L([w,T,C,N]);return s[W]=X,X}var c=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function Y(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+Y(T,C))*w+x(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*Y(T,C)*w+x(T)}function D(w,T,C,N,V){var W,X,ot=0;do X=T+(C-T)/2,W=O(X,N,V)-w,W>0?C=X:T=X;while(Math.abs(W)>p&&++ot<b);return X}function K(w,T,C,N){for(var V=0;V<c;++V){var W=F(T,C,N);if(W===0)return T;var X=O(T,C,N)-w;T-=X/W}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],V=this._p[2],W=this._p[3];return this._precomputed||this._precompute(),C===N&&V===W?T:T===0?0:T===1?1:O(this._getTForX(T),N,W)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],V=this._p[3];this._precomputed=!0,(T!==C||N!==V)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],V=this._mSampleValues,W=0,X=1,ot=I-1;X!==ot&&V[X]<=T;++X)W+=y;--X;var St=(T-V[X])/(V[X+1]-V[X]),ft=W+St*y,nt=F(ft,C,N);return nt>=m?K(T,ft,C,N):nt===0?ft:D(T,W,W+y,C,N)}},r}(),Cu=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),bl=function(){return function(r,s,l){var c=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return c?(c-=1,k=p[c]):k=s(),k}function y(k){c===m&&(p=Cu.double(p),m*=2),l&&l(k),p[c]=k,c+=1}return b}}(),_u=function(){function r(){return{addedLength:0,percents:j("float32",$a()),lengths:j("float32",$a())}}return bl(8,r)}(),wu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var c,m=l.lengths.length;for(c=0;c<m;c+=1)_u.release(l.lengths[c]);l.lengths.length=0}return bl(8,r,s)}();function fT(){var r=Math;function s(x,O,F,D,K,L){var w=x*D+O*K+F*L-K*D-L*x-F*O;return w>-.001&&w<.001}function l(x,O,F,D,K,L,w,T,C){if(F===0&&L===0&&C===0)return s(x,O,D,K,w,T);var N=r.sqrt(r.pow(D-x,2)+r.pow(K-O,2)+r.pow(L-F,2)),V=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-F,2)),W=r.sqrt(r.pow(w-D,2)+r.pow(T-K,2)+r.pow(C-L,2)),X;return N>V?N>W?X=N-V-W:X=W-V-N:W>V?X=W-V-N:X=V-N-W,X>-1e-4&&X<1e-4}var c=function(){return function(x,O,F,D){var K=$a(),L,w,T,C,N,V=0,W,X=[],ot=[],St=_u.newElement();for(T=F.length,L=0;L<K;L+=1){for(N=L/(K-1),W=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,ot[w]!==null&&(W+=Gt(X[w]-ot[w],2)),ot[w]=X[w];W&&(W=Pt(W),V+=W),St.percents[L]=N,St.lengths[L]=V}return St.addedLength=V,St}}();function m(x){var O=wu.newElement(),F=x.c,D=x.v,K=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=c(D[w],D[w+1],K[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=c(D[w],D[0],K[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,D,K){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+K[0]+"_"+K[1]).replace(/\./g,"p");if(!x[L]){var w=$a(),T,C,N,V,W,X=0,ot,St,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+K[0],F[1]+K[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(St=Z(N),W=T/(w-1),ot=0,C=0;C<N;C+=1)V=Gt(1-W,3)*O[C]+3*Gt(1-W,2)*W*(O[C]+D[C])+3*(1-W)*Gt(W,2)*(F[C]+K[C])+Gt(W,3)*F[C],St[C]=V,ft!==null&&(ot+=Gt(St[C]-ft[C],2));ot=Pt(ot),X+=ot,nt.points[T]=new b(ot,St),ft=St}nt.segmentLength=X,x[L]=nt}return x[L]}}();function y(x,O){var F=O.percents,D=O.lengths,K=F.length,L=ne((K-1)*x),w=x*O.addedLength,T=0;if(L===K-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=K-1){if(L===K-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(x,O,F,D,K,L){var w=y(K,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=j("float32",8);function Y(x,O,F,D,K,L,w){K<0?K=0:K>1&&(K=1);var T=y(K,w);L=L>1?1:L;var C=y(L,w),N,V=x.length,W=1-T,X=1-C,ot=W*W*W,St=T*W*W*3,ft=T*T*W*3,nt=T*T*T,wt=W*W*X,mt=T*W*X+W*T*X+W*W*C,it=T*T*X+W*T*C+T*W*C,_=T*T*C,P=W*X*X,g=T*X*X+W*C*X+W*X*C,E=T*C*X+W*C*C+T*X*C,q=T*C*C,B=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,It=C*C*C;for(N=0;N<V;N+=1)M[N*4]=r.round((ot*x[N]+St*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((wt*x[N]+mt*F[N]+it*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*x[N]+g*F[N]+E*D[N]+q*O[N])*1e3)/1e3,M[N*4+3]=r.round((B*x[N]+ct*F[N]+gt*D[N]+It*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:Y,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var ei=fT(),Bo=e,ku=Math.abs;function Nu(r,s){var l=this.offsetTime,c;this.propType==="multidimensional"&&(c=j("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var Y,x,O,F,D,K,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=ei.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[N].point[Y]}else{M.__fnct?K=M.__fnct:(K=Ua.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=K),O=K((r-w)/(L-w));var V=C.segmentLength*O,W,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,V===0||O===0||D===C.points.length-1){for(x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y];break}else if(V>=X&&V<X+C.points[D+1].partialLength){for(W=(V-X)/C.points[D+1].partialLength,x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y]+(C.points[D+1].point[Y]-C.points[D].point[Y])*W;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var ot,St,ft,nt,wt;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)c[0]=T[0],c[1]=T[1],c[2]=T[2];else if(r<=w)c[0]=y.s[0],c[1]=y.s[1],c[2]=y.s[2];else{var mt=Lu(y.s),it=Lu(T),_=(r-w)/(L-w);gT(c,vT(mt,it,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?K=M.__fnct[p]:(ot=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],St=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],K=Ua.getBezierEasing(ot,St,ft,nt).get,M.__fnct[p]=K)):M.__fnct?K=M.__fnct:(ot=y.o.x,St=y.o.y,ft=y.i.x,nt=y.i.y,K=Ua.getBezierEasing(ot,St,ft,nt).get,y.keyframeMetadata=K),O=K((r-w)/(L-w)))),T=k.s||y.e,wt=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?c[p]=wt:c=wt}return s.lastIndex=m,c}function vT(r,s,l){var c=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],Y=s[3],x,O,F,D,K;return O=m*y+p*k+b*M+I*Y,O<0&&(O=-O,y=-y,k=-k,M=-M,Y=-Y),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),D=Math.sin((1-l)*x)/F,K=Math.sin(l*x)/F):(D=1-l,K=l),c[0]=D*m+K*y,c[1]=D*p+K*k,c[2]=D*b+K*M,c[3]=D*I+K*Y,c}function gT(r,s){var l=s[0],c=s[1],m=s[2],p=s[3],b=Math.atan2(2*c*p-2*l*m,1-2*c*c-2*m*m),I=Math.asin(2*l*c+2*m*p),y=Math.atan2(2*l*p-2*c*m,1-2*l*l-2*m*m);r[0]=b/Nt,r[1]=I/Nt,r[2]=y/Nt}function Lu(r){var s=r[0]*Nt,l=r[1]*Nt,c=r[2]*Nt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(c/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(c/2),M=m*p*b-I*y*k,Y=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[Y,x,O,M]}function Mu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Bo&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(r,this._caching);this.pv=c}return this._caching.lastFrame=r,this.pv}function yl(r){var s;if(this.propType==="unidimensional")s=r*this.mult,ku(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)s=r[l]*this.mult,ku(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function El(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Tl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function bT(r,s,l,c){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=El,this.setVValue=yl,this.addEffect=Tl}function yT(r,s,l,c){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=j("float32",p),this.pv=j("float32",p),this.vel=j("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=El,this.setVValue=yl,this.addEffect=Tl}function ET(r,s,l,c){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Bo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.v=Bo,this.pv=Bo,this._isFirstFrame=!0,this.getValue=El,this.setVValue=yl,this.interpolateValue=Nu,this.effectsSequence=[Mu.bind(this)],this.addEffect=Tl}function TT(r,s,l,c){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&ei.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&ei.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&ei.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&ei.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Mu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.getValue=El,this.setVValue=yl,this.interpolateValue=Nu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=j("float32",M),this.pv=j("float32",M),m=0;m<M;m+=1)this.v[m]=Bo,this.pv[m]=Bo;this._caching={lastFrame:Bo,lastIndex:0,value:j("float32",M)},this.addEffect=Tl}var dt=function(){function r(l,c,m,p,b){c.sid&&(c=l.globalData.slotManager.getProp(c));var I;if(!c.k.length)I=new bT(l,c,p,b);else if(typeof c.k[0]=="number")I=new yT(l,c,p,b);else switch(m){case 0:I=new ET(l,c,p,b);break;case 1:I=new TT(l,c,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Uo=function(){function r(){return j("float32",2)}return bl(8,r)}();function wi(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}wi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=Uo.newElement(),this.o[l]=Uo.newElement(),this.i[l]=Uo.newElement(),l+=1},wi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},wi.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},wi.prototype.setXYAt=function(r,s,l,c,m){var p;switch(this._length=Math.max(this._length,c+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[c]||p[c]&&!m)&&(p[c]=Uo.newElement()),p[c][0]=r,p[c][1]=s},wi.prototype.setTripleAt=function(r,s,l,c,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,c,"o",b,I),this.setXYAt(m,p,"i",b,I)},wi.prototype.reverse=function(){var r=new wi;r.setPathData(this.c,this._length);var s=this.v,l=this.o,c=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],c[0][0],c[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],c[p][0],c[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},wi.prototype.length=function(){return this._length};var De=function(){function r(){return new wi}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Uo.release(m.v[b]),Uo.release(m.i[b]),Uo.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=c.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var c=bl(4,r,s);return c.clone=l,c}();function rh(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}rh.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},rh.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ds=function(){var r={newShapeCollection:m,release:p},s=0,l=4,c=Z(l);function m(){var b;return s?(s-=1,b=c[s]):b=new rh,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(c=Cu.double(c),l*=2),c[s]=b,s+=1}return r}(),xl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,V,W,X,ot,St,ft,nt,wt,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],W=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],W=!0;else{for(var it=C,_=mt.length-1,P=!0,g,E,q;P&&(g=mt[it],E=mt[it+1],!(E.t-this.offsetTime>L));)it<_-1?it+=1:P=!1;if(q=this.keyframesMetadata[it]||{},W=g.h===1,C=it,!W){if(L>=E.t-this.offsetTime)nt=1;else if(L<g.t-this.offsetTime)nt=0;else{var B;q.__fnct?B=q.__fnct:(B=Ua.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,q.__fnct=B),nt=B((L-(g.t-this.offsetTime))/(E.t-this.offsetTime-(g.t-this.offsetTime)))}V=E.s?E.s[0]:g.e[0]}N=g.s[0]}for(St=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<St;X+=1)for(ot=0;ot<ft;ot+=1)wt=W?N.i[X][ot]:N.i[X][ot]+(V.i[X][ot]-N.i[X][ot])*nt,w.i[X][ot]=wt,wt=W?N.o[X][ot]:N.o[X][ot]+(V.o[X][ot]-N.o[X][ot])*nt,w.o[X][ot]=wt,wt=W?N.v[X][ot]:N.v[X][ot]+(V.v[X][ot]-N.v[X][ot])*nt,w.v[X][ot]=wt}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function c(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=c,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=c,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=se;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=dt.getProp(T,C.p,1,0,this),this.s=dt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],V=this.s.v[0]/2,W=this.s.v[1]/2,X=this.d!==3,ot=this.v;ot.v[0][0]=C,ot.v[0][1]=N-W,ot.v[1][0]=X?C+V:C-V,ot.v[1][1]=N,ot.v[2][0]=C,ot.v[2][1]=N+W,ot.v[3][0]=X?C-V:C+V,ot.v[3][1]=N,ot.i[0][0]=X?C-V*L:C+V*L,ot.i[0][1]=N-W,ot.i[1][0]=X?C+V:C-V,ot.i[1][1]=N-W*L,ot.i[2][0]=X?C+V*L:C-V*L,ot.i[2][1]=N+W,ot.i[3][0]=X?C-V:C+V,ot.i[3][1]=N+W*L,ot.o[0][0]=X?C+V*L:C-V*L,ot.o[0][1]=N-W,ot.o[1][0]=X?C+V:C-V,ot.o[1][1]=N+W*L,ot.o[2][0]=X?C-V*L:C+V*L,ot.o[2][1]=N+W,ot.o[3][0]=X?C-V:C+V,ot.o[3][1]=N-W*L}},S([Ne],w),w}(),Y=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=dt.getProp(w,T.ir,0,0,this),this.is=dt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=dt.getProp(w,T.pt,0,0,this),this.p=dt.getProp(w,T.p,1,0,this),this.r=dt.getProp(w,T.r,0,Nt,this),this.or=dt.getProp(w,T.or,0,0,this),this.os=dt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ds.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,V=this.or.v,W=this.ir.v,X=this.os.v,ot=this.is.v,St=2*Math.PI*V/(T*2),ft=2*Math.PI*W/(T*2),nt,wt,mt,it,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){wt=N?V:W,mt=N?X:ot,it=N?St:ft;var g=wt*Math.cos(_),E=wt*Math.sin(_),q=g===0&&E===0?0:E/Math.sqrt(g*g+E*E),B=g===0&&E===0?0:-g/Math.sqrt(g*g+E*E);g+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(g,E,g-q*it*mt*P,E-B*it*mt*P,g+q*it*mt*P,E+B*it*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,V=this.os.v,W=2*Math.PI*N/(T*4),X,ot=-Math.PI*.5,St=this.data.d===3?-1:1;for(ot+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(ot),nt=N*Math.sin(ot),wt=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-wt*W*V*St,nt-mt*W*V*St,ft+wt*W*V*St,nt+mt*W*V*St,X,!0),ot+=C*St}this.paths.length=0,this.paths[0]=this.v}},S([Ne],L),L}(),x=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Ds.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=dt.getProp(w,T.p,1,0,this),this.s=dt.getProp(w,T.s,1,0,this),this.r=dt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,V=this.s.v[1]/2,W=qt(N,V,this.r.v),X=W*(1-se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-V+W,T+N,C-V+W,T+N,C-V+X,0,!0),this.v.setTripleAt(T+N,C+V-W,T+N,C+V-X,T+N,C+V-W,1,!0),W!==0?(this.v.setTripleAt(T+N-W,C+V,T+N-W,C+V,T+N-X,C+V,2,!0),this.v.setTripleAt(T-N+W,C+V,T-N+X,C+V,T-N+W,C+V,3,!0),this.v.setTripleAt(T-N,C+V-W,T-N,C+V-W,T-N,C+V-X,4,!0),this.v.setTripleAt(T-N,C-V+W,T-N,C-V+X,T-N,C-V+W,5,!0),this.v.setTripleAt(T-N+W,C-V,T-N+W,C-V,T-N+X,C-V,6,!0),this.v.setTripleAt(T+N-W,C-V,T+N-X,C-V,T+N-W,C-V,7,!0)):(this.v.setTripleAt(T-N,C+V,T-N+X,C+V,T-N,C+V,2),this.v.setTripleAt(T-N,C-V,T-N,C-V+X,T-N,C-V,3))):(this.v.setTripleAt(T+N,C-V+W,T+N,C-V+X,T+N,C-V+W,0,!0),W!==0?(this.v.setTripleAt(T+N-W,C-V,T+N-W,C-V,T+N-X,C-V,1,!0),this.v.setTripleAt(T-N+W,C-V,T-N+X,C-V,T-N+W,C-V,2,!0),this.v.setTripleAt(T-N,C-V+W,T-N,C-V+W,T-N,C-V+X,3,!0),this.v.setTripleAt(T-N,C+V-W,T-N,C+V-X,T-N,C+V-W,4,!0),this.v.setTripleAt(T-N+W,C+V,T-N+W,C+V,T-N+X,C+V,5,!0),this.v.setTripleAt(T+N-W,C+V,T+N-X,C+V,T+N-W,C+V,6,!0),this.v.setTripleAt(T+N,C+V-W,T+N,C+V-W,T+N,C+V-X,7,!0)):(this.v.setTripleAt(T-N,C-V,T-N+X,C-V,T-N,C-V,1,!0),this.v.setTripleAt(T-N,C+V,T-N,C+V-X,T-N,C+V,2,!0),this.v.setTripleAt(T+N,C+V,T+N-X,C+V,T+N,C+V,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:c},S([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,V=N.k;V.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new Y(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var K={};return K.getShapeProp=O,K.getConstructorFunction=F,K.getKeyframedConstructorFunction=D,K}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,c=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function b(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(1,0,0,0,0,E,-q,0,0,q,E,0,0,0,0,1)}function I(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,0,q,0,0,1,0,0,-q,0,E,0,0,0,0,1)}function y(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function k(g,E){return this._t(1,E,g,1,0,0)}function M(g,E){return this.shear(l(g),l(E))}function Y(g,E){var q=r(E),B=s(E);return this._t(q,B,0,0,-B,q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(g),1,0,0,0,0,1,0,0,0,0,1)._t(q,-B,0,0,B,q,0,0,0,0,1,0,0,0,0,1)}function x(g,E,q){return!q&&q!==0&&(q=1),g===1&&E===1&&q===1?this:this._t(g,0,0,0,0,E,0,0,0,0,q,0,0,0,0,1)}function O(g,E,q,B,ct,gt,It,Bt,Ut,ye,ir,ii,or,Le,yr,Yt){return this.props[0]=g,this.props[1]=E,this.props[2]=q,this.props[3]=B,this.props[4]=ct,this.props[5]=gt,this.props[6]=It,this.props[7]=Bt,this.props[8]=Ut,this.props[9]=ye,this.props[10]=ir,this.props[11]=ii,this.props[12]=or,this.props[13]=Le,this.props[14]=yr,this.props[15]=Yt,this}function F(g,E,q){return q=q||0,g!==0||E!==0||q!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,g,E,q,1):this}function D(g,E,q,B,ct,gt,It,Bt,Ut,ye,ir,ii,or,Le,yr,Yt){var ut=this.props;if(g===1&&E===0&&q===0&&B===0&&ct===0&&gt===1&&It===0&&Bt===0&&Ut===0&&ye===0&&ir===1&&ii===0)return ut[12]=ut[12]*g+ut[15]*or,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*ir+ut[15]*yr,ut[15]*=Yt,this._identityCalculated=!1,this;var Li=ut[0],lo=ut[1],Mi=ut[2],oi=ut[3],Oi=ut[4],Ri=ut[5],sr=ut[6],co=ut[7],ho=ut[8],zr=ut[9],po=ut[10],Br=ut[11],Wo=ut[12],Ll=ut[13],Ml=ut[14],Ol=ut[15];return ut[0]=Li*g+lo*ct+Mi*Ut+oi*or,ut[1]=Li*E+lo*gt+Mi*ye+oi*Le,ut[2]=Li*q+lo*It+Mi*ir+oi*yr,ut[3]=Li*B+lo*Bt+Mi*ii+oi*Yt,ut[4]=Oi*g+Ri*ct+sr*Ut+co*or,ut[5]=Oi*E+Ri*gt+sr*ye+co*Le,ut[6]=Oi*q+Ri*It+sr*ir+co*yr,ut[7]=Oi*B+Ri*Bt+sr*ii+co*Yt,ut[8]=ho*g+zr*ct+po*Ut+Br*or,ut[9]=ho*E+zr*gt+po*ye+Br*Le,ut[10]=ho*q+zr*It+po*ir+Br*yr,ut[11]=ho*B+zr*Bt+po*ii+Br*Yt,ut[12]=Wo*g+Ll*ct+Ml*Ut+Ol*or,ut[13]=Wo*E+Ll*gt+Ml*ye+Ol*Le,ut[14]=Wo*q+Ll*It+Ml*ir+Ol*yr,ut[15]=Wo*B+Ll*Bt+Ml*ii+Ol*Yt,this._identityCalculated=!1,this}function K(g){var E=g.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(g){for(var E=0;E<16;){if(g.props[E]!==this.props[E])return!1;E+=1}return!0}function T(g){var E;for(E=0;E<16;E+=1)g.props[E]=this.props[E];return g}function C(g){var E;for(E=0;E<16;E+=1)this.props[E]=g[E]}function N(g,E,q){return{x:g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],y:g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],z:g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}}function V(g,E,q){return g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12]}function W(g,E,q){return g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13]}function X(g,E,q){return g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}function ot(){var g=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/g,q=-this.props[1]/g,B=-this.props[4]/g,ct=this.props[0]/g,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/g,It=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/g,Bt=new Pe;return Bt.props[0]=E,Bt.props[1]=q,Bt.props[4]=B,Bt.props[5]=ct,Bt.props[12]=gt,Bt.props[13]=It,Bt}function St(g){var E=this.getInverseMatrix();return E.applyToPointArray(g[0],g[1],g[2]||0)}function ft(g){var E,q=g.length,B=[];for(E=0;E<q;E+=1)B[E]=St(g[E]);return B}function nt(g,E,q){var B=j("float32",6);if(this.isIdentity())B[0]=g[0],B[1]=g[1],B[2]=E[0],B[3]=E[1],B[4]=q[0],B[5]=q[1];else{var ct=this.props[0],gt=this.props[1],It=this.props[4],Bt=this.props[5],Ut=this.props[12],ye=this.props[13];B[0]=g[0]*ct+g[1]*It+Ut,B[1]=g[0]*gt+g[1]*Bt+ye,B[2]=E[0]*ct+E[1]*It+Ut,B[3]=E[0]*gt+E[1]*Bt+ye,B[4]=q[0]*ct+q[1]*It+Ut,B[5]=q[0]*gt+q[1]*Bt+ye}return B}function wt(g,E,q){var B;return this.isIdentity()?B=[g,E,q]:B=[g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]],B}function mt(g,E){if(this.isIdentity())return g+","+E;var q=this.props;return Math.round((g*q[0]+E*q[4]+q[12])*100)/100+","+Math.round((g*q[1]+E*q[5]+q[13])*100)/100}function it(){for(var g=0,E=this.props,q="matrix3d(",B=1e4;g<16;)q+=c(E[g]*B)/B,q+=g===15?")":",",g+=1;return q}function _(g){var E=1e4;return g<1e-6&&g>0||g>-1e-6&&g<0?c(g*E)/E:g}function P(){var g=this.props,E=_(g[0]),q=_(g[1]),B=_(g[4]),ct=_(g[5]),gt=_(g[12]),It=_(g[13]);return"matrix("+E+","+q+","+B+","+ct+","+gt+","+It+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=Y,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=K,this.applyToPoint=N,this.applyToX=V,this.applyToY=W,this.applyToZ=X,this.applyToPointArray=wt,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=it,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=St,this.getInverseMatrix=ot,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=j("float32",16),this.reset()}}();function Al(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Al=function(l){return typeof l}:Al=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Al(r)}var Wt={},Sl="__[STANDALONE]__",Ou="__[ANIMATIONDATA]__",Ru="";function xT(r){d(r)}function Du(){Sl===!0?be.searchAnimations(Ou,Sl,Ru):be.searchAnimations()}function AT(r){sT(r)}function ST(r){lT(r)}function IT(r){return Sl===!0&&(r.animationData=JSON.parse(Ou)),be.loadAnimation(r)}function CT(r){if(typeof r=="string")switch(r){case"high":vl(200);break;default:case"medium":vl(50);break;case"low":vl(10);break}else!isNaN(r)&&r>1&&vl(r);$a()>=50?Ke(!1):Ke(!0)}function _T(){return typeof navigator<"u"}function wT(r,s){r==="expressions"&&nT(s)}function kT(r){switch(r){case"propertyFactory":return dt;case"shapePropertyFactory":return xl;case"matrix":return Pe;default:return null}}Wt.play=be.play,Wt.pause=be.pause,Wt.setLocationHref=xT,Wt.togglePause=be.togglePause,Wt.setSpeed=be.setSpeed,Wt.setDirection=be.setDirection,Wt.stop=be.stop,Wt.searchAnimations=Du,Wt.registerAnimation=be.registerAnimation,Wt.loadAnimation=IT,Wt.setSubframeRendering=AT,Wt.resize=be.resize,Wt.goToAndStop=be.goToAndStop,Wt.destroy=be.destroy,Wt.setQuality=CT,Wt.inBrowser=_T,Wt.installPlugin=wT,Wt.freeze=be.freeze,Wt.unfreeze=be.unfreeze,Wt.setVolume=be.setVolume,Wt.mute=be.mute,Wt.unmute=be.unmute,Wt.getRegisteredAnimations=be.getRegisteredAnimations,Wt.useWebWorker=i,Wt.setIDPrefix=ST,Wt.__getFactory=kT,Wt.version="5.12.2";function NT(){document.readyState==="complete"&&(clearInterval(OT),Du())}function LT(r){for(var s=Pu.split("&"),l=0;l<s.length;l+=1){var c=s[l].split("=");if(decodeURIComponent(c[0])==r)return decodeURIComponent(c[1])}return null}var Pu="";if(Sl){var Fu=document.getElementsByTagName("script"),MT=Fu.length-1,$u=Fu[MT]||{src:""};Pu=$u.src?$u.src.replace(/^[^\?]+\??/,""):"",Ru=LT("renderer")}var OT=setInterval(NT,100);try{!((typeof Tn>"u"?"undefined":Al(Tn))==="object"&&typeof ld<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Wt)}catch{}var ro=function(){var r={},s={};r.registerModifier=l,r.getModifier=c;function l(m,p){s[m]||(s[m]=p)}function c(m,p,b){return new s[m](p,b)}return r}();function wr(){}wr.prototype.initModifierProperties=function(){},wr.prototype.addShapeToModifier=function(){},wr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ds.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},wr.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},wr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},S([Ne],wr);function Vr(){}S([wr],Vr),Vr.prototype.initModifierProperties=function(r,s){this.s=dt.getProp(r,s.s,0,.01,this),this.e=dt.getProp(r,s.e,0,.01,this),this.o=dt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Vr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Vr.prototype.calculateShapeEdges=function(r,s,l,c,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<c||k.s*m>c+l)){var M,Y;k.s*m<=c?M=0:M=(k.s*m-c)/l,k.e*m>=c+l?Y=1:Y=(k.e*m-c)/l,b.push([M,Y])}return b.length||b.push([0,0]),b},Vr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)wu.release(r[s]);return r.length=0,r},Vr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var c=this.o.v%360/360;if(c<0&&(c+=1),this.s.v>1?s=1+c:this.s.v<0?s=0+c:s=this.s.v+c,this.e.v>1?l=1+c:this.e.v<0?l=0+c:l=this.e.v+c,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,Y,x,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,K;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,x=0,!D.shape._mdf&&D.pathsData.length)x=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)Y=ei.getSegmentsLength(p.shapes[y]),M.push(Y),x+=Y.totalLength;D.totalShapeLength=x,D.pathsData=M}O+=x,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(K=D.localShapeCollection,K.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var V=D.shape.paths.shapes[D.shape.paths._length-1];if(V.c){var W=N.pop();this.addPaths(N,K),N=this.addShapes(D,F[1],W)}else this.addPaths(N,K),N=this.addShapes(D,F[1])}this.addPaths(N,K)}}D.shape.paths=K}}},Vr.prototype.addPaths=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)s.addShape(r[l])},Vr.prototype.addSegment=function(r,s,l,c,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(c[0],c[1],"v",p+1)},Vr.prototype.addSegmentFromArray=function(r,s,l,c){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),c&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Vr.prototype.addShapes=function(r,s,l){var c=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,Y,x,O,F=[],D,K=!0;for(l?(Y=l._length,D=l._length):(l=De.newElement(),Y=0,D=0),F.push(l),p=0;p<b;p+=1){for(x=c[p].lengths,l.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,Y,K),K=!1):(O=ei.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,l,Y,K),K=!1,l.c=!1),k+=M.addedLength,Y+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,Y,K),K=!1):(O=ei.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,l,Y,K),K=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,Y+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),K=!0,F.push(l),Y=0)}return F};function Ha(){}S([wr],Ha),Ha.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=dt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ha.prototype.processPath=function(r,s){var l=s/100,c=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)c[0]+=r.v[p][0],c[1]+=r.v[p][1];c[0]/=m,c[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,Y,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(c[0]-r.v[p][0])*l,y=r.v[p][1]+(c[1]-r.v[p][1])*l,k=r.o[p][0]+(c[0]-r.o[p][0])*-l,M=r.o[p][1]+(c[1]-r.o[p][1])*-l,Y=r.i[p][0]+(c[0]-r.i[p][0])*-l,x=r.i[p][1]+(c[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,Y,x,p);return b},Ha.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ih=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,Y;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),Y=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,Y=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],Y=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),Y[0]=x.getValueAtTime(x.keyframes[0].t/k,0),Y[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),Y[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),Y[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],Y[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),Y[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else Y=r,M=Y;this.v.rotate(-Math.atan2(M[1]-Y[1],M[0]-Y[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function c(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=dt.getProp(y,k.p.x,0,0,this),this.py=dt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=dt.getProp(y,k.p.z,0,0,this))):this.p=dt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=dt.getProp(y,k.rx,0,Nt,this),this.ry=dt.getProp(y,k.ry,0,Nt,this),this.rz=dt.getProp(y,k.rz,0,Nt,this),k.or.k[0].ti){var Y,x=k.or.k.length;for(Y=0;Y<x;Y+=1)k.or.k[Y].to=null,k.or.k[Y].ti=null}this.or=dt.getProp(y,k.or,1,Nt,this),this.or.sh=!0}else this.r=dt.getProp(y,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=dt.getProp(y,k.sk,0,Nt,this),this.sa=dt.getProp(y,k.sa,0,Nt,this)),this.a=dt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=dt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=dt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:c,autoOrient:m},S([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function ri(){}S([wr],ri),ri.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=dt.getProp(r,s.c,0,null,this),this.o=dt.getProp(r,s.o,0,null,this),this.tr=ih.getTransformProperty(r,s.tr,this),this.so=dt.getProp(r,s.tr.so,0,.01,this),this.eo=dt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},ri.prototype.applyTransforms=function(r,s,l,c,m,p){var b=p?-1:1,I=c.s.v[0]+(1-c.s.v[0])*(1-m),y=c.s.v[1]+(1-c.s.v[1])*(1-m);r.translate(c.p.v[0]*b*m,c.p.v[1]*b*m,c.p.v[2]),s.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),s.rotate(-c.r.v*b*m),s.translate(c.a.v[0],c.a.v[1],c.a.v[2]),l.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(c.a.v[0],c.a.v[1],c.a.v[2])},ri.prototype.init=function(r,s,l,c){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=c,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ri.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},ri.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},ri.prototype.changeGroupRender=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},ri.prototype.processShapes=function(r){var s,l,c,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(c=0;c<=this._groups.length-1;c+=1){if(k=p<I,this._groups[c]._render=k,this.changeGroupRender(this._groups[c].it,k),!k){var M=this.elemsData[c].it,Y=M[M.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),D=this.pMatrix.props,K=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}c=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),w!==0){for((c!==0&&m===1||c!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],K[8],K[9],K[10],K[11],K[12],K[13],K[14],K[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,c+=m}}else for(p=this._currentCopies,c=0,m=1;p;)s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,c+=m;return b},ri.prototype.addShape=function(){};function Ga(){}S([wr],Ga),Ga.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=dt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ga.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var c,m=r._length,p,b,I,y,k,M,Y=0,x,O,F,D,K,L;for(c=0;c<m;c+=1)p=r.v[c],I=r.o[c],b=r.i[c],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(c===0||c===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],Y),Y+=1):(c===0?y=r.v[m-1]:y=r.v[c-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,K=p[0]+(y[0]-p[0])*M,x=K,L=p[1]-(p[1]-y[1])*M,O=L,F=x-(x-p[0])*se,D=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,K,L,Y),Y+=1,c===m-1?y=r.v[0]:y=r.v[c+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,x=F,D=p[1]+(y[1]-p[1])*M,O=D,K=x-(x-p[0])*se,L=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,K,L,Y),Y+=1):(l.setTripleAt(r.v[c][0],r.v[c][1],r.o[c][0],r.o[c][1],r.i[c][0],r.i[c][1],Y),Y+=1);return l},Ga.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Il(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function oh(r){return Math.abs(r)<=1e-5}function Vu(r,s,l){return r*(1-l)+s*l}function io(r,s,l){return[Vu(r[0],s[0],l),Vu(r[1],s[1],l)]}function RT(r,s,l){if(r===0)return[];var c=s*s-4*r*l;if(c<0)return[];var m=-s/(2*r);if(c===0)return[m];var p=Math.sqrt(c)/(2*r);return[m-p,m+p]}function zu(r,s,l,c){return[-r+3*s-3*l+c,3*r-6*s+3*l,-3*r+3*s,r]}function Bu(r){return new de(r,r,r,r,!1)}function de(r,s,l,c,m){m&&Fs(r,s)&&(s=io(r,c,1/3)),m&&Fs(l,c)&&(l=io(r,c,2/3));var p=zu(r[0],s[0],l[0],c[0]),b=zu(r[1],s[1],l[1],c[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,c]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(oh(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var c=Math.sqrt(l);return oh(c)?c>0&&c<1?[s]:[]:[s-c,s+c].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[Bu(this.points[0]),this];if(r>=1)return[this,Bu(this.points[this.points.length-1])];var s=io(this.points[0],this.points[1],r),l=io(this.points[1],this.points[2],r),c=io(this.points[2],this.points[3],r),m=io(s,l,r),p=io(l,c,r),b=io(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,c,this.points[3],!0)]};function Uu(r,s){var l=r.points[0][s],c=r.points[r.points.length-1][s];if(l>c){var m=c;c=l,l=m}for(var p=RT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>c&&(c=I)}return{min:l,max:c}}de.prototype.bounds=function(){return{x:Uu(this,0),y:Uu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function Cl(r,s,l){var c=r.boundingBox();return{cx:c.cx,cy:c.cy,width:c.width,height:c.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Hu(r){var s=r.bez.split(.5);return[Cl(s[0],r.t1,r.t),Cl(s[1],r.t,r.t2)]}function DT(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Ka(r,s,l,c,m,p){if(DT(r,s)){if(l>=p||r.width<=c&&r.height<=c&&s.width<=c&&s.height<=c){m.push([r.t,s.t]);return}var b=Hu(r),I=Hu(s);Ka(b[0],I[0],l+1,c,m,p),Ka(b[0],I[1],l+1,c,m,p),Ka(b[1],I[0],l+1,c,m,p),Ka(b[1],I[1],l+1,c,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var c=[];return Ka(Cl(this,0,1),Cl(r,0,1),0,s,c,l),c},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function sh(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function _l(r,s,l,c){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[c[0],c[1],1],y=sh(sh(m,p),sh(b,I));return oh(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Ps(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function ah(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Fs(r,s){return Il(r[0],s[0])&&Il(r[1],s[1])}function Wa(){}S([wr],Wa),Wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=dt.getProp(r,s.s,0,null,this),this.frequency=dt.getProp(r,s.r,0,null,this),this.pointsType=dt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Gu(r,s,l,c,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*c*m,M=s[1]-Math.sin(l)*c*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function PT(r,s){var l=[s[0]-r[0],s[1]-r[1]],c=-Math.PI*.5,m=[Math.cos(c)*l[0]-Math.sin(c)*l[1],Math.sin(c)*l[0]+Math.cos(c)*l[1]];return m}function FT(r,s){var l=s===0?r.length()-1:s-1,c=(s+1)%r.length(),m=r.v[l],p=r.v[c],b=PT(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Ku(r,s,l,c,m,p,b){var I=FT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],Y=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Gu(r,s.v[l%s._length],I,b,c,x/((m+1)*2),Y/((m+1)*2),p)}function $T(r,s,l,c,m,p){for(var b=0;b<c;b+=1){var I=(b+1)/(c+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);Gu(r,M,k,p,l,y/((c+1)*2),y/((c+1)*2),m),p=-p}return p}Wa.prototype.processPath=function(r,s,l,c){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Ku(p,r,0,s,l,c,b);for(var y=0;y<m;y+=1)b=$T(p,I,s,l,c,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Ku(p,r,y+1,s,l,c,b);return p},Wa.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nh(r,s,l){var c=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Ps(r,c,l),Ps(s,c,l)]}function $s(r,s){var l,c,m,p,b,I,y;y=nh(r.points[0],r.points[1],s),l=y[0],c=y[1],y=nh(r.points[1],r.points[2],s),m=y[0],p=y[1],y=nh(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=_l(l,c,m,p);k===null&&(k=c);var M=_l(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Wu(r,s,l,c,m){var p=s.points[3],b=l.points[0];if(c===3||Fs(p,b))return p;if(c===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=_l(p,Ps(p,I+Math.PI/2,100),b,Ps(b,I+Math.PI/2,100)),M=k?ah(k,p):ah(p,b)/2,Y=Ps(p,I,2*M*se);return r.setXYAt(Y[0],Y[1],"o",r.length()-1),Y=Ps(b,y,2*M*se),r.setTripleAt(b[0],b[1],b[0],b[1],Y[0],Y[1],r.length()),b}var x=Fs(p,s.points[2])?s.points[0]:s.points[2],O=Fs(b,l.points[1])?l.points[3]:l.points[1],F=_l(x,p,b,O);return F&&ah(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Yu(r,s){var l=r.intersections(s);return l.length&&Il(l[0][0],1)&&l.shift(),l.length?l[0]:null}function ju(r,s){var l=r.slice(),c=s.slice(),m=Yu(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],c[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Yu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,c]}function VT(r){for(var s,l=1;l<r.length;l+=1)s=ju(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=ju(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function qu(r,s){var l=r.inflectionPoints(),c,m,p,b;if(l.length===0)return[$s(r,s)];if(l.length===1||Il(l[1],1))return p=r.split(l[0]),c=p[0],m=p[1],[$s(c,s),$s(m,s)];p=r.split(l[0]),c=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[$s(c,s),$s(b,s),$s(m,s)]}function Ya(){}S([wr],Ya),Ya.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=dt.getProp(r,s.a,0,null,this),this.miterLimit=dt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ya.prototype.processPath=function(r,s,l,c){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(qu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(qu(y,s));k=VT(k);var M=null,Y=null;for(b=0;b<k.length;b+=1){var x=k[b];for(Y&&(M=Wu(m,Y,x[0],l,c)),Y=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&Fs(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&Wu(m,Y,k[0][0],l,c),m},Ya.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Xu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",c="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":c="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:c,weight:r.fWeight||l}}var Ho=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var c=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),g,E=P.length,q=[];for(g=0;g<E;g+=1)P[g]!=="sans-serif"&&P[g]!=="monospace"&&q.push(P[g]);return q.join(",")}function O(_,P){var g=v("span");g.setAttribute("aria-hidden",!0),g.style.fontFamily=P;var E=v("span");E.innerText="giItT1WQy@!-/#",g.style.position="absolute",g.style.left="-10000px",g.style.top="-10000px",g.style.fontSize="300px",g.style.fontVariant="normal",g.style.fontStyle="normal",g.style.fontWeight="normal",g.style.letterSpacing="0",g.appendChild(E),document.body.appendChild(g);var q=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:q,parent:g}}function F(){var _,P=this.fonts.length,g,E,q=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?q-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(g=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,g.offsetWidth!==E?(q-=1,this.fonts[_].loaded=!0):(g=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,g.offsetWidth!==E&&(q-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));q!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var g=document.body&&P?"svg":"canvas",E,q=Xu(_);if(g==="svg"){var B=_t("text");B.style.fontSize="100px",B.setAttribute("font-family",_.fFamily),B.setAttribute("font-style",q.style),B.setAttribute("font-weight",q.weight),B.textContent="1",_.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",_.fClass)):B.style.fontFamily=_.fFamily,P.appendChild(B),E=B}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=q.style+" "+q.weight+" 100px "+_.fFamily,E=ct}function gt(It){return g==="svg"?(E.textContent=It,E.getComputedTextLength()):E.measureText(It).width}return{measureText:gt}}function K(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(ir){ir.helper=D(ir),ir.cache={}}),this.fonts=_.list;return}var g=_.list,E,q=g.length,B=q;for(E=0;E<q;E+=1){var ct=!0,gt,It;if(g[E].loaded=!1,g[E].monoCase=O(g[E].fFamily,"monospace"),g[E].sansCase=O(g[E].fFamily,"sans-serif"),!g[E].fPath)g[E].loaded=!0,B-=1;else if(g[E].fOrigin==="p"||g[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[E].fFamily+'"], style[f-origin="3"][f-family="'+g[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Bt=v("style");Bt.setAttribute("f-forigin",g[E].fOrigin),Bt.setAttribute("f-origin",g[E].origin),Bt.setAttribute("f-family",g[E].fFamily),Bt.type="text/css",Bt.innerText="@font-face {font-family: "+g[E].fFamily+"; font-style: normal; src: url('"+g[E].fPath+"');}",P.appendChild(Bt)}}else if(g[E].fOrigin==="g"||g[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),It=0;It<gt.length;It+=1)gt[It].href.indexOf(g[E].fPath)!==-1&&(ct=!1);if(ct){var Ut=v("link");Ut.setAttribute("f-forigin",g[E].fOrigin),Ut.setAttribute("f-origin",g[E].origin),Ut.type="text/css",Ut.rel="stylesheet",Ut.href=g[E].fPath,document.body.appendChild(Ut)}}else if(g[E].fOrigin==="t"||g[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),It=0;It<gt.length;It+=1)g[E].fPath===gt[It].src&&(ct=!1);if(ct){var ye=v("link");ye.setAttribute("f-forigin",g[E].fOrigin),ye.setAttribute("f-origin",g[E].origin),ye.setAttribute("rel","stylesheet"),ye.setAttribute("href",g[E].fPath),P.appendChild(ye)}}g[E].helper=D(g[E],P),g[E].cache={},this.fonts.push(g[E])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,g=_.length,E,q=this.chars.length,B;for(P=0;P<g;P+=1){for(E=0,B=!1;E<q;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(B=!0),E+=1;B||(this.chars.push(_[P]),q+=1)}}}function w(_,P,g){for(var E=0,q=this.chars.length;E<q;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===g)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,P,g)),s}function T(_,P,g){var E=this.getFontByName(P),q=_;if(!E.cache[q]){var B=E.helper;if(_===" "){var ct=B.measureText("|"+_+"|"),gt=B.measureText("||");E.cache[q]=(ct-gt)/100}else E.cache[q]=B.measureText(_)/100}return E.cache[q]*g}function C(_){for(var P=0,g=this.fonts.length;P<g;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,g=_.charCodeAt(0);if(g>=55296&&g<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(g-55296)*1024+E-56320+65536)}return P}function V(_,P){var g=_.toString(16)+P.toString(16);return Y.indexOf(g)!==-1}function W(_){return _===y}function X(_){return _===I}function ot(_){var P=N(_);return P>=k&&P<=M}function St(_){return ot(_.substr(0,2))&&ot(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var g=N(_.substr(P,2));if(g!==c)return!1;var E=0;for(P+=2;E<5;){if(g=N(_.substr(P,2)),g<p||g>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function wt(){this.isLoaded=!0}var mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};mt.isModifier=V,mt.isZeroWidthJoiner=W,mt.isFlagEmoji=St,mt.isRegionalCode=ot,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=c;var it={addChars:L,addFonts:K,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:wt};return mt.prototype=it,mt}();function Zu(r){this.animationData=r}Zu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function zT(r){return new Zu(r)}function wl(){}wl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var lh=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function BT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function UT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function HT(r,s,l){this.p=dt.getProp(s,r.v,1,0,l)}function GT(r,s,l){this.p=dt.getProp(s,r.v,1,0,l)}function KT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function WT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function YT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function jT(){this.p={}}function Qu(r,s){var l=r.ef||[];this.effectElements=[];var c,m=l.length,p;for(c=0;c<m;c+=1)p=new ja(l[c],s),this.effectElements.push(p)}function ja(r,s){this.init(r,s)}S([Ne],ja),ja.prototype.getValue=ja.prototype.iterateDynamicProperties,ja.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,c=this.data.ef.length,m,p=this.data.ef;for(l=0;l<c;l+=1){switch(m=null,p[l].ty){case 0:m=new BT(p[l],s,this);break;case 1:m=new UT(p[l],s,this);break;case 2:m=new HT(p[l],s,this);break;case 3:m=new GT(p[l],s,this);break;case 4:case 7:m=new YT(p[l],s,this);break;case 10:m=new KT(p[l],s,this);break;case 11:m=new WT(p[l],s,this);break;case 5:m=new Qu(p[l],s,this);break;default:m=new jT(p[l],s,this);break}m&&this.effectElements.push(m)}};function oo(){}oo.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Su();if(s){var l=s("layer"),c=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=c.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=lh(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,c){this.globalData=l,this.comp=c,this.data=s,this.layerId=er(),this.data.sr||(this.data.sr=1),this.effectsManager=new Qu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function so(){}so.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var c,m=this.dynamicProperties.length;for(c=0;c<m;c+=1)(l||this._isParent&&this.dynamicProperties[c].propType==="transform")&&(this.dynamicProperties[c].getValue(),this.dynamicProperties[c]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ao(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}ao.prototype.prepareFrame=function(){},S([wl,oo,so],ao),ao.prototype.getBaseElement=function(){return null},ao.prototype.renderFrame=function(){},ao.prototype.destroy=function(){},ao.prototype.initExpressions=function(){var r=Su();if(r){var s=r("footage");this.layerInterface=s(this)}},ao.prototype.getFootageData=function(){return this.footageData};function rr(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var c=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(c),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?dt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=dt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}rr.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},S([wl,oo,so],rr),rr.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))},rr.prototype.show=function(){},rr.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},rr.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},rr.prototype.resume=function(){this._canPlay=!0},rr.prototype.setRate=function(r){this.audio.rate(r)},rr.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},rr.prototype.getBaseElement=function(){return null},rr.prototype.destroy=function(){},rr.prototype.sourceRectAtTime=function(){},rr.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,c;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(c=this.layers[s],c.ip-c.st<=r-this.layers[s].st&&c.op-c.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new rr(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new ao(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,c,m=this.layers.length;for(s=0;s<l;s+=1)for(c=0;c<m;){if(this.layers[c].id===r[s].id){this.layers[c]=r[s];break}c+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var c=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!c[p]||c[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(c[p]),c[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var c=this.createComp(r[s]);c.initExpressions(),this.globalData.projectInterface.registerComposition(c)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var c,m=this.elements.length;for(c=0;c<m;c+=1)if(this.elements[c].data.nm===s){l=this.elements[c];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Ho,this.globalData.slotManager=zT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var qT={TRANSFORM_EFFECT:"transformEFfect"};function Vs(){}Vs.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?ih.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,c=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;c<m;){if(this.hierarchy[c].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}c+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),c=0;c<m;c+=1)l.multiply(this.hierarchy[c].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var c=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(c),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;c.multiply(m)}c.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(qT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,c=s.length;for(l=0;l<c;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var c=!0,m=this.comp;c;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):c=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Go(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var c=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,Y,x=er(),O,F,D,K,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=_t("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=_t("path"),I[m].mode==="n")this.viewData[m]={op:dt.getProp(this.element,I[m].o,0,.01,this.element),prop:xl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},c.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",K=dt.getProp(this.element,I[m].x,0,null,this.element),T=er(),F=_t("filter"),F.setAttribute("id",T),D=_t("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),c.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,K=null),this.storedData[m]={elem:b,x:K,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){Y=k.length;var C=_t("g");for(M=0;M<Y;M+=1)C.appendChild(k[M]);var N=_t("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),c.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:dt.getProp(this.element,I[m].o,0,.01,this.element),prop:xl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=_t(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),c.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Go.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Go.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,c=this.masksProperties.length;for(l=0;l<c;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},Go.prototype.getMaskelement=function(){return this.maskElement},Go.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Go.prototype.drawPath=function(r,s,l){var c=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==c){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+c:c),l.elem.setAttribute("d",b)),l.lastPath=c}},Go.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var qa=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(c,m){var p=_t("filter");return p.setAttribute("id",c),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var c=_t("feColorMatrix");return c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),c}return r}(),Ju=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),kl={},tf="filter_result_";function dh(r){var s,l="SourceGraphic",c=r.data.ef?r.data.ef.length:0,m=er(),p=qa.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<c;s+=1){I=null;var y=r.data.ef[s].ty;if(kl[y]){var k=kl[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,tf+b,l),l=tf+b,kl[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}dh.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},dh.prototype.getEffects=function(r){var s,l=this.filters.length,c=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&c.push(this.filters[s]);return c};function SC(r,s,l){kl[r]={effect:s,countsAsEffect:l}}function Xa(){}Xa.prototype={initRendererElement:function(){this.layerElement=_t("g")},createContainerElements:function(){this.matteElement=_t("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=_t("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var c=_t("clipPath"),m=_t("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=er();if(c.setAttribute("id",p),c.appendChild(m),this.globalData.defs.appendChild(c),this.checkMasks()){var b=_t("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Go(this.data,this,this.globalData),this.renderableEffectsManager=new dh(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,c,m,p,b;if(s===1||s===3){var I=_t("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=_t("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Ju.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),c=er(),m=qa.createFilter(c),this.globalData.defs.appendChild(m),m.appendChild(qa.createAlphaToLuminanceFilter()),b=_t("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+c+")"))}else if(s===2){var y=_t("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=_t("g");y.appendChild(k),c=er(),m=qa.createFilter(c);var M=_t("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var Y=_t("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),M.appendChild(Y),this.globalData.defs.appendChild(m);var x=_t("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+c+")"),k.appendChild(x),p=_t("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Ju.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(qa.createAlphaToLuminanceFilter()),b=_t("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function zs(){}zs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Za(){}(function(){var r={initElement:function(l,c,m){this.initFrame(),this.initBaseData(l,c,m),this.initTransform(l,c,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};S([wl,U(r)],Za)})();function Qa(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}S([oo,Vs,Xa,zs,so,Za],Qa),Qa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=_t("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Qa.prototype.sourceRectAtTime=function(){return this.sourceRect};function XT(r,s){this.elem=r,this.pos=s}function ef(){}ef.prototype={addShapeToModifiers:function(s){var l,c=this.shapeModifiers.length;for(l=0;l<c;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,c=this.shapeModifiers.length;l<c;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var c;for(s=l-1;s>=0&&(c=this.shapeModifiers[s].processShapes(this._isFirstFrame),!c);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,c=0,m=l.length;c<m;){if(l[c].elem===s)return l[c].pos;c+=1}return 0},addProcessedElement:function(s,l){for(var c=this.processedElements,m=c.length;m;)if(m-=1,c[m].elem===s){c[m].pos=l;return}c.push(new XT(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var rf={1:"butt",2:"round",3:"square"},of={1:"miter",2:"round",3:"bevel"};function sf(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var c=0,m=r.length;c<m;){if(r[c].mProps.dynamicProperties.length){this._isAnimated=!0;break}c+=1}}sf.prototype.setAsAnimated=function(){this._isAnimated=!0};function af(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=_t("path"),this.msElem=null}af.prototype.reset=function(){this.d="",this._mdf=!1};function Nl(r,s,l,c){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=j("float32",s.length?s.length-1:0),this.dashoffset=j("float32",1),this.initDynamicPropertyContainer(c);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=dt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}Nl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},S([Ne],Nl);function nf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(r,s.o,0,.01,this),this.w=dt.getProp(r,s.w,0,null,this),this.d=new Nl(r,s.d||{},"svg",this),this.c=dt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}S([Ne],nf);function lf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(r,s.o,0,.01,this),this.c=dt.getProp(r,s.c,1,255,this),this.style=l}S([Ne],lf);function df(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}S([Ne],df);function Ja(r,s,l){this.data=s,this.c=j("uint8c",s.p*4);var c=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=j("float32",c),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=c,this.initDynamicPropertyContainer(l),this.prop=dt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ja.prototype.comparePoints=function(r,s){for(var l=0,c=this.o.length/2,m;l<c;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},Ja.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ja.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,c,m;for(s=0;s<l;s+=1)c=s%4===0?100:255,m=Math.round(this.prop.v[s]*c),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)c=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},S([Ne],Ja);function Bs(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}Bs.prototype.initGradientData=function(r,s,l){this.o=dt.getProp(r,s.o,0,.01,this),this.s=dt.getProp(r,s.s,1,null,this),this.e=dt.getProp(r,s.e,1,null,this),this.h=dt.getProp(r,s.h||{k:0},0,.01,this),this.a=dt.getProp(r,s.a||{k:0},0,Nt,this),this.g=new Ja(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},Bs.prototype.setGradientData=function(r,s){var l=er(),c=_t(s.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=_t("stop"),c.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=c,this.cst=m},Bs.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,c,m,p=_t("mask"),b=_t("path");p.appendChild(b);var I=er(),y=er();p.setAttribute("id",y);var k=_t(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(c=r.g.p*4;c<m;c+=2)l=_t("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",rf[r.lc||2]),b.setAttribute("stroke-linejoin",of[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},S([Ne],Bs);function cf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=dt.getProp(r,s.w,0,null,this),this.d=new Nl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}S([Bs,Ne],cf);function ZT(){this.it=[],this.prevViewData=[],this.gr=_t("g")}function QT(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var hf=function(s,l,c,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return c&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},JT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:c};function c(Y){switch(Y.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(Y,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(Y,x,O){var F,D,K,L,w,T,C=x.styles.length,N=x.lvl,V,W,X,ot;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(W=s.reset(),X=N-x.styles[T].lvl,ot=x.transformers.length-1;!L&&X>0;)L=x.transformers[ot].mProps._mdf||L,X-=1,ot-=1;if(L)for(X=N-x.styles[T].lvl,ot=x.transformers.length-1;X>0;)W.multiply(x.transformers[ot].mProps.v),X-=1,ot-=1}else W=r;if(V=x.sh.paths,D=V._length,L){for(K="",F=0;F<D;F+=1)w=V.shapes[F],w&&w._length&&(K+=hf(w,w._length,w.c,W));x.caches[T]=K}else K=x.caches[T];x.styles[T].d+=Y.hd===!0?"":K,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(Y,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function y(Y,x,O){k(Y,x,O),M(Y,x,O)}function k(Y,x,O){var F=x.gf,D=x.g._hasOpacity,K=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=Y.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=Y.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,K[0]),F.setAttribute(C,K[1]),D&&!x.g._collapsable&&(x.of.setAttribute(T,K[0]),x.of.setAttribute(C,K[1]))}var N,V,W,X;if(x.g._cmdf||O){N=x.cst;var ot=x.g.c;for(W=N.length,V=0;V<W;V+=1)X=N[V],X.setAttribute("offset",ot[V*4]+"%"),X.setAttribute("stop-color","rgb("+ot[V*4+1]+","+ot[V*4+2]+","+ot[V*4+3]+")")}if(D&&(x.g._omdf||O)){var St=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,W=N.length,V=0;V<W;V+=1)X=N[V],x.g._collapsable||X.setAttribute("offset",St[V*2]+"%"),X.setAttribute("stop-opacity",St[V*2+1])}if(Y.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(K[0]-L[0],2)+Math.pow(K[1]-L[1],2)),F.setAttribute("r",ft),D&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(K[0]-L[0],2)+Math.pow(K[1]-L[1],2)));var nt=Math.atan2(L[1]-K[1],L[0]-K[0]),wt=x.h.v;wt>=1?wt=.99:wt<=-1&&(wt=-.99);var mt=ft*wt,it=Math.cos(nt+x.a.v)*mt+K[0],_=Math.sin(nt+x.a.v)*mt+K[1];F.setAttribute("fx",it),F.setAttribute("fy",_),D&&!x.g._collapsable&&(x.of.setAttribute("fx",it),x.of.setAttribute("fy",_))}}}function M(Y,x,O){var F=x.style,D=x.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return l}();function he(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}S([oo,Vs,Xa,ef,zs,so,Za],he),he.prototype.initSecondaryElement=function(){},he.prototype.identityMatrix=new Pe,he.prototype.buildExpressionInterface=function(){},he.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},he.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,c,m=this.stylesList.length,p,b=[],I=!1;for(c=0;c<m;c+=1){for(p=this.stylesList[c],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},he.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},he.prototype.createStyleElement=function(r,s){var l,c=new af(r,s),m=c.pElem;if(r.ty==="st")l=new nf(this,r,c);else if(r.ty==="fl")l=new lf(this,r,c);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Bs:cf;l=new p(this,r,c),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new df(this,r,c));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",rf[r.lc||2]),m.setAttribute("stroke-linejoin",of[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=lh(r.bm)),this.stylesList.push(c),this.addToAnimatedContents(r,l),l},he.prototype.createGroupElement=function(r){var s=new ZT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=lh(r.bm)),s},he.prototype.createTransformElement=function(r,s){var l=ih.getTransformProperty(this,r,this),c=new QT(l,l.o,s);return this.addToAnimatedContents(r,c),c},he.prototype.createShapeElement=function(r,s,l){var c=4;r.ty==="rc"?c=5:r.ty==="el"?c=6:r.ty==="sr"&&(c=7);var m=xl.getShapeProp(this,r,c,this),p=new sf(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},he.prototype.addToAnimatedContents=function(r,s){for(var l=0,c=this.animatedContents.length;l<c;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:JT.createRenderFunction(r),element:s,data:r})},he.prototype.setElementStyles=function(r){var s=r.styles,l,c=this.stylesList.length;for(l=0;l<c;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},he.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},he.prototype.searchShapes=function(r,s,l,c,m,p,b){var I=[].concat(p),y,k=r.length-1,M,Y,x=[],O=[],F,D,K;for(y=k;y>=0;y-=1){if(K=this.searchProcessedElement(r[y]),K?s[y]=l[K-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")K?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==c&&c.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!K)s[y]=this.createGroupElement(r[y]);else for(Y=s[y].it.length,M=0;M<Y;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==c&&c.appendChild(s[y].gr)}else r[y].ty==="tr"?(K||(s[y]=this.createTransformElement(r[y],c)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(K||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(K?(D=s[y],D.closed=!1):(D=ro.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(K?(D=s[y],D.closed=!0):(D=ro.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},he.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},he.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},he.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ch(r,s,l,c,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=c,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!c,m:!0,p:!0}}ch.prototype.update=function(r,s,l,c,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==c&&(this.fc=c,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var c,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(c=0;c<m;c+=1)l!==this.keysIndex?p=this.effectsSequence[c](p,p.t):p=this.effectsSequence[c](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,c=r.length;l<=c-1&&!(l===c-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,c=r.length,m,p,b=!1,I=!1,y="";l<c;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),Ho.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Ho.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&(Ho.isModifier(m,p)?(y=r.substr(l,2),b=!0):Ho.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),Ho.isVariationSelector(m)&&(b=!0)):Ho.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,c=[],m,p,b,I=0,y,k=l.m.g,M=0,Y=0,x=0,O=[],F=0,D=0,K,L,w=s.getFontByName(r.f),T,C=0,N=Xu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var V=r.tr/1e3*r.finalSize,W;if(r.sz)for(var X=!0,ot=r.sz[0],St=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,V=r.tr/1e3*r.finalSize;var wt=-1;for(m=0;m<p;m+=1)W=nt[m].charCodeAt(0),b=!1,nt[m]===" "?wt=m:(W===13||W===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>ot&&nt[m]!==" "?(wt===-1?p+=1:m=wt,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,wt===m?1:0,"\r"),wt=-1,F=0):(F+=C,F+=V);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&St<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-V,C=0;var mt=0,it;for(m=0;m<p;m+=1)if(b=!1,it=r.finalText[m],W=it.charCodeAt(0),W===13||W===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*V,y="",b=!0,x+=1):y=it,s.chars?(T=s.getCharData(it,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),it===" "?mt+=C+V:(F+=C+V+mt,mt=0),c.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;M=0,I+=1}}else c[I].ind=I,c[I].extra=0,I+=1;if(r.l=c,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,g;L=_.length;var E,q,B=[];for(K=0;K<L;K+=1){for(P=_[K],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),q=0,E=P.s.b,m=0;m<p;m+=1)g=c[m],g.anIndexes[K]=q,(E==1&&g.val!==""||E==2&&g.val!==""&&g.val!==" "||E==3&&(g.n||g.val==" "||m==p-1)||E==4&&(g.n||m==p-1))&&(P.s.rn===1&&B.push(q),q+=1);l.a[K].s.totalChars=q;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)g=c[m],ct!=g.anIndexes[K]&&(ct=g.anIndexes[K],gt=B.splice(Math.floor(Math.random()*B.length),1)[0]),g.anIndexes[K]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var tx=function(){var r=Math.max,s=Math.min,l=Math.floor;function c(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=dt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=dt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=dt.getProp(p,b.o||{k:0},0,0,this),this.xe=dt.getProp(p,b.xe||{k:0},0,0,this),this.ne=dt.getProp(p,b.ne||{k:0},0,0,this),this.sm=dt.getProp(p,b.sm||{k:100},0,0,this),this.a=dt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}c.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var Y=Ua.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?x=b>=F?1:0:x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===3)F===O?x=b>=F?0:1:x=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===4)F===O?x=0:(x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=Y(x);else if(D===5){if(F===O)x=0;else{var K=F-O;b=s(r(0,b+.5-O),F-O);var L=-K/2+b,w=K/2;x=Math.sqrt(1-L*L/(w*w))}x=Y(x)}else D===6?(F===O?x=0:(b=s(r(0,b+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),x=Y(x)):(b>=l(O)&&(b-O<0?x=r(0,s(s(F,1)-(O-b),1)):x=r(0,s(F-b,1))),x=Y(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var Y=k;k=M,M=Y}this.finalS=k,this.finalE=M}},S([Ne],c);function m(p,b,I){return new c(p,b,I)}return{getTextSelectorProp:m}}();function ex(r,s,l){var c={propType:!1},m=dt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,Nt,l):c,rx:p.rx?m(r,p.rx,0,Nt,l):c,ry:p.ry?m(r,p.ry,0,Nt,l):c,sk:p.sk?m(r,p.sk,0,Nt,l):c,sa:p.sa?m(r,p.sa,0,Nt,l):c,s:p.s?m(r,p.s,1,.01,l):c,a:p.a?m(r,p.a,1,0,l):c,o:p.o?m(r,p.o,0,.01,l):c,p:p.p?m(r,p.p,1,0,l):c,sw:p.sw?m(r,p.sw,0,0,l):c,sc:p.sc?m(r,p.sc,1,0,l):c,fc:p.fc?m(r,p.fc,1,0,l):c,fh:p.fh?m(r,p.fh,0,0,l):c,fs:p.fs?m(r,p.fs,0,.01,l):c,fb:p.fb?m(r,p.fb,0,.01,l):c,t:p.t?m(r,p.t,0,0,l):c},this.s=tx.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function Ko(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}Ko.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,c=dt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new ex(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:c(this._elem,this._textData.p.a,0,0,this),f:c(this._elem,this._textData.p.f,0,0,this),l:c(this._elem,this._textData.p.l,0,0,this),r:c(this._elem,this._textData.p.r,0,0,this),p:c(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=c(this._elem,this._textData.m.a,1,0,this)},Ko.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,c=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,Y,x=r.l,O,F,D,K,L,w,T,C,N,V,W,X,ot,St,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},Y=nt._length-1;var wt;for(X=0,M=0;M<Y;M+=1)wt=ei.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=wt.segmentLength,O.segments.push(wt),X+=wt.segmentLength;M=Y,ft.v.c&&(wt=ei.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=wt.segmentLength,O.segments.push(wt),X+=wt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,K=0,L=!0,V=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=V.length-1,N=V[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=V[T].points,w=N.length-1);N=V[T].points,C=N[w-1],D=N[w],W=D.partialLength}Y=x.length,y=0,k=0;var mt=r.finalSize*1.2*.714,it=!0,_,P,g,E,q;E=c.length;var B,ct=-1,gt,It,Bt,Ut=F,ye=T,ir=w,ii=-1,or,Le,yr,Yt,ut,Li,lo,Mi,oi="",Oi=this.defaultPropsArray,Ri;if(r.j===2||r.j===1){var sr=0,co=0,ho=r.j===2?-.5:-1,zr=0,po=!0;for(M=0;M<Y;M+=1)if(x[M].n){for(sr&&(sr+=co);zr<M;)x[zr].animatorJustifyOffset=sr,zr+=1;sr=0,po=!0}else{for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(po&&r.j===2&&(co+=_.t.v*ho),P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?sr+=_.t.v*B[0]*ho:sr+=_.t.v*B*ho);po=!1}for(sr&&(sr+=co);zr<M;)x[zr].animatorJustifyOffset=sr,zr+=1}for(M=0;M<Y;M+=1){if(p.reset(),or=1,x[M].n)y=0,k+=r.yOffset,k+=it?1:0,F=Ut,it=!1,this._hasMaskedPath&&(T=ye,w=ir,N=V[T].points,C=N[w-1],D=N[w],W=D.partialLength,K=0),oi="",Mi="",Li="",Ri="",Oi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ii!==x[M].line){switch(r.j){case 1:F+=X-r.lineWidths[x[M].line];break;case 2:F+=(X-r.lineWidths[x[M].line])/2;break;default:break}ii=x[M].line}ct!==x[M].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[M].an/2,ct=x[M].ind),F+=l[0]*x[M].an*.005;var Br=0;for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Br+=_.p.v[0]*B[0]:Br+=_.p.v[0]*B),_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Br+=_.a.v[0]*B[0]:Br+=_.a.v[0]*B);for(L=!0,this._pathData.a.v&&(F=x[0].an*.5+(X-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(Y-1),F+=this._pathData.f.v);L;)K+W>=F+Br||!N?(ot=(F+Br-K)/D.partialLength,It=C.point[0]+(D.point[0]-C.point[0])*ot,Bt=C.point[1]+(D.point[1]-C.point[1])*ot,p.translate(-l[0]*x[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(K+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,V[T]?N=V[T].points:ft.v.c?(w=0,T=0,N=V[T].points):(K-=D.partialLength,N=null)),N&&(C=D,D=N[w],W=D.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-l[0]*x[M].an*.005,-l[1]*mt*.01,0);for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?B.length?F+=_.t.v*B[0]:F+=_.t.v*B:B.length?y+=_.t.v*B[0]:y+=_.t.v*B));for(r.strokeWidthAnim&&(yr=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Yt=[r.fc[0],r.fc[1],r.fc[2]]),g=0;g<E;g+=1)_=c[g].a,_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.translate(-_.a.v[0]*B[0],-_.a.v[1]*B[1],_.a.v[2]*B[2]):p.translate(-_.a.v[0]*B,-_.a.v[1]*B,_.a.v[2]*B));for(g=0;g<E;g+=1)_=c[g].a,_.s.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.scale(1+(_.s.v[0]-1)*B[0],1+(_.s.v[1]-1)*B[1],1):p.scale(1+(_.s.v[0]-1)*B,1+(_.s.v[1]-1)*B,1));for(g=0;g<E;g+=1){if(_=c[g].a,P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),_.sk.propType&&(B.length?p.skewFromAxis(-_.sk.v*B[0],_.sa.v*B[1]):p.skewFromAxis(-_.sk.v*B,_.sa.v*B)),_.r.propType&&(B.length?p.rotateZ(-_.r.v*B[2]):p.rotateZ(-_.r.v*B)),_.ry.propType&&(B.length?p.rotateY(_.ry.v*B[1]):p.rotateY(_.ry.v*B)),_.rx.propType&&(B.length?p.rotateX(_.rx.v*B[0]):p.rotateX(_.rx.v*B)),_.o.propType&&(B.length?or+=(_.o.v*B[0]-or)*B[0]:or+=(_.o.v*B-or)*B),r.strokeWidthAnim&&_.sw.propType&&(B.length?yr+=_.sw.v*B[0]:yr+=_.sw.v*B),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)B.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*B[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*B;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)B.length?Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B[0]:Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B;_.fh.propType&&(B.length?Yt=Au(Yt,_.fh.v*B[0]):Yt=Au(Yt,_.fh.v*B)),_.fs.propType&&(B.length?Yt=Tu(Yt,_.fs.v*B[0]):Yt=Tu(Yt,_.fs.v*B)),_.fb.propType&&(B.length?Yt=xu(Yt,_.fb.v*B[0]):Yt=xu(Yt,_.fb.v*B))}}for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),this._hasMaskedPath?B.length?p.translate(0,_.p.v[1]*B[0],-_.p.v[2]*B[1]):p.translate(0,_.p.v[1]*B,-_.p.v[2]*B):B.length?p.translate(_.p.v[0]*B[0],_.p.v[1]*B[1],-_.p.v[2]*B[2]):p.translate(_.p.v[0]*B,_.p.v[1]*B,-_.p.v[2]*B));if(r.strokeWidthAnim&&(Li=yr<0?0:yr),r.strokeColorAnim&&(lo="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Mi="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,l[1]*mt*.01+k,0),this._pathData.p.v){St=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Wo=Math.atan(St)*180/Math.PI;D.point[0]<C.point[0]&&(Wo+=180),p.rotate(-Wo*Math.PI/180)}p.translate(It,Bt,0),F-=l[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(F+=x[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*x[M].an*.005,l[1]*mt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?oi=p.toCSS():b==="svg"?oi=p.to2dCSS():Oi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Ri=or}I<=M?(q=new ch(Ri,Li,lo,Mi,oi,Oi),this.renderedLetters.push(q),I+=1,this.lettersChangedFlag=!0):(q=this.renderedLetters[M],this.lettersChangedFlag=q.update(Ri,Li,lo,Mi,oi,Oi)||this.lettersChangedFlag)}}},Ko.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Ko.prototype.mHelper=new Pe,Ko.prototype.defaultPropsArray=[],S([Ne],Ko);function kr(){}kr.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Ko(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},kr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},kr.prototype.createPathShape=function(r,s){var l,c=s.length,m,p="";for(l=0;l<c;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=hf(m,m.i.length,!0,r));return p},kr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},kr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},kr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},kr.prototype.applyTextPropertiesToMatrix=function(r,s,l,c,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(c,m,0)},kr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},kr.prototype.emptyProp=new ch,kr.prototype.destroy=function(){},kr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var rx={shapes:[]};function ki(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}S([oo,Vs,Xa,zs,so,Za,kr],ki),ki.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=_t("text"))},ki.prototype.buildTextContents=function(r){for(var s=0,l=r.length,c=[],m="";s<l;)r[s]==="\r"||r[s]===""?(c.push(m),m=""):m+=r[s],s+=1;return c.push(m),c},ki.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var c=l.it[l.it.length-1];c.s&&(c.s.k[0]=s,c.s.k[1]=s)}}return r},ki.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var c=this.globalData.fontManager.getFontByName(l.f);if(c.fClass)this.layerElement.setAttribute("class",c.fClass);else{this.layerElement.setAttribute("font-family",c.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",Y=this.data.singleShape,x=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(Y&&!I&&!l.sz){var K=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}K.setAttribute("text-anchor",L),K.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||_t("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",K.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(K)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!Y||r===0){if(y=T>r?this.textSpans[r].span:_t(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=_t("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),Y&&(b[r].n&&(x=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,x,O),x+=b[r].l||0,x+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],c.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var V;if(C.t===1)V=new tn(C.data,this.globalData,this);else{var W=rx;C.data&&C.data.shapes&&(W=this.buildShapeData(C.data,l.finalSize)),V=new he(W,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=V,V._debug=!0,V.prepareFrame(0),V.renderFrame(),this.textSpans[r].childSpan.appendChild(V.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else Y&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},ki.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},ki.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},ki.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;s=c.length;var m,p,b;for(r=0;r<s;r+=1)c[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function hh(r,s,l){this.initElement(r,s,l)}S([Qa],hh),hh.prototype.createContent=function(){var r=_t("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function no(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}no.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},no.prototype.renderFrame=function(){},no.prototype.getBaseElement=function(){return null},no.prototype.destroy=function(){},no.prototype.sourceRectAtTime=function(){},no.prototype.hide=function(){},S([oo,Vs,zs,so],no);function Ie(){}S([Fe],Ie),Ie.prototype.createNull=function(r){return new no(r,this.globalData,this)},Ie.prototype.createShape=function(r){return new he(r,this.globalData,this)},Ie.prototype.createText=function(r){return new ki(r,this.globalData,this)},Ie.prototype.createImage=function(r){return new Qa(r,this.globalData,this)},Ie.prototype.createSolid=function(r){return new hh(r,this.globalData,this)},Ie.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=_t("clipPath"),c=_t("rect");c.setAttribute("width",r.w),c.setAttribute("height",r.h),c.setAttribute("x",0),c.setAttribute("y",0);var m=er();l.setAttribute("id",m),l.appendChild(c),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ie.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ie.prototype.updateContainerSize=function(){},Ie.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ie.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,fl()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var c="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(c===-1)return;if(!this.elements[c]||this.elements[c]===!0)this.buildItem(c),this.addPendingElement(l);else{var m=s[c],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ie.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var c="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[c],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ie.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ie.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var c=0,m;c<s;)this.elements[c]&&this.elements[c]!==!0&&this.elements[c].getBaseElement()&&(m=this.elements[c].getBaseElement()),c+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ie.prototype.hide=function(){this.layerElement.style.display="none"},Ie.prototype.show=function(){this.layerElement.style.display="block"};function Ni(){}S([oo,Vs,zs,so,Za],Ni),Ni.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},Ni.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,c=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=c-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},Ni.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},Ni.prototype.setElements=function(r){this.elements=r},Ni.prototype.getElements=function(){return this.elements},Ni.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},Ni.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function tn(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?dt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}S([Ie,Ni,Xa],tn),tn.prototype.createComp=function(r){return new tn(r,this.globalData,this)};function ph(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=_t("svg");var l="";if(s&&s.title){var c=_t("title"),m=er();c.setAttribute("id",m),c.textContent=s.title,this.svgElement.appendChild(c),l+=m}if(s&&s.description){var p=_t("desc"),b=er();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=_t("defs");this.svgElement.appendChild(I);var y=_t("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return S([Ie],ph),ph.prototype.createComp=function(r){return new tn(r,this.globalData,this)},pT("svg",ph),ro.registerModifier("tm",Vr),ro.registerModifier("pb",Ha),ro.registerModifier("rp",ri),ro.registerModifier("rd",Ga),ro.registerModifier("zz",Wa),ro.registerModifier("op",Ya),Wt})});var Rl=globalThis,Dl=Rl.ShadowRoot&&(Rl.ShadyCSS===void 0||Rl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uh=Symbol(),mf=new WeakMap,en=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==uh)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(Dl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=mf.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&mf.set(t,o))}return o}toString(){return this.cssText}},uf=n=>new en(typeof n=="string"?n:n+"",void 0,uh),z=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,i,a)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[a+1],n[0]);return new en(t,n,uh)},fh=(n,o)=>{if(Dl)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=Rl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,n.appendChild(e)}},Pl=Dl?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return uf(t)})(n):n;var{is:cx,defineProperty:hx,getOwnPropertyDescriptor:px,getOwnPropertyNames:mx,getOwnPropertySymbols:ux,getPrototypeOf:fx}=Object,mo=globalThis,ff=mo.trustedTypes,vx=ff?ff.emptyScript:"",vh=mo.reactiveElementPolyfillSupport,rn=(n,o)=>n,on={toAttribute(n,o){switch(o){case Boolean:n=n?vx: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}},Fl=(n,o)=>!cx(n,o),vf={attribute:!0,type:String,converter:on,reflect:!1,hasChanged:Fl},gf,bf;(gf=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(bf=mo.litPropertyMetadata)!=null||(mo.litPropertyMetadata=new WeakMap);var Di=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=vf){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&hx(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var d;let{get:i,set:a}=(d=px(this.prototype,o))!=null?d:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let v=i==null?void 0:i.call(this);a.call(this,f),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:vf}static _$Ei(){if(this.hasOwnProperty(rn("elementProperties")))return;let o=fx(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(rn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rn("properties"))){let t=this.properties,e=[...mx(t),...ux(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(Pl(i))}else o!==void 0&&t.push(Pl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return fh(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var a;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let d=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:on).toAttribute(t,e.type);this._$Em=o,d==null?this.removeAttribute(i):this.setAttribute(i,d),this._$Em=null}}_$AK(o,t){var a;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let d=e.getPropertyOptions(i),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((a=d.converter)==null?void 0:a.fromAttribute)!==void 0?d.converter:on;this._$Em=i,this[i]=f.fromAttribute(t,d.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:Fl)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[d,f]of a)f.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(a=>{var d;return(d=a.hostUpdate)==null?void 0:d.call(a)}),this.update(t)):this._$EU()}catch(a){throw o=!1,this._$EU(),a}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},yf;Di.elementStyles=[],Di.shadowRootOptions={mode:"open"},Di[rn("elementProperties")]=new Map,Di[rn("finalized")]=new Map,vh==null||vh({ReactiveElement:Di}),((yf=mo.reactiveElementVersions)!=null?yf:mo.reactiveElementVersions=[]).push("2.0.4");var an=globalThis,$l=an.trustedTypes,Ef=$l?$l.createPolicy("lit-html",{createHTML:n=>n}):void 0,yh="$lit$",Pi=`lit$${Math.random().toFixed(9).slice(2)}$`,Eh="?"+Pi,gx=`<${Eh}>`,qo=document,nn=()=>qo.createComment(""),ln=n=>n===null||typeof n!="object"&&typeof n!="function",Th=Array.isArray,_f=n=>Th(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",gh=`[
3
3
  \f\r]`,sn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Tf=/-->/g,xf=/>/g,Yo=RegExp(`>|${gh}(?:([^\\s"'>=/]+)(${gh}*=${gh}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Af=/'/g,Sf=/"/g,wf=/^(?:script|style|textarea|title)$/i,xh=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),A=xh(1),NC=xh(2),LC=xh(3),$e=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),If=new WeakMap,jo=qo.createTreeWalker(qo,129);function kf(n,o){if(!Th(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ef!==void 0?Ef.createHTML(o):o}var Nf=(n,o)=>{let t=n.length-1,e=[],i,a=o===2?"<svg>":o===3?"<math>":"",d=sn;for(let f=0;f<t;f++){let v=n[f],S,R,U=-1,J=0;for(;J<v.length&&(d.lastIndex=J,R=d.exec(v),R!==null);)J=d.lastIndex,d===sn?R[1]==="!--"?d=Tf:R[1]!==void 0?d=xf:R[2]!==void 0?(wf.test(R[2])&&(i=RegExp("</"+R[2],"g")),d=Yo):R[3]!==void 0&&(d=Yo):d===Yo?R[0]===">"?(d=i!=null?i:sn,U=-1):R[1]===void 0?U=-2:(U=d.lastIndex-R[2].length,S=R[1],d=R[3]===void 0?Yo:R[3]==='"'?Sf:Af):d===Sf||d===Af?d=Yo:d===Tf||d===xf?d=sn:(d=Yo,i=void 0);let j=d===Yo&&n[f+1].startsWith("/>")?" ":"";a+=d===sn?v+gx:U>=0?(e.push(S),v.slice(0,U)+yh+v.slice(U)+Di+j):v+Di+(U===-2?f:j)}return[kf(n,a+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},dn=class n{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let a=0,d=0,f=o.length-1,v=this.parts,[S,R]=Nf(o,t);if(this.el=n.createElement(S,e),jo.currentNode=this.el.content,t===2||t===3){let U=this.el.content.firstChild;U.replaceWith(...U.childNodes)}for(;(i=jo.nextNode())!==null&&v.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let U of i.getAttributeNames())if(U.endsWith(yh)){let J=R[d++],j=i.getAttribute(U).split(Di),Z=/([.?@])?(.*)/.exec(J);v.push({type:1,index:a,name:Z[2],strings:j,ctor:Z[1]==="."?zl:Z[1]==="?"?Bl:Z[1]==="@"?Ul:Zo}),i.removeAttribute(U)}else U.startsWith(Di)&&(v.push({type:6,index:a}),i.removeAttribute(U));if(wf.test(i.tagName)){let U=i.textContent.split(Di),J=U.length-1;if(J>0){i.textContent=$l?$l.emptyScript:"";for(let j=0;j<J;j++)i.append(U[j],nn()),jo.nextNode(),v.push({type:2,index:++a});i.append(U[J],nn())}}}else if(i.nodeType===8)if(i.data===Eh)v.push({type:2,index:a});else{let U=-1;for(;(U=i.data.indexOf(Di,U+1))!==-1;)v.push({type:7,index:a}),U+=Di.length-1}a++}}static createElement(o,t){let e=qo.createElement("template");return e.innerHTML=o,e}};function Xo(n,o,t=n,e){var d,f,v;if(o===$e)return o;let i=e!==void 0?(d=t.o)==null?void 0:d[e]:t.l,a=ln(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),a===void 0?i=void 0:(i=new a(n),i._$AT(n,t,e)),e!==void 0?((v=t.o)!=null?v:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Xo(n,i._$AS(n,o.values),i,e)),o}var Vl=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 S;let{el:{content:t},parts:e}=this._$AD,i=((S=o==null?void 0:o.creationScope)!=null?S:qo).importNode(t,!0);jo.currentNode=i;let a=jo.nextNode(),d=0,f=0,v=e[0];for(;v!==void 0;){if(d===v.index){let R;v.type===2?R=new Us(a,a.nextSibling,this,o):v.type===1?R=new v.ctor(a,v.name,v.strings,this,o):v.type===6&&(R=new Hl(a,this,o)),this._$AV.push(R),v=e[++f]}d!==(v==null?void 0:v.index)&&(a=jo.nextNode(),d++)}return jo.currentNode=qo,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Us=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var a;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Xo(this,o,t),ln(o)?o===G||o==null||o===""?(this._$AH!==G&&this._$AR(),this._$AH=G):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):_f(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!==G&&ln(this._$AH)?this._$AA.nextSibling.data=o:this.T(qo.createTextNode(o)),this._$AH=o}$(o){var a;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=dn.createElement(kf(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(t);else{let d=new Vl(i,this),f=d.u(this.options);d.p(t),this.T(f),this._$AH=d}}_$AC(o){let t=If.get(o.strings);return t===void 0&&If.set(o.strings,t=new dn(o)),t}k(o){Th(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let a of o)i===t.length?t.push(e=new n(this.O(nn()),this.O(nn()),this,this.options)):e=t[i],e._$AI(a),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Zo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,a){this.type=1,this._$AH=G,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=G}_$AI(o,t=this,e,i){let a=this.strings,d=!1;if(a===void 0)o=Xo(this,o,t,0),d=!ln(o)||o!==this._$AH&&o!==$e,d&&(this._$AH=o);else{let f=o,v,S;for(o=a[0],v=0;v<a.length-1;v++)S=Xo(this,f[e+v],t,v),S===$e&&(S=this._$AH[v]),d||(d=!ln(S)||S!==this._$AH[v]),S===G?o=G:o!==G&&(o+=(S!=null?S:"")+a[v+1]),this._$AH[v]=S}d&&!i&&this.j(o)}j(o){o===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},zl=class extends Zo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===G?void 0:o}},Bl=class extends Zo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==G)}},Ul=class extends Zo{constructor(o,t,e,i,a){super(o,t,e,i,a),this.type=5}_$AI(o,t=this){var d;if((o=(d=Xo(this,o,t,0))!=null?d:G)===$e)return;let e=this._$AH,i=o===G&&e!==G||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,a=o!==G&&(e===G||i);i&&this.element.removeEventListener(this.name,this,e),a&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Hl=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Xo(this,o)}},Lf={M:yh,P:Di,A:Eh,C:1,L:Nf,R:Vl,D:_f,V:Xo,I:Us,H:Zo,N:Bl,U:Ul,B:zl,F:Hl},bh=an.litHtmlPolyfillSupport,Cf;bh==null||bh(dn,Us),((Cf=an.litHtmlVersions)!=null?Cf:an.litHtmlVersions=[]).push("3.2.0");var Mf=(n,o,t)=>{var a,d;let e=(a=t==null?void 0:t.renderBefore)!=null?a:o,i=e._$litPart$;if(i===void 0){let f=(d=t==null?void 0:t.renderBefore)!=null?d:null;e._$litPart$=i=new Us(o.insertBefore(nn(),f),f,void 0,t!=null?t:{})}return i._$AI(n),i};var uo=class extends Ri{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Mf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},Of;uo._$litElement$=!0,uo.finalized=!0,(Of=globalThis.litElementHydrateSupport)==null||Of.call(globalThis,{LitElement:uo});var Ah=globalThis.litElementPolyfillSupport;Ah==null||Ah({LitElement:uo});var Rf;((Rf=globalThis.litElementVersions)!=null?Rf:globalThis.litElementVersions=[]).push("4.1.0");var bx={attribute:!0,type:String,converter:on,reflect:!1,hasChanged:Fl},yx=(n=bx,o,t)=>{let{kind:e,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,n),e==="accessor"){let{name:d}=t;return{set(f){let v=o.get.call(this);o.set.call(this,f),this.requestUpdate(d,v,n)},init(f){return f!==void 0&&this.P(d,void 0,n),f}}}if(e==="setter"){let{name:d}=t;return function(f){let v=this[d];o.call(this,f),this.requestUpdate(d,v,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?yx(n,o,t):((e,i,a)=>{let d=i.hasOwnProperty(a);return i.constructor.createProperty(a,d?{...e,wrapped:!0}:e),d?Object.getOwnPropertyDescriptor(i,a):void 0})(n,o,t)}function lt(n){return u({...n,state:!0,attribute:!1})}function Df(n){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,n)}}var oi=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function Ht(n,o){return(t,e,i)=>{let a=d=>{var f,v;return(v=(f=d.renderRoot)==null?void 0:f.querySelector(n))!=null?v:null};if(o){let{get:d,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let v=Symbol();return{get(){return this[v]},set(S){this[v]=S}}})();return oi(t,e,{get(){let v=d.call(this);return v===void 0&&(v=a(this),(v!==null||this.hasUpdated)&&f.call(this,v)),v}})}return oi(t,e,{get(){return a(this)}})}}var Sh;function Pf(n){return(o,t)=>oi(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:Sh!=null?Sh:Sh=document.createDocumentFragment()).querySelectorAll(n)}})}function Xt(n){return(o,t)=>{let{slot:e,selector:i}=n!=null?n:{},a="slot"+(e?`[name=${e}]`:":not([name])");return oi(o,t,{get(){var v,S;let d=(v=this.renderRoot)==null?void 0:v.querySelector(a),f=(S=d==null?void 0:d.assignedElements(n))!=null?S:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function Ff(n){return(o,t)=>{let{slot:e}=n!=null?n:{},i="slot"+(e?`[name=${e}]`:":not([name])");return oi(o,t,{get(){var d,f;let a=(d=this.renderRoot)==null?void 0:d.querySelector(i);return(f=a==null?void 0:a.assignedNodes(n))!=null?f:[]}})}}var Ex={PREFIX:"mdc",SEPARATOR:"-"},Tx={NAMESPACE:Ex},Ih=Tx;var xx=n=>[Ih.NAMESPACE.PREFIX,n].join(Ih.NAMESPACE.SEPARATOR),$={constructTagName:xx};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var $f=$.constructTagName("buttonsimple"),Qo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Hs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},cn={SIZE:Qo[32],TYPE:Hs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Pi=$.constructTagName("button"),Ft={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},hn={40:40,32:32,28:28,24:24},ar={64:64,52:52,20:20,...hn},Ye={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",OVERLAY:"overlay",DEFAULT:"default"},Gs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Vf={POSITIVE:Ye.POSITIVE,NEGATIVE:Ye.NEGATIVE,ACCENT:Ye.ACCENT,PROMOTIONAL:Ye.PROMOTIONAL,DEFAULT:Ye.DEFAULT},zf={DEFAULT:Ye.DEFAULT,ACCENT:Ye.ACCENT,NEGATIVE:Ye.NEGATIVE};var nr={VARIANT:Ft.PRIMARY,SIZE:hn[32],COLOR:Ye.DEFAULT,TYPE_INTERNAL:Gs.ICON,TYPE:Hs.BUTTON,INVERTED:!1};var Gl=n=>{class o extends n{constructor(){super(...arguments);this.variant=nr.VARIANT;this.color=nr.COLOR;this.typeInternal=nr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Ft).includes(i)?i:nr.VARIANT)}setColor(i){let a=Object.values(Ye).includes(i),d=this.variant===Ft.PRIMARY&&!Object.values(Vf).includes(i),f=this.variant===Ft.TERTIARY&&!Object.values(zf).includes(i);!a||d||f?this.setAttribute("color",`${nr.COLOR}`):this.setAttribute("color",i)}setSize(i){let d=this.typeInternal===Gs.ICON?Object.values(ar).includes(i)&&!(i===ar[20]&&this.variant!==Ft.TERTIARY):Object.values(hn).includes(i);this.setAttribute("size",d?`${i}`:`${nr.SIZE}`)}inferButtonType(){var S,R,U,J,j,Z;let i=(R=(S=this.shadowRoot)==null?void 0:S.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,a=(J=(U=this.shadowRoot)==null?void 0:U.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,d=this.prefixIcon||a&&a>0,f=(Z=(j=this.shadowRoot)==null?void 0:j.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,v=this.postfixIcon||f&&f>0;i&&(d||v)?(this.typeInternal=Gs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(d||v)?(this.typeInternal=Gs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Gs.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([lt()],o.prototype,"typeInternal",2),o};var Bf=z`
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Af=/'/g,Sf=/"/g,wf=/^(?:script|style|textarea|title)$/i,xh=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),A=xh(1),NC=xh(2),LC=xh(3),$e=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),If=new WeakMap,jo=qo.createTreeWalker(qo,129);function kf(n,o){if(!Th(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ef!==void 0?Ef.createHTML(o):o}var Nf=(n,o)=>{let t=n.length-1,e=[],i,a=o===2?"<svg>":o===3?"<math>":"",d=sn;for(let f=0;f<t;f++){let v=n[f],S,R,U=-1,J=0;for(;J<v.length&&(d.lastIndex=J,R=d.exec(v),R!==null);)J=d.lastIndex,d===sn?R[1]==="!--"?d=Tf:R[1]!==void 0?d=xf:R[2]!==void 0?(wf.test(R[2])&&(i=RegExp("</"+R[2],"g")),d=Yo):R[3]!==void 0&&(d=Yo):d===Yo?R[0]===">"?(d=i!=null?i:sn,U=-1):R[1]===void 0?U=-2:(U=d.lastIndex-R[2].length,S=R[1],d=R[3]===void 0?Yo:R[3]==='"'?Sf:Af):d===Sf||d===Af?d=Yo:d===Tf||d===xf?d=sn:(d=Yo,i=void 0);let j=d===Yo&&n[f+1].startsWith("/>")?" ":"";a+=d===sn?v+gx:U>=0?(e.push(S),v.slice(0,U)+yh+v.slice(U)+Pi+j):v+Pi+(U===-2?f:j)}return[kf(n,a+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},dn=class n{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let a=0,d=0,f=o.length-1,v=this.parts,[S,R]=Nf(o,t);if(this.el=n.createElement(S,e),jo.currentNode=this.el.content,t===2||t===3){let U=this.el.content.firstChild;U.replaceWith(...U.childNodes)}for(;(i=jo.nextNode())!==null&&v.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let U of i.getAttributeNames())if(U.endsWith(yh)){let J=R[d++],j=i.getAttribute(U).split(Pi),Z=/([.?@])?(.*)/.exec(J);v.push({type:1,index:a,name:Z[2],strings:j,ctor:Z[1]==="."?zl:Z[1]==="?"?Bl:Z[1]==="@"?Ul:Zo}),i.removeAttribute(U)}else U.startsWith(Pi)&&(v.push({type:6,index:a}),i.removeAttribute(U));if(wf.test(i.tagName)){let U=i.textContent.split(Pi),J=U.length-1;if(J>0){i.textContent=$l?$l.emptyScript:"";for(let j=0;j<J;j++)i.append(U[j],nn()),jo.nextNode(),v.push({type:2,index:++a});i.append(U[J],nn())}}}else if(i.nodeType===8)if(i.data===Eh)v.push({type:2,index:a});else{let U=-1;for(;(U=i.data.indexOf(Pi,U+1))!==-1;)v.push({type:7,index:a}),U+=Pi.length-1}a++}}static createElement(o,t){let e=qo.createElement("template");return e.innerHTML=o,e}};function Xo(n,o,t=n,e){var d,f,v;if(o===$e)return o;let i=e!==void 0?(d=t.o)==null?void 0:d[e]:t.l,a=ln(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),a===void 0?i=void 0:(i=new a(n),i._$AT(n,t,e)),e!==void 0?((v=t.o)!=null?v:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Xo(n,i._$AS(n,o.values),i,e)),o}var Vl=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 S;let{el:{content:t},parts:e}=this._$AD,i=((S=o==null?void 0:o.creationScope)!=null?S:qo).importNode(t,!0);jo.currentNode=i;let a=jo.nextNode(),d=0,f=0,v=e[0];for(;v!==void 0;){if(d===v.index){let R;v.type===2?R=new Us(a,a.nextSibling,this,o):v.type===1?R=new v.ctor(a,v.name,v.strings,this,o):v.type===6&&(R=new Hl(a,this,o)),this._$AV.push(R),v=e[++f]}d!==(v==null?void 0:v.index)&&(a=jo.nextNode(),d++)}return jo.currentNode=qo,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Us=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var a;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Xo(this,o,t),ln(o)?o===G||o==null||o===""?(this._$AH!==G&&this._$AR(),this._$AH=G):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):_f(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!==G&&ln(this._$AH)?this._$AA.nextSibling.data=o:this.T(qo.createTextNode(o)),this._$AH=o}$(o){var a;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=dn.createElement(kf(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(t);else{let d=new Vl(i,this),f=d.u(this.options);d.p(t),this.T(f),this._$AH=d}}_$AC(o){let t=If.get(o.strings);return t===void 0&&If.set(o.strings,t=new dn(o)),t}k(o){Th(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let a of o)i===t.length?t.push(e=new n(this.O(nn()),this.O(nn()),this,this.options)):e=t[i],e._$AI(a),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Zo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,a){this.type=1,this._$AH=G,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=G}_$AI(o,t=this,e,i){let a=this.strings,d=!1;if(a===void 0)o=Xo(this,o,t,0),d=!ln(o)||o!==this._$AH&&o!==$e,d&&(this._$AH=o);else{let f=o,v,S;for(o=a[0],v=0;v<a.length-1;v++)S=Xo(this,f[e+v],t,v),S===$e&&(S=this._$AH[v]),d||(d=!ln(S)||S!==this._$AH[v]),S===G?o=G:o!==G&&(o+=(S!=null?S:"")+a[v+1]),this._$AH[v]=S}d&&!i&&this.j(o)}j(o){o===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},zl=class extends Zo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===G?void 0:o}},Bl=class extends Zo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==G)}},Ul=class extends Zo{constructor(o,t,e,i,a){super(o,t,e,i,a),this.type=5}_$AI(o,t=this){var d;if((o=(d=Xo(this,o,t,0))!=null?d:G)===$e)return;let e=this._$AH,i=o===G&&e!==G||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,a=o!==G&&(e===G||i);i&&this.element.removeEventListener(this.name,this,e),a&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Hl=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Xo(this,o)}},Lf={M:yh,P:Pi,A:Eh,C:1,L:Nf,R:Vl,D:_f,V:Xo,I:Us,H:Zo,N:Bl,U:Ul,B:zl,F:Hl},bh=an.litHtmlPolyfillSupport,Cf;bh==null||bh(dn,Us),((Cf=an.litHtmlVersions)!=null?Cf:an.litHtmlVersions=[]).push("3.2.0");var Mf=(n,o,t)=>{var a,d;let e=(a=t==null?void 0:t.renderBefore)!=null?a:o,i=e._$litPart$;if(i===void 0){let f=(d=t==null?void 0:t.renderBefore)!=null?d:null;e._$litPart$=i=new Us(o.insertBefore(nn(),f),f,void 0,t!=null?t:{})}return i._$AI(n),i};var uo=class extends Di{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Mf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},Of;uo._$litElement$=!0,uo.finalized=!0,(Of=globalThis.litElementHydrateSupport)==null||Of.call(globalThis,{LitElement:uo});var Ah=globalThis.litElementPolyfillSupport;Ah==null||Ah({LitElement:uo});var Rf;((Rf=globalThis.litElementVersions)!=null?Rf:globalThis.litElementVersions=[]).push("4.1.0");var bx={attribute:!0,type:String,converter:on,reflect:!1,hasChanged:Fl},yx=(n=bx,o,t)=>{let{kind:e,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,n),e==="accessor"){let{name:d}=t;return{set(f){let v=o.get.call(this);o.set.call(this,f),this.requestUpdate(d,v,n)},init(f){return f!==void 0&&this.P(d,void 0,n),f}}}if(e==="setter"){let{name:d}=t;return function(f){let v=this[d];o.call(this,f),this.requestUpdate(d,v,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?yx(n,o,t):((e,i,a)=>{let d=i.hasOwnProperty(a);return i.constructor.createProperty(a,d?{...e,wrapped:!0}:e),d?Object.getOwnPropertyDescriptor(i,a):void 0})(n,o,t)}function lt(n){return u({...n,state:!0,attribute:!1})}function Df(n){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,n)}}var si=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function Ht(n,o){return(t,e,i)=>{let a=d=>{var f,v;return(v=(f=d.renderRoot)==null?void 0:f.querySelector(n))!=null?v:null};if(o){let{get:d,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let v=Symbol();return{get(){return this[v]},set(S){this[v]=S}}})();return si(t,e,{get(){let v=d.call(this);return v===void 0&&(v=a(this),(v!==null||this.hasUpdated)&&f.call(this,v)),v}})}return si(t,e,{get(){return a(this)}})}}var Sh;function Pf(n){return(o,t)=>si(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:Sh!=null?Sh:Sh=document.createDocumentFragment()).querySelectorAll(n)}})}function Xt(n){return(o,t)=>{let{slot:e,selector:i}=n!=null?n:{},a="slot"+(e?`[name=${e}]`:":not([name])");return si(o,t,{get(){var v,S;let d=(v=this.renderRoot)==null?void 0:v.querySelector(a),f=(S=d==null?void 0:d.assignedElements(n))!=null?S:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function Ff(n){return(o,t)=>{let{slot:e}=n!=null?n:{},i="slot"+(e?`[name=${e}]`:":not([name])");return si(o,t,{get(){var d,f;let a=(d=this.renderRoot)==null?void 0:d.querySelector(i);return(f=a==null?void 0:a.assignedNodes(n))!=null?f:[]}})}}var Ex={PREFIX:"mdc",SEPARATOR:"-"},Tx={NAMESPACE:Ex},Ih=Tx;var xx=n=>[Ih.NAMESPACE.PREFIX,n].join(Ih.NAMESPACE.SEPARATOR),$={constructTagName:xx};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var $f=$.constructTagName("buttonsimple"),Qo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Hs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},cn={SIZE:Qo[32],TYPE:Hs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Fi=$.constructTagName("button"),Ft={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},hn={40:40,32:32,28:28,24:24},ar={64:64,52:52,20:20,...hn},Ye={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",OVERLAY:"overlay",DEFAULT:"default"},Gs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Vf={POSITIVE:Ye.POSITIVE,NEGATIVE:Ye.NEGATIVE,ACCENT:Ye.ACCENT,PROMOTIONAL:Ye.PROMOTIONAL,DEFAULT:Ye.DEFAULT},zf={DEFAULT:Ye.DEFAULT,ACCENT:Ye.ACCENT,NEGATIVE:Ye.NEGATIVE};var nr={VARIANT:Ft.PRIMARY,SIZE:hn[32],COLOR:Ye.DEFAULT,TYPE_INTERNAL:Gs.ICON,TYPE:Hs.BUTTON,INVERTED:!1};var Gl=n=>{class o extends n{constructor(){super(...arguments);this.variant=nr.VARIANT;this.color=nr.COLOR;this.typeInternal=nr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Ft).includes(i)?i:nr.VARIANT)}setColor(i){let a=Object.values(Ye).includes(i),d=this.variant===Ft.PRIMARY&&!Object.values(Vf).includes(i),f=this.variant===Ft.TERTIARY&&!Object.values(zf).includes(i);!a||d||f?this.setAttribute("color",`${nr.COLOR}`):this.setAttribute("color",i)}setSize(i){let d=this.typeInternal===Gs.ICON?Object.values(ar).includes(i)&&!(i===ar[20]&&this.variant!==Ft.TERTIARY):Object.values(hn).includes(i);this.setAttribute("size",d?`${i}`:`${nr.SIZE}`)}inferButtonType(){var S,R,U,J,j,Z;let i=(R=(S=this.shadowRoot)==null?void 0:S.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,a=(J=(U=this.shadowRoot)==null?void 0:U.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,d=this.prefixIcon||a&&a>0,f=(Z=(j=this.shadowRoot)==null?void 0:j.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,v=this.postfixIcon||f&&f>0;i&&(d||v)?(this.typeInternal=Gs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(d||v)?(this.typeInternal=Gs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Gs.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([lt()],o.prototype,"typeInternal",2),o};var Bf=z`
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
- `,Hf=Ax;var Yl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Ws(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),A`<slot></slot>`}};Yl.styles=[...Q.styles,Hf];var Gf=Yl;var pe=Gf;var Ve=n=>{class o extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Zt=n=>{class o extends n{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var si=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Tt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var Sx=n=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:a}=n,d=(i||a)&&(f=>{a&&a.forEach(v=>{o.requestUpdate(v)}),i==null||i(f)});return new Ks(o,{context:t,callback:d,subscribe:e!=null?e:!0})},Ix={consume:Sx},me=Ix;var Wf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Yf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),Cx=n=>n.getClientRects().length===0,_x=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=n;return e+i+t+o===0},_h=n=>{if(!(n instanceof Element))return null;let o=getComputedStyle(n),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",a=e==="auto"||e==="scroll";return i&&a?"both":i?"horizontal":a?"vertical":null},wx=n=>_x(n)||Cx(n),kx=n=>{let{display:o,opacity:t,visibility:e}=n.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},Nx=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},Lx=n=>getComputedStyle(n).display==="contents",Mx=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||kx(n)||!Lx(n)&&(Nx(n)||wx(n)),Ox=n=>n.disabled,Rx=n=>n.getAttribute("tabindex")!=="-1",Dx=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),Kf=(n,o)=>o.some(t=>n.matches(t));var Jo=(n,o={})=>{var R,U,J,j;if(!n)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(U=o==null?void 0:o.includeSelectors)!=null?U:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],a=(j=o==null?void 0:o.stopAtNonTabbable)!=null?j:!1,d=new Set([]),f=Z=>{var rt;if(t.has(n)||Kf(Z,i)||Mx(Z)||Ox(Z))return"stop";if(a&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let st=Z.getRootNode();if(!(st instanceof ShadowRoot&&st.delegatesFocus))return"stop"}return(rt=Z.shadowRoot)!=null&&rt.delegatesFocus?"continue":Kf(Z,e)||Rx(Z)&&Dx(Z)?"focusable":"continue"},v=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,S=Z=>{if(Z instanceof HTMLElement){let st=v(Z);if(st==="focusable"&&d.add(Z),st==="stop")return}let rt=[];Z instanceof HTMLSlotElement?rt=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?rt=Array.from(Z.shadowRoot.children):Z.children.length&&(rt=Array.from(Z.children)),rt.forEach(S)};return S(n),[...d]},pn=(n=document)=>{var t;let o=n instanceof Document?n.activeElement:n;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},jl=n=>n&&"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",wh=n=>{let o=n.getRootNode();return o!==document&&o instanceof ShadowRoot?wh(o.host):n},jf=n=>{let o=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var $i=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&(document.removeEventListener("keydown",this.currentKeydownListener),this.currentKeydownListener=null)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};$i.stack=new Set,$i.currentKeydownListener=null;var ql=$.constructTagName("spatialnavigationprovider");var ai={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},kh={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var Px=ql,Nh=Px;var qf=n=>{let{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v}=n.getBoundingClientRect(),S=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v,xMid:S,yMid:R}},Fx=(n,o,t)=>Math.abs(t==="horizontal"?o.yMid-n.yMid:o.xMid-n.xMid),$x=(n,o)=>o==="horizontal"?n.height/2:n.width/2,Vx=(n,o,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,o.bottom)-Math.max(n.top,o.top)):Math.max(0,Math.min(n.right,o.right)-Math.max(n.left,o.left)),zx=(n,o,t)=>o==="horizontal"?t/n.height:t/n.width,Bx=(n,o,t,e)=>{let i=o.xMid-n.xMid,a=o.yMid-n.yMid,d=Math.sqrt(i*i+a*a),f=Fx(n,o,t)+$x(n,t)*e.orthogonalWeight[t],v=Vx(n,o,t),S=zx(n,t,v)*e.alignWeight;return d+f-S-Math.sqrt(v)},Xf=(n,o,t,e)=>{if(!n||o.length===0)return[];if(o.length===1)return o[0]===n?[]:[{candidate:o[0],distance:0}];let i=qf(n),a=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((d,f)=>{if(f===n)return d;let v=f.closest(`[${ai.SCROLL_PARENT}]`),S=v&&!v.contains(n)?v:f,R=qf(S);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return d;let U=Bx(i,R,a,e);return d.push({candidate:f,distance:U}),d},[]).sort((d,f)=>d.distance-f.distance)};var ts=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var mn=class extends pe{constructor(){super({context:Nh});this.navigationKeyMapping=kh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=kh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,a=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,a)!==void 0&&(e=!0,this.focusNext(t,a)),i.parentElement&&!i.hasAttribute(ai.NO_SCROLL)){let f=(d=i.closest(`[${ai.SCROLL_PARENT}]`))!=null?d:i.parentElement,v=_h(f);if(v){let S=i.getBoundingClientRect(),R=f.getBoundingClientRect();(v==="vertical"||v==="both")&&(a==="up"&&S.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),a==="down"&&S.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(v==="horizontal"||v==="both")&&(a==="right"&&S.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),a==="left"&&S.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new ts("navbeforeprocess",this,e);if(t.target&&((d=t.composedPath()[0]||t.target)==null||d.dispatchEvent(i)),i.defaultPrevented)return;let a=!1;switch(e){case"up":a=this.focusNext(t,"up");break;case"down":a=this.focusNext(t,"down");break;case"left":a=this.focusNext(t,"left");break;case"right":a=this.focusNext(t,"right");break;case"enter":a=this.pressEnter();break;case"escape":a=this.goBack();break;default:}a?t.preventDefault():this.dispatchEvent(new ts("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=pn();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return Nh}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=Jo(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=$i.getActiveTrap(),a=null,d=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let v of f)if(v===i||v===this.root||_h(v)){d.push(...Jo(v,{excludedElements:a?[a]:void 0,includeSelectors:[`[${ai.FOCUSABLE}]`],excludeSelectors:[`[${ai.EXCLUDE}]`]}));let S=this.focusNextInFocusableAria(d,e);if(S||v===i||v===this.root)return S&&this.emitNavBeforeFocusEvent(S,e),!!S;a=v}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let a=new ts("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(a),!a.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var a;let i=`data-spatial-${e}`;return(a=t==null?void 0:t.getAttribute(i))!=null?a:void 0}focusNextInFocusableAria(t,e){var v,S;let i=this.getActiveElement(),a=pn(),d=t;if((!i||!d.includes(i)||i!==a)&&(a&&d.includes(a)?i=a:[i]=d,this.setActiveElement(i)),a){let R=`data-spatial-${e}`,U=jf(a).find(j=>j.hasAttribute(R)),J=U==null?void 0:U.getAttribute(R);if(U&&J){let j=U.getRootNode(),Z=(v=j==null?void 0:j.getElementById(J))!=null?v:j==null?void 0:j.querySelector(J);if(Z){let rt=Jo(Z,{includeSelectors:[`[${ai.FOCUSABLE}]`],excludeSelectors:[`[${ai.EXCLUDE}]`]});if(rt.includes(Z))return Z;if(rt.length>0)d=rt;else return Z}}}return i!==pn()?i:t.length===0||(S=Xf(i,d,e,this.distanceCalculationWeights)[0])==null?void 0:S.candidate}emitGoBackEvent(t){let e=new ts("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=pn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Jo(this.root).find(i=>i.hasAttribute(ai.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],mn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],mn.prototype,"distanceCalculationWeights",2);var Lh=mn;Lh.register(ql);var Zf=Lh;var H={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},Ux={[Tt.ARROW_UP]:H.UP,[Tt.ARROW_DOWN]:H.DOWN,[Tt.ARROW_LEFT]:H.LEFT,[Tt.ARROW_RIGHT]:H.RIGHT,[Tt.ENTER]:H.ENTER,[Tt.SPACE]:H.SPACE,[Tt.ESCAPE]:H.ESCAPE,[Tt.TAB]:H.TAB,[Tt.HOME]:H.HOME,[Tt.END]:H.END,[Tt.BACKSPACE]:H.BACKSPACE},re={DEFAULT:"default",SPATIAL:"spatial"},Lt=n=>{class o extends n{constructor(){super(...arguments);this.spatialNavigationContext=me.consume({host:this,context:Zf.Context})}getKeyboardNavMode(){var a;return((a=this.spatialNavigationContext)==null?void 0:a.value)?re.SPATIAL:re.DEFAULT}getActionForKeyEvent(i,a=!1){var v,S,R;let f=((R=(S=(v=this.spatialNavigationContext)==null?void 0:v.value)==null?void 0:S.keyToActionMap)!=null?R:Ux)[i.key];if(a){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===H.LEFT)return H.RIGHT;if(f===H.RIGHT)return H.LEFT}return f}isDirectionAction(i){return i===H.UP||i===H.DOWN||i===H.LEFT||i===H.RIGHT}}return o};var Ot=n=>{class o extends n{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var xt=z`
18
+ `,Hf=Ax;var Yl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Ws(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),A`<slot></slot>`}};Yl.styles=[...Q.styles,Hf];var Gf=Yl;var pe=Gf;var Ve=n=>{class o extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Zt=n=>{class o extends n{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ai=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Tt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var Sx=n=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:a}=n,d=(i||a)&&(f=>{a&&a.forEach(v=>{o.requestUpdate(v)}),i==null||i(f)});return new Ks(o,{context:t,callback:d,subscribe:e!=null?e:!0})},Ix={consume:Sx},me=Ix;var Wf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Yf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),Cx=n=>n.getClientRects().length===0,_x=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=n;return e+i+t+o===0},_h=n=>{if(!(n instanceof Element))return null;let o=getComputedStyle(n),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",a=e==="auto"||e==="scroll";return i&&a?"both":i?"horizontal":a?"vertical":null},wx=n=>_x(n)||Cx(n),kx=n=>{let{display:o,opacity:t,visibility:e}=n.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},Nx=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},Lx=n=>getComputedStyle(n).display==="contents",Mx=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||kx(n)||!Lx(n)&&(Nx(n)||wx(n)),Ox=n=>n.disabled,Rx=n=>n.getAttribute("tabindex")!=="-1",Dx=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),Kf=(n,o)=>o.some(t=>n.matches(t));var Jo=(n,o={})=>{var R,U,J,j;if(!n)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(U=o==null?void 0:o.includeSelectors)!=null?U:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],a=(j=o==null?void 0:o.stopAtNonTabbable)!=null?j:!1,d=new Set([]),f=Z=>{var rt;if(t.has(n)||Kf(Z,i)||Mx(Z)||Ox(Z))return"stop";if(a&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let st=Z.getRootNode();if(!(st instanceof ShadowRoot&&st.delegatesFocus))return"stop"}return(rt=Z.shadowRoot)!=null&&rt.delegatesFocus?"continue":Kf(Z,e)||Rx(Z)&&Dx(Z)?"focusable":"continue"},v=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,S=Z=>{if(Z instanceof HTMLElement){let st=v(Z);if(st==="focusable"&&d.add(Z),st==="stop")return}let rt=[];Z instanceof HTMLSlotElement?rt=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?rt=Array.from(Z.shadowRoot.children):Z.children.length&&(rt=Array.from(Z.children)),rt.forEach(S)};return S(n),[...d]},pn=(n=document)=>{var t;let o=n instanceof Document?n.activeElement:n;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},jl=n=>n&&"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",wh=n=>{let o=n.getRootNode();return o!==document&&o instanceof ShadowRoot?wh(o.host):n},jf=n=>{let o=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Vi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&(document.removeEventListener("keydown",this.currentKeydownListener),this.currentKeydownListener=null)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Vi.stack=new Set,Vi.currentKeydownListener=null;var ql=$.constructTagName("spatialnavigationprovider");var ni={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},kh={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var Px=ql,Nh=Px;var qf=n=>{let{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v}=n.getBoundingClientRect(),S=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v,xMid:S,yMid:R}},Fx=(n,o,t)=>Math.abs(t==="horizontal"?o.yMid-n.yMid:o.xMid-n.xMid),$x=(n,o)=>o==="horizontal"?n.height/2:n.width/2,Vx=(n,o,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,o.bottom)-Math.max(n.top,o.top)):Math.max(0,Math.min(n.right,o.right)-Math.max(n.left,o.left)),zx=(n,o,t)=>o==="horizontal"?t/n.height:t/n.width,Bx=(n,o,t,e)=>{let i=o.xMid-n.xMid,a=o.yMid-n.yMid,d=Math.sqrt(i*i+a*a),f=Fx(n,o,t)+$x(n,t)*e.orthogonalWeight[t],v=Vx(n,o,t),S=zx(n,t,v)*e.alignWeight;return d+f-S-Math.sqrt(v)},Xf=(n,o,t,e)=>{if(!n||o.length===0)return[];if(o.length===1)return o[0]===n?[]:[{candidate:o[0],distance:0}];let i=qf(n),a=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((d,f)=>{if(f===n)return d;let v=f.closest(`[${ni.SCROLL_PARENT}]`),S=v&&!v.contains(n)?v:f,R=qf(S);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return d;let U=Bx(i,R,a,e);return d.push({candidate:f,distance:U}),d},[]).sort((d,f)=>d.distance-f.distance)};var ts=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var mn=class extends pe{constructor(){super({context:Nh});this.navigationKeyMapping=kh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=kh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,a=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,a)!==void 0&&(e=!0,this.focusNext(t,a)),i.parentElement&&!i.hasAttribute(ni.NO_SCROLL)){let f=(d=i.closest(`[${ni.SCROLL_PARENT}]`))!=null?d:i.parentElement,v=_h(f);if(v){let S=i.getBoundingClientRect(),R=f.getBoundingClientRect();(v==="vertical"||v==="both")&&(a==="up"&&S.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),a==="down"&&S.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(v==="horizontal"||v==="both")&&(a==="right"&&S.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),a==="left"&&S.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new ts("navbeforeprocess",this,e);if(t.target&&((d=t.composedPath()[0]||t.target)==null||d.dispatchEvent(i)),i.defaultPrevented)return;let a=!1;switch(e){case"up":a=this.focusNext(t,"up");break;case"down":a=this.focusNext(t,"down");break;case"left":a=this.focusNext(t,"left");break;case"right":a=this.focusNext(t,"right");break;case"enter":a=this.pressEnter();break;case"escape":a=this.goBack();break;default:}a?t.preventDefault():this.dispatchEvent(new ts("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=pn();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return Nh}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=Jo(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=Vi.getActiveTrap(),a=null,d=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let v of f)if(v===i||v===this.root||_h(v)){d.push(...Jo(v,{excludedElements:a?[a]:void 0,includeSelectors:[`[${ni.FOCUSABLE}]`],excludeSelectors:[`[${ni.EXCLUDE}]`]}));let S=this.focusNextInFocusableAria(d,e);if(S||v===i||v===this.root)return S&&this.emitNavBeforeFocusEvent(S,e),!!S;a=v}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let a=new ts("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(a),!a.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var a;let i=`data-spatial-${e}`;return(a=t==null?void 0:t.getAttribute(i))!=null?a:void 0}focusNextInFocusableAria(t,e){var v,S;let i=this.getActiveElement(),a=pn(),d=t;if((!i||!d.includes(i)||i!==a)&&(a&&d.includes(a)?i=a:[i]=d,this.setActiveElement(i)),a){let R=`data-spatial-${e}`,U=jf(a).find(j=>j.hasAttribute(R)),J=U==null?void 0:U.getAttribute(R);if(U&&J){let j=U.getRootNode(),Z=(v=j==null?void 0:j.getElementById(J))!=null?v:j==null?void 0:j.querySelector(J);if(Z){let rt=Jo(Z,{includeSelectors:[`[${ni.FOCUSABLE}]`],excludeSelectors:[`[${ni.EXCLUDE}]`]});if(rt.includes(Z))return Z;if(rt.length>0)d=rt;else return Z}}}return i!==pn()?i:t.length===0||(S=Xf(i,d,e,this.distanceCalculationWeights)[0])==null?void 0:S.candidate}emitGoBackEvent(t){let e=new ts("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=pn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Jo(this.root).find(i=>i.hasAttribute(ni.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],mn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],mn.prototype,"distanceCalculationWeights",2);var Lh=mn;Lh.register(ql);var Zf=Lh;var H={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},Ux={[Tt.ARROW_UP]:H.UP,[Tt.ARROW_DOWN]:H.DOWN,[Tt.ARROW_LEFT]:H.LEFT,[Tt.ARROW_RIGHT]:H.RIGHT,[Tt.ENTER]:H.ENTER,[Tt.SPACE]:H.SPACE,[Tt.ESCAPE]:H.ESCAPE,[Tt.TAB]:H.TAB,[Tt.HOME]:H.HOME,[Tt.END]:H.END,[Tt.BACKSPACE]:H.BACKSPACE},re={DEFAULT:"default",SPATIAL:"spatial"},Lt=n=>{class o extends n{constructor(){super(...arguments);this.spatialNavigationContext=me.consume({host:this,context:Zf.Context})}getKeyboardNavMode(){var a;return((a=this.spatialNavigationContext)==null?void 0:a.value)?re.SPATIAL:re.DEFAULT}getActionForKeyEvent(i,a=!1){var v,S,R;let f=((R=(S=(v=this.spatialNavigationContext)==null?void 0:v.value)==null?void 0:S.keyToActionMap)!=null?R:Ux)[i.key];if(a){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===H.LEFT)return H.RIGHT;if(f===H.RIGHT)return H.LEFT}return f}isDirectionAction(i){return i===H.UP||i===H.DOWN||i===H.LEFT||i===H.RIGHT}}return o};var Ot=n=>{class o extends n{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var xt=z`
19
19
  :host {
20
20
  align-items: center;
21
21
  display: flex;
@@ -149,7 +149,7 @@
149
149
  :host([size='20']) {
150
150
  --mdc-button-height: 1.25rem;
151
151
  }
152
- `,...At()],Qf=Hx;var Er=class extends Ot(Lt(Ve(si(Zt(Q))))){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===Hs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Hs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{e===!0?t.setAttribute(a.trim(),"true"):e===!1?t.setAttribute(a.trim(),"false"):t.removeAttribute(a.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.add("pressed"),e===H.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===H.ENTER||e===H.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===H.SPACE&&i&&this.triggerClickEvent()}}render(){return A` <slot></slot> `}};Er.formAssociated=!0,Er.styles=[...Q.styles,...Qf],h([u({type:Boolean,reflect:!0})],Er.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Er.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],Er.prototype,"size",2),h([u({type:String,reflect:!0})],Er.prototype,"role",2),h([u({type:String,reflect:!0})],Er.prototype,"ariaStateKey",2),h([u({reflect:!0})],Er.prototype,"type",2),h([u({type:String,reflect:!0})],Er.prototype,"name",2),h([u({type:String,reflect:!0})],Er.prototype,"value",2);var Ee=Er;var Xl=n=>{class o extends n{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var Gx=z`
152
+ `,...At()],Qf=Hx;var Er=class extends Ot(Lt(Ve(ai(Zt(Q))))){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===Hs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Hs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{e===!0?t.setAttribute(a.trim(),"true"):e===!1?t.setAttribute(a.trim(),"false"):t.removeAttribute(a.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.add("pressed"),e===H.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===H.ENTER||e===H.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===H.SPACE&&i&&this.triggerClickEvent()}}render(){return A` <slot></slot> `}};Er.formAssociated=!0,Er.styles=[...Q.styles,...Qf],h([u({type:Boolean,reflect:!0})],Er.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Er.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],Er.prototype,"size",2),h([u({type:String,reflect:!0})],Er.prototype,"role",2),h([u({type:String,reflect:!0})],Er.prototype,"ariaStateKey",2),h([u({reflect:!0})],Er.prototype,"type",2),h([u({type:String,reflect:!0})],Er.prototype,"name",2),h([u({type:String,reflect:!0})],Er.prototype,"value",2);var Ee=Er;var Xl=n=>{class o extends n{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var Gx=z`
153
153
  :host {
154
154
  --mdc-button-prefix-icon-size: 1rem;
155
155
  --mdc-button-postfix-icon-size: 1rem;
@@ -476,7 +476,7 @@
476
476
  :host::part(postfix-icon) {
477
477
  flex-shrink: 0;
478
478
  }
479
- `,Jf=[Gx];var es=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var ni=class extends Xl(Gl(Ee)){constructor(){super(...arguments);this.size=nr.SIZE;this.inverted=nr.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${es(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${es(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return A`
479
+ `,Jf=[Gx];var es=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var li=class extends Xl(Gl(Ee)){constructor(){super(...arguments);this.size=nr.SIZE;this.inverted=nr.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${es(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${es(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return A`
480
480
  <slot name="prefix" part="prefix">
481
481
  ${this.prefixFilledIconName?A` <mdc-icon
482
482
  name="${this.prefixFilledIconName}"
@@ -492,7 +492,7 @@
492
492
  length-unit="rem"
493
493
  ></mdc-icon>`:""}
494
494
  </slot>
495
- `}};ni.styles=[...Ee.styles,...Jf],h([Ht('slot[part="button-text"]')],ni.prototype,"buttonTextPart",2),h([u({type:Number})],ni.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ni.prototype,"inverted",2),h([u({type:String,reflect:!0})],ni.prototype,"role",2),h([lt()],ni.prototype,"prefixFilledIconName",2),h([lt()],ni.prototype,"postfixFilledIconName",2);var vo=ni;var un={},tv=async n=>(un[n]===void 0&&(un[n]=new Map),{async set(o,t){un[n].set(o.url,await t.text())},async get(o){return un[n].get(o.url)},async delete(o){un[n].delete(o.url)}}),ev=async n=>{let o=await caches.open(n);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},rv=async(n,o)=>o==="in-memory-cache"?tv(n):ev(n);var iv=async(n,o)=>fetch(n).then(t=>{if(!t.ok)throw new Error(`There was a problem while fetching the ${o}!`);return t}),Mh=new Map,Ys=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a,assetType:d})=>{let f=a(),v=`${n}/${o}.${t}`,S=`${d}:${v}`,R=new Request(v,{signal:f});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?iv(R,d).then(U=>U.text()):rv(i,e).then(U=>U.get(R).then(J=>{if(J)return J;let j=Mh.get(S);if(j)return j;let Z=iv(new Request(v),d).then(rt=>{var st;return rt.status<400&&rt.headers.has("content-type")?(st=U.set)==null?void 0:st.call(U,R,rt.clone()).then(()=>rt.text()):rt.text()}).finally(()=>{Mh.delete(S)});return Mh.set(S,Z),Z}).catch(J=>{throw new Error(`Error in caching the ${d} ${o}, ${J}`)}))};var Zl=$.constructTagName("iconprovider"),ov=["svg"],sv=["em","rem","px","%"],Kx={px:16,em:1,rem:1,"%":100},Vi={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Kx.em,ICON_SET:"momentum-icons"};var Ql=class{};Ql.context=Zl;var Jl=Ql;var li=class extends pe{constructor(){super({context:Jl.context,initialValue:new Jl});this.iconSet=Vi.ICON_SET;this.fileExtension=Vi.FILE_EXTENSION;this.lengthUnit=Vi.LENGTH_UNIT;this.size=Vi.SIZE}static get Context(){return Jl.context}updateValuesInContext(){this.fileExtension&&ov.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Vi.FILE_EXTENSION,this.context.value.fileExtension=Vi.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&&sv.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Vi.LENGTH_UNIT,this.context.value.lengthUnit=Vi.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],li.prototype,"iconSet",2),h([u({type:String})],li.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],li.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],li.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],li.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],li.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],li.prototype,"cacheName",2);var fn=li;var Wx=[xt,z`
495
+ `}};li.styles=[...Ee.styles,...Jf],h([Ht('slot[part="button-text"]')],li.prototype,"buttonTextPart",2),h([u({type:Number})],li.prototype,"size",2),h([u({type:Boolean,reflect:!0})],li.prototype,"inverted",2),h([u({type:String,reflect:!0})],li.prototype,"role",2),h([lt()],li.prototype,"prefixFilledIconName",2),h([lt()],li.prototype,"postfixFilledIconName",2);var vo=li;var un={},tv=async n=>(un[n]===void 0&&(un[n]=new Map),{async set(o,t){un[n].set(o.url,await t.text())},async get(o){return un[n].get(o.url)},async delete(o){un[n].delete(o.url)}}),ev=async n=>{let o=await caches.open(n);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},rv=async(n,o)=>o==="in-memory-cache"?tv(n):ev(n);var iv=async(n,o)=>fetch(n).then(t=>{if(!t.ok)throw new Error(`There was a problem while fetching the ${o}!`);return t}),Mh=new Map,Ys=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a,assetType:d})=>{let f=a(),v=`${n}/${o}.${t}`,S=`${d}:${v}`,R=new Request(v,{signal:f});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?iv(R,d).then(U=>U.text()):rv(i,e).then(U=>U.get(R).then(J=>{if(J)return J;let j=Mh.get(S);if(j)return j;let Z=iv(new Request(v),d).then(rt=>{var st;return rt.status<400&&rt.headers.has("content-type")?(st=U.set)==null?void 0:st.call(U,R,rt.clone()).then(()=>rt.text()):rt.text()}).finally(()=>{Mh.delete(S)});return Mh.set(S,Z),Z}).catch(J=>{throw new Error(`Error in caching the ${d} ${o}, ${J}`)}))};var Zl=$.constructTagName("iconprovider"),ov=["svg"],sv=["em","rem","px","%"],Kx={px:16,em:1,rem:1,"%":100},zi={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Kx.em,ICON_SET:"momentum-icons"};var Ql=class{};Ql.context=Zl;var Jl=Ql;var di=class extends pe{constructor(){super({context:Jl.context,initialValue:new Jl});this.iconSet=zi.ICON_SET;this.fileExtension=zi.FILE_EXTENSION;this.lengthUnit=zi.LENGTH_UNIT;this.size=zi.SIZE}static get Context(){return Jl.context}updateValuesInContext(){this.fileExtension&&ov.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=zi.FILE_EXTENSION,this.context.value.fileExtension=zi.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&&sv.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=zi.LENGTH_UNIT,this.context.value.lengthUnit=zi.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],di.prototype,"iconSet",2),h([u({type:String})],di.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],di.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],di.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],di.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],di.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],di.prototype,"cacheName",2);var fn=di;var Wx=[xt,z`
496
496
  :host {
497
497
  --mdc-icon-fill-color: currentColor;
498
498
  --mdc-icon-size: var(--computed-icon-size);
@@ -507,7 +507,7 @@
507
507
  width: 100%;
508
508
  fill: var(--mdc-icon-fill-color);
509
509
  }
510
- `,...At()],av=Wx;var nv=$.constructTagName("icon"),Oh={NAME:void 0,SIZE:1};var Tr=class extends Q{constructor(){super();this.name=Oh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=me.consume({host:this,context:fn.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:a,iconSet:d,cacheStrategy:f}=this.iconProviderContext.value;if(d==="custom-icons"&&i&&e&&this.name){let v=()=>{var S;return(S=this.abortController)==null||S.abort(),this.abortController=new AbortController,this.abortController.signal};return Ys({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v,assetType:"icon"}).then(S=>{let R=this.prepareIconElement(S);this.handleIconLoadedSuccess(R)}).catch(S=>{this.handleIconLoadedFailure(S)})}if(d==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(v=>{this.handleIconLoadedSuccess(v.default())}).catch(v=>{this.handleIconLoadedFailure(v)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:Oh.SIZE}updated(t){var e,i,a,d;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(d=this.iconProviderContext.value)==null?void 0:d.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return A` ${this.iconData} `}};Tr.styles=[...Q.styles,...av],h([lt()],Tr.prototype,"iconData",2),h([lt()],Tr.prototype,"lengthUnitFromContext",2),h([lt()],Tr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],Tr.prototype,"name",2),h([u({type:Number})],Tr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],Tr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],Tr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Tr.prototype,"ariaLabelledby",2),h([lt()],Tr.prototype,"abortController",2);var Rh=Tr;Rh.register(nv);var Yx=Rh;vo.register(Pi);var jx=vo;var lv=z`
510
+ `,...At()],av=Wx;var nv=$.constructTagName("icon"),Oh={NAME:void 0,SIZE:1};var Tr=class extends Q{constructor(){super();this.name=Oh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=me.consume({host:this,context:fn.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:a,iconSet:d,cacheStrategy:f}=this.iconProviderContext.value;if(d==="custom-icons"&&i&&e&&this.name){let v=()=>{var S;return(S=this.abortController)==null||S.abort(),this.abortController=new AbortController,this.abortController.signal};return Ys({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v,assetType:"icon"}).then(S=>{let R=this.prepareIconElement(S);this.handleIconLoadedSuccess(R)}).catch(S=>{this.handleIconLoadedFailure(S)})}if(d==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(v=>{this.handleIconLoadedSuccess(v.default())}).catch(v=>{this.handleIconLoadedFailure(v)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:Oh.SIZE}updated(t){var e,i,a,d;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(d=this.iconProviderContext.value)==null?void 0:d.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return A` ${this.iconData} `}};Tr.styles=[...Q.styles,...av],h([lt()],Tr.prototype,"iconData",2),h([lt()],Tr.prototype,"lengthUnitFromContext",2),h([lt()],Tr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],Tr.prototype,"name",2),h([u({type:Number})],Tr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],Tr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],Tr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Tr.prototype,"ariaLabelledby",2),h([lt()],Tr.prototype,"abortController",2);var Rh=Tr;Rh.register(nv);var Yx=Rh;vo.register(Fi);var jx=vo;var lv=z`
511
511
  :host::part(text) {
512
512
  font-size: unset;
513
513
  font-weight: unset;
@@ -757,7 +757,7 @@
757
757
  display: block;
758
758
  font-family: var(--mdc-text-font-family);
759
759
  }
760
- `,lv],dv=qx;var vn=$.constructTagName("text"),at={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var rs=class extends Xl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return A`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return A`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return A`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return A`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return A`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return A`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return A`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return A`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return A`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return A`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};rs.styles=[...Q.styles,...dv],h([Ht(`[part='${Me.CSS_PART_TEXT}']`)],rs.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],rs.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],rs.prototype,"tagname",2);var Dh=rs;Dh.register(vn);var Xx=Dh;var tt=n=>n!=null?n:G;var Oe=[];for(let n=0;n<256;++n)Oe.push((n+256).toString(16).slice(1));function cv(n,o=0){return(Oe[n[o+0]]+Oe[n[o+1]]+Oe[n[o+2]]+Oe[n[o+3]]+"-"+Oe[n[o+4]]+Oe[n[o+5]]+"-"+Oe[n[o+6]]+Oe[n[o+7]]+"-"+Oe[n[o+8]]+Oe[n[o+9]]+"-"+Oe[n[o+10]]+Oe[n[o+11]]+Oe[n[o+12]]+Oe[n[o+13]]+Oe[n[o+14]]+Oe[n[o+15]]).toLowerCase()}var Ph,Zx=new Uint8Array(16);function Fh(){if(!Ph){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ph=crypto.getRandomValues.bind(crypto)}return Ph(Zx)}var Qx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$h={randomUUID:Qx};function Jx(n,o,t){var i,a,d;if($h.randomUUID&&!o&&!n)return $h.randomUUID();n=n||{};let e=(d=(a=n.random)!=null?a:(i=n.rng)==null?void 0:i.call(n))!=null?d:Fh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=e[f];return o}return cv(e)}var ze=Jx;var hv=$.constructTagName("accordiongroup"),Vh={SMALL:"small",LARGE:"large"},tA={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},gn={SIZE:Vh.SMALL,VARIANT:tA.STACKED};var td=$.constructTagName("accordionbutton"),bn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},eA={DEFAULT:"default",BORDERLESS:"borderless"},yn={LEADING:"leading",TRAILING:"trailing"},di={EXPANDED:!1,SIZE:Vh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:eA.DEFAULT,ICON_NAME:bn.ARROW_UP,TOGGLE_POSITION:yn.TRAILING};var rA=z`
760
+ `,lv],dv=qx;var vn=$.constructTagName("text"),at={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var rs=class extends Xl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return A`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return A`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return A`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return A`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return A`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return A`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return A`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return A`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return A`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return A`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};rs.styles=[...Q.styles,...dv],h([Ht(`[part='${Me.CSS_PART_TEXT}']`)],rs.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],rs.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],rs.prototype,"tagname",2);var Dh=rs;Dh.register(vn);var Xx=Dh;var tt=n=>n!=null?n:G;var Oe=[];for(let n=0;n<256;++n)Oe.push((n+256).toString(16).slice(1));function cv(n,o=0){return(Oe[n[o+0]]+Oe[n[o+1]]+Oe[n[o+2]]+Oe[n[o+3]]+"-"+Oe[n[o+4]]+Oe[n[o+5]]+"-"+Oe[n[o+6]]+Oe[n[o+7]]+"-"+Oe[n[o+8]]+Oe[n[o+9]]+"-"+Oe[n[o+10]]+Oe[n[o+11]]+Oe[n[o+12]]+Oe[n[o+13]]+Oe[n[o+14]]+Oe[n[o+15]]).toLowerCase()}var Ph,Zx=new Uint8Array(16);function Fh(){if(!Ph){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ph=crypto.getRandomValues.bind(crypto)}return Ph(Zx)}var Qx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$h={randomUUID:Qx};function Jx(n,o,t){var i,a,d;if($h.randomUUID&&!o&&!n)return $h.randomUUID();n=n||{};let e=(d=(a=n.random)!=null?a:(i=n.rng)==null?void 0:i.call(n))!=null?d:Fh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=e[f];return o}return cv(e)}var ze=Jx;var hv=$.constructTagName("accordiongroup"),Vh={SMALL:"small",LARGE:"large"},tA={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},gn={SIZE:Vh.SMALL,VARIANT:tA.STACKED};var td=$.constructTagName("accordionbutton"),bn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},eA={DEFAULT:"default",BORDERLESS:"borderless"},yn={LEADING:"leading",TRAILING:"trailing"},ci={EXPANDED:!1,SIZE:Vh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:eA.DEFAULT,ICON_NAME:bn.ARROW_UP,TOGGLE_POSITION:yn.TRAILING};var rA=z`
761
761
  :host {
762
762
  --mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
763
763
  --mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
@@ -874,7 +874,7 @@
874
874
  :host([variant='default']:not([expanded]))::part(header-section) {
875
875
  border-bottom: none;
876
876
  }
877
- `,pv=[rA,...At(!0)];var Gr=class extends Ot(Lt(Zt(Q))){constructor(){super(...arguments);this.size=di.SIZE;this.variant=di.VARIANT;this.dataAriaLevel=di.DATA_ARIA_LEVEL;this.expanded=di.EXPANDED;this.togglePosition=di.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?A`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:G}renderHeadingText(){return this.headerText?A`<mdc-text
877
+ `,pv=[rA,...At(!0)];var Gr=class extends Ot(Lt(Zt(Q))){constructor(){super(...arguments);this.size=ci.SIZE;this.variant=ci.VARIANT;this.dataAriaLevel=ci.DATA_ARIA_LEVEL;this.expanded=ci.EXPANDED;this.togglePosition=ci.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?A`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:G}renderHeadingText(){return this.headerText?A`<mdc-text
878
878
  id="${this.headSectionId}"
879
879
  type="${at.BODY_LARGE_REGULAR}"
880
880
  tagname=${pt.SPAN}
@@ -910,7 +910,7 @@
910
910
  role="${et.REGION}"
911
911
  >
912
912
  <slot></slot>
913
- </div>`:G}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=di.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=di.SIZE),t.has("variant")&&!this.variant&&(this.variant=di.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=di.TOGGLE_POSITION)}render(){return A` ${this.renderHeader()} ${this.renderBody()} `}};Gr.styles=[...Q.styles,...pv],h([u({type:String,reflect:!0})],Gr.prototype,"size",2),h([u({type:String,reflect:!0})],Gr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Gr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],Gr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Gr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Gr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],Gr.prototype,"togglePosition",2);var js=Gr;var iA=z`
913
+ </div>`:G}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=ci.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=ci.SIZE),t.has("variant")&&!this.variant&&(this.variant=ci.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=ci.TOGGLE_POSITION)}render(){return A` ${this.renderHeader()} ${this.renderBody()} `}};Gr.styles=[...Q.styles,...pv],h([u({type:String,reflect:!0})],Gr.prototype,"size",2),h([u({type:String,reflect:!0})],Gr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Gr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],Gr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Gr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Gr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],Gr.prototype,"togglePosition",2);var js=Gr;var iA=z`
914
914
  :host::part(header-section) {
915
915
  display: flex;
916
916
  align-items: center;
@@ -994,7 +994,7 @@
994
994
  :host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
995
995
  border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
996
996
  }
997
- `,uv=[sA,...At()];var zi=class extends Q{constructor(){super();this.size=gn.SIZE;this.variant=gn.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=gn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=gn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return A` <slot></slot> `}};zi.styles=[...Q.styles,...uv],h([u({type:String,reflect:!0})],zi.prototype,"size",2),h([u({type:String,reflect:!0})],zi.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],zi.prototype,"allowMultiple",2),h([Xt({selector:ed})],zi.prototype,"accordionItems",2),h([Xt({selector:td})],zi.prototype,"accordionButtonItems",2);var Bh=zi;Bh.register(hv);var aA=Bh;js.register(td);var nA=js;var ue=n=>{class o extends n{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var lA=z`
997
+ `,uv=[sA,...At()];var Bi=class extends Q{constructor(){super();this.size=gn.SIZE;this.variant=gn.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=gn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=gn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return A` <slot></slot> `}};Bi.styles=[...Q.styles,...uv],h([u({type:String,reflect:!0})],Bi.prototype,"size",2),h([u({type:String,reflect:!0})],Bi.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Bi.prototype,"allowMultiple",2),h([Xt({selector:ed})],Bi.prototype,"accordionItems",2),h([Xt({selector:td})],Bi.prototype,"accordionButtonItems",2);var Bh=Bi;Bh.register(hv);var aA=Bh;js.register(td);var nA=js;var ue=n=>{class o extends n{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var lA=z`
998
998
  :host {
999
999
  height: 1.5rem;
1000
1000
  gap: 0.25rem;
@@ -1112,11 +1112,11 @@
1112
1112
  ${this.label?A`<mdc-text part="label" type="${qs.TEXT_TYPE}" tagname="${qs.TAG_NAME}"
1113
1113
  >${this.label}</mdc-text
1114
1114
  >`:G}
1115
- `}};Xs.styles=[...Q.styles,...fv],h([u({type:String,reflect:!0})],Xs.prototype,"variant",2),h([u({type:String})],Xs.prototype,"label",2);var Uh=Xs;Uh.register(rd);var dA=Uh;var{I:cA}=Lf;var id=n=>n.strings===void 0,gv=()=>document.createComment(""),Zs=(n,o,t)=>{var a;let e=n._$AA.parentNode,i=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=e.insertBefore(gv(),i),f=e.insertBefore(gv(),i);t=new cA(d,f,n,n.options)}else{let d=t._$AB.nextSibling,f=t._$AM,v=f!==n;if(v){let S;(a=t._$AQ)==null||a.call(t,n),t._$AM=n,t._$AP!==void 0&&(S=n._$AU)!==f._$AU&&t._$AP(S)}if(d!==i||v){let S=t._$AA;for(;S!==d;){let R=S.nextSibling;e.insertBefore(S,i),S=R}}}return t},bo=(n,o,t=n)=>(n._$AI(o,t),n),hA={},od=(n,o=hA)=>n._$AH=o,bv=n=>n._$AH,sd=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var xr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Bi=n=>(...o)=>({_$litDirective$:n,values:o}),ci=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var En=(n,o)=>{var e;let t=n._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),En(i,o);return!0},ad=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)},yv=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),uA(o)}};function pA(n){this._$AN!==void 0?(ad(this),this._$AM=n,yv(this)):this._$AM=n}function mA(n,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let a=t;a<e.length;a++)En(e[a],!1),ad(e[a]);else e!=null&&(En(e,!1),ad(e));else En(this,n)}var uA=n=>{var o,t;n.type==xr.CHILD&&((o=n._$AP)!=null||(n._$AP=mA),(t=n._$AQ)!=null||(n._$AQ=pA))},nd=class extends ci{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),yv(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(En(this,o),ad(this))}setValue(o){if(id(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 Ev=()=>new Gh,Gh=class{},Hh=new WeakMap,Tv=Bi(class extends nd{render(n){return G}update(n,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=n.options)==null?void 0:e.host,this.rt(this.ct=n.element)),G}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=Hh.get(t);e===void 0&&(e=new WeakMap,Hh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=Hh.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 Iv=dx(xv());var Kh={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 fA=[xt,z`
1115
+ `}};Xs.styles=[...Q.styles,...fv],h([u({type:String,reflect:!0})],Xs.prototype,"variant",2),h([u({type:String})],Xs.prototype,"label",2);var Uh=Xs;Uh.register(rd);var dA=Uh;var{I:cA}=Lf;var id=n=>n.strings===void 0,gv=()=>document.createComment(""),Zs=(n,o,t)=>{var a;let e=n._$AA.parentNode,i=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=e.insertBefore(gv(),i),f=e.insertBefore(gv(),i);t=new cA(d,f,n,n.options)}else{let d=t._$AB.nextSibling,f=t._$AM,v=f!==n;if(v){let S;(a=t._$AQ)==null||a.call(t,n),t._$AM=n,t._$AP!==void 0&&(S=n._$AU)!==f._$AU&&t._$AP(S)}if(d!==i||v){let S=t._$AA;for(;S!==d;){let R=S.nextSibling;e.insertBefore(S,i),S=R}}}return t},bo=(n,o,t=n)=>(n._$AI(o,t),n),hA={},od=(n,o=hA)=>n._$AH=o,bv=n=>n._$AH,sd=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var xr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ui=n=>(...o)=>({_$litDirective$:n,values:o}),hi=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var En=(n,o)=>{var e;let t=n._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),En(i,o);return!0},ad=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)},yv=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),uA(o)}};function pA(n){this._$AN!==void 0?(ad(this),this._$AM=n,yv(this)):this._$AM=n}function mA(n,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let a=t;a<e.length;a++)En(e[a],!1),ad(e[a]);else e!=null&&(En(e,!1),ad(e));else En(this,n)}var uA=n=>{var o,t;n.type==xr.CHILD&&((o=n._$AP)!=null||(n._$AP=mA),(t=n._$AQ)!=null||(n._$AQ=pA))},nd=class extends hi{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),yv(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(En(this,o),ad(this))}setValue(o){if(id(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 Ev=()=>new Gh,Gh=class{},Hh=new WeakMap,Tv=Ui(class extends nd{render(n){return G}update(n,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=n.options)==null?void 0:e.host,this.rt(this.ct=n.element)),G}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=Hh.get(t);e===void 0&&(e=new WeakMap,Hh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=Hh.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 Iv=dx(xv());var Kh={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 fA=[xt,z`
1116
1116
  :host svg {
1117
1117
  display: block;
1118
1118
  }
1119
- `],Av=fA;var Sv=$.constructTagName("animation"),Wh={AUTO_PLAY:!0,LOOP:"true"};var hi=class extends Q{constructor(){super(...arguments);this.loop=Wh.LOOP;this.autoplay=Wh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Ev();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.cachedAnimationData=t,this.createLottieInstance(t),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}createLottieInstance(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=Iv.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.src?this.fetchAnimationFromUrl(this.src):this.name&&Kh[this.name]?import(`@momentum-design/animations/dist/lottie${Kh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}fetchAnimationFromUrl(t){fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch animation from URL: ${t} (${e.status})`);return e.json()}).then(e=>this.onLoadSuccessHandler(e)).catch(e=>this.onLoadFailHandler(e))}updated(t){super.updated(t),t.has("name")||t.has("src")?(this.cachedAnimationData=void 0,this.getAnimationData()):(t.has("loop")||t.has("autoplay"))&&this.cachedAnimationData&&this.createLottieInstance(this.cachedAnimationData),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return A`<div aria-hidden="true" ${Tv(this.containerRef)}></div>`}};hi.styles=[...Q.styles,...Av],h([u({type:String,reflect:!0})],hi.prototype,"name",2),h([u({type:String,reflect:!0})],hi.prototype,"src",2),h([u({type:String,reflect:!0})],hi.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],hi.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],hi.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],hi.prototype,"ariaLabelledby",2);var Yh=hi;Yh.register(Sv);var vA=Yh;var Qs=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),$i.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),$i.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Jo(this.shadowRoot,{stopAtNonTabbable:!0}))}setInitialFocus(i=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus({preventScroll:!0}))}calculateNextIndex(i,a){let{length:d}=this.focusableElements;if(i===-1)return a>0?0:d-1;let f=i+a;return this.shouldFocusTrapWrap?(f<0&&(f=d-1),f>=d&&(f=0)):(f<0&&(f=0),f>=d&&(f=d-1)),f}getDeepActiveElement(){var a;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((a=i.shadowRoot)!=null&&a.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(i,a))}isEqualFocusNode(i,a){return i.nodeType>=0?a.isEqualNode(i)&&a===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),d=this.findElement(a);if(d===-1)return;i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(d,-1):this.focusTrapIndex=this.calculateNextIndex(d,1);let v=this.focusableElements[this.focusTrapIndex];v.tagName!=="IFRAME"&&v&&(i.preventDefault(),v.focus())}handleTabKeydown(i){this.isFocusTrapActivated&&i.key==="Tab"&&this.trapFocus(i)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var dd=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 cd=$.constructTagName("link"),hd={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},pd={LARGE:1,MIDSIZE:.875,SMALL:.75},Cv={LINK_SIZE:hd.LARGE};var _v=$.constructTagName("card"),jh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},gA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:jh.BORDER,ORIENTATION:gA.VERTICAL,TITLE_TYPE:at.HEADING_SMALL_BOLD,SUBTITLE_TYPE:at.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:cd,BUTTON:Pi};var Js=n=>{class o extends n{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(a=>{e===jh.PROMOTIONAL?a.setAttribute("color",Ye.PROMOTIONAL):a.setAttribute("color",Ye.DEFAULT)})}handleFooterSlot(e,i){var d,f,v;let a=[];e===Ce.LINK&&((d=this.footerLink)!=null&&d.length)?a=this.footerLink:e===Ce.BUTTON&&i===Ft.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?a=this.footerButtonPrimary:e===Ce.BUTTON&&i===Ft.SECONDARY&&((v=this.footerButtonSecondary)!=null&&v.length)&&(a=this.footerButtonSecondary);for(let S=1;S<a.length;S+=1)a[S].remove();a.forEach(S=>{S.matches(e)||S.remove(),i&&S.setAttribute("variant",i)})}renderFooter(){return A` <slot name="footer">
1119
+ `],Av=fA;var Sv=$.constructTagName("animation"),Wh={AUTO_PLAY:!0,LOOP:"true"};var pi=class extends Q{constructor(){super(...arguments);this.loop=Wh.LOOP;this.autoplay=Wh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Ev();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.cachedAnimationData=t,this.createLottieInstance(t),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}createLottieInstance(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=Iv.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.src?this.fetchAnimationFromUrl(this.src):this.name&&Kh[this.name]?import(`@momentum-design/animations/dist/lottie${Kh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}fetchAnimationFromUrl(t){fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch animation from URL: ${t} (${e.status})`);return e.json()}).then(e=>this.onLoadSuccessHandler(e)).catch(e=>this.onLoadFailHandler(e))}updated(t){super.updated(t),t.has("name")||t.has("src")?(this.cachedAnimationData=void 0,this.getAnimationData()):(t.has("loop")||t.has("autoplay"))&&this.cachedAnimationData&&this.createLottieInstance(this.cachedAnimationData),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return A`<div aria-hidden="true" ${Tv(this.containerRef)}></div>`}};pi.styles=[...Q.styles,...Av],h([u({type:String,reflect:!0})],pi.prototype,"name",2),h([u({type:String,reflect:!0})],pi.prototype,"src",2),h([u({type:String,reflect:!0})],pi.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],pi.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],pi.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],pi.prototype,"ariaLabelledby",2);var Yh=pi;Yh.register(Sv);var vA=Yh;var Qs=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Vi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Vi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Jo(this.shadowRoot,{stopAtNonTabbable:!0}))}setInitialFocus(i=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus({preventScroll:!0}))}calculateNextIndex(i,a){let{length:d}=this.focusableElements;if(i===-1)return a>0?0:d-1;let f=i+a;return this.shouldFocusTrapWrap?(f<0&&(f=d-1),f>=d&&(f=0)):(f<0&&(f=0),f>=d&&(f=d-1)),f}getDeepActiveElement(){var a;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((a=i.shadowRoot)!=null&&a.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(i,a))}isEqualFocusNode(i,a){return i.nodeType>=0?a.isEqualNode(i)&&a===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),d=this.findElement(a);if(d===-1)return;i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(d,-1):this.focusTrapIndex=this.calculateNextIndex(d,1);let v=this.focusableElements[this.focusTrapIndex];v.tagName!=="IFRAME"&&v&&(i.preventDefault(),v.focus())}handleTabKeydown(i){this.isFocusTrapActivated&&i.key==="Tab"&&this.trapFocus(i)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var dd=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 cd=$.constructTagName("link"),hd={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},pd={LARGE:1,MIDSIZE:.875,SMALL:.75},Cv={LINK_SIZE:hd.LARGE};var _v=$.constructTagName("card"),jh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},gA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:jh.BORDER,ORIENTATION:gA.VERTICAL,TITLE_TYPE:at.HEADING_SMALL_BOLD,SUBTITLE_TYPE:at.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:cd,BUTTON:Fi};var Js=n=>{class o extends n{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(a=>{e===jh.PROMOTIONAL?a.setAttribute("color",Ye.PROMOTIONAL):a.setAttribute("color",Ye.DEFAULT)})}handleFooterSlot(e,i){var d,f,v;let a=[];e===Ce.LINK&&((d=this.footerLink)!=null&&d.length)?a=this.footerLink:e===Ce.BUTTON&&i===Ft.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?a=this.footerButtonPrimary:e===Ce.BUTTON&&i===Ft.SECONDARY&&((v=this.footerButtonSecondary)!=null&&v.length)&&(a=this.footerButtonSecondary);for(let S=1;S<a.length;S+=1)a[S].remove();a.forEach(S=>{S.matches(e)||S.remove(),i&&S.setAttribute("variant",i)})}renderFooter(){return A` <slot name="footer">
1120
1120
  <div part="footer">
1121
1121
  <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Ce.LINK)}></slot>
1122
1122
  <slot
@@ -1399,7 +1399,7 @@
1399
1399
  height: var(--mdc-illustration-size);
1400
1400
  width: var(--mdc-illustration-size);
1401
1401
  }
1402
- `],Fv=TA;var $v=$.constructTagName("illustration"),Vv={NAME:void 0};var Ui=class extends Q{constructor(){super();this.name=Vv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=me.consume({host:this,context:An.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:a,illustrationSet:d,cacheStrategy:f}=this.illustrationProviderContext.value;if(d==="custom-illustrations"&&i&&e&&this.name){let v=()=>{var S;return(S=this.abortController)==null||S.abort(),this.abortController=new AbortController,this.abortController.signal};return Ys({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v,assetType:"illustration"}).then(S=>{let R=this.prepareIllustrationElement(S);this.handleIllustrationLoadedSuccess(R)}).catch(S=>{this.handleIllustrationLoadedFailure(S)})}if(d==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(v=>{this.handleIllustrationLoadedSuccess(v.default())}).catch(v=>{this.handleIllustrationLoadedFailure(v)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return A` ${this.illustrationData} `}};Ui.styles=[...Q.styles,...Fv],h([lt()],Ui.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Ui.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Ui.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Ui.prototype,"ariaLabelledby",2),h([lt()],Ui.prototype,"abortController",2);var ep=Ui;ep.register($v);var xA=ep;tp.register(Rv);var AA=tp;var SA=z`
1402
+ `],Fv=TA;var $v=$.constructTagName("illustration"),Vv={NAME:void 0};var Hi=class extends Q{constructor(){super();this.name=Vv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=me.consume({host:this,context:An.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:a,illustrationSet:d,cacheStrategy:f}=this.illustrationProviderContext.value;if(d==="custom-illustrations"&&i&&e&&this.name){let v=()=>{var S;return(S=this.abortController)==null||S.abort(),this.abortController=new AbortController,this.abortController.signal};return Ys({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v,assetType:"illustration"}).then(S=>{let R=this.prepareIllustrationElement(S);this.handleIllustrationLoadedSuccess(R)}).catch(S=>{this.handleIllustrationLoadedFailure(S)})}if(d==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(v=>{this.handleIllustrationLoadedSuccess(v.default())}).catch(v=>{this.handleIllustrationLoadedFailure(v)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return A` ${this.illustrationData} `}};Hi.styles=[...Q.styles,...Fv],h([lt()],Hi.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Hi.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Hi.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Hi.prototype,"ariaLabelledby",2),h([lt()],Hi.prototype,"abortController",2);var ep=Hi;ep.register($v);var xA=ep;tp.register(Rv);var AA=tp;var SA=z`
1403
1403
  :host {
1404
1404
  --mdc-appheader-height: 4rem;
1405
1405
  }
@@ -1771,7 +1771,7 @@
1771
1771
  size="${tt(this.size)}"
1772
1772
  src="${tt(this.src)}"
1773
1773
  ></mdc-avatar>
1774
- `}};In.styles=[...Zv],h([u({type:String,attribute:"aria-label"})],In.prototype,"ariaLabel",2);var ap=In;var Qv=$.constructTagName("avatarbutton");ap.register(Qv);var MA=ap;var Jv=$.constructTagName("badge"),Lr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},xd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},np={PRIMARY:"primary",SECONDARY:"secondary"},Hi={TYPE:Lr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:np.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var OA=[xt,z`
1774
+ `}};In.styles=[...Zv],h([u({type:String,attribute:"aria-label"})],In.prototype,"ariaLabel",2);var ap=In;var Qv=$.constructTagName("avatarbutton");ap.register(Qv);var MA=ap;var Jv=$.constructTagName("badge"),Lr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},xd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},np={PRIMARY:"primary",SECONDARY:"secondary"},Gi={TYPE:Lr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:np.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var OA=[xt,z`
1775
1775
  :host {
1776
1776
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1777
1777
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -1850,11 +1850,11 @@
1850
1850
  outline: none;
1851
1851
  }
1852
1852
  }
1853
- `],tg=OA;var pi=class extends ue(Q){constructor(){super(...arguments);this.variant=Hi.VARIANT;this.maxCounter=Hi.MAX_COUNTER;this.overlay=Hi.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>Hi.MAX_COUNTER_LIMIT||e>Hi.MAX_COUNTER_LIMIT?`${Hi.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return A`
1853
+ `],tg=OA;var mi=class extends ue(Q){constructor(){super(...arguments);this.variant=Gi.VARIANT;this.maxCounter=Gi.MAX_COUNTER;this.overlay=Gi.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>Gi.MAX_COUNTER_LIMIT||e>Gi.MAX_COUNTER_LIMIT?`${Gi.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return A`
1854
1854
  <mdc-icon
1855
1855
  part="badge-icon ${this.overlay?"badge-overlay":""}"
1856
1856
  name="${tt(t)}"
1857
- size="${Hi.ICON_SIZE}"
1857
+ size="${Gi.ICON_SIZE}"
1858
1858
  ></mdc-icon>
1859
1859
  `}getBadgeDot(){return A`<div part="badge-dot ${this.overlay?"badge-overlay":""}"></div>`}getBadgeCounterText(){return A`
1860
1860
  <mdc-text
@@ -1864,7 +1864,7 @@
1864
1864
  >
1865
1865
  ${this.getCounterText(this.maxCounter,this.counter)}
1866
1866
  </mdc-text>
1867
- `}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(np).includes(this.variant)&&(this.variant=Hi.VARIANT);let{iconName:t,type:e}=this;switch(e){case Lr.ICON:return this.getBadgeIcon(t||"");case Lr.COUNTER:return this.getBadgeCounterText();case Lr.SUCCESS:return this.getBadgeIcon(xd.SUCCESS_ICON_NAME);case Lr.WARNING:return this.getBadgeIcon(xd.WARNING_ICON_NAME);case Lr.ERROR:return this.getBadgeIcon(xd.ERROR_ICON_NAME);case Lr.DOT:default:return this.type=Lr.DOT,this.getBadgeDot()}}};pi.styles=[...Q.styles,...tg],h([u({type:String,reflect:!0})],pi.prototype,"type",2),h([u({type:String,reflect:!0})],pi.prototype,"variant",2),h([u({type:Number})],pi.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],pi.prototype,"maxCounter",2),h([u({type:Boolean})],pi.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],pi.prototype,"ariaLabel",2);var lp=pi;lp.register(Jv);var RA=lp;var Ad=$.constructTagName("brandvisualprovider"),eg=["svg","png"],Cn={FILE_EXTENSION:"svg",BRAND_VISUAL_SET:"momentum-brand-visuals"};var Sd=class{};Sd.context=Ad;var Id=Sd;var xo=class extends pe{constructor(){super({context:Id.context,initialValue:new Id});this.brandVisualSet=Cn.BRAND_VISUAL_SET;this.fileExtension=Cn.FILE_EXTENSION}static get Context(){return Id.context}updateValuesInContext(){this.fileExtension&&eg.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Cn.FILE_EXTENSION,this.context.value.fileExtension=Cn.FILE_EXTENSION),this.context.value.brandVisualSet=this.brandVisualSet,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.brandVisualSet!==this.brandVisualSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"brand-visual-set",reflect:!0})],xo.prototype,"brandVisualSet",2),h([u({type:String})],xo.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],xo.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],xo.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],xo.prototype,"cacheName",2);var _n=xo;var DA=z`
1867
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(np).includes(this.variant)&&(this.variant=Gi.VARIANT);let{iconName:t,type:e}=this;switch(e){case Lr.ICON:return this.getBadgeIcon(t||"");case Lr.COUNTER:return this.getBadgeCounterText();case Lr.SUCCESS:return this.getBadgeIcon(xd.SUCCESS_ICON_NAME);case Lr.WARNING:return this.getBadgeIcon(xd.WARNING_ICON_NAME);case Lr.ERROR:return this.getBadgeIcon(xd.ERROR_ICON_NAME);case Lr.DOT:default:return this.type=Lr.DOT,this.getBadgeDot()}}};mi.styles=[...Q.styles,...tg],h([u({type:String,reflect:!0})],mi.prototype,"type",2),h([u({type:String,reflect:!0})],mi.prototype,"variant",2),h([u({type:Number})],mi.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],mi.prototype,"maxCounter",2),h([u({type:Boolean})],mi.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],mi.prototype,"ariaLabel",2);var lp=mi;lp.register(Jv);var RA=lp;var Ad=$.constructTagName("brandvisualprovider"),eg=["svg","png"],Cn={FILE_EXTENSION:"svg",BRAND_VISUAL_SET:"momentum-brand-visuals"};var Sd=class{};Sd.context=Ad;var Id=Sd;var xo=class extends pe{constructor(){super({context:Id.context,initialValue:new Id});this.brandVisualSet=Cn.BRAND_VISUAL_SET;this.fileExtension=Cn.FILE_EXTENSION}static get Context(){return Id.context}updateValuesInContext(){this.fileExtension&&eg.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Cn.FILE_EXTENSION,this.context.value.fileExtension=Cn.FILE_EXTENSION),this.context.value.brandVisualSet=this.brandVisualSet,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.brandVisualSet!==this.brandVisualSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"brand-visual-set",reflect:!0})],xo.prototype,"brandVisualSet",2),h([u({type:String})],xo.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],xo.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],xo.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],xo.prototype,"cacheName",2);var _n=xo;var DA=z`
1868
1868
  :host {
1869
1869
  display: block;
1870
1870
  height: 100%;
@@ -1998,7 +1998,7 @@
1998
1998
  :host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
1999
1999
  width: 2.5rem;
2000
2000
  }
2001
- `,lg=[xt,HA];var Gi=class extends Q{constructor(){super(...arguments);this.orientation=Cd.ORIENTATION;this.variant=Cd.VARIANT;this.size=Cd.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 A`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Gi.styles=[...Q.styles,...lg],h([u({type:String,reflect:!0})],Gi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Gi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Gi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Gi.prototype,"compact",2),h([Xt({selector:"mdc-button"})],Gi.prototype,"buttons",2);var hp=Gi;hp.register(ng);var GA=hp;var oe=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var dg=$.constructTagName("linksimple"),sa={INLINE:!1,INVERTED:!1};var KA=[xt,z`
2001
+ `,lg=[xt,HA];var Ki=class extends Q{constructor(){super(...arguments);this.orientation=Cd.ORIENTATION;this.variant=Cd.VARIANT;this.size=Cd.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 A`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Ki.styles=[...Q.styles,...lg],h([u({type:String,reflect:!0})],Ki.prototype,"orientation",2),h([u({type:String,reflect:!0})],Ki.prototype,"variant",2),h([u({type:Number,reflect:!0})],Ki.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Ki.prototype,"compact",2),h([Xt({selector:"mdc-button"})],Ki.prototype,"buttons",2);var hp=Ki;hp.register(ng);var GA=hp;var oe=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var dg=$.constructTagName("linksimple"),sa={INLINE:!1,INVERTED:!1};var KA=[xt,z`
2002
2002
  :host {
2003
2003
  --mdc-link-border-radius: 0.25rem;
2004
2004
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -2094,7 +2094,7 @@
2094
2094
  >
2095
2095
  ${this.renderAnchorContent()}
2096
2096
  </a>
2097
- `}};Xe.styles=[...Q.styles,...cg],Xe.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],Xe.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],Xe.prototype,"inverted",2),h([u({type:String,reflect:!0})],Xe.prototype,"href",2),h([u({type:String,reflect:!0})],Xe.prototype,"target",2),h([u({type:String,reflect:!0})],Xe.prototype,"rel",2),h([u({type:String,reflect:!0})],Xe.prototype,"download",2),h([u({type:String,reflect:!0})],Xe.prototype,"ping",2),h([u({type:String,reflect:!0})],Xe.prototype,"hreflang",2),h([u({type:String,reflect:!0})],Xe.prototype,"type",2),h([u({type:String,reflect:!0})],Xe.prototype,"referrerpolicy",2);var mi=Xe;var WA=z`
2097
+ `}};Xe.styles=[...Q.styles,...cg],Xe.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],Xe.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],Xe.prototype,"inverted",2),h([u({type:String,reflect:!0})],Xe.prototype,"href",2),h([u({type:String,reflect:!0})],Xe.prototype,"target",2),h([u({type:String,reflect:!0})],Xe.prototype,"rel",2),h([u({type:String,reflect:!0})],Xe.prototype,"download",2),h([u({type:String,reflect:!0})],Xe.prototype,"ping",2),h([u({type:String,reflect:!0})],Xe.prototype,"hreflang",2),h([u({type:String,reflect:!0})],Xe.prototype,"type",2),h([u({type:String,reflect:!0})],Xe.prototype,"referrerpolicy",2);var ui=Xe;var WA=z`
2098
2098
  :host {
2099
2099
  border: unset;
2100
2100
  }
@@ -2148,7 +2148,7 @@
2148
2148
  :host([variant='secondary'][soft-disabled])::part(anchor) {
2149
2149
  border-color: var(--mdc-button-border-color);
2150
2150
  }
2151
- `,hg=[WA,...At(!0)];var aa=class extends Gl(mi){constructor(){super(...arguments);this.size=nr.SIZE}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}renderAnchorContent(){return A`
2151
+ `,hg=[WA,...At(!0)];var aa=class extends Gl(ui){constructor(){super(...arguments);this.size=nr.SIZE}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}renderAnchorContent(){return A`
2152
2152
  ${this.prefixIcon?A`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
2153
2153
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2154
2154
  ${this.postfixIcon?A`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
@@ -2379,7 +2379,7 @@
2379
2379
  :host([disabled])::part(check-icon) {
2380
2380
  color: var(--mds-color-theme-text-primary-disabled);
2381
2381
  }
2382
- `,gg=[QA,...At()];var na=class extends Ot(Lt(Zt(si(Wr)))){constructor(){super();this.checked=!1;this.selectionType=Nd.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let e=this.getActionForKeyEvent(t);e===H.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===H.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===H.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?up.CHECKED:up.DEFAULT;switch(this.selectionType){case kd.CHECK:return A`<mdc-icon
2382
+ `,gg=[QA,...At()];var na=class extends Ot(Lt(Zt(ai(Wr)))){constructor(){super();this.checked=!1;this.selectionType=Nd.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let e=this.getActionForKeyEvent(t);e===H.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===H.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===H.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?up.CHECKED:up.DEFAULT;switch(this.selectionType){case kd.CHECK:return A`<mdc-icon
2383
2383
  part="check check-icon"
2384
2384
  size="${Nd.ICON_SIZE}"
2385
2385
  length-unit="${Nd.ICON_LENGTH_UNIT}"
@@ -2474,7 +2474,7 @@
2474
2474
  --mdc-staticcheckbox-icon-color: GrayText;
2475
2475
  }
2476
2476
  }
2477
- `],bg=JA;var yg=$.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},_e={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ss={TONAL:"tonal",CONTRAST:"contrast"},vp={ABSOLUTE:"absolute",FIXED:"fixed"},tS={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:_e.CLICK,COLOR:ss.TONAL,STRATEGY:vp.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:tS.VIEWPORT,BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},Ki={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Eg=$.constructTagName("statusmessage"),So={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ld={ERROR:"error-legacy-badge-filled",WARNING:"warning-badge-filled",SUCCESS:"check-circle-badge-filled",PRIORITY:"priority-badge-filled"},Md={[So.DEFAULT]:"",[So.ERROR]:Ld.ERROR,[So.WARNING]:Ld.WARNING,[So.SUCCESS]:Ld.SUCCESS,[So.PRIORITY]:Ld.PRIORITY},Nn={SEVERITY:So.DEFAULT,TEXT_TAGNAME:pt.SPAN,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR};var Tg=$.constructTagName("formfieldwrapper"),te=So,Kt={VALIDATION:te.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:vp.ABSOLUTE},Ln={TAGNAME:pt.SPAN,TYPE:at.BODY_MIDSIZE_REGULAR,HEADER_TYPE:at.BODY_MIDSIZE_BOLD};var as=$.constructTagName("checkbox"),Od={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},xg={ERROR:te.ERROR,DEFAULT:te.DEFAULT};var Ag=$.constructTagName("staticcheckbox");var Io=class extends Zt(Q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?A`
2477
+ `],bg=JA;var yg=$.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},_e={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ss={TONAL:"tonal",CONTRAST:"contrast"},vp={ABSOLUTE:"absolute",FIXED:"fixed"},tS={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:_e.CLICK,COLOR:ss.TONAL,STRATEGY:vp.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:tS.VIEWPORT,BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},Wi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Eg=$.constructTagName("statusmessage"),So={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ld={ERROR:"error-legacy-badge-filled",WARNING:"warning-badge-filled",SUCCESS:"check-circle-badge-filled",PRIORITY:"priority-badge-filled"},Md={[So.DEFAULT]:"",[So.ERROR]:Ld.ERROR,[So.WARNING]:Ld.WARNING,[So.SUCCESS]:Ld.SUCCESS,[So.PRIORITY]:Ld.PRIORITY},Nn={SEVERITY:So.DEFAULT,TEXT_TAGNAME:pt.SPAN,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR};var Tg=$.constructTagName("formfieldwrapper"),te=So,Kt={VALIDATION:te.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:vp.ABSOLUTE},Ln={TAGNAME:pt.SPAN,TYPE:at.BODY_MIDSIZE_REGULAR,HEADER_TYPE:at.BODY_MIDSIZE_BOLD};var as=$.constructTagName("checkbox"),Od={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},xg={ERROR:te.ERROR,DEFAULT:te.DEFAULT};var Ag=$.constructTagName("staticcheckbox");var Io=class extends Zt(Q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?A`
2478
2478
  <mdc-icon
2479
2479
  part="checkbox-icon"
2480
2480
  name="${this.indeterminate?Od.INDETERMINATE:Od.CHECKED}"
@@ -2535,7 +2535,7 @@
2535
2535
  :host([disabled])::part(image) {
2536
2536
  opacity: 0.5;
2537
2537
  }
2538
- `,Sg=[iS,...At()];var la=class extends Ot(Lt(Zt(si(Wr)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===H.SPACE){t.preventDefault();return}if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),d=a.indexOf(this);if(e===H.DOWN||H.RIGHT===e){let f=(d+1)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}else if(e===H.UP||H.LEFT===e){let f=(d-1+a.length)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}e===H.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===H.SPACE&&this.toggleChecked()}renderHeader(){return A`<div part="header">
2538
+ `,Sg=[iS,...At()];var la=class extends Ot(Lt(Zt(ai(Wr)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===H.SPACE){t.preventDefault();return}if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),d=a.indexOf(this);if(e===H.DOWN||H.RIGHT===e){let f=(d+1)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}else if(e===H.UP||H.LEFT===e){let f=(d-1+a.length)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}e===H.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===H.SPACE&&this.toggleChecked()}renderHeader(){return A`<div part="header">
2539
2539
  ${this.renderIcon()} ${this.renderTitle()}
2540
2540
  <mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
2541
2541
  </div>`}render(){return A`
@@ -2644,7 +2644,7 @@
2644
2644
  }
2645
2645
  }
2646
2646
  `],Ig=oS;var ns=class extends Zt(Q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return A` <slot></slot>
2647
- <span part="radio-icon" class="radio-icon"></span>`}};ns.styles=[...Q.styles,...Ig],h([u({type:Boolean,reflect:!0})],ns.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],ns.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ns.prototype,"softDisabled",2);var yp=ns;var Cg=$.constructTagName("staticradio");yp.register(Cg);var sS=yp;bp.register(Rd);var aS=bp;var Ar=Math.min,we=Math.max,On=Math.round,Rn=Math.floor,Yr=n=>({x:n,y:n}),nS={left:"right",right:"left",bottom:"top",top:"bottom"},lS={start:"end",end:"start"};function Pd(n,o,t){return we(n,Ar(o,t))}function Co(n,o){return typeof n=="function"?n(o):n}function jr(n){return n.split("-")[0]}function ls(n){return n.split("-")[1]}function Ep(n){return n==="x"?"y":"x"}function Fd(n){return n==="y"?"height":"width"}var dS=new Set(["top","bottom"]);function qr(n){return dS.has(jr(n))?"y":"x"}function $d(n){return Ep(qr(n))}function kg(n,o,t){t===void 0&&(t=!1);let e=ls(n),i=$d(n),a=Fd(i),d=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(d=Mn(d)),[d,Mn(d)]}function Ng(n){let o=Mn(n);return[Dd(n),o,Dd(o)]}function Dd(n){return n.replace(/start|end/g,o=>lS[o])}var _g=["left","right"],wg=["right","left"],cS=["top","bottom"],hS=["bottom","top"];function pS(n,o,t){switch(n){case"top":case"bottom":return t?o?wg:_g:o?_g:wg;case"left":case"right":return o?cS:hS;default:return[]}}function Lg(n,o,t,e){let i=ls(n),a=pS(jr(n),t==="start",e);return i&&(a=a.map(d=>d+"-"+i),o&&(a=a.concat(a.map(Dd)))),a}function Mn(n){return n.replace(/left|right|bottom|top/g,o=>nS[o])}function mS(n){return{top:0,right:0,bottom:0,left:0,...n}}function Vd(n){return typeof n!="number"?mS(n):{top:n,right:n,bottom:n,left:n}}function Wi(n){let{x:o,y:t,width:e,height:i}=n;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Mg(n,o,t){let{reference:e,floating:i}=n,a=qr(o),d=$d(o),f=Fd(d),v=jr(o),S=a==="y",R=e.x+e.width/2-i.width/2,U=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,j;switch(v){case"top":j={x:R,y:e.y-i.height};break;case"bottom":j={x:R,y:e.y+e.height};break;case"right":j={x:e.x+e.width,y:U};break;case"left":j={x:e.x-i.width,y:U};break;default:j={x:e.x,y:e.y}}switch(ls(o)){case"start":j[d]-=J*(t&&S?-1:1);break;case"end":j[d]+=J*(t&&S?-1:1);break}return j}var Og=async(n,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:a=[],platform:d}=t,f=a.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(o)),S=await d.getElementRects({reference:n,floating:o,strategy:i}),{x:R,y:U}=Mg(S,e,v),J=e,j={},Z=0;for(let rt=0;rt<f.length;rt++){let{name:st,fn:ht}=f[rt],{x:bt,y:yt,data:Ct,reset:Rt}=await ht({x:R,y:U,initialPlacement:e,placement:J,strategy:i,middlewareData:j,rects:S,platform:d,elements:{reference:n,floating:o}});R=bt!=null?bt:R,U=yt!=null?yt:U,j={...j,[st]:{...j[st],...Ct}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(S=Rt.rects===!0?await d.getElementRects({reference:n,floating:o,strategy:i}):Rt.rects),{x:R,y:U}=Mg(S,J,v)),rt=-1)}return{x:R,y:U,placement:J,strategy:i,middlewareData:j}};async function zd(n,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:a,rects:d,elements:f,strategy:v}=n,{boundary:S="clippingAncestors",rootBoundary:R="viewport",elementContext:U="floating",altBoundary:J=!1,padding:j=0}=Co(o,n),Z=Vd(j),st=f[J?U==="floating"?"reference":"floating":U],ht=Wi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(st)))==null||t?st:st.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)),boundary:S,rootBoundary:R,strategy:v})),bt=U==="floating"?{x:e,y:i,width:d.floating.width,height:d.floating.height}:d.reference,yt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)),Ct=await(a.isElement==null?void 0:a.isElement(yt))?await(a.getScale==null?void 0:a.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=Wi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:v}):bt);return{top:(ht.top-Rt.top+Z.top)/Ct.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/Ct.y,left:(ht.left-Rt.left+Z.left)/Ct.x,right:(Rt.right-ht.right+Z.right)/Ct.x}}var Rg=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:e,placement:i,rects:a,platform:d,elements:f,middlewareData:v}=o,{element:S,padding:R=0}=Co(n,o)||{};if(S==null)return{};let U=Vd(R),J={x:t,y:e},j=$d(i),Z=Fd(j),rt=await d.getDimensions(S),st=j==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",Ct=a.reference[Z]+a.reference[j]-J[j]-a.floating[Z],Rt=J[j]-a.reference[j],Gt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(S)),Pt=Gt?Gt[yt]:0;(!Pt||!await(d.isElement==null?void 0:d.isElement(Gt)))&&(Pt=f.floating[yt]||a.floating[Z]);let ne=Ct/2-Rt/2,Ge=Pt/2-rt[Z]/2-1,qt=Ar(U[ht],Ge),xe=Ar(U[bt],Ge),Ae=qt,Se=Pt-rt[Z]-xe,Nt=Pt/2-rt[Z]/2+ne,se=Pd(Ae,Nt,Se),Ke=!v.arrow&&ls(i)!=null&&Nt!==se&&a.reference[Z]/2-(Nt<Ae?qt:xe)-rt[Z]/2<0,Je=Ke?Nt<Ae?Nt-Ae:Nt-Se:0;return{[j]:J[j]+Je,data:{[j]:se,centerOffset:Nt-se-Je,...Ke&&{alignmentOffset:Je}},reset:Ke}}});var Dg=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:i,middlewareData:a,rects:d,initialPlacement:f,platform:v,elements:S}=o,{mainAxis:R=!0,crossAxis:U=!0,fallbackPlacements:J,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:rt=!0,...st}=Co(n,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let ht=jr(i),bt=qr(f),yt=jr(f)===f,Ct=await(v.isRTL==null?void 0:v.isRTL(S.floating)),Rt=J||(yt||!rt?[Mn(f)]:Ng(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...Lg(f,rt,Z,Ct));let Pt=[f,...Rt],ne=await zd(o,st),Ge=[],qt=((e=a.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),U){let Nt=kg(i,d,Ct);Ge.push(ne[Nt[0]],ne[Nt[1]])}if(qt=[...qt,{placement:i,overflows:Ge}],!Ge.every(Nt=>Nt<=0)){var xe,Ae;let Nt=(((xe=a.flip)==null?void 0:xe.index)||0)+1,se=Pt[Nt];if(se&&(!(U==="alignment"?bt!==qr(se):!1)||qt.every(tr=>tr.overflows[0]>0&&qr(tr.placement)===bt)))return{data:{index:Nt,overflows:qt},reset:{placement:se}};let Ke=(Ae=qt.filter(Je=>Je.overflows[0]<=0).sort((Je,tr)=>Je.overflows[1]-tr.overflows[1])[0])==null?void 0:Ae.placement;if(!Ke)switch(j){case"bestFit":{var Se;let Je=(Se=qt.filter(tr=>{if(Gt){let _r=qr(tr.placement);return _r===bt||_r==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(_r=>_r>0).reduce((_r,ul)=>_r+ul,0)]).sort((tr,_r)=>tr[1]-_r[1])[0])==null?void 0:Se[0];Je&&(Ke=Je);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function Pg(n){let o=Ar(...n.map(a=>a.left)),t=Ar(...n.map(a=>a.top)),e=we(...n.map(a=>a.right)),i=we(...n.map(a=>a.bottom));return{x:o,y:t,width:e-o,height:i-t}}function uS(n){let o=n.slice().sort((i,a)=>i.y-a.y),t=[],e=null;for(let i=0;i<o.length;i++){let a=o[i];!e||a.y-e.y>e.height/2?t.push([a]):t[t.length-1].push(a),e=a}return t.map(i=>Wi(Pg(i)))}var Fg=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(o){let{placement:t,elements:e,rects:i,platform:a,strategy:d}=o,{padding:f=2,x:v,y:S}=Co(n,o),R=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(e.reference))||[]),U=uS(R),J=Wi(Pg(R)),j=Vd(f);function Z(){if(U.length===2&&U[0].left>U[1].right&&v!=null&&S!=null)return U.find(st=>v>st.left-j.left&&v<st.right+j.right&&S>st.top-j.top&&S<st.bottom+j.bottom)||J;if(U.length>=2){if(qr(t)==="y"){let qt=U[0],xe=U[U.length-1],Ae=jr(t)==="top",Se=qt.top,Nt=xe.bottom,se=Ae?qt.left:xe.left,Ke=Ae?qt.right:xe.right,Je=Ke-se,tr=Nt-Se;return{top:Se,bottom:Nt,left:se,right:Ke,width:Je,height:tr,x:se,y:Se}}let st=jr(t)==="left",ht=we(...U.map(qt=>qt.right)),bt=Ar(...U.map(qt=>qt.left)),yt=U.filter(qt=>st?qt.left===bt:qt.right===ht),Ct=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-Ct;return{top:Ct,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:Ct}}return J}let rt=await a.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:d});return i.reference.x!==rt.reference.x||i.reference.y!==rt.reference.y||i.reference.width!==rt.reference.width||i.reference.height!==rt.reference.height?{reset:{rects:rt}}:{}}}},fS=new Set(["left","top"]);async function vS(n,o){let{placement:t,platform:e,elements:i}=n,a=await(e.isRTL==null?void 0:e.isRTL(i.floating)),d=jr(t),f=ls(t),v=qr(t)==="y",S=fS.has(d)?-1:1,R=a&&v?-1:1,U=Co(o,n),{mainAxis:J,crossAxis:j,alignmentAxis:Z}=typeof U=="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return f&&typeof Z=="number"&&(j=f==="end"?Z*-1:Z),v?{x:j*R,y:J*S}:{x:J*S,y:j*R}}var $g=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:i,y:a,placement:d,middlewareData:f}=o,v=await vS(o,n);return d===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+v.x,y:a+v.y,data:{...v,placement:d}}}}},Vg=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:a=!0,crossAxis:d=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...v}=Co(n,o),S={x:t,y:e},R=await zd(o,v),U=qr(jr(i)),J=Ep(U),j=S[J],Z=S[U];if(a){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=j+R[st],yt=j-R[ht];j=Pd(bt,j,yt)}if(d){let st=U==="y"?"top":"left",ht=U==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=Pd(bt,Z,yt)}let rt=f.fn({...o,[J]:j,[U]:Z});return{...rt,data:{x:rt.x-t,y:rt.y-e,enabled:{[J]:a,[U]:d}}}}}};var zg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:i,rects:a,platform:d,elements:f}=o,{apply:v=()=>{},...S}=Co(n,o),R=await zd(o,S),U=jr(i),J=ls(i),j=qr(i)==="y",{width:Z,height:rt}=a.floating,st,ht;U==="top"||U==="bottom"?(st=U,ht=J===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=U,st=J==="end"?"top":"bottom");let bt=rt-R.top-R.bottom,yt=Z-R.left-R.right,Ct=Ar(rt-R[st],bt),Rt=Ar(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=Ct,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let qt=we(R.left,0),xe=we(R.right,0),Ae=we(R.top,0),Se=we(R.bottom,0);j?ne=Z-2*(qt!==0||xe!==0?qt+xe:we(R.left,R.right)):Pt=rt-2*(Ae!==0||Se!==0?Ae+Se:we(R.top,R.bottom))}await v({...o,availableWidth:ne,availableHeight:Pt});let Ge=await d.getDimensions(f.floating);return Z!==Ge.width||rt!==Ge.height?{reset:{rects:!0}}:{}}}};function Bd(){return typeof window<"u"}function ds(n){return Ug(n)?(n.nodeName||"").toLowerCase():"#document"}function lr(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Xr(n){var o;return(o=(Ug(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Ug(n){return Bd()?n instanceof Node||n instanceof lr(n).Node:!1}function Mr(n){return Bd()?n instanceof Element||n instanceof lr(n).Element:!1}function Zr(n){return Bd()?n instanceof HTMLElement||n instanceof lr(n).HTMLElement:!1}function Bg(n){return!Bd()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof lr(n).ShadowRoot}var gS=new Set(["inline","contents"]);function ca(n){let{overflow:o,overflowX:t,overflowY:e,display:i}=Or(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!gS.has(i)}var bS=new Set(["table","td","th"]);function Hg(n){return bS.has(ds(n))}var yS=[":popover-open",":modal"];function Dn(n){return yS.some(o=>{try{return n.matches(o)}catch{return!1}})}var ES=["transform","translate","scale","rotate","perspective"],TS=["transform","translate","scale","rotate","perspective","filter"],xS=["paint","layout","strict","content"];function Ud(n){let o=Hd(),t=Mr(n)?Or(n):n;return ES.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||TS.some(e=>(t.willChange||"").includes(e))||xS.some(e=>(t.contain||"").includes(e))}function Gg(n){let o=Yi(n);for(;Zr(o)&&!cs(o);){if(Ud(o))return o;if(Dn(o))return null;o=Yi(o)}return null}function Hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var AS=new Set(["html","body","#document"]);function cs(n){return AS.has(ds(n))}function Or(n){return lr(n).getComputedStyle(n)}function Pn(n){return Mr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Yi(n){if(ds(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Bg(n)&&n.host||Xr(n);return Bg(o)?o.host:o}function Kg(n){let o=Yi(n);return cs(o)?n.ownerDocument?n.ownerDocument.body:n.body:Zr(o)&&ca(o)?o:Kg(o)}function da(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Kg(n),a=i===((e=n.ownerDocument)==null?void 0:e.body),d=lr(i);if(a){let f=Gd(d);return o.concat(d,d.visualViewport||[],ca(i)?i:[],f&&t?da(f):[])}return o.concat(i,da(i,[],t))}function Gd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function jg(n){let o=Or(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Zr(n),a=i?n.offsetWidth:t,d=i?n.offsetHeight:e,f=On(t)!==a||On(e)!==d;return f&&(t=a,e=d),{width:t,height:e,$:f}}function xp(n){return Mr(n)?n:n.contextElement}function ha(n){let o=xp(n);if(!Zr(o))return Yr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:a}=jg(o),d=(a?On(t.width):t.width)/e,f=(a?On(t.height):t.height)/i;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}var SS=Yr(0);function qg(n){let o=lr(n);return!Hd()||!o.visualViewport?SS:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function IS(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==lr(n)?!1:o}function hs(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=xp(n),d=Yr(1);o&&(e?Mr(e)&&(d=ha(e)):d=ha(n));let f=IS(a,t,e)?qg(a):Yr(0),v=(i.left+f.x)/d.x,S=(i.top+f.y)/d.y,R=i.width/d.x,U=i.height/d.y;if(a){let J=lr(a),j=e&&Mr(e)?lr(e):e,Z=J,rt=Gd(Z);for(;rt&&e&&j!==Z;){let st=ha(rt),ht=rt.getBoundingClientRect(),bt=Or(rt),yt=ht.left+(rt.clientLeft+parseFloat(bt.paddingLeft))*st.x,Ct=ht.top+(rt.clientTop+parseFloat(bt.paddingTop))*st.y;v*=st.x,S*=st.y,R*=st.x,U*=st.y,v+=yt,S+=Ct,Z=lr(rt),rt=Gd(Z)}}return Wi({width:R,height:U,x:v,y:S})}function Ap(n,o){let t=Pn(n).scrollLeft;return o?o.left+t:hs(Xr(n)).left+t}function Xg(n,o,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:Ap(n,e)),a=e.top+o.scrollTop;return{x:i,y:a}}function CS(n){let{elements:o,rect:t,offsetParent:e,strategy:i}=n,a=i==="fixed",d=Xr(e),f=o?Dn(o.floating):!1;if(e===d||f&&a)return t;let v={scrollLeft:0,scrollTop:0},S=Yr(1),R=Yr(0),U=Zr(e);if((U||!U&&!a)&&((ds(e)!=="body"||ca(d))&&(v=Pn(e)),Zr(e))){let j=hs(e);S=ha(e),R.x=j.x+e.clientLeft,R.y=j.y+e.clientTop}let J=d&&!U&&!a?Xg(d,v,!0):Yr(0);return{width:t.width*S.x,height:t.height*S.y,x:t.x*S.x-v.scrollLeft*S.x+R.x+J.x,y:t.y*S.y-v.scrollTop*S.y+R.y+J.y}}function _S(n){return Array.from(n.getClientRects())}function wS(n){let o=Xr(n),t=Pn(n),e=n.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),a=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ap(n),f=-t.scrollTop;return Or(e).direction==="rtl"&&(d+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:a,x:d,y:f}}function kS(n,o){let t=lr(n),e=Xr(n),i=t.visualViewport,a=e.clientWidth,d=e.clientHeight,f=0,v=0;if(i){a=i.width,d=i.height;let S=Hd();(!S||S&&o==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:a,height:d,x:f,y:v}}var NS=new Set(["absolute","fixed"]);function LS(n,o){let t=hs(n,!0,o==="fixed"),e=t.top+n.clientTop,i=t.left+n.clientLeft,a=Zr(n)?ha(n):Yr(1),d=n.clientWidth*a.x,f=n.clientHeight*a.y,v=i*a.x,S=e*a.y;return{width:d,height:f,x:v,y:S}}function Wg(n,o,t){let e;if(o==="viewport")e=kS(n,t);else if(o==="document")e=wS(Xr(n));else if(Mr(o))e=LS(o,t);else{let i=qg(n);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Wi(e)}function Zg(n,o){let t=Yi(n);return t===o||!Mr(t)||cs(t)?!1:Or(t).position==="fixed"||Zg(t,o)}function MS(n,o){let t=o.get(n);if(t)return t;let e=da(n,[],!1).filter(f=>Mr(f)&&ds(f)!=="body"),i=null,a=Or(n).position==="fixed",d=a?Yi(n):n;for(;Mr(d)&&!cs(d);){let f=Or(d),v=Ud(d);!v&&f.position==="fixed"&&(i=null),(a?!v&&!i:!v&&f.position==="static"&&!!i&&NS.has(i.position)||ca(d)&&!v&&Zg(n,d))?e=e.filter(R=>R!==d):i=f,d=Yi(d)}return o.set(n,e),e}function OS(n){let{element:o,boundary:t,rootBoundary:e,strategy:i}=n,d=[...t==="clippingAncestors"?Dn(o)?[]:MS(o,this._c):[].concat(t),e],f=d[0],v=d.reduce((S,R)=>{let U=Wg(o,R,i);return S.top=we(U.top,S.top),S.right=Ar(U.right,S.right),S.bottom=Ar(U.bottom,S.bottom),S.left=we(U.left,S.left),S},Wg(o,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function RS(n){let{width:o,height:t}=jg(n);return{width:o,height:t}}function DS(n,o,t){let e=Zr(o),i=Xr(o),a=t==="fixed",d=hs(n,!0,a,o),f={scrollLeft:0,scrollTop:0},v=Yr(0);function S(){v.x=Ap(i)}if(e||!e&&!a)if((ds(o)!=="body"||ca(i))&&(f=Pn(o)),e){let j=hs(o,!0,a,o);v.x=j.x+o.clientLeft,v.y=j.y+o.clientTop}else i&&S();a&&!e&&i&&S();let R=i&&!e&&!a?Xg(i,f):Yr(0),U=d.left+f.scrollLeft-v.x-R.x,J=d.top+f.scrollTop-v.y-R.y;return{x:U,y:J,width:d.width,height:d.height}}function Tp(n){return Or(n).position==="static"}function Yg(n,o){if(!Zr(n)||Or(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Xr(n)===t&&(t=t.ownerDocument.body),t}function Qg(n,o){let t=lr(n);if(Dn(n))return t;if(!Zr(n)){let i=Yi(n);for(;i&&!cs(i);){if(Mr(i)&&!Tp(i))return i;i=Yi(i)}return t}let e=Yg(n,o);for(;e&&Hg(e)&&Tp(e);)e=Yg(e,o);return e&&cs(e)&&Tp(e)&&!Ud(e)?t:e||Gg(n)||t}var PS=async function(n){let o=this.getOffsetParent||Qg,t=this.getDimensions,e=await t(n.floating);return{reference:DS(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function FS(n){return Or(n).direction==="rtl"}var $S={convertOffsetParentRelativeRectToViewportRelativeRect:CS,getDocumentElement:Xr,getClippingRect:OS,getOffsetParent:Qg,getElementRects:PS,getClientRects:_S,getDimensions:RS,getScale:ha,isElement:Mr,isRTL:FS};function Jg(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function VS(n,o){let t=null,e,i=Xr(n);function a(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function d(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),a();let S=n.getBoundingClientRect(),{left:R,top:U,width:J,height:j}=S;if(f||o(),!J||!j)return;let Z=Rn(U),rt=Rn(i.clientWidth-(R+J)),st=Rn(i.clientHeight-(U+j)),ht=Rn(R),yt={rootMargin:-Z+"px "+-rt+"px "+-st+"px "+-ht+"px",threshold:we(0,Ar(1,v))||1},Ct=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==v){if(!Ct)return d();Pt?d(!1,Pt):e=setTimeout(()=>{d(!1,1e-7)},1e3)}Pt===1&&!Jg(S,n.getBoundingClientRect())&&d(),Ct=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(n)}return d(!0),a}function tb(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=e,S=xp(n),R=i||a?[...S?da(S):[],...da(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),a&&ht.addEventListener("resize",t)});let U=S&&f?VS(S,t):null,J=-1,j=null;d&&(j=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===S&&j&&(j.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=j)==null||yt.observe(o)})),t()}),S&&!v&&j.observe(S),j.observe(o));let Z,rt=v?hs(n):null;v&&st();function st(){let ht=hs(n);rt&&!Jg(rt,ht)&&t(),rt=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),a&&bt.removeEventListener("resize",t)}),U==null||U(),(ht=j)==null||ht.disconnect(),j=null,v&&cancelAnimationFrame(Z)}}var eb=$g;var rb=Vg,ib=Dg,ob=zg;var sb=Rg,ab=Fg;var nb=(n,o,t)=>{let e=new Map,i={platform:$S,...t},a={...i.platform,_c:e};return Og(n,o,{...i,platform:a})};var Kd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let a=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,a),a}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let a=window.setTimeout((...d)=>{t(...d),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,a),a}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,d])=>d===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var ji=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 zS=z`
2647
+ <span part="radio-icon" class="radio-icon"></span>`}};ns.styles=[...Q.styles,...Ig],h([u({type:Boolean,reflect:!0})],ns.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],ns.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ns.prototype,"softDisabled",2);var yp=ns;var Cg=$.constructTagName("staticradio");yp.register(Cg);var sS=yp;bp.register(Rd);var aS=bp;var Ar=Math.min,we=Math.max,On=Math.round,Rn=Math.floor,Yr=n=>({x:n,y:n}),nS={left:"right",right:"left",bottom:"top",top:"bottom"},lS={start:"end",end:"start"};function Pd(n,o,t){return we(n,Ar(o,t))}function Co(n,o){return typeof n=="function"?n(o):n}function jr(n){return n.split("-")[0]}function ls(n){return n.split("-")[1]}function Ep(n){return n==="x"?"y":"x"}function Fd(n){return n==="y"?"height":"width"}var dS=new Set(["top","bottom"]);function qr(n){return dS.has(jr(n))?"y":"x"}function $d(n){return Ep(qr(n))}function kg(n,o,t){t===void 0&&(t=!1);let e=ls(n),i=$d(n),a=Fd(i),d=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(d=Mn(d)),[d,Mn(d)]}function Ng(n){let o=Mn(n);return[Dd(n),o,Dd(o)]}function Dd(n){return n.replace(/start|end/g,o=>lS[o])}var _g=["left","right"],wg=["right","left"],cS=["top","bottom"],hS=["bottom","top"];function pS(n,o,t){switch(n){case"top":case"bottom":return t?o?wg:_g:o?_g:wg;case"left":case"right":return o?cS:hS;default:return[]}}function Lg(n,o,t,e){let i=ls(n),a=pS(jr(n),t==="start",e);return i&&(a=a.map(d=>d+"-"+i),o&&(a=a.concat(a.map(Dd)))),a}function Mn(n){return n.replace(/left|right|bottom|top/g,o=>nS[o])}function mS(n){return{top:0,right:0,bottom:0,left:0,...n}}function Vd(n){return typeof n!="number"?mS(n):{top:n,right:n,bottom:n,left:n}}function Yi(n){let{x:o,y:t,width:e,height:i}=n;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Mg(n,o,t){let{reference:e,floating:i}=n,a=qr(o),d=$d(o),f=Fd(d),v=jr(o),S=a==="y",R=e.x+e.width/2-i.width/2,U=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,j;switch(v){case"top":j={x:R,y:e.y-i.height};break;case"bottom":j={x:R,y:e.y+e.height};break;case"right":j={x:e.x+e.width,y:U};break;case"left":j={x:e.x-i.width,y:U};break;default:j={x:e.x,y:e.y}}switch(ls(o)){case"start":j[d]-=J*(t&&S?-1:1);break;case"end":j[d]+=J*(t&&S?-1:1);break}return j}var Og=async(n,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:a=[],platform:d}=t,f=a.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(o)),S=await d.getElementRects({reference:n,floating:o,strategy:i}),{x:R,y:U}=Mg(S,e,v),J=e,j={},Z=0;for(let rt=0;rt<f.length;rt++){let{name:st,fn:ht}=f[rt],{x:bt,y:yt,data:Ct,reset:Rt}=await ht({x:R,y:U,initialPlacement:e,placement:J,strategy:i,middlewareData:j,rects:S,platform:d,elements:{reference:n,floating:o}});R=bt!=null?bt:R,U=yt!=null?yt:U,j={...j,[st]:{...j[st],...Ct}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(S=Rt.rects===!0?await d.getElementRects({reference:n,floating:o,strategy:i}):Rt.rects),{x:R,y:U}=Mg(S,J,v)),rt=-1)}return{x:R,y:U,placement:J,strategy:i,middlewareData:j}};async function zd(n,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:a,rects:d,elements:f,strategy:v}=n,{boundary:S="clippingAncestors",rootBoundary:R="viewport",elementContext:U="floating",altBoundary:J=!1,padding:j=0}=Co(o,n),Z=Vd(j),st=f[J?U==="floating"?"reference":"floating":U],ht=Yi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(st)))==null||t?st:st.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)),boundary:S,rootBoundary:R,strategy:v})),bt=U==="floating"?{x:e,y:i,width:d.floating.width,height:d.floating.height}:d.reference,yt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)),Ct=await(a.isElement==null?void 0:a.isElement(yt))?await(a.getScale==null?void 0:a.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=Yi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:v}):bt);return{top:(ht.top-Rt.top+Z.top)/Ct.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/Ct.y,left:(ht.left-Rt.left+Z.left)/Ct.x,right:(Rt.right-ht.right+Z.right)/Ct.x}}var Rg=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:e,placement:i,rects:a,platform:d,elements:f,middlewareData:v}=o,{element:S,padding:R=0}=Co(n,o)||{};if(S==null)return{};let U=Vd(R),J={x:t,y:e},j=$d(i),Z=Fd(j),rt=await d.getDimensions(S),st=j==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",Ct=a.reference[Z]+a.reference[j]-J[j]-a.floating[Z],Rt=J[j]-a.reference[j],Gt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(S)),Pt=Gt?Gt[yt]:0;(!Pt||!await(d.isElement==null?void 0:d.isElement(Gt)))&&(Pt=f.floating[yt]||a.floating[Z]);let ne=Ct/2-Rt/2,Ge=Pt/2-rt[Z]/2-1,qt=Ar(U[ht],Ge),xe=Ar(U[bt],Ge),Ae=qt,Se=Pt-rt[Z]-xe,Nt=Pt/2-rt[Z]/2+ne,se=Pd(Ae,Nt,Se),Ke=!v.arrow&&ls(i)!=null&&Nt!==se&&a.reference[Z]/2-(Nt<Ae?qt:xe)-rt[Z]/2<0,Je=Ke?Nt<Ae?Nt-Ae:Nt-Se:0;return{[j]:J[j]+Je,data:{[j]:se,centerOffset:Nt-se-Je,...Ke&&{alignmentOffset:Je}},reset:Ke}}});var Dg=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:i,middlewareData:a,rects:d,initialPlacement:f,platform:v,elements:S}=o,{mainAxis:R=!0,crossAxis:U=!0,fallbackPlacements:J,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:rt=!0,...st}=Co(n,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let ht=jr(i),bt=qr(f),yt=jr(f)===f,Ct=await(v.isRTL==null?void 0:v.isRTL(S.floating)),Rt=J||(yt||!rt?[Mn(f)]:Ng(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...Lg(f,rt,Z,Ct));let Pt=[f,...Rt],ne=await zd(o,st),Ge=[],qt=((e=a.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),U){let Nt=kg(i,d,Ct);Ge.push(ne[Nt[0]],ne[Nt[1]])}if(qt=[...qt,{placement:i,overflows:Ge}],!Ge.every(Nt=>Nt<=0)){var xe,Ae;let Nt=(((xe=a.flip)==null?void 0:xe.index)||0)+1,se=Pt[Nt];if(se&&(!(U==="alignment"?bt!==qr(se):!1)||qt.every(tr=>tr.overflows[0]>0&&qr(tr.placement)===bt)))return{data:{index:Nt,overflows:qt},reset:{placement:se}};let Ke=(Ae=qt.filter(Je=>Je.overflows[0]<=0).sort((Je,tr)=>Je.overflows[1]-tr.overflows[1])[0])==null?void 0:Ae.placement;if(!Ke)switch(j){case"bestFit":{var Se;let Je=(Se=qt.filter(tr=>{if(Gt){let _r=qr(tr.placement);return _r===bt||_r==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(_r=>_r>0).reduce((_r,ul)=>_r+ul,0)]).sort((tr,_r)=>tr[1]-_r[1])[0])==null?void 0:Se[0];Je&&(Ke=Je);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function Pg(n){let o=Ar(...n.map(a=>a.left)),t=Ar(...n.map(a=>a.top)),e=we(...n.map(a=>a.right)),i=we(...n.map(a=>a.bottom));return{x:o,y:t,width:e-o,height:i-t}}function uS(n){let o=n.slice().sort((i,a)=>i.y-a.y),t=[],e=null;for(let i=0;i<o.length;i++){let a=o[i];!e||a.y-e.y>e.height/2?t.push([a]):t[t.length-1].push(a),e=a}return t.map(i=>Yi(Pg(i)))}var Fg=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(o){let{placement:t,elements:e,rects:i,platform:a,strategy:d}=o,{padding:f=2,x:v,y:S}=Co(n,o),R=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(e.reference))||[]),U=uS(R),J=Yi(Pg(R)),j=Vd(f);function Z(){if(U.length===2&&U[0].left>U[1].right&&v!=null&&S!=null)return U.find(st=>v>st.left-j.left&&v<st.right+j.right&&S>st.top-j.top&&S<st.bottom+j.bottom)||J;if(U.length>=2){if(qr(t)==="y"){let qt=U[0],xe=U[U.length-1],Ae=jr(t)==="top",Se=qt.top,Nt=xe.bottom,se=Ae?qt.left:xe.left,Ke=Ae?qt.right:xe.right,Je=Ke-se,tr=Nt-Se;return{top:Se,bottom:Nt,left:se,right:Ke,width:Je,height:tr,x:se,y:Se}}let st=jr(t)==="left",ht=we(...U.map(qt=>qt.right)),bt=Ar(...U.map(qt=>qt.left)),yt=U.filter(qt=>st?qt.left===bt:qt.right===ht),Ct=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-Ct;return{top:Ct,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:Ct}}return J}let rt=await a.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:d});return i.reference.x!==rt.reference.x||i.reference.y!==rt.reference.y||i.reference.width!==rt.reference.width||i.reference.height!==rt.reference.height?{reset:{rects:rt}}:{}}}},fS=new Set(["left","top"]);async function vS(n,o){let{placement:t,platform:e,elements:i}=n,a=await(e.isRTL==null?void 0:e.isRTL(i.floating)),d=jr(t),f=ls(t),v=qr(t)==="y",S=fS.has(d)?-1:1,R=a&&v?-1:1,U=Co(o,n),{mainAxis:J,crossAxis:j,alignmentAxis:Z}=typeof U=="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return f&&typeof Z=="number"&&(j=f==="end"?Z*-1:Z),v?{x:j*R,y:J*S}:{x:J*S,y:j*R}}var $g=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:i,y:a,placement:d,middlewareData:f}=o,v=await vS(o,n);return d===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+v.x,y:a+v.y,data:{...v,placement:d}}}}},Vg=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:a=!0,crossAxis:d=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...v}=Co(n,o),S={x:t,y:e},R=await zd(o,v),U=qr(jr(i)),J=Ep(U),j=S[J],Z=S[U];if(a){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=j+R[st],yt=j-R[ht];j=Pd(bt,j,yt)}if(d){let st=U==="y"?"top":"left",ht=U==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=Pd(bt,Z,yt)}let rt=f.fn({...o,[J]:j,[U]:Z});return{...rt,data:{x:rt.x-t,y:rt.y-e,enabled:{[J]:a,[U]:d}}}}}};var zg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:i,rects:a,platform:d,elements:f}=o,{apply:v=()=>{},...S}=Co(n,o),R=await zd(o,S),U=jr(i),J=ls(i),j=qr(i)==="y",{width:Z,height:rt}=a.floating,st,ht;U==="top"||U==="bottom"?(st=U,ht=J===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=U,st=J==="end"?"top":"bottom");let bt=rt-R.top-R.bottom,yt=Z-R.left-R.right,Ct=Ar(rt-R[st],bt),Rt=Ar(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=Ct,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let qt=we(R.left,0),xe=we(R.right,0),Ae=we(R.top,0),Se=we(R.bottom,0);j?ne=Z-2*(qt!==0||xe!==0?qt+xe:we(R.left,R.right)):Pt=rt-2*(Ae!==0||Se!==0?Ae+Se:we(R.top,R.bottom))}await v({...o,availableWidth:ne,availableHeight:Pt});let Ge=await d.getDimensions(f.floating);return Z!==Ge.width||rt!==Ge.height?{reset:{rects:!0}}:{}}}};function Bd(){return typeof window<"u"}function ds(n){return Ug(n)?(n.nodeName||"").toLowerCase():"#document"}function lr(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Xr(n){var o;return(o=(Ug(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Ug(n){return Bd()?n instanceof Node||n instanceof lr(n).Node:!1}function Mr(n){return Bd()?n instanceof Element||n instanceof lr(n).Element:!1}function Zr(n){return Bd()?n instanceof HTMLElement||n instanceof lr(n).HTMLElement:!1}function Bg(n){return!Bd()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof lr(n).ShadowRoot}var gS=new Set(["inline","contents"]);function ca(n){let{overflow:o,overflowX:t,overflowY:e,display:i}=Or(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!gS.has(i)}var bS=new Set(["table","td","th"]);function Hg(n){return bS.has(ds(n))}var yS=[":popover-open",":modal"];function Dn(n){return yS.some(o=>{try{return n.matches(o)}catch{return!1}})}var ES=["transform","translate","scale","rotate","perspective"],TS=["transform","translate","scale","rotate","perspective","filter"],xS=["paint","layout","strict","content"];function Ud(n){let o=Hd(),t=Mr(n)?Or(n):n;return ES.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||TS.some(e=>(t.willChange||"").includes(e))||xS.some(e=>(t.contain||"").includes(e))}function Gg(n){let o=ji(n);for(;Zr(o)&&!cs(o);){if(Ud(o))return o;if(Dn(o))return null;o=ji(o)}return null}function Hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var AS=new Set(["html","body","#document"]);function cs(n){return AS.has(ds(n))}function Or(n){return lr(n).getComputedStyle(n)}function Pn(n){return Mr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ji(n){if(ds(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Bg(n)&&n.host||Xr(n);return Bg(o)?o.host:o}function Kg(n){let o=ji(n);return cs(o)?n.ownerDocument?n.ownerDocument.body:n.body:Zr(o)&&ca(o)?o:Kg(o)}function da(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Kg(n),a=i===((e=n.ownerDocument)==null?void 0:e.body),d=lr(i);if(a){let f=Gd(d);return o.concat(d,d.visualViewport||[],ca(i)?i:[],f&&t?da(f):[])}return o.concat(i,da(i,[],t))}function Gd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function jg(n){let o=Or(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Zr(n),a=i?n.offsetWidth:t,d=i?n.offsetHeight:e,f=On(t)!==a||On(e)!==d;return f&&(t=a,e=d),{width:t,height:e,$:f}}function xp(n){return Mr(n)?n:n.contextElement}function ha(n){let o=xp(n);if(!Zr(o))return Yr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:a}=jg(o),d=(a?On(t.width):t.width)/e,f=(a?On(t.height):t.height)/i;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}var SS=Yr(0);function qg(n){let o=lr(n);return!Hd()||!o.visualViewport?SS:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function IS(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==lr(n)?!1:o}function hs(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=xp(n),d=Yr(1);o&&(e?Mr(e)&&(d=ha(e)):d=ha(n));let f=IS(a,t,e)?qg(a):Yr(0),v=(i.left+f.x)/d.x,S=(i.top+f.y)/d.y,R=i.width/d.x,U=i.height/d.y;if(a){let J=lr(a),j=e&&Mr(e)?lr(e):e,Z=J,rt=Gd(Z);for(;rt&&e&&j!==Z;){let st=ha(rt),ht=rt.getBoundingClientRect(),bt=Or(rt),yt=ht.left+(rt.clientLeft+parseFloat(bt.paddingLeft))*st.x,Ct=ht.top+(rt.clientTop+parseFloat(bt.paddingTop))*st.y;v*=st.x,S*=st.y,R*=st.x,U*=st.y,v+=yt,S+=Ct,Z=lr(rt),rt=Gd(Z)}}return Yi({width:R,height:U,x:v,y:S})}function Ap(n,o){let t=Pn(n).scrollLeft;return o?o.left+t:hs(Xr(n)).left+t}function Xg(n,o,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:Ap(n,e)),a=e.top+o.scrollTop;return{x:i,y:a}}function CS(n){let{elements:o,rect:t,offsetParent:e,strategy:i}=n,a=i==="fixed",d=Xr(e),f=o?Dn(o.floating):!1;if(e===d||f&&a)return t;let v={scrollLeft:0,scrollTop:0},S=Yr(1),R=Yr(0),U=Zr(e);if((U||!U&&!a)&&((ds(e)!=="body"||ca(d))&&(v=Pn(e)),Zr(e))){let j=hs(e);S=ha(e),R.x=j.x+e.clientLeft,R.y=j.y+e.clientTop}let J=d&&!U&&!a?Xg(d,v,!0):Yr(0);return{width:t.width*S.x,height:t.height*S.y,x:t.x*S.x-v.scrollLeft*S.x+R.x+J.x,y:t.y*S.y-v.scrollTop*S.y+R.y+J.y}}function _S(n){return Array.from(n.getClientRects())}function wS(n){let o=Xr(n),t=Pn(n),e=n.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),a=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ap(n),f=-t.scrollTop;return Or(e).direction==="rtl"&&(d+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:a,x:d,y:f}}function kS(n,o){let t=lr(n),e=Xr(n),i=t.visualViewport,a=e.clientWidth,d=e.clientHeight,f=0,v=0;if(i){a=i.width,d=i.height;let S=Hd();(!S||S&&o==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:a,height:d,x:f,y:v}}var NS=new Set(["absolute","fixed"]);function LS(n,o){let t=hs(n,!0,o==="fixed"),e=t.top+n.clientTop,i=t.left+n.clientLeft,a=Zr(n)?ha(n):Yr(1),d=n.clientWidth*a.x,f=n.clientHeight*a.y,v=i*a.x,S=e*a.y;return{width:d,height:f,x:v,y:S}}function Wg(n,o,t){let e;if(o==="viewport")e=kS(n,t);else if(o==="document")e=wS(Xr(n));else if(Mr(o))e=LS(o,t);else{let i=qg(n);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Yi(e)}function Zg(n,o){let t=ji(n);return t===o||!Mr(t)||cs(t)?!1:Or(t).position==="fixed"||Zg(t,o)}function MS(n,o){let t=o.get(n);if(t)return t;let e=da(n,[],!1).filter(f=>Mr(f)&&ds(f)!=="body"),i=null,a=Or(n).position==="fixed",d=a?ji(n):n;for(;Mr(d)&&!cs(d);){let f=Or(d),v=Ud(d);!v&&f.position==="fixed"&&(i=null),(a?!v&&!i:!v&&f.position==="static"&&!!i&&NS.has(i.position)||ca(d)&&!v&&Zg(n,d))?e=e.filter(R=>R!==d):i=f,d=ji(d)}return o.set(n,e),e}function OS(n){let{element:o,boundary:t,rootBoundary:e,strategy:i}=n,d=[...t==="clippingAncestors"?Dn(o)?[]:MS(o,this._c):[].concat(t),e],f=d[0],v=d.reduce((S,R)=>{let U=Wg(o,R,i);return S.top=we(U.top,S.top),S.right=Ar(U.right,S.right),S.bottom=Ar(U.bottom,S.bottom),S.left=we(U.left,S.left),S},Wg(o,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function RS(n){let{width:o,height:t}=jg(n);return{width:o,height:t}}function DS(n,o,t){let e=Zr(o),i=Xr(o),a=t==="fixed",d=hs(n,!0,a,o),f={scrollLeft:0,scrollTop:0},v=Yr(0);function S(){v.x=Ap(i)}if(e||!e&&!a)if((ds(o)!=="body"||ca(i))&&(f=Pn(o)),e){let j=hs(o,!0,a,o);v.x=j.x+o.clientLeft,v.y=j.y+o.clientTop}else i&&S();a&&!e&&i&&S();let R=i&&!e&&!a?Xg(i,f):Yr(0),U=d.left+f.scrollLeft-v.x-R.x,J=d.top+f.scrollTop-v.y-R.y;return{x:U,y:J,width:d.width,height:d.height}}function Tp(n){return Or(n).position==="static"}function Yg(n,o){if(!Zr(n)||Or(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Xr(n)===t&&(t=t.ownerDocument.body),t}function Qg(n,o){let t=lr(n);if(Dn(n))return t;if(!Zr(n)){let i=ji(n);for(;i&&!cs(i);){if(Mr(i)&&!Tp(i))return i;i=ji(i)}return t}let e=Yg(n,o);for(;e&&Hg(e)&&Tp(e);)e=Yg(e,o);return e&&cs(e)&&Tp(e)&&!Ud(e)?t:e||Gg(n)||t}var PS=async function(n){let o=this.getOffsetParent||Qg,t=this.getDimensions,e=await t(n.floating);return{reference:DS(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function FS(n){return Or(n).direction==="rtl"}var $S={convertOffsetParentRelativeRectToViewportRelativeRect:CS,getDocumentElement:Xr,getClippingRect:OS,getOffsetParent:Qg,getElementRects:PS,getClientRects:_S,getDimensions:RS,getScale:ha,isElement:Mr,isRTL:FS};function Jg(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function VS(n,o){let t=null,e,i=Xr(n);function a(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function d(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),a();let S=n.getBoundingClientRect(),{left:R,top:U,width:J,height:j}=S;if(f||o(),!J||!j)return;let Z=Rn(U),rt=Rn(i.clientWidth-(R+J)),st=Rn(i.clientHeight-(U+j)),ht=Rn(R),yt={rootMargin:-Z+"px "+-rt+"px "+-st+"px "+-ht+"px",threshold:we(0,Ar(1,v))||1},Ct=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==v){if(!Ct)return d();Pt?d(!1,Pt):e=setTimeout(()=>{d(!1,1e-7)},1e3)}Pt===1&&!Jg(S,n.getBoundingClientRect())&&d(),Ct=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(n)}return d(!0),a}function tb(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=e,S=xp(n),R=i||a?[...S?da(S):[],...da(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),a&&ht.addEventListener("resize",t)});let U=S&&f?VS(S,t):null,J=-1,j=null;d&&(j=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===S&&j&&(j.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=j)==null||yt.observe(o)})),t()}),S&&!v&&j.observe(S),j.observe(o));let Z,rt=v?hs(n):null;v&&st();function st(){let ht=hs(n);rt&&!Jg(rt,ht)&&t(),rt=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),a&&bt.removeEventListener("resize",t)}),U==null||U(),(ht=j)==null||ht.disconnect(),j=null,v&&cancelAnimationFrame(Z)}}var eb=$g;var rb=Vg,ib=Dg,ob=zg;var sb=Rg,ab=Fg;var nb=(n,o,t)=>{let e=new Map,i={platform:$S,...t},a={...i.platform,_c:e};return Og(n,o,{...i,platform:a})};var Kd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let a=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,a),a}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let a=window.setTimeout((...d)=>{t(...d),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,a),a}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,d])=>d===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var qi=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 zS=z`
2648
2648
  :host {
2649
2649
  --mdc-popover-arrow-border-radius: 0.1875rem;
2650
2650
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2768,7 +2768,7 @@
2768
2768
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2769
2769
  border-bottom-left-radius: 100%;
2770
2770
  }
2771
- `,lb=[zS];var Yd=$.constructTagName("popoverportal"),Wd=class extends Q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var jd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),a=e.getBoundingClientRect(),d=0;if(!a)return;let f=this.popover.offsetHeight||0,v=this.popover.offsetWidth||0,S=o.split("-")[0];switch(S==="top"||S==="bottom"?d=Math.max(0,Math.max(i.top-a.bottom,a.top-i.bottom)):(S==="left"||S==="right")&&(d=Math.max(0,Math.max(a.left-i.right,i.left-a.right))),d+=1,S){case"top":t.style.height=`${d}px`,t.style.bottom=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.right=`calc(-1.5 * (${d}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.left=`calc(-0.5 * (${d}px))`;break;case"bottom":default:t.style.height=`${d}px`,t.style.top=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Yd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:a,y:d}=o,f=this.popover.arrowElement.getBoundingClientRect(),v=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let U=v!=null&&v[i]?12-Math.abs(f[i]-v[i]):0;Math.round(U)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let S=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-S}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var kt=class extends Ot(Lt(md(dd(Qs(Q))))){constructor(){super();this.depthManager=new yo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Kd(this);this.parseTrigger=()=>{var a;let i=(((a=this.trigger)==null?void 0:a.split(" "))||[]).filter(d=>Object.values(_e).includes(d)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.hide(),ji.onClickOutside(this),a&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==H.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),ji.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?e===i||!!(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,a,d;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(d=(a=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:a.querySelector(".mdc-focus-ring"))!=null&&d.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ki.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ki.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ki.HOVER),this.timers.clearTimeout(Ki.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ki.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ki.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,a=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;a=Math.sqrt(2*f**2)/2}let d=[];if(this.inline&&d.push(ab()),d.push(eb(typeof this.offset=="number"?this.offset+a:this.offset)),d.push(rb({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||d.push(ib({boundary:e,rootBoundary:i})),this.size){let f=S=>{this.style.setProperty("--mdc-popover-internal-available-height",`${S}px`)},v=this.renderRoot.querySelector('[part="popover-content"]');d.push(ob({boundary:e,rootBoundary:i,apply({availableHeight:S}){v&&(Object.assign(v.style,{maxHeight:`${S}px`,overflowY:"auto"}),f(S))},padding:50}))}this.showArrow&&this.arrowElement&&d.push(sb({element:this.arrowElement,padding:12})),this.floatingUICleanupFunction=tb(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let v=this.adjustPlacementForRtl(this.placement),{x:S,y:R,middlewareData:U,placement:J}=await nb(f,this,{placement:v,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(S,R),U.arrow&&this.arrowElement&&this.utils.updateArrowStyle(U.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new jd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),ji.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),ji.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(ss).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var a,d;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,v,S;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(S=this.setInitialFocus)==null||S.call(this,(v=this.elementIndexToReceiveFocus)!=null?v:0))},0),ji.onShowPopover(this)):(this.depthManager.popHost(),(a=this.floatingUICleanupFunction)==null||a.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(d=this.deactivateFocusTrap)==null||d.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),ji.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ki.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ki.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,A`
2771
+ `,lb=[zS];var Yd=$.constructTagName("popoverportal"),Wd=class extends Q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var jd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),a=e.getBoundingClientRect(),d=0;if(!a)return;let f=this.popover.offsetHeight||0,v=this.popover.offsetWidth||0,S=o.split("-")[0];switch(S==="top"||S==="bottom"?d=Math.max(0,Math.max(i.top-a.bottom,a.top-i.bottom)):(S==="left"||S==="right")&&(d=Math.max(0,Math.max(a.left-i.right,i.left-a.right))),d+=1,S){case"top":t.style.height=`${d}px`,t.style.bottom=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.right=`calc(-1.5 * (${d}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.left=`calc(-0.5 * (${d}px))`;break;case"bottom":default:t.style.height=`${d}px`,t.style.top=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Yd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:a,y:d}=o,f=this.popover.arrowElement.getBoundingClientRect(),v=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let U=v!=null&&v[i]?12-Math.abs(f[i]-v[i]):0;Math.round(U)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let S=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-S}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var kt=class extends Ot(Lt(md(dd(Qs(Q))))){constructor(){super();this.depthManager=new yo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Kd(this);this.parseTrigger=()=>{var a;let i=(((a=this.trigger)==null?void 0:a.split(" "))||[]).filter(d=>Object.values(_e).includes(d)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.hide(),qi.onClickOutside(this),a&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==H.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),qi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?e===i||!!(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,a,d;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(d=(a=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:a.querySelector(".mdc-focus-ring"))!=null&&d.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Wi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Wi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Wi.HOVER),this.timers.clearTimeout(Wi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Wi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Wi.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,a=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;a=Math.sqrt(2*f**2)/2}let d=[];if(this.inline&&d.push(ab()),d.push(eb(typeof this.offset=="number"?this.offset+a:this.offset)),d.push(rb({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||d.push(ib({boundary:e,rootBoundary:i})),this.size){let f=S=>{this.style.setProperty("--mdc-popover-internal-available-height",`${S}px`)},v=this.renderRoot.querySelector('[part="popover-content"]');d.push(ob({boundary:e,rootBoundary:i,apply({availableHeight:S}){v&&(Object.assign(v.style,{maxHeight:`${S}px`,overflowY:"auto"}),f(S))},padding:50}))}this.showArrow&&this.arrowElement&&d.push(sb({element:this.arrowElement,padding:12})),this.floatingUICleanupFunction=tb(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let v=this.adjustPlacementForRtl(this.placement),{x:S,y:R,middlewareData:U,placement:J}=await nb(f,this,{placement:v,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(S,R),U.arrow&&this.arrowElement&&this.utils.updateArrowStyle(U.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new jd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),qi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),qi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(ss).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var a,d;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,v,S;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(S=this.setInitialFocus)==null||S.call(this,(v=this.elementIndexToReceiveFocus)!=null?v:0))},0),qi.onShowPopover(this)):(this.depthManager.popHost(),(a=this.floatingUICleanupFunction)==null||a.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(d=this.deactivateFocusTrap)==null||d.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),qi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Wi.OPEN,t,this.openDelay):(this.timers.clearTimeout(Wi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,A`
2772
2772
  <div part="popover-hover-bridge"></div>
2773
2773
  ${this.closeButton?A` <mdc-button
2774
2774
  part="popover-close"
@@ -2825,7 +2825,7 @@
2825
2825
  display: none;
2826
2826
  visibility: hidden;
2827
2827
  }
2828
- `],pb=HS;var Fn=new Map,ui=class extends Q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ms.ARIA_LIVE;this.delay=ms.DELAY;this.timeout=ms.TIMEOUT;this.debounceTime=ms.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:a}){var d;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,v=document.createElement("div");v.setAttribute("id",f),v.setAttribute("aria-live",a!=null?a:this.dataAriaLive),(d=this.getElementByIdAcrossShadowRoot(this.identity))==null||d.appendChild(v);let S=window.setTimeout(()=>{let R=document.createElement("p");R.textContent=t,v.appendChild(R),this.ariaLiveAnnouncementIds.push(f);let U=window.setTimeout(()=>{v.remove()},i!=null?i:this.timeout);this.timeOutIds.push(U)},e!=null?e:this.delay);this.timeOutIds.push(S)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var a;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((a=i==null?void 0:i.shadowRoot)==null?void 0:a.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2828
+ `],pb=HS;var Fn=new Map,fi=class extends Q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ms.ARIA_LIVE;this.delay=ms.DELAY;this.timeout=ms.TIMEOUT;this.debounceTime=ms.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:a}){var d;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,v=document.createElement("div");v.setAttribute("id",f),v.setAttribute("aria-live",a!=null?a:this.dataAriaLive),(d=this.getElementByIdAcrossShadowRoot(this.identity))==null||d.appendChild(v);let S=window.setTimeout(()=>{let R=document.createElement("p");R.textContent=t,v.appendChild(R),this.ariaLiveAnnouncementIds.push(f);let U=window.setTimeout(()=>{v.remove()},i!=null?i:this.timeout);this.timeOutIds.push(U)},e!=null?e:this.delay);this.timeOutIds.push(S)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var a;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((a=i==null?void 0:i.shadowRoot)==null?void 0:a.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2829
2829
  .mdc-screenreaderannouncer__visually-hidden {
2830
2830
  clip: rect(0 0 0 0);
2831
2831
  clip-path: inset(50%);
@@ -2835,7 +2835,7 @@
2835
2835
  white-space: nowrap;
2836
2836
  width: 1px;
2837
2837
  }
2838
- `,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let i=this.findModalAncestor();i!=null&&i.shadowRoot?i.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let i=t.getRootNode();if(i instanceof ShadowRoot&&i.host)t=i.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=qd(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}acquireIdentityRef(){var t;this.hasIdentityRef||(Fn.set(this.identity,((t=Fn.get(this.identity))!=null?t:0)+1),this.hasIdentityRef=!0)}releaseIdentityRef(){var e;if(!this.hasIdentityRef)return;let t=((e=Fn.get(this.identity))!=null?e:1)-1;if(t<=0){Fn.delete(this.identity);let i=this.getElementByIdAcrossShadowRoot(this.identity);i!=null&&i.classList.contains("mdc-screenreaderannouncer__visually-hidden")&&i.remove()}else Fn.set(this.identity,t);this.hasIdentityRef=!1}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ms.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.acquireIdentityRef(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel(),this.releaseIdentityRef()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=ms.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};ui.styles=[...Q.styles,...pb],h([u({type:String,reflect:!0})],ui.prototype,"announcement",2),h([u({type:String,reflect:!0})],ui.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],ui.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],ui.prototype,"delay",2),h([u({type:Number,reflect:!0})],ui.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],ui.prototype,"debounceTime",2);var Ip=ui;Ip.register(hb);var GS=Ip;Sp.register(db);var KS=Sp;var ve=n=>{class o extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,h([u({reflect:!0,type:String})],o.prototype,"name",2),h([u({reflect:!0,type:String})],o.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),h([Ht("input")],o.prototype,"inputElement",2),o};var WS=z`
2838
+ `,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let i=this.findModalAncestor();i!=null&&i.shadowRoot?i.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let i=t.getRootNode();if(i instanceof ShadowRoot&&i.host)t=i.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=qd(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}acquireIdentityRef(){var t;this.hasIdentityRef||(Fn.set(this.identity,((t=Fn.get(this.identity))!=null?t:0)+1),this.hasIdentityRef=!0)}releaseIdentityRef(){var e;if(!this.hasIdentityRef)return;let t=((e=Fn.get(this.identity))!=null?e:1)-1;if(t<=0){Fn.delete(this.identity);let i=this.getElementByIdAcrossShadowRoot(this.identity);i!=null&&i.classList.contains("mdc-screenreaderannouncer__visually-hidden")&&i.remove()}else Fn.set(this.identity,t);this.hasIdentityRef=!1}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ms.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.acquireIdentityRef(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel(),this.releaseIdentityRef()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=ms.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};fi.styles=[...Q.styles,...pb],h([u({type:String,reflect:!0})],fi.prototype,"announcement",2),h([u({type:String,reflect:!0})],fi.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],fi.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],fi.prototype,"delay",2),h([u({type:Number,reflect:!0})],fi.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],fi.prototype,"debounceTime",2);var Ip=fi;Ip.register(hb);var GS=Ip;Sp.register(db);var KS=Sp;var ve=n=>{class o extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,h([u({reflect:!0,type:String})],o.prototype,"name",2),h([u({reflect:!0,type:String})],o.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),h([Ht("input")],o.prototype,"inputElement",2),o};var WS=z`
2839
2839
  :host {
2840
2840
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
2841
2841
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
@@ -3061,7 +3061,7 @@
3061
3061
  :host([soft-disabled]) {
3062
3062
  pointer-events: none;
3063
3063
  }
3064
- `,...At(!0)],fb=YS;var fi=class extends Ot(Lt(Ve(ve(oe(Xd(ee)))))){constructor(){super(...arguments);this.tabIndex=0;this.checked=!1;this.indeterminate=!1;this.hasLeadingVisual=!1;this.helpTextType=xg.DEFAULT;this.renderLabelAndHelperText=()=>this.label?A`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:G}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){return!this.disabled&&!this.softDisabled&&!this.readonly?(this.checked=!this.checked,this.indeterminate=!1,!0):!1}click(){super.click(),this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);if(this.softDisabled&&e===H.ENTER){t.preventDefault();return}this.getKeyboardNavMode()===re.DEFAULT&&((this.readonly||this.softDisabled)&&e===H.SPACE&&t.preventDefault(),e===H.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===re.SPATIAL&&!(this.readonly||this.softDisabled)&&e===H.ENTER&&(this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleLeadingVisualClick(){this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleLeadingVisualSlotChange(t){let e=t.currentTarget;this.hasLeadingVisual=e.assignedElements({flatten:!0}).length>0}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked")),(t.has("checked")||t.has("disabled")||t.has("indeterminate")||t.has("readonly")||t.has("softDisabled"))&&this.dispatchModifiedEvent("state")}render(){var t;return A`
3064
+ `,...At(!0)],fb=YS;var vi=class extends Ot(Lt(Ve(ve(oe(Xd(ee)))))){constructor(){super(...arguments);this.tabIndex=0;this.checked=!1;this.indeterminate=!1;this.hasLeadingVisual=!1;this.helpTextType=xg.DEFAULT;this.renderLabelAndHelperText=()=>this.label?A`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:G}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){return!this.disabled&&!this.softDisabled&&!this.readonly?(this.checked=!this.checked,this.indeterminate=!1,!0):!1}click(){super.click(),this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);if(this.softDisabled&&e===H.ENTER){t.preventDefault();return}this.getKeyboardNavMode()===re.DEFAULT&&((this.readonly||this.softDisabled)&&e===H.SPACE&&t.preventDefault(),e===H.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===re.SPATIAL&&!(this.readonly||this.softDisabled)&&e===H.ENTER&&(this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleLeadingVisualClick(){this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleLeadingVisualSlotChange(t){let e=t.currentTarget;this.hasLeadingVisual=e.assignedElements({flatten:!0}).length>0}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked")),(t.has("checked")||t.has("disabled")||t.has("indeterminate")||t.has("readonly")||t.has("softDisabled"))&&this.dispatchModifiedEvent("state")}render(){var t;return A`
3065
3065
  <mdc-staticcheckbox
3066
3066
  part="static-checkbox"
3067
3067
  class="mdc-focus-ring"
@@ -3099,7 +3099,7 @@
3099
3099
  @slotchange=${this.handleLeadingVisualSlotChange}
3100
3100
  ></slot>
3101
3101
  ${this.renderLabelAndHelperText()}
3102
- `}};fi.styles=[...ee.styles,...fb],fi.shadowRootOptions={...ee.shadowRootOptions,delegatesFocus:!0},h([u({converter:{fromAttribute:t=>t===null?0:Number(t)}})],fi.prototype,"tabIndex",2),h([u({type:Boolean,reflect:!0})],fi.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],fi.prototype,"indeterminate",2),h([lt()],fi.prototype,"hasLeadingVisual",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],fi.prototype,"helpTextType",2);var Cp=fi;Cp.register(as);var jS=Cp;var vb=$.constructTagName("staticchip"),_p={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Zd={COLOR:_p.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var qS=z`
3102
+ `}};vi.styles=[...ee.styles,...fb],vi.shadowRootOptions={...ee.shadowRootOptions,delegatesFocus:!0},h([u({converter:{fromAttribute:t=>t===null?0:Number(t)}})],vi.prototype,"tabIndex",2),h([u({type:Boolean,reflect:!0})],vi.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],vi.prototype,"indeterminate",2),h([lt()],vi.prototype,"hasLeadingVisual",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],vi.prototype,"helpTextType",2);var Cp=vi;Cp.register(as);var jS=Cp;var vb=$.constructTagName("staticchip"),_p={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Zd={COLOR:_p.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var qS=z`
3103
3103
  :host {
3104
3104
  height: 1.5rem;
3105
3105
  gap: 0.25rem;
@@ -3289,7 +3289,7 @@
3289
3289
  ${this.label?A`<mdc-text part="label" type="${ma.TEXT_TYPE}" tagname="${ma.TAG_NAME}"
3290
3290
  >${this.label}</mdc-text
3291
3291
  >`:G}
3292
- `}};ua.styles=[...$n.styles,...bb],h([u({type:String,reflect:!0})],ua.prototype,"color",2),h([u({type:String})],ua.prototype,"label",2);var fa=ua;fa.register(Qd);var ZS=fa;var yb=$.constructTagName("coachmark"),us={COLOR:ss.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var fs=class extends dr{constructor(){super(...arguments);this.trigger=us.TRIGGER;this.showArrow=us.ARROW;this.closeButton=us.CLOSE_BUTTON;this.disableAriaExpanded=us.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=us.COLOR,this.showArrow=us.ARROW}};h([u({type:String,reflect:!0})],fs.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],fs.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],fs.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],fs.prototype,"disableAriaExpanded",2);var wp=fs;wp.register(yb);var QS=wp;var Jd=$.constructTagName("controltypeprovider"),tc={CONTROL_TYPE:"uncontrolled"},ec=["controlled","uncontrolled"];var JS=Jd,kp=JS;var rc=class extends pe{constructor(){super({context:kp});this.innerControlType=tc.CONTROL_TYPE}static get Context(){return kp}set controlType(t){ec.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],rc.prototype,"controlType",1);var Np=rc;Np.register(Jd);var Lp=Np;var Qr=Bi(class extends ci{constructor(n){var o;if(super(n),n.type!==xr.ATTRIBUTE||n.name!=="class"||((o=n.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var e,i;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in o)o[a]&&!((e=this.nt)!=null&&e.has(a))&&this.st.add(a);return this.render(o)}let t=n.element.classList;for(let a of this.st)a in o||(t.remove(a),this.st.delete(a));for(let a in o){let d=!!o[a];d===this.st.has(a)||(i=this.nt)!=null&&i.has(a)||(d?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return $e}});function Sr(n){let o=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),e=String(n.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function Vt(n){if(!n||!/^\d{4}-\d{2}-\d{2}$/.test(n))return null;let o=n.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),a=new Date(t,e-1,i);return a.getFullYear()!==t||a.getMonth()!==e-1||a.getDate()!==i?null:a}function vi(n,o,t=1){return new Date(n,o-1,t)}function vs(){let n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function Ir(n,o){let t=new Date(n);return t.setDate(t.getDate()+o),t}function oc(n,o){let t=n.getMonth()+o,e=new Date(n.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Mp(n,o){let t=n.getFullYear()+o,e=new Date(t,n.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function sc(n,o){return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function gi(n,o){return n.getTime()<o.getTime()}function wo(n,o){return n.getTime()>o.getTime()}function ac(n,o){return n.getTime()<=o.getTime()}function Eb(n){return new Date(n.getFullYear(),n.getMonth(),1)}function Op(n){return new Date(n.getFullYear(),n.getMonth()+1,0)}function nc(n,o){return new Date(n,o,0).getDate()}function Tb(n){let o=n.getDay();return o===0?7:o}function Vn(n,o=1){let t=n.getDay(),a=((t===0?7:t)-(o===7?7:o)+7)%7;return Ir(n,-a)}function xb(n,o="narrow"){let t=new Intl.DateTimeFormat(n,{weekday:o}),e=new Date(2026,0,5),i=[];for(let a=0;a<7;a+=1)i.push(t.format(Ir(e,a)));return i}function gs(n){var i,a;try{let d=new Intl.Locale(n),f=(a=d.weekInfo)!=null?a:(i=d.getWeekInfo)==null?void 0:i.call(d);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=n.split("-")[0].toLowerCase(),e=n.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function Ab(n,o,t){let e=vi(n,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Sb(n,o){let t=Vt(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function ic(n,o){let t=Vt(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function Ib(n,o,t){let e=Vt(n),i=Vt(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${ic(n,t)} \u2013 ${ic(o,t)}`}}function lc(n){let t=new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let a of t)a.type==="month"&&!e.includes("month")&&e.push("month"),a.type==="day"&&!e.includes("day")&&e.push("day"),a.type==="year"&&!e.includes("year")&&e.push("year"),a.type==="literal"&&a.value.trim()&&(i=a.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var Cb=$.constructTagName("calendar"),jt={SINGLE:"single",WEEK:"week",RANGE:"range"},Rp={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},_b=6,Dp=7,Pp={SELECTION_MODE:jt.SINGLE,LOCALE:"en-US"};var t0=z`
3292
+ `}};ua.styles=[...$n.styles,...bb],h([u({type:String,reflect:!0})],ua.prototype,"color",2),h([u({type:String})],ua.prototype,"label",2);var fa=ua;fa.register(Qd);var ZS=fa;var yb=$.constructTagName("coachmark"),us={COLOR:ss.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var fs=class extends dr{constructor(){super(...arguments);this.trigger=us.TRIGGER;this.showArrow=us.ARROW;this.closeButton=us.CLOSE_BUTTON;this.disableAriaExpanded=us.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=us.COLOR,this.showArrow=us.ARROW}};h([u({type:String,reflect:!0})],fs.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],fs.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],fs.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],fs.prototype,"disableAriaExpanded",2);var wp=fs;wp.register(yb);var QS=wp;var Jd=$.constructTagName("controltypeprovider"),tc={CONTROL_TYPE:"uncontrolled"},ec=["controlled","uncontrolled"];var JS=Jd,kp=JS;var rc=class extends pe{constructor(){super({context:kp});this.innerControlType=tc.CONTROL_TYPE}static get Context(){return kp}set controlType(t){ec.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],rc.prototype,"controlType",1);var Np=rc;Np.register(Jd);var Lp=Np;var Qr=Ui(class extends hi{constructor(n){var o;if(super(n),n.type!==xr.ATTRIBUTE||n.name!=="class"||((o=n.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var e,i;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in o)o[a]&&!((e=this.nt)!=null&&e.has(a))&&this.st.add(a);return this.render(o)}let t=n.element.classList;for(let a of this.st)a in o||(t.remove(a),this.st.delete(a));for(let a in o){let d=!!o[a];d===this.st.has(a)||(i=this.nt)!=null&&i.has(a)||(d?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return $e}});function Sr(n){let o=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),e=String(n.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function Vt(n){if(!n||!/^\d{4}-\d{2}-\d{2}$/.test(n))return null;let o=n.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),a=new Date(t,e-1,i);return a.getFullYear()!==t||a.getMonth()!==e-1||a.getDate()!==i?null:a}function gi(n,o,t=1){return new Date(n,o-1,t)}function vs(){let n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function Ir(n,o){let t=new Date(n);return t.setDate(t.getDate()+o),t}function oc(n,o){let t=n.getMonth()+o,e=new Date(n.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Mp(n,o){let t=n.getFullYear()+o,e=new Date(t,n.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function sc(n,o){return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function bi(n,o){return n.getTime()<o.getTime()}function wo(n,o){return n.getTime()>o.getTime()}function ac(n,o){return n.getTime()<=o.getTime()}function Eb(n){return new Date(n.getFullYear(),n.getMonth(),1)}function Op(n){return new Date(n.getFullYear(),n.getMonth()+1,0)}function nc(n,o){return new Date(n,o,0).getDate()}function Tb(n){let o=n.getDay();return o===0?7:o}function Vn(n,o=1){let t=n.getDay(),a=((t===0?7:t)-(o===7?7:o)+7)%7;return Ir(n,-a)}function xb(n,o="narrow"){let t=new Intl.DateTimeFormat(n,{weekday:o}),e=new Date(2026,0,5),i=[];for(let a=0;a<7;a+=1)i.push(t.format(Ir(e,a)));return i}function gs(n){var i,a;try{let d=new Intl.Locale(n),f=(a=d.weekInfo)!=null?a:(i=d.getWeekInfo)==null?void 0:i.call(d);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=n.split("-")[0].toLowerCase(),e=n.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function Ab(n,o,t){let e=gi(n,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Sb(n,o){let t=Vt(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function ic(n,o){let t=Vt(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function Ib(n,o,t){let e=Vt(n),i=Vt(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${ic(n,t)} \u2013 ${ic(o,t)}`}}function lc(n){let t=new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let a of t)a.type==="month"&&!e.includes("month")&&e.push("month"),a.type==="day"&&!e.includes("day")&&e.push("day"),a.type==="year"&&!e.includes("year")&&e.push("year"),a.type==="literal"&&a.value.trim()&&(i=a.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var Cb=$.constructTagName("calendar"),jt={SINGLE:"single",WEEK:"week",RANGE:"range"},Rp={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},_b=6,Dp=7,Pp={SELECTION_MODE:jt.SINGLE,LOCALE:"en-US"};var t0=z`
3293
3293
  :host {
3294
3294
  --mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
3295
3295
  --mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3493,7 +3493,7 @@
3493
3493
  .calendar-today-button mdc-button {
3494
3494
  width: auto;
3495
3495
  }
3496
- `,wb=[Ur,t0];function kb(n){let o=xb(n,"narrow"),t=gs(n),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Nb(n,o,t,e,i,a,d,f){let v=vi(n,o,1),S=vs(),R=gs(t),U=Tb(v),J;R===7?J=U===7?0:U:(J=U-R,J<0&&(J+=7));let j=Ir(v,-J),Z=d?Vt(d):void 0,rt=f?Vt(f):void 0,st=i?Vt(i):void 0,ht=a?Vt(a):void 0,bt=new Set(e),yt=[];for(let Ct=0;Ct<_b;Ct+=1){let Rt=[];for(let Gt=0;Gt<Dp;Gt+=1){let Pt=Ir(j,Ct*Dp+Gt),ne=Sr(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===n,qt=sc(Pt,S),xe=bt.has(ne),Ae=!1;Z&&gi(Pt,Z)&&(Ae=!0),rt&&wo(Pt,rt)&&(Ae=!0);let Se=!1,Nt=!1,se=!1;st&&ht&&(Nt=sc(Pt,st),se=sc(Pt,ht),Se=ac(st,Pt)&&ac(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:qt,isSelected:xe,isInRange:Se,isRangeStart:Nt,isRangeEnd:se,isDisabled:Ae})}yt.push({days:Rt})}return yt}function dc(n,o){let t=Vt(n);if(!t)return{start:"",end:""};let e=Vn(t,gs(o)),i=Ir(e,6);return{start:Sr(e),end:Sr(i)}}function Fp(n,o,t){return Ab(n,o,t)}function Lb(n,o){let t=Vt(n),e=Vt(o);if(!t||!e)return[];let i=[],a=t;for(;ac(a,e);)i.push(Sr(a)),a=Ir(a,1);return i}function Mb(n,o){return ic(n,o)}function zn(n,o,t){return Ib(n,o,t)}var ce=class extends Ot(Lt(Q)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=Pp.SELECTION_MODE;this.locale=Pp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start";this.hoveredDate=""}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start",this.hoveredDate=""),t.has("value")&&this.value){let e=Vt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let d=Vt(this.value);if(d){this.displayMonth=d.getMonth()+1,this.displayYear=d.getFullYear(),this.focusedDate=this.value;return}}let t=vs(),e=this.min?Vt(this.min):void 0,i=this.max?Vt(this.max):void 0,a=t;e&&gi(t,e)?a=e:i&&wo(t,i)&&(a=i),this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear(),this.focusedDate=Sr(a)}cancelRangeSelection(t,e){this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||(this.value=t,this.endValue=e,this.rangeSelectionPhase="start",this.hoveredDate="",this.gridHasFocus=!1,this.initializeDisplay())}get calendarGrid(){let t=this.getSelectedDates(),{start:e,end:i}=this.getDisplayedRange();return Nb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===jt.WEEK||this.selectionMode===jt.RANGE)&&this.value&&this.endValue?Lb(this.value,this.endValue):[this.value]:[]}get previewEndDate(){return this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||!this.value?"":this.hoveredDate&&!this.isDateDisabled(this.hoveredDate)?this.hoveredDate:this.gridHasFocus&&this.focusedDate&&!this.isDateDisabled(this.focusedDate)?this.focusedDate:""}get isPreviewingRange(){return!!this.previewEndDate}getDisplayedRange(){if(this.selectionMode!==jt.WEEK&&this.selectionMode!==jt.RANGE)return{};let t=this.previewEndDate;if(this.selectionMode===jt.RANGE&&this.value&&t){let e=Vt(this.value),i=Vt(t);return e&&i&&gi(i,e)?{start:t,end:this.value}:{start:this.value,end:t}}return{start:this.value||void 0,end:this.endValue||void 0}}canNavigatePrev(){if(!this.min)return!0;let t=vi(this.displayYear,this.displayMonth,1),e=Vt(this.min);return e?wo(t,Eb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=Op(vi(this.displayYear,this.displayMonth,1)),e=Vt(this.max);return e?gi(t,Op(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=oc(vi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Sr(vi(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}handleDayPointerEnter(t){if(this.rangeSelectionPhase!=="end"||this.selectionMode!==jt.RANGE||t.isDisabled){this.hoveredDate="";return}this.hoveredDate=t.date}selectDate(t){switch(this.selectionMode){case jt.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case jt.WEEK:{let{start:e,end:i}=dc(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case jt.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t,this.hoveredDate="";else{let e=Vt(this.value),i=Vt(t);e&&i&&gi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.hoveredDate="",this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Vt(this.focusedDate):vs();if(!e)return;let i=this.getActionForKeyEvent(t),a;switch(i){case H.LEFT:t.preventDefault(),a=Ir(e,-1);break;case H.RIGHT:t.preventDefault(),a=Ir(e,1);break;case H.UP:t.preventDefault(),a=Ir(e,-7);break;case H.DOWN:t.preventDefault(),a=Ir(e,7);break;case H.HOME:{t.preventDefault();let d=gs(this.locale);a=Vn(e,d);break}case H.END:{t.preventDefault();let d=gs(this.locale);a=Ir(Vn(e,d),6);break}case H.ENTER:case H.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Tt.PAGE_UP){t.preventDefault(),a=t.shiftKey?Mp(e,-1):oc(e,-1);break}if(t.key===Tt.PAGE_DOWN){t.preventDefault(),a=t.shiftKey?Mp(e,1):oc(e,1);break}return}if(this.keyDownEventHandled(),a){let d=Sr(a);if(this.isDateDisabled(d))return;this.hoveredDate="",this.focusedDate=d,(a.getMonth()+1!==this.displayMonth||a.getFullYear()!==this.displayYear)&&(this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear()),this.updateComplete.then(()=>{var v;let f=(v=this.shadowRoot)==null?void 0:v.querySelector(`[data-date="${d}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===jt.WEEK&&this.value&&this.endValue?`Calendar, ${zn(this.value,this.endValue,this.locale)}`:`Calendar, ${Fp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=Fp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return A`
3496
+ `,wb=[Ur,t0];function kb(n){let o=xb(n,"narrow"),t=gs(n),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Nb(n,o,t,e,i,a,d,f){let v=gi(n,o,1),S=vs(),R=gs(t),U=Tb(v),J;R===7?J=U===7?0:U:(J=U-R,J<0&&(J+=7));let j=Ir(v,-J),Z=d?Vt(d):void 0,rt=f?Vt(f):void 0,st=i?Vt(i):void 0,ht=a?Vt(a):void 0,bt=new Set(e),yt=[];for(let Ct=0;Ct<_b;Ct+=1){let Rt=[];for(let Gt=0;Gt<Dp;Gt+=1){let Pt=Ir(j,Ct*Dp+Gt),ne=Sr(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===n,qt=sc(Pt,S),xe=bt.has(ne),Ae=!1;Z&&bi(Pt,Z)&&(Ae=!0),rt&&wo(Pt,rt)&&(Ae=!0);let Se=!1,Nt=!1,se=!1;st&&ht&&(Nt=sc(Pt,st),se=sc(Pt,ht),Se=ac(st,Pt)&&ac(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:qt,isSelected:xe,isInRange:Se,isRangeStart:Nt,isRangeEnd:se,isDisabled:Ae})}yt.push({days:Rt})}return yt}function dc(n,o){let t=Vt(n);if(!t)return{start:"",end:""};let e=Vn(t,gs(o)),i=Ir(e,6);return{start:Sr(e),end:Sr(i)}}function Fp(n,o,t){return Ab(n,o,t)}function Lb(n,o){let t=Vt(n),e=Vt(o);if(!t||!e)return[];let i=[],a=t;for(;ac(a,e);)i.push(Sr(a)),a=Ir(a,1);return i}function Mb(n,o){return ic(n,o)}function zn(n,o,t){return Ib(n,o,t)}var ce=class extends Ot(Lt(Q)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=Pp.SELECTION_MODE;this.locale=Pp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start";this.hoveredDate=""}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start",this.hoveredDate=""),t.has("value")&&this.value){let e=Vt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let d=Vt(this.value);if(d){this.displayMonth=d.getMonth()+1,this.displayYear=d.getFullYear(),this.focusedDate=this.value;return}}let t=vs(),e=this.min?Vt(this.min):void 0,i=this.max?Vt(this.max):void 0,a=t;e&&bi(t,e)?a=e:i&&wo(t,i)&&(a=i),this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear(),this.focusedDate=Sr(a)}cancelRangeSelection(t,e){this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||(this.value=t,this.endValue=e,this.rangeSelectionPhase="start",this.hoveredDate="",this.gridHasFocus=!1,this.initializeDisplay())}get calendarGrid(){let t=this.getSelectedDates(),{start:e,end:i}=this.getDisplayedRange();return Nb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===jt.WEEK||this.selectionMode===jt.RANGE)&&this.value&&this.endValue?Lb(this.value,this.endValue):[this.value]:[]}get previewEndDate(){return this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||!this.value?"":this.hoveredDate&&!this.isDateDisabled(this.hoveredDate)?this.hoveredDate:this.gridHasFocus&&this.focusedDate&&!this.isDateDisabled(this.focusedDate)?this.focusedDate:""}get isPreviewingRange(){return!!this.previewEndDate}getDisplayedRange(){if(this.selectionMode!==jt.WEEK&&this.selectionMode!==jt.RANGE)return{};let t=this.previewEndDate;if(this.selectionMode===jt.RANGE&&this.value&&t){let e=Vt(this.value),i=Vt(t);return e&&i&&bi(i,e)?{start:t,end:this.value}:{start:this.value,end:t}}return{start:this.value||void 0,end:this.endValue||void 0}}canNavigatePrev(){if(!this.min)return!0;let t=gi(this.displayYear,this.displayMonth,1),e=Vt(this.min);return e?wo(t,Eb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=Op(gi(this.displayYear,this.displayMonth,1)),e=Vt(this.max);return e?bi(t,Op(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=oc(gi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Sr(gi(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}handleDayPointerEnter(t){if(this.rangeSelectionPhase!=="end"||this.selectionMode!==jt.RANGE||t.isDisabled){this.hoveredDate="";return}this.hoveredDate=t.date}selectDate(t){switch(this.selectionMode){case jt.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case jt.WEEK:{let{start:e,end:i}=dc(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case jt.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t,this.hoveredDate="";else{let e=Vt(this.value),i=Vt(t);e&&i&&bi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.hoveredDate="",this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Vt(this.focusedDate):vs();if(!e)return;let i=this.getActionForKeyEvent(t),a;switch(i){case H.LEFT:t.preventDefault(),a=Ir(e,-1);break;case H.RIGHT:t.preventDefault(),a=Ir(e,1);break;case H.UP:t.preventDefault(),a=Ir(e,-7);break;case H.DOWN:t.preventDefault(),a=Ir(e,7);break;case H.HOME:{t.preventDefault();let d=gs(this.locale);a=Vn(e,d);break}case H.END:{t.preventDefault();let d=gs(this.locale);a=Ir(Vn(e,d),6);break}case H.ENTER:case H.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Tt.PAGE_UP){t.preventDefault(),a=t.shiftKey?Mp(e,-1):oc(e,-1);break}if(t.key===Tt.PAGE_DOWN){t.preventDefault(),a=t.shiftKey?Mp(e,1):oc(e,1);break}return}if(this.keyDownEventHandled(),a){let d=Sr(a);if(this.isDateDisabled(d))return;this.hoveredDate="",this.focusedDate=d,(a.getMonth()+1!==this.displayMonth||a.getFullYear()!==this.displayYear)&&(this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear()),this.updateComplete.then(()=>{var v;let f=(v=this.shadowRoot)==null?void 0:v.querySelector(`[data-date="${d}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===jt.WEEK&&this.value&&this.endValue?`Calendar, ${zn(this.value,this.endValue,this.locale)}`:`Calendar, ${Fp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=Fp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return A`
3497
3497
  <div class="calendar-header">
3498
3498
  <mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
3499
3499
  <div class="calendar-header-nav">
@@ -3546,7 +3546,7 @@
3546
3546
  </div>
3547
3547
  ${t.map(i=>A` <div class="calendar-row" role="row">${i.days.map(a=>this.renderDay(a))}</div> `)}
3548
3548
  </div>
3549
- `}isDateDisabled(t){let e=Vt(t);if(!e)return!0;let i=this.min?Vt(this.min):void 0,a=this.max?Vt(this.max):void 0;return!!(i&&gi(e,i)||a&&wo(e,a))}isTodayDisabled(){return this.isDateDisabled(Sr(vs()))}handleTodayClick(){let t=vs(),e=Sr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return G;let t=this.isTodayDisabled();return A`
3549
+ `}isDateDisabled(t){let e=Vt(t);if(!e)return!0;let i=this.min?Vt(this.min):void 0,a=this.max?Vt(this.max):void 0;return!!(i&&bi(e,i)||a&&wo(e,a))}isTodayDisabled(){return this.isDateDisabled(Sr(vs()))}handleTodayClick(){let t=vs(),e=Sr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return G;let t=this.isTodayDisabled();return A`
3550
3550
  <div class="calendar-today-button">
3551
3551
  <mdc-button
3552
3552
  variant="${Ft.TERTIARY}"
@@ -3735,7 +3735,7 @@
3735
3735
  --mdc-datepicker-text-color: var(--mds-color-theme-text-primary-disabled);
3736
3736
  color: var(--mds-color-theme-text-primary-disabled);
3737
3737
  }
3738
- `,Rb=[i0,...At(!0)];function Hn(n){return lc(n).order}function Db(n){return lc(n).separator}function Pb(n){if(!n)return null;let o=Vt(n);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function Fb(n,o,t){let e=parseInt(n,10),i=parseInt(o,10),a=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(a)||e<1||e>12||i<1||i>31||a<1)return"";let d=nc(a,e);if(i>d)return"";let f=vi(a,e,i);return Sr(f)}function $b(n,o=!1){let{order:t,separator:e}=lc(n),i={month:"mm",day:"dd",year:"yyyy"},a=t.map(d=>i[d]).join(` ${e} `);return o?`${a} - ${a}`:a}function Vb(n,o,t){switch(n){case"month":return 12;case"day":return o&&t?nc(t,o):o?nc(2e3,o):31;case"year":return 9999;default:return 0}}function zb(n){switch(n){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var zt=class extends ve(oe(ee)){constructor(){super(...arguments);this.variant=cc.VARIANT;this.value="";this.selectionMode=jt.SINGLE;this.locale=cc.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=cc.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.closePopover(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits="",this.parseValueToInternal()),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=Pb(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return Fb(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=Vt(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=Vt(this.max))!=null?t:void 0}clampValueToRange(t){var d,f;let e=Vt(t);if(!e)return t;let i=this.getParsedMin(),a=this.getParsedMax();return i&&gi(e,i)?(d=this.min)!=null?d:t:a&&wo(e,a)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,a=zb(t),d=Vb(t,e,i),f=a,v=d,S=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(S&&(f=Math.max(f,S.getFullYear())),R&&(v=Math.min(v,R.getFullYear()))):t==="month"&&i?(S&&i===S.getFullYear()&&(f=Math.max(f,S.getMonth()+1)),R&&i===R.getFullYear()&&(v=Math.min(v,R.getMonth()+1))):t==="day"&&e&&i&&(S&&i===S.getFullYear()&&e===S.getMonth()+1&&(f=Math.max(f,S.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(v=Math.min(v,R.getDate()))),f>v?{min:a,max:d,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:v,isMinConstrained:f!==a,isMaxConstrained:v!==d}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){if(this.disabled||this.softDisabled||this.readonly)return;let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){if(!(this.disabled||this.softDisabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.flushPendingInput(),this.displayPopover=!0}}handleSelectTriggerClick(){if(!(this.disabled||this.softDisabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.displayPopover=!0}}handleSelectKeydown(t){this.disabled||this.softDisabled||this.readonly||(t.key===Tt.ENTER||t.key===Tt.SPACE||t.key===Tt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}closePopover(t=!1){var e;this.effectiveSelectionMode===jt.RANGE&&((e=this.calendar)==null||e.cancelRangeSelection(this.value,this.endValue)),this.displayPopover=!1,t&&this.focusBackToTrigger()}handleDateSelected(t){if(this.disabled||this.softDisabled||this.readonly)return;let{detail:e}=t,i=this.effectiveSelectionMode;i===jt.WEEK||i===jt.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let a=i===jt.RANGE&&this.value&&this.endValue;(i!==jt.RANGE||a)&&this.closePopover(!0)}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,a=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=a;break;case"day":this.internalDay=a;break;case"year":this.internalYear=a;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.disabled||this.softDisabled||this.readonly){(t.key===Tt.ARROW_UP||t.key===Tt.ARROW_DOWN)&&t.preventDefault();return}let i=this.getFieldRange(e),a=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Tt.ARROW_UP:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!0);this.setFieldValue(e,d),this.commitValue();break}case Tt.ARROW_DOWN:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!1);this.setFieldValue(e,d),this.commitValue();break}case Tt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Tt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Tt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let d=e==="year"?4:2;if(this.pendingDigits.length>=d){let f=parseInt(this.pendingDigits,10);f>a&&(f=a),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),v=Math.floor(a/10);if(f>v){let S=f;S>a&&(S=a),S<i&&(S=i),this.setFieldValue(e,S),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let S=f;S<i&&(S=i),this.setFieldValue(e,S),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Hn(this.locale),i=e.indexOf(t);if(i<e.length-1){let a=e[i+1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Hn(this.locale),i=e.indexOf(t);if(i>0){let a=e[i-1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Hn(this.locale),a=this.getSpinbuttonInput(i[0]);a==null||a.focus(),a==null||a.select()}}handleBaseKeydown(t){t.key===Tt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===Bn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Un);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===jt.WEEK?jt.WEEK:this.variant===Bn.DEFAULT?jt.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===jt.WEEK){let{start:t,end:e}=dc(this.value,this.locale);return zn(t,e,this.locale)}return this.effectiveSelectionMode===jt.RANGE&&this.endValue?zn(this.value,this.endValue,this.locale):Mb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),a={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},d={month:"mm",day:"dd",year:"yyyy"};return A`
3738
+ `,Rb=[i0,...At(!0)];function Hn(n){return lc(n).order}function Db(n){return lc(n).separator}function Pb(n){if(!n)return null;let o=Vt(n);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function Fb(n,o,t){let e=parseInt(n,10),i=parseInt(o,10),a=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(a)||e<1||e>12||i<1||i>31||a<1)return"";let d=nc(a,e);if(i>d)return"";let f=gi(a,e,i);return Sr(f)}function $b(n,o=!1){let{order:t,separator:e}=lc(n),i={month:"mm",day:"dd",year:"yyyy"},a=t.map(d=>i[d]).join(` ${e} `);return o?`${a} - ${a}`:a}function Vb(n,o,t){switch(n){case"month":return 12;case"day":return o&&t?nc(t,o):o?nc(2e3,o):31;case"year":return 9999;default:return 0}}function zb(n){switch(n){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var zt=class extends ve(oe(ee)){constructor(){super(...arguments);this.variant=cc.VARIANT;this.value="";this.selectionMode=jt.SINGLE;this.locale=cc.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=cc.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.closePopover(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits="",this.parseValueToInternal()),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=Pb(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return Fb(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=Vt(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=Vt(this.max))!=null?t:void 0}clampValueToRange(t){var d,f;let e=Vt(t);if(!e)return t;let i=this.getParsedMin(),a=this.getParsedMax();return i&&bi(e,i)?(d=this.min)!=null?d:t:a&&wo(e,a)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,a=zb(t),d=Vb(t,e,i),f=a,v=d,S=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(S&&(f=Math.max(f,S.getFullYear())),R&&(v=Math.min(v,R.getFullYear()))):t==="month"&&i?(S&&i===S.getFullYear()&&(f=Math.max(f,S.getMonth()+1)),R&&i===R.getFullYear()&&(v=Math.min(v,R.getMonth()+1))):t==="day"&&e&&i&&(S&&i===S.getFullYear()&&e===S.getMonth()+1&&(f=Math.max(f,S.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(v=Math.min(v,R.getDate()))),f>v?{min:a,max:d,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:v,isMinConstrained:f!==a,isMaxConstrained:v!==d}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){if(this.disabled||this.softDisabled||this.readonly)return;let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){if(!(this.disabled||this.softDisabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.flushPendingInput(),this.displayPopover=!0}}handleSelectTriggerClick(){if(!(this.disabled||this.softDisabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.displayPopover=!0}}handleSelectKeydown(t){this.disabled||this.softDisabled||this.readonly||(t.key===Tt.ENTER||t.key===Tt.SPACE||t.key===Tt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}closePopover(t=!1){var e;this.effectiveSelectionMode===jt.RANGE&&((e=this.calendar)==null||e.cancelRangeSelection(this.value,this.endValue)),this.displayPopover=!1,t&&this.focusBackToTrigger()}handleDateSelected(t){if(this.disabled||this.softDisabled||this.readonly)return;let{detail:e}=t,i=this.effectiveSelectionMode;i===jt.WEEK||i===jt.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let a=i===jt.RANGE&&this.value&&this.endValue;(i!==jt.RANGE||a)&&this.closePopover(!0)}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,a=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=a;break;case"day":this.internalDay=a;break;case"year":this.internalYear=a;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.disabled||this.softDisabled||this.readonly){(t.key===Tt.ARROW_UP||t.key===Tt.ARROW_DOWN)&&t.preventDefault();return}let i=this.getFieldRange(e),a=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Tt.ARROW_UP:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!0);this.setFieldValue(e,d),this.commitValue();break}case Tt.ARROW_DOWN:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!1);this.setFieldValue(e,d),this.commitValue();break}case Tt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Tt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Tt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let d=e==="year"?4:2;if(this.pendingDigits.length>=d){let f=parseInt(this.pendingDigits,10);f>a&&(f=a),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),v=Math.floor(a/10);if(f>v){let S=f;S>a&&(S=a),S<i&&(S=i),this.setFieldValue(e,S),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let S=f;S<i&&(S=i),this.setFieldValue(e,S),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Hn(this.locale),i=e.indexOf(t);if(i<e.length-1){let a=e[i+1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Hn(this.locale),i=e.indexOf(t);if(i>0){let a=e[i-1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Hn(this.locale),a=this.getSpinbuttonInput(i[0]);a==null||a.focus(),a==null||a.select()}}handleBaseKeydown(t){t.key===Tt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===Bn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Un);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===jt.WEEK?jt.WEEK:this.variant===Bn.DEFAULT?jt.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===jt.WEEK){let{start:t,end:e}=dc(this.value,this.locale);return zn(t,e,this.locale)}return this.effectiveSelectionMode===jt.RANGE&&this.endValue?zn(this.value,this.endValue,this.locale):Mb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),a={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},d={month:"mm",day:"dd",year:"yyyy"};return A`
3739
3739
  <input
3740
3740
  id="${t}-spinbutton"
3741
3741
  part="spinbutton spinbutton-${t}"
@@ -4058,7 +4058,7 @@
4058
4058
  :host([data-hidden]) {
4059
4059
  display: none;
4060
4060
  }
4061
- `],Bb=a0;var ko=class extends Q{constructor(){super(...arguments);this.orientation=ys.ORIENTATION;this.variant=ys.VARIANT;this.arrowDirection=ys.ARROW_DIRECTION;this.buttonPosition=ys.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Kn).includes(t)?t:ys.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(bs).includes(t)?t:ys.ORIENTATION)}ensureValidDirections(){let t=this.orientation===bs.HORIZONTAL?Rr.NEGATIVE:Rr.POSITIVE;Object.values(Rr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Rr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===bs.HORIZONTAL,e=this.arrowDirection===Rr.POSITIVE;return t?e?Wn.UP:Wn.DOWN:e?Wn.RIGHT:Wn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var d;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===vn.toUpperCase()),a=e.some(f=>f.tagName===Pi.toUpperCase());i&&!a?this.setAttribute("data-type","mdc-text-divider"):!i&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return A`
4061
+ `],Bb=a0;var ko=class extends Q{constructor(){super(...arguments);this.orientation=ys.ORIENTATION;this.variant=ys.VARIANT;this.arrowDirection=ys.ARROW_DIRECTION;this.buttonPosition=ys.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Kn).includes(t)?t:ys.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(bs).includes(t)?t:ys.ORIENTATION)}ensureValidDirections(){let t=this.orientation===bs.HORIZONTAL?Rr.NEGATIVE:Rr.POSITIVE;Object.values(Rr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Rr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===bs.HORIZONTAL,e=this.arrowDirection===Rr.POSITIVE;return t?e?Wn.UP:Wn.DOWN:e?Wn.RIGHT:Wn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var d;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===vn.toUpperCase()),a=e.some(f=>f.tagName===Fi.toUpperCase());i&&!a?this.setAttribute("data-type","mdc-text-divider"):!i&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return A`
4062
4062
  <div></div>
4063
4063
  <slot @slotchange=${this.inferDividerType}></slot>
4064
4064
  <div></div>
@@ -4099,7 +4099,7 @@
4099
4099
  `,Gb=[c0];var hc=class extends ee{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return A`
4100
4100
  ${this.label||this.helpText?A`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`:G}
4101
4101
  <slot></slot>
4102
- `}};hc.styles=[...ee.styles,...Gb];var va=hc;var Kb=$.constructTagName("formfieldgroup");va.register(Kb);var pc=va;fn.register(Zl);var h0=fn;An.register(gd);var p0=An;var Es=Bi(class extends ci{constructor(n){if(super(n),n.type!==xr.PROPERTY&&n.type!==xr.ATTRIBUTE&&n.type!==xr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!id(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===$e||o===G)return o;let t=n.element,e=n.name;if(n.type===xr.PROPERTY){if(o===t[e])return $e}else if(n.type===xr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(n.type===xr.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return od(n),o}});var m0=z`
4102
+ `}};hc.styles=[...ee.styles,...Gb];var va=hc;var Kb=$.constructTagName("formfieldgroup");va.register(Kb);var pc=va;fn.register(Zl);var h0=fn;An.register(gd);var p0=An;var Es=Ui(class extends hi{constructor(n){if(super(n),n.type!==xr.PROPERTY&&n.type!==xr.ATTRIBUTE&&n.type!==xr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!id(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===$e||o===G)return o;let t=n.element,e=n.name;if(n.type===xr.PROPERTY){if(o===t[e])return $e}else if(n.type===xr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(n.type===xr.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return od(n),o}});var m0=z`
4103
4103
  :host {
4104
4104
  --mdc-statusmessage-color: var(--mds-color-theme-text-secondary-normal);
4105
4105
  --mdc-statusmessage-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
@@ -4171,7 +4171,7 @@
4171
4171
  <mdc-text part="character-counter" tagname="span" type="body-midsize-regular">
4172
4172
  ${this.value.length}/${this.maxCharacterLimit}
4173
4173
  </mdc-text>
4174
- `:G}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([lt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var Yb=$.constructTagName("input"),uc={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ba={OFF:"off",ON:"on"},jb={NONE:"none",TEXT:"text",DECIMAL:"decimal",NUMERIC:"numeric",TEL:"tel",SEARCH:"search",EMAIL:"email",URL:"url"},bi={PASSWORD:"password",TEXT:"text",SEARCH:"search",NUMBER:"number"},qb={MAX_LENGTH:10,VALIDATION:te.ERROR},yi={HEADING_ID:Kt.HEADING_ID,VALIDATION:te.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ft.TERTIARY,CLEAR_BUTTON_SIZE:ar[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ba.OFF,INPUT_TYPE:bi.TEXT};var f0=[z`
4174
+ `:G}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([lt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var Yb=$.constructTagName("input"),uc={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ba={OFF:"off",ON:"on"},jb={NONE:"none",TEXT:"text",DECIMAL:"decimal",NUMERIC:"numeric",TEL:"tel",SEARCH:"search",EMAIL:"email",URL:"url"},yi={PASSWORD:"password",TEXT:"text",SEARCH:"search",NUMBER:"number"},qb={MAX_LENGTH:10,VALIDATION:te.ERROR},Ei={HEADING_ID:Kt.HEADING_ID,VALIDATION:te.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ft.TERTIARY,CLEAR_BUTTON_SIZE:ar[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ba.OFF,INPUT_TYPE:yi.TEXT};var f0=[z`
4175
4175
  :host {
4176
4176
  --mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
4177
4177
  --mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
@@ -4316,15 +4316,15 @@
4316
4316
  <mdc-icon
4317
4317
  part="leading-icon"
4318
4318
  name=${this.leadingIcon}
4319
- size="${yi.ICON_SIZE_VALUE}"
4320
- length-unit="${yi.ICON_SIZE_UNIT}"
4319
+ size="${Ei.ICON_SIZE_VALUE}"
4320
+ length-unit="${Ei.ICON_SIZE_UNIT}"
4321
4321
  >
4322
4322
  </mdc-icon>
4323
4323
  `:G}renderPrefixText(){return this.prefixText?A`
4324
4324
  <mdc-text
4325
4325
  part="prefix-text"
4326
- tagname="${yi.PREFIX_TEXT_TAG}"
4327
- type="${yi.PREFIX_TEXT_TYPE}"
4326
+ tagname="${Ei.PREFIX_TEXT_TAG}"
4327
+ type="${Ei.PREFIX_TEXT_TYPE}"
4328
4328
  aria-hidden="true"
4329
4329
  >
4330
4330
  ${this.prefixText.slice(0,qb.MAX_LENGTH)}
@@ -4333,9 +4333,9 @@
4333
4333
  <mdc-button
4334
4334
  part="trailing-button"
4335
4335
  class="own-focus-ring ${e?"":"hidden"}"
4336
- prefix-icon="${yi.CLEAR_BUTTON_ICON}"
4337
- variant="${yi.CLEAR_BUTTON_VARIANT}"
4338
- size="${yi.CLEAR_BUTTON_SIZE}"
4336
+ prefix-icon="${Ei.CLEAR_BUTTON_ICON}"
4337
+ variant="${Ei.CLEAR_BUTTON_VARIANT}"
4338
+ size="${Ei.CLEAR_BUTTON_SIZE}"
4339
4339
  aria-label="${this.clearAriaLabel}"
4340
4340
  @click=${this.clearInputText}
4341
4341
  ?disabled=${this.disabled||this.softDisabled||this.readonly||!e}
@@ -4352,7 +4352,7 @@
4352
4352
  aria-disabled="${this.disabled||this.softDisabled}"
4353
4353
  ?required="${this.required}"
4354
4354
  type="${t}"
4355
- aria-labelledby="${tt(this.label?yi.HEADING_ID:void 0)}"
4355
+ aria-labelledby="${tt(this.label?Ei.HEADING_ID:void 0)}"
4356
4356
  aria-describedby="${tt(this.helpText?Kt.HELPER_TEXT_ID:(d=this.dataAriaDescribedby)!=null?d:"")}"
4357
4357
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
4358
4358
  placeholder=${tt(i)}
@@ -4375,7 +4375,7 @@
4375
4375
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
4376
4376
  <div part="input-section">
4377
4377
  <slot name="input-prefix-text">${this.renderPrefixText()}</slot>
4378
- <slot name="input">${this.renderInputElement(yi.INPUT_TYPE)}</slot>
4378
+ <slot name="input">${this.renderInputElement(Ei.INPUT_TYPE)}</slot>
4379
4379
  </div>
4380
4380
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
4381
4381
  </div>
@@ -4511,7 +4511,7 @@
4511
4511
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
4512
4512
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
4513
4513
  }
4514
- `,Qb=[y0];var jn=class extends ue(mi){constructor(){super(...arguments);this.size=Cv.LINK_SIZE}getIconSize(){switch(this.size){case hd.SMALL:return pd.SMALL;case hd.MIDSIZE:return pd.MIDSIZE;default:return pd.LARGE}}renderAnchorContent(){return A`<span part="text"><slot></slot></span>${this.iconName?A`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:G}`}};jn.styles=[...mi.styles,...Qb],h([u({type:String,reflect:!0})],jn.prototype,"size",2);var Wp=jn;Wp.register(cd);var E0=Wp;var Jb=$.constructTagName("linkbutton"),Ea={12:12,14:14,16:16},Ta={SIZE:Ea[16],ROLE:et.BUTTON,INLINE:sa.INLINE,INVERTED:sa.INVERTED};var ty=n=>{switch(n){case Ea[12]:return .75;case Ea[14]:return .875;default:return 1}};var T0=z`
4514
+ `,Qb=[y0];var jn=class extends ue(ui){constructor(){super(...arguments);this.size=Cv.LINK_SIZE}getIconSize(){switch(this.size){case hd.SMALL:return pd.SMALL;case hd.MIDSIZE:return pd.MIDSIZE;default:return pd.LARGE}}renderAnchorContent(){return A`<span part="text"><slot></slot></span>${this.iconName?A`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:G}`}};jn.styles=[...ui.styles,...Qb],h([u({type:String,reflect:!0})],jn.prototype,"size",2);var Wp=jn;Wp.register(cd);var E0=Wp;var Jb=$.constructTagName("linkbutton"),Ea={12:12,14:14,16:16},Ta={SIZE:Ea[16],ROLE:et.BUTTON,INLINE:sa.INLINE,INVERTED:sa.INVERTED};var ty=n=>{switch(n){case Ea[12]:return .75;case Ea[14]:return .875;default:return 1}};var T0=z`
4515
4515
  :host {
4516
4516
  gap: 0.25rem;
4517
4517
  cursor: pointer;
@@ -4613,7 +4613,7 @@
4613
4613
  `,ey=[T0,...At()];var xs=class extends ue(Ee){constructor(){super(...arguments);this.size=Ta.SIZE;this.inline=Ta.INLINE;this.inverted=Ta.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Ta.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ea).includes(t)?`${t}`:Ta.SIZE.toString())}render(){return A`
4614
4614
  <slot></slot>
4615
4615
  ${this.iconName?A` <mdc-icon name=${this.iconName} size=${ty(this.size)} length-unit="rem"></mdc-icon> `:G}
4616
- `}};xs.styles=[...mi.styles,...ey],h([u({type:Number,reflect:!0})],xs.prototype,"size",2),h([u({type:Boolean,reflect:!0})],xs.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],xs.prototype,"inverted",2);var Yp=xs;Yp.register(Jb);var x0=Yp;mi.register(dg);var A0=mi;var Ei=n=>{class o extends Ot(Lt(n)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:a}=i,d=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&a instanceof Q&&d&&a.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let a=i.target,d=this.getCurrentIndex(a);if(d!==-1){let f=document.activeElement===a,v=document.activeElement&&document.activeElement.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,S=!(this.navItems.at(d)!==a&&(f||v));this.resetTabIndexAndSetFocus(d,void 0,S,!1)}};this.handleNavBeforeFocus=i=>{let a=wh(i.relatedTarget);if(this!==a&&!this.contains(document.activeElement)&&this.contains(a)){i.preventDefault();let d=this.navItems.find(v=>v.contains(a)),f=this.getCurrentIndex(d);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Qt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let a=this.getActionForKeyEvent(i,!0),d=this.orientation==="vertical",f=new Set(d?[H.DOWN,H.UP,H.HOME,H.END]:[H.LEFT,H.RIGHT,H.HOME,H.END]);if(!a||!f.has(a))return;let v=i.target,S=this.getCurrentIndex(v);if(S===-1)return;this.resetTabIndexes(S);let R=!1;switch(a){case H.HOME:{R=this.resetTabIndexAndSetFocus(0,S);break}case H.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,S);break}case H.DOWN:case H.RIGHT:{let U=this.shouldLoop()?0:S,J=S+1===this.navItems.length?U:S+1;R=this.resetTabIndexAndSetFocus(J,S);break}case H.UP:case H.LEFT:{let U=this.shouldLoop()?this.navItems.length-1:S,J=S-1===-1?U:S-1;R=this.resetTabIndexAndSetFocus(J,S);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(a=>a===i||!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,a=!0){var d;if(this.navItems.length>0){this.navItems.forEach(S=>S.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,v=(d=this.navItems.at(f))!=null?d:this.navItems.find(Boolean);v&&(v.setAttribute("tabindex","0"),a&&v.focus())}}resetTabIndexAndSetFocus(i,a,d=!0,f=!0){var R;let{navItems:v}=this;if(v.length===0)return!1;let S=(R=v.at(i))!=null?R:v.find(Boolean);return i===0&&a===0&&v.length===1||i===a&&S&&S.getAttribute("tabindex")==="0"?!1:(a===void 0?v.forEach(U=>U.setAttribute("tabindex","-1")):v.at(a)&&v.at(a).setAttribute("tabindex","-1"),S.setAttribute("tabindex","0"),d&&(S.focus({preventScroll:!0}),f&&S.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===re.SPATIAL?!1:this.loop!=="false"}}return o};var vc=$.constructTagName("listitem"),qn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ry={VARIANT:qn.FULL_WIDTH};var S0=n=>!!n,Dr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||S0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Qt.CREATED,this.itemCreationHandler),this.host.addEventListener(Qt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Qt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Qt.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||!Wf(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);Yf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let a=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",a===-1?this.cache.length:a,this.cache.slice())),a===-1?this.cache.push(e):a>=0&&this.cache.splice(a,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var Ti=n=>{class o extends n{constructor(...i){super(...i);this.handleItemCreation=i=>{let a=i.target;a&&a.addEventListener(Qt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Qt.DESTROYED&&(i.target.removeEventListener(Qt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Qt.CREATED,this.handleItemCreation)}}return o};var I0=z`
4616
+ `}};xs.styles=[...ui.styles,...ey],h([u({type:Number,reflect:!0})],xs.prototype,"size",2),h([u({type:Boolean,reflect:!0})],xs.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],xs.prototype,"inverted",2);var Yp=xs;Yp.register(Jb);var x0=Yp;ui.register(dg);var A0=ui;var Ti=n=>{class o extends Ot(Lt(n)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:a}=i,d=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&a instanceof Q&&d&&a.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let a=i.target,d=this.getCurrentIndex(a);if(d!==-1){let f=document.activeElement===a,v=document.activeElement&&document.activeElement.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,S=!(this.navItems.at(d)!==a&&(f||v));this.resetTabIndexAndSetFocus(d,void 0,S,!1)}};this.handleNavBeforeFocus=i=>{let a=wh(i.relatedTarget);if(this!==a&&!this.contains(document.activeElement)&&this.contains(a)){i.preventDefault();let d=this.navItems.find(v=>v.contains(a)),f=this.getCurrentIndex(d);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Qt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let a=this.getActionForKeyEvent(i,!0),d=this.orientation==="vertical",f=new Set(d?[H.DOWN,H.UP,H.HOME,H.END]:[H.LEFT,H.RIGHT,H.HOME,H.END]);if(!a||!f.has(a))return;let v=i.target,S=this.getCurrentIndex(v);if(S===-1)return;this.resetTabIndexes(S);let R=!1;switch(a){case H.HOME:{R=this.resetTabIndexAndSetFocus(0,S);break}case H.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,S);break}case H.DOWN:case H.RIGHT:{let U=this.shouldLoop()?0:S,J=S+1===this.navItems.length?U:S+1;R=this.resetTabIndexAndSetFocus(J,S);break}case H.UP:case H.LEFT:{let U=this.shouldLoop()?this.navItems.length-1:S,J=S-1===-1?U:S-1;R=this.resetTabIndexAndSetFocus(J,S);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(a=>a===i||!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,a=!0){var d;if(this.navItems.length>0){this.navItems.forEach(S=>S.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,v=(d=this.navItems.at(f))!=null?d:this.navItems.find(Boolean);v&&(v.setAttribute("tabindex","0"),a&&v.focus())}}resetTabIndexAndSetFocus(i,a,d=!0,f=!0){var R;let{navItems:v}=this;if(v.length===0)return!1;let S=(R=v.at(i))!=null?R:v.find(Boolean);return i===0&&a===0&&v.length===1||i===a&&S&&S.getAttribute("tabindex")==="0"?!1:(a===void 0?v.forEach(U=>U.setAttribute("tabindex","-1")):v.at(a)&&v.at(a).setAttribute("tabindex","-1"),S.setAttribute("tabindex","0"),d&&(S.focus({preventScroll:!0}),f&&S.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===re.SPATIAL?!1:this.loop!=="false"}}return o};var vc=$.constructTagName("listitem"),qn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ry={VARIANT:qn.FULL_WIDTH};var S0=n=>!!n,Dr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||S0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Qt.CREATED,this.itemCreationHandler),this.host.addEventListener(Qt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Qt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Qt.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||!Wf(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);Yf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let a=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",a===-1?this.cache.length:a,this.cache.slice())),a===-1?this.cache.push(e):a>=0&&this.cache.splice(a,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var xi=n=>{class o extends n{constructor(...i){super(...i);this.handleItemCreation=i=>{let a=i.target;a&&a.addEventListener(Qt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Qt.DESTROYED&&(i.target.removeEventListener(Qt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Qt.CREATED,this.handleItemCreation)}}return o};var I0=z`
4617
4617
  :host {
4618
4618
  display: flex;
4619
4619
  flex-direction: column;
@@ -4639,11 +4639,11 @@
4639
4639
  scroll-padding-left: 0.25rem;
4640
4640
  scroll-padding-right: 0.25rem;
4641
4641
  }
4642
- `,iy=[I0];var oy=$.constructTagName("list");var Xn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},gc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Xn.VERTICAL};var As=class extends Ei(Ti(Q)){constructor(){super();this.loop=gc.LOOP;this.initialFocus=gc.INITIAL_FOCUS;this.orientation=gc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===H.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${vc}:not([disabled])`)}render(){return A`
4642
+ `,iy=[I0];var oy=$.constructTagName("list");var Xn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},gc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Xn.VERTICAL};var As=class extends Ti(xi(Q)){constructor(){super();this.loop=gc.LOOP;this.initialFocus=gc.INITIAL_FOCUS;this.orientation=gc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===H.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${vc}:not([disabled])`)}render(){return A`
4643
4643
  <slot name="list-header"></slot>
4644
4644
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
4645
4645
  <slot part="container" role="presentation"></slot>
4646
- `}};As.styles=[...Q.styles,...iy],h([u({type:String,reflect:!0})],As.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],As.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],As.prototype,"orientation",2);var qi=As;qi.register(oy);var jp=qi;var C0=z`
4646
+ `}};As.styles=[...Q.styles,...iy],h([u({type:String,reflect:!0})],As.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],As.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],As.prototype,"orientation",2);var Xi=As;Xi.register(oy);var jp=Xi;var C0=z`
4647
4647
  :host {
4648
4648
  --mdc-listheader-padding: 0.5rem 0.75rem;
4649
4649
  --mdc-listheader-gap: 0.5rem;
@@ -4802,7 +4802,7 @@
4802
4802
  flex-direction: row;
4803
4803
  flex-shrink: 0;
4804
4804
  }
4805
- `,ny=[w0,...At()];var Ze=class extends Ot(Lt(Zt(si(bc(Q))))){constructor(){super();this.variant=ry.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===H.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===H.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===H.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return A`
4805
+ `,ny=[w0,...At()];var Ze=class extends Ot(Lt(Zt(ai(bc(Q))))){constructor(){super();this.variant=ry.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===H.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===H.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===H.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return A`
4806
4806
  <slot name="${t}">
4807
4807
  ${i?A`<mdc-text part="${t}" type="${e}" tagname="${pt.SPAN}">${i}</mdc-text>`:G}
4808
4808
  </slot>
@@ -4834,7 +4834,7 @@
4834
4834
  ${this.renderTrailingControls()}
4835
4835
  </div>
4836
4836
  </slot>
4837
- `}};Ze.styles=[...Q.styles,...ny],h([Xt({slot:"leading-controls"})],Ze.prototype,"leadingControlsSlot",2),h([Xt({slot:"trailing-controls"})],Ze.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Ze.prototype,"variant",2),h([u({type:String,reflect:!0})],Ze.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Ze.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Ze.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Ze.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Ze.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ze.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Ze.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Ze.prototype,"active",2);var Xi=Ze;Xi.register(vc);var k0=Xi;var N0=z`
4837
+ `}};Ze.styles=[...Q.styles,...ny],h([Xt({slot:"leading-controls"})],Ze.prototype,"leadingControlsSlot",2),h([Xt({slot:"trailing-controls"})],Ze.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Ze.prototype,"variant",2),h([u({type:String,reflect:!0})],Ze.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Ze.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Ze.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Ze.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Ze.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ze.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Ze.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Ze.prototype,"active",2);var Zi=Ze;Zi.register(vc);var k0=Zi;var N0=z`
4838
4838
  :host {
4839
4839
  --mdc-marker-width: 0.25rem;
4840
4840
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -4859,7 +4859,7 @@
4859
4859
  var(--mdc-marker-striped-background-color) 0.375rem
4860
4860
  );
4861
4861
  }
4862
- `,ly=[N0];var dy=$.constructTagName("marker"),cy={SOLID:"solid",STRIPED:"striped"};var Qn=class extends Q{constructor(){super(...arguments);this.variant=cy.SOLID}};Qn.styles=[...Q.styles,...ly],h([u({type:String,reflect:!0})],Qn.prototype,"variant",2);var Xp=Qn;Xp.register(dy);var L0=Xp;var ae=$.constructTagName("menupopover"),Zp={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var Zi=$.constructTagName("menusection"),hy={DIVIDER_VARIANT:"solid"};var Lo=$.constructTagName("sidenavigation"),mr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},Mo={FLYOUT:"flyout",DROPDOWN:"dropdown"},xa={VARIANT:mr.FLEXIBLE,SUBMENU_TYPE:Mo.FLYOUT};var Jn=$.constructTagName("menubar"),py={ORIENTATION:"vertical"};var M0=z`
4862
+ `,ly=[N0];var dy=$.constructTagName("marker"),cy={SOLID:"solid",STRIPED:"striped"};var Qn=class extends Q{constructor(){super(...arguments);this.variant=cy.SOLID}};Qn.styles=[...Q.styles,...ly],h([u({type:String,reflect:!0})],Qn.prototype,"variant",2);var Xp=Qn;Xp.register(dy);var L0=Xp;var ae=$.constructTagName("menupopover"),Zp={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var Qi=$.constructTagName("menusection"),hy={DIVIDER_VARIANT:"solid"};var Lo=$.constructTagName("sidenavigation"),mr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},Mo={FLYOUT:"flyout",DROPDOWN:"dropdown"},xa={VARIANT:mr.FLEXIBLE,SUBMENU_TYPE:Mo.FLYOUT};var Jn=$.constructTagName("menubar"),py={ORIENTATION:"vertical"};var M0=z`
4863
4863
  :host {
4864
4864
  display: flex;
4865
4865
  }
@@ -4871,7 +4871,7 @@
4871
4871
  :host([aria-orientation='vertical']) {
4872
4872
  flex-direction: column;
4873
4873
  }
4874
- `,my=[M0];var tl=class extends Ot(Lt(Q)){constructor(){super();this.depthManager=new yo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(d=>d!==e);this.getVisibleSubMenusOfItems(i).forEach(d=>{d.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=py.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var d,f;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],a=v=>{v.role===et.MENUITEM&&!v.hasAttribute("disabled")?i.push(v):v.tagName.toLowerCase()===Zi&&Array.from(v.children).forEach(a)};return e.forEach(a),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let a=i.getAttribute("id");if(!a)return;let d=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${a}"]`);d&&d.visible&&e.push(d)}),e}getAllPopovers(){var a,d;if(!this.menuItems.length)return[];let t=(d=(a=this.menuItems[0])==null?void 0:a.closest(Lo))!=null?d:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(v=>{e.push(v)}),f.querySelectorAll("slot").forEach(v=>{v.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let a=i===0?"0":"-1";e==null||e.setAttribute("tabindex",a)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(a=>a.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var a,d;i<0||e<0||(e!==i&&((a=t[e])==null||a.setAttribute("tabindex","-1"),(d=t[i])==null||d.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var v;let{length:a}=this.menuItems;if(a===0)return;let d=t;if(this.getKeyboardNavMode()===re.DEFAULT?d=e==="prev"?(t-1+a)%a:(t+1)%a:d=e==="prev"?Math.max(0,t-1):Math.min(t+1,a-1),d!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,d),i)){let S=(v=this.menuItems[d])==null?void 0:v.getAttribute("id");this.getSubmenu(S)&&!this.menuItems[d].hasAttribute("soft-disabled")&&(this.showSubmenu(S),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var d;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),a=(d=e.parentElement)==null?void 0:d.tagName.toLowerCase();return i===Jn||i===Lo||i===Zi&&(a===Jn||a===Lo)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),a=i==null?void 0:i.getAttribute("triggerid"),d=this.menuItems.find(f=>f.getAttribute("id")===a);if(d){this.isTopLevelMenuItem(d)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(d);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),a=this.menuItems.find(d=>d.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(d=>d===a):this.getParentMenuItemIndex(a)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case H.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case H.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case H.LEFT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(a);break}case H.RIGHT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(a);break}case H.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case H.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return A`<slot></slot>`}};tl.styles=[...Q.styles,...my],h([Xt({selector:"mdc-menusection",flatten:!0})],tl.prototype,"menusections",2);var Qp=tl;Qp.register(Jn);var O0=Qp;var el=$.constructTagName("menuitem"),rl={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Jp={POSITIVE:"positive",NEGATIVE:"negative"},tm={LEADING:"leading",TRAILING:"trailing"};var R0=z`
4874
+ `,my=[M0];var tl=class extends Ot(Lt(Q)){constructor(){super();this.depthManager=new yo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(d=>d!==e);this.getVisibleSubMenusOfItems(i).forEach(d=>{d.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=py.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var d,f;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],a=v=>{v.role===et.MENUITEM&&!v.hasAttribute("disabled")?i.push(v):v.tagName.toLowerCase()===Qi&&Array.from(v.children).forEach(a)};return e.forEach(a),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let a=i.getAttribute("id");if(!a)return;let d=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${a}"]`);d&&d.visible&&e.push(d)}),e}getAllPopovers(){var a,d;if(!this.menuItems.length)return[];let t=(d=(a=this.menuItems[0])==null?void 0:a.closest(Lo))!=null?d:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(v=>{e.push(v)}),f.querySelectorAll("slot").forEach(v=>{v.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let a=i===0?"0":"-1";e==null||e.setAttribute("tabindex",a)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(a=>a.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var a,d;i<0||e<0||(e!==i&&((a=t[e])==null||a.setAttribute("tabindex","-1"),(d=t[i])==null||d.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var v;let{length:a}=this.menuItems;if(a===0)return;let d=t;if(this.getKeyboardNavMode()===re.DEFAULT?d=e==="prev"?(t-1+a)%a:(t+1)%a:d=e==="prev"?Math.max(0,t-1):Math.min(t+1,a-1),d!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,d),i)){let S=(v=this.menuItems[d])==null?void 0:v.getAttribute("id");this.getSubmenu(S)&&!this.menuItems[d].hasAttribute("soft-disabled")&&(this.showSubmenu(S),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var d;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),a=(d=e.parentElement)==null?void 0:d.tagName.toLowerCase();return i===Jn||i===Lo||i===Qi&&(a===Jn||a===Lo)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),a=i==null?void 0:i.getAttribute("triggerid"),d=this.menuItems.find(f=>f.getAttribute("id")===a);if(d){this.isTopLevelMenuItem(d)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(d);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),a=this.menuItems.find(d=>d.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(d=>d===a):this.getParentMenuItemIndex(a)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case H.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case H.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case H.LEFT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(a);break}case H.RIGHT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(a);break}case H.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case H.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return A`<slot></slot>`}};tl.styles=[...Q.styles,...my],h([Xt({selector:"mdc-menusection",flatten:!0})],tl.prototype,"menusections",2);var Qp=tl;Qp.register(Jn);var O0=Qp;var el=$.constructTagName("menuitem"),rl={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Jp={POSITIVE:"positive",NEGATIVE:"negative"},tm={LEADING:"leading",TRAILING:"trailing"};var R0=z`
4875
4875
  :host(:dir(rtl))::part(trailing-arrow),
4876
4876
  :host(:dir(rtl))::part(leading-arrow) {
4877
4877
  transform: rotate(180deg);
@@ -4880,7 +4880,7 @@
4880
4880
  :host::part(leading-arrow) {
4881
4881
  --mdc-icon-size: 1rem;
4882
4882
  }
4883
- `,uy=[R0];var Oo=class extends Xi{handleKeyDown(o){this.getActionForKeyEvent(o)===H.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===H.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=qn.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Jp.NEGATIVE?rl.LEFT:rl.RIGHT;return A`
4883
+ `,uy=[R0];var Oo=class extends Zi{handleKeyDown(o){this.getActionForKeyEvent(o)===H.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===H.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=qn.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Jp.NEGATIVE?rl.LEFT:rl.RIGHT;return A`
4884
4884
  <slot
4885
4885
  name="trailing-controls"
4886
4886
  @click=${this.stopEventPropagation}
@@ -4896,7 +4896,7 @@
4896
4896
  @keydown=${this.stopEventPropagation}
4897
4897
  ></slot>
4898
4898
  ${this.arrowPosition===tm.LEADING?A`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:G}
4899
- `}};Oo.styles=[...Xi.styles,...uy],h([u({type:String,reflect:!0,attribute:"arrow-position"})],Oo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],Oo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],Oo.prototype,"name",2),h([u({type:String,reflect:!0})],Oo.prototype,"value",2);var Pr=Oo;Pr.register(el);var D0=Pr;var fy=$.constructTagName("statictoggle"),P0={DEFAULT:"default",COMPACT:"compact"},em={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},vy={compact:.75,default:1.25},gy={SIZE:P0.DEFAULT};var F0=[z`
4899
+ `}};Oo.styles=[...Zi.styles,...uy],h([u({type:String,reflect:!0,attribute:"arrow-position"})],Oo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],Oo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],Oo.prototype,"name",2),h([u({type:String,reflect:!0})],Oo.prototype,"value",2);var Pr=Oo;Pr.register(el);var D0=Pr;var fy=$.constructTagName("statictoggle"),P0={DEFAULT:"default",COMPACT:"compact"},em={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},vy={compact:.75,default:1.25},gy={SIZE:P0.DEFAULT};var F0=[z`
4900
4900
  :host {
4901
4901
  --mdc-statictoggle-width: 3rem;
4902
4902
  --mdc-statictoggle-height: 1.5rem;
@@ -5025,14 +5025,14 @@
5025
5025
  :host([color='contrast'])::part(popover-content) {
5026
5026
  color: var(--mdc-tooltip-text-color-contrast);
5027
5027
  }
5028
- `,yy=[V0];var Aa=class extends dr{constructor(){super(...arguments);this.tooltipType=Qe.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Qe.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS;this.autoGeneratedId=null}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Qe.ARIA_HIDDEN,this.backdrop=Qe.BACKDROP,this.delay=this.delay||Qe.DELAY,this.disableAriaExpanded=Qe.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Qe.HIDE_ON_BLUR,this.hideOnEscape=Qe.HIDE_ON_ESCAPE,this.offset=this.offset||Qe.OFFSET,this.placement=this.placement||Qe.PLACEMENT,this.trigger=Qe.TRIGGER,this.closeButton=Et.CLOSE_BUTTON,this.disableFlip=Et.DISABLE_FLIP,this.focusBackToTrigger=Et.FOCUS_BACK,this.focusTrap=Et.FOCUS_TRAP,this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE,this.interactive=Et.INTERACTIVE,this.preventScroll=Et.PREVENT_SCROLL,this.size=Et.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Fr).includes(t)?t:Qe.TOOLTIP_TYPE)}ensureId(){if(this.id.length>0){this.autoGeneratedId&&this.id!==this.autoGeneratedId&&(this.autoGeneratedId=null);return}this.autoGeneratedId||(this.autoGeneratedId=`mdc-tooltip-${ze()}`),this.id=this.autoGeneratedId}syncTriggerAriaForId(){if(this.triggerElement)switch(this.tooltipType){case Fr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Fr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Qe.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Fr).includes(this.tooltipType)||this.setTooltipType(Qe.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Fr.DESCRIPTION:e===Fr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Fr.LABEL:e===Fr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Fr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Fr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}willUpdate(t){super.willUpdate(t);let e=t.has("id");e&&this.ensureId(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")?this.onTooltipTypeUpdated(t):e&&this.syncTriggerAriaForId()}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&jl(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};Aa.styles=[...dr.styles,...yy],h([u({type:String,attribute:"tooltip-type",reflect:!0})],Aa.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],Aa.prototype,"onlyShowWhenTriggerOverflows",2);var im=Aa;im.register(il);var z0=im;var Ey=$.constructTagName("toggle"),ol={DEFAULT:"default",COMPACT:"compact"};var om={SIZE:ol.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var xi=n=>{class o extends n{constructor(){super(...arguments);this.controlTypeProviderContext=me.consume({host:this,context:Lp.Context})}willUpdate(){this.controlType&&ec.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=tc.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var yc=$.constructTagName("menuitemcheckbox"),sl={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Ty={INDICATOR:sl.CHECKBOX};var B0=z`
5028
+ `,yy=[V0];var Aa=class extends dr{constructor(){super(...arguments);this.tooltipType=Qe.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Qe.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS;this.autoGeneratedId=null}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Qe.ARIA_HIDDEN,this.backdrop=Qe.BACKDROP,this.delay=this.delay||Qe.DELAY,this.disableAriaExpanded=Qe.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Qe.HIDE_ON_BLUR,this.hideOnEscape=Qe.HIDE_ON_ESCAPE,this.offset=this.offset||Qe.OFFSET,this.placement=this.placement||Qe.PLACEMENT,this.trigger=Qe.TRIGGER,this.closeButton=Et.CLOSE_BUTTON,this.disableFlip=Et.DISABLE_FLIP,this.focusBackToTrigger=Et.FOCUS_BACK,this.focusTrap=Et.FOCUS_TRAP,this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE,this.interactive=Et.INTERACTIVE,this.preventScroll=Et.PREVENT_SCROLL,this.size=Et.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Fr).includes(t)?t:Qe.TOOLTIP_TYPE)}ensureId(){if(this.id.length>0){this.autoGeneratedId&&this.id!==this.autoGeneratedId&&(this.autoGeneratedId=null);return}this.autoGeneratedId||(this.autoGeneratedId=`mdc-tooltip-${ze()}`),this.id=this.autoGeneratedId}syncTriggerAriaForId(){if(this.triggerElement)switch(this.tooltipType){case Fr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Fr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Qe.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Fr).includes(this.tooltipType)||this.setTooltipType(Qe.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Fr.DESCRIPTION:e===Fr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Fr.LABEL:e===Fr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Fr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Fr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}willUpdate(t){super.willUpdate(t);let e=t.has("id");e&&this.ensureId(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")?this.onTooltipTypeUpdated(t):e&&this.syncTriggerAriaForId()}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&jl(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};Aa.styles=[...dr.styles,...yy],h([u({type:String,attribute:"tooltip-type",reflect:!0})],Aa.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],Aa.prototype,"onlyShowWhenTriggerOverflows",2);var im=Aa;im.register(il);var z0=im;var Ey=$.constructTagName("toggle"),ol={DEFAULT:"default",COMPACT:"compact"};var om={SIZE:ol.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Ai=n=>{class o extends n{constructor(){super(...arguments);this.controlTypeProviderContext=me.consume({host:this,context:Lp.Context})}willUpdate(){this.controlType&&ec.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=tc.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var yc=$.constructTagName("menuitemcheckbox"),sl={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Ty={INDICATOR:sl.CHECKBOX};var B0=z`
5029
5029
  :host::part(checkmark-icon) {
5030
5030
  --mdc-icon-fill-color: currentColor;
5031
5031
  }
5032
5032
  :host .hidden-checkmark {
5033
5033
  visibility: hidden;
5034
5034
  }
5035
- `,xy=[B0];var Sa=class extends xi(Pr){constructor(){super();this.checked=!1;this.indicator=Ty.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===sl.CHECKBOX?A`
5035
+ `,xy=[B0];var Sa=class extends Ai(Pr){constructor(){super();this.checked=!1;this.indicator=Ty.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===sl.CHECKBOX?A`
5036
5036
  <mdc-staticcheckbox
5037
5037
  slot="leading-controls"
5038
5038
  ?checked="${this.checked}"
@@ -5081,7 +5081,7 @@
5081
5081
  :host .hidden-checkmark {
5082
5082
  visibility: hidden;
5083
5083
  }
5084
- `,Sy=[H0];var Ia=class extends xi(Pr){constructor(){super();this.checked=!1;this.indicator=Ay.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Zi}, ${ae}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===Tc.RADIO?A`
5084
+ `,Sy=[H0];var Ia=class extends Ai(Pr){constructor(){super();this.checked=!1;this.indicator=Ay.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Qi}, ${ae}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===Tc.RADIO?A`
5085
5085
  <mdc-staticradio
5086
5086
  slot="leading-controls"
5087
5087
  ?checked="${this.checked}"
@@ -5124,7 +5124,7 @@
5124
5124
  ::slotted(mdc-divider) {
5125
5125
  margin-block: 0.25rem;
5126
5126
  }
5127
- `,Cy=[K0];var al=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},dm=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===ae};var nl=class extends dr{constructor(){super();this.placement=Zp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.closeAllMenuPopovers(),a&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(a=>a.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;al(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,a=this.getCurrentIndex(i);if(a===-1)return;switch(this.resetTabIndexes(a),this.getActionForKeyEvent(t,!0)){case H.HOME:{this.resetTabIndexAndSetFocus(0,a),e=!0;break}case H.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,a),e=!0;break}case H.DOWN:{let f=a+1===this.menuItems.length?0:a+1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case H.UP:{let f=a-1===-1?this.menuItems.length-1:a-1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case H.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case H.LEFT:{dm(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,a),e=!0);break}case H.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,a),e=!0);break}case H.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case H.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case H.SPACE:{!i.matches(`${Ec}, ${yc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,a;let e=t.getAttribute("id");return e?(a=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:a.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(a=>a.tagName.toLowerCase()===Zi?Array.from(a.children).filter(d=>al(d)):al(a)?a:[]).flat().filter(a=>!!a&&!a.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(a=>this.getSubMenuPopoverOfTarget(a))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.visible&&e.push(a)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Zp.ORIENTATION,this.backdrop=!1,this.color=ss.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![el,ur].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&dm(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(a=>a!==t);this.getOpenSubMenusOfItems(e).forEach(a=>{a.hide()})}fireMenuItemAction(t){t.matches(el)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!al(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};nl.styles=[...dr.styles,...Cy],h([u({type:String,reflect:!0})],nl.prototype,"placement",2);var cm=nl;cm.register(ae);var W0=cm;var xc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===Mo.DROPDOWN}hasSiblingWithTriggerId(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.tagName.toLowerCase()===ae&&d.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let a=null,d=e==null?void 0:e.closest(ae);if(d)a=this.getTriggerElement(d,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(a=this.getTriggerElement(f,"data-trigger"))}if(a&&a.tagName.toLowerCase()===ur)t.push(a),e=a;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var a;let t=((a=this.currentActiveNavMenuItem)==null?void 0:a.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(d=>{d.hasActiveChild=!0,d.setAttribute("active","")})}};xc.context=Lo;var Ac=xc;var Y0=z`
5127
+ `,Cy=[K0];var al=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},dm=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===ae};var nl=class extends dr{constructor(){super();this.placement=Zp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.closeAllMenuPopovers(),a&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(a=>a.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;al(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,a=this.getCurrentIndex(i);if(a===-1)return;switch(this.resetTabIndexes(a),this.getActionForKeyEvent(t,!0)){case H.HOME:{this.resetTabIndexAndSetFocus(0,a),e=!0;break}case H.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,a),e=!0;break}case H.DOWN:{let f=a+1===this.menuItems.length?0:a+1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case H.UP:{let f=a-1===-1?this.menuItems.length-1:a-1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case H.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case H.LEFT:{dm(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,a),e=!0);break}case H.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,a),e=!0);break}case H.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case H.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case H.SPACE:{!i.matches(`${Ec}, ${yc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,a;let e=t.getAttribute("id");return e?(a=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:a.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(a=>a.tagName.toLowerCase()===Qi?Array.from(a.children).filter(d=>al(d)):al(a)?a:[]).flat().filter(a=>!!a&&!a.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(a=>this.getSubMenuPopoverOfTarget(a))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.visible&&e.push(a)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Zp.ORIENTATION,this.backdrop=!1,this.color=ss.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![el,ur].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&dm(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(a=>a!==t);this.getOpenSubMenusOfItems(e).forEach(a=>{a.hide()})}fireMenuItemAction(t){t.matches(el)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!al(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};nl.styles=[...dr.styles,...Cy],h([u({type:String,reflect:!0})],nl.prototype,"placement",2);var cm=nl;cm.register(ae);var W0=cm;var xc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===Mo.DROPDOWN}hasSiblingWithTriggerId(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.tagName.toLowerCase()===ae&&d.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let a=null,d=e==null?void 0:e.closest(ae);if(d)a=this.getTriggerElement(d,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(a=this.getTriggerElement(f,"data-trigger"))}if(a&&a.tagName.toLowerCase()===ur)t.push(a),e=a;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var a;let t=((a=this.currentActiveNavMenuItem)==null?void 0:a.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(d=>{d.hasActiveChild=!0,d.setAttribute("active","")})}};xc.context=Lo;var Ac=xc;var Y0=z`
5128
5128
  :host {
5129
5129
  --mdc-sidenavigation-expanded-width: 14.5rem;
5130
5130
  --mdc-sidenavigation-expanded-left-padding: 1rem;
@@ -5262,7 +5262,7 @@
5262
5262
  :host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
5263
5263
  opacity: 1;
5264
5264
  }
5265
- `,_y=[Y0];var hm=class extends pe{},wy=hm;var Ai=class extends Lt(wy){constructor(){super({context:Ac.context,initialValue:new Ac(xa.VARIANT,!0,xa.SUBMENU_TYPE)});this.variant=xa.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=xa.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===mr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return Ac.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case mr.FIXED_EXPANDED:this.expanded=!0;break;case mr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==Mo.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===Mo.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===mr.FLEXIBLE||this.variant===mr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===Mo.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${ur}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let d=document.createElement(ae);for(d.setAttribute("triggerid",i),d.setAttribute("data-dynamic-popover",""),d.setAttribute("placement","right-start");e.firstChild;)d.appendChild(e.firstChild);e.after(d),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let a=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(a){for(;e.firstChild;)a.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,j;if(this.submenuType!==Mo.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===ur))return;let a=e,d=this.getActionForKeyEvent(t);if(d===H.ESCAPE){let Z=e.closest("div[data-trigger]");if(!Z)return;let rt=Z.getAttribute("data-trigger");if(!rt)return;let st=this.querySelector(`${ur}#${CSS.escape(rt)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,v=a.hasAttribute("in-dropdown-container"),S=a.getAttribute("aria-expanded")==="true",R=Z=>{var rt,st;return(st=(rt=Z.parentElement)==null?void 0:rt.querySelector(`div[data-trigger="${Z.id}"]`))!=null?st:null},U=Z=>Z==null?void 0:Z.querySelector(`${ur}:not([disabled])`);if(v){let Z=e.closest("div[data-trigger]");if(!Z)return;let rt=Array.from(Z.querySelectorAll(`${ur}:not([disabled])`)),st=rt.indexOf(a);if(st===-1)return;switch(d){case H.DOWN:{let ht=st+1<rt.length?st+1:0;rt[ht].focus(),t.preventDefault();break}case H.UP:{let ht=st>0?st-1:rt.length-1;rt[ht].focus(),t.preventDefault();break}case H.RIGHT:{let ht=this.navMenuItems.filter(Ct=>!Ct.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(Ct=>Ct.id===bt);if(yt!==-1&&yt+1<ht.length){let Ct=ht[yt+1];if(Ct.focus(),f.isDropDownParent(Ct)){Ct.openDropdown();let Rt=R(Ct);(J=U(Rt))==null||J.focus()}}break}case H.LEFT:{let ht=this.navMenuItems.filter(Ct=>!Ct.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(Ct=>Ct.id===bt);if(yt>0){let Ct=ht[yt-1];if(Ct.focus(),f.isDropDownParent(Ct)){Ct.openDropdown();let Rt=R(Ct);(j=U(Rt))==null||j.focus()}}break}default:t.preventDefault()}}if(d===H.RIGHT){let Z=R(a);if(Z){S||a.openDropdown();let rt=U(Z);rt&&(rt.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(mr).includes(t)?t:xa.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===mr.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){this.getActionForKeyEvent(t)===H.SPACE&&t.preventDefault()}render(){var t;return this.variant===mr.HIDDEN?A``:A`
5265
+ `,_y=[Y0];var hm=class extends pe{},wy=hm;var Si=class extends Lt(wy){constructor(){super({context:Ac.context,initialValue:new Ac(xa.VARIANT,!0,xa.SUBMENU_TYPE)});this.variant=xa.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=xa.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===mr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return Ac.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case mr.FIXED_EXPANDED:this.expanded=!0;break;case mr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==Mo.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===Mo.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===mr.FLEXIBLE||this.variant===mr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===Mo.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${ur}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let d=document.createElement(ae);for(d.setAttribute("triggerid",i),d.setAttribute("data-dynamic-popover",""),d.setAttribute("placement","right-start");e.firstChild;)d.appendChild(e.firstChild);e.after(d),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let a=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(a){for(;e.firstChild;)a.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,j;if(this.submenuType!==Mo.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===ur))return;let a=e,d=this.getActionForKeyEvent(t);if(d===H.ESCAPE){let Z=e.closest("div[data-trigger]");if(!Z)return;let rt=Z.getAttribute("data-trigger");if(!rt)return;let st=this.querySelector(`${ur}#${CSS.escape(rt)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,v=a.hasAttribute("in-dropdown-container"),S=a.getAttribute("aria-expanded")==="true",R=Z=>{var rt,st;return(st=(rt=Z.parentElement)==null?void 0:rt.querySelector(`div[data-trigger="${Z.id}"]`))!=null?st:null},U=Z=>Z==null?void 0:Z.querySelector(`${ur}:not([disabled])`);if(v){let Z=e.closest("div[data-trigger]");if(!Z)return;let rt=Array.from(Z.querySelectorAll(`${ur}:not([disabled])`)),st=rt.indexOf(a);if(st===-1)return;switch(d){case H.DOWN:{let ht=st+1<rt.length?st+1:0;rt[ht].focus(),t.preventDefault();break}case H.UP:{let ht=st>0?st-1:rt.length-1;rt[ht].focus(),t.preventDefault();break}case H.RIGHT:{let ht=this.navMenuItems.filter(Ct=>!Ct.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(Ct=>Ct.id===bt);if(yt!==-1&&yt+1<ht.length){let Ct=ht[yt+1];if(Ct.focus(),f.isDropDownParent(Ct)){Ct.openDropdown();let Rt=R(Ct);(J=U(Rt))==null||J.focus()}}break}case H.LEFT:{let ht=this.navMenuItems.filter(Ct=>!Ct.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(Ct=>Ct.id===bt);if(yt>0){let Ct=ht[yt-1];if(Ct.focus(),f.isDropDownParent(Ct)){Ct.openDropdown();let Rt=R(Ct);(j=U(Rt))==null||j.focus()}}break}default:t.preventDefault()}}if(d===H.RIGHT){let Z=R(a);if(Z){S||a.openDropdown();let rt=U(Z);rt&&(rt.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(mr).includes(t)?t:xa.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===mr.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){this.getActionForKeyEvent(t)===H.SPACE&&t.preventDefault()}render(){var t;return this.variant===mr.HIDDEN?A``:A`
5266
5266
  <div part="side-navigation-container" id="side-nav-container">
5267
5267
  <div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
5268
5268
  <slot name="scrollable-section">
@@ -5306,7 +5306,7 @@
5306
5306
  aria-controls="side-nav-container"
5307
5307
  ></mdc-button>
5308
5308
  </mdc-divider>`:G}
5309
- `}};Ai.styles=[...Q.styles,..._y],h([u({type:String,reflect:!0})],Ai.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Ai.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Ai.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Ai.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Ai.prototype,"hideFixedSectionDivider",2),h([u({type:String,reflect:!0,attribute:"submenu-type"})],Ai.prototype,"submenuType",2);var Ss=Ai;var j0=z`
5309
+ `}};Si.styles=[...Q.styles,..._y],h([u({type:String,reflect:!0})],Si.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Si.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Si.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Si.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Si.prototype,"hideFixedSectionDivider",2),h([u({type:String,reflect:!0,attribute:"submenu-type"})],Si.prototype,"submenuType",2);var Ss=Si;var j0=z`
5310
5310
  :host {
5311
5311
  --mdc-menusection-divider-margin-block: 0.25rem;
5312
5312
  --mdc-menusection-gap: 0rem;
@@ -5327,7 +5327,7 @@
5327
5327
  :host::part(align-header) {
5328
5328
  --mdc-listheader-padding: var(--mdc-menusection-header-padding);
5329
5329
  }
5330
- `,ky=[j0];var Si=class extends Q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=hy.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=me.consume({host:this,context:Ss.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var a;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(a=this.sideNavigationContext)==null?void 0:a.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?A` <mdc-listheader
5330
+ `,ky=[j0];var Ii=class extends Q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=hy.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=me.consume({host:this,context:Ss.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var a;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(a=this.sideNavigationContext)==null?void 0:a.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?A` <mdc-listheader
5331
5331
  part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
5332
5332
  header-text="${this.headerText}"
5333
5333
  prefix-icon="${tt(this.prefixIcon)}"
@@ -5336,7 +5336,7 @@
5336
5336
  ${this.hideHeaderText?null:this.renderHeader()}
5337
5337
  <slot part="container"></slot>
5338
5338
  ${this.showDivider?A`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
5339
- `}};Si.styles=[...Q.styles,...ky],h([u({type:String,reflect:!0,attribute:"aria-label"})],Si.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Si.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Si.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Si.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],Si.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Si.prototype,"hideHeaderText",2);var pm=Si;pm.register(Zi);var q0=pm;var X0=[xt,z`
5339
+ `}};Ii.styles=[...Q.styles,...ky],h([u({type:String,reflect:!0,attribute:"aria-label"})],Ii.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Ii.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Ii.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Ii.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],Ii.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Ii.prototype,"hideHeaderText",2);var pm=Ii;pm.register(Qi);var q0=pm;var X0=[xt,z`
5340
5340
  :host {
5341
5341
  --mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
5342
5342
  --mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
@@ -5620,7 +5620,7 @@
5620
5620
  <div part="spinner-buttons">
5621
5621
  ${this.renderSpinnerButton("decrement")} ${this.renderSpinnerButton("increment")}
5622
5622
  </div>
5623
- `}renderInputElement(t,e){return super.renderInputElement(bi.NUMBER,e)}};$r.styles=[...pr.styles,...My],h([u({type:String,reflect:!0})],$r.prototype,"inputmode",2),h([u({type:Number,attribute:"min"})],$r.prototype,"min",2),h([u({type:Number,attribute:"max"})],$r.prototype,"max",2),h([u({attribute:"step",converter:{fromAttribute:t=>{if(t===fr.STEP_ANY)return fr.STEP_ANY;let e=t===null?NaN:parseFloat(t);return Number.isNaN(e)?fr.STEP:e},toAttribute:t=>String(t)}})],$r.prototype,"step",2),h([u({type:Boolean,attribute:"hide-spinner-buttons"})],$r.prototype,"hideSpinnerButtons",2),h([u({type:String,attribute:"increment-aria-label"})],$r.prototype,"incrementAriaLabel",2),h([u({type:String,attribute:"decrement-aria-label"})],$r.prototype,"decrementAriaLabel",2),h([u({type:String,reflect:!0})],$r.prototype,"clamp",2);var vm=$r;vm.register(Ly);var J0=vm;var Oy="check-bold",Cr=$.constructTagName("option");var Sc=$.constructTagName("optgroup"),gm="header-id";var tI=z`
5623
+ `}renderInputElement(t,e){return super.renderInputElement(yi.NUMBER,e)}};$r.styles=[...pr.styles,...My],h([u({type:String,reflect:!0})],$r.prototype,"inputmode",2),h([u({type:Number,attribute:"min"})],$r.prototype,"min",2),h([u({type:Number,attribute:"max"})],$r.prototype,"max",2),h([u({attribute:"step",converter:{fromAttribute:t=>{if(t===fr.STEP_ANY)return fr.STEP_ANY;let e=t===null?NaN:parseFloat(t);return Number.isNaN(e)?fr.STEP:e},toAttribute:t=>String(t)}})],$r.prototype,"step",2),h([u({type:Boolean,attribute:"hide-spinner-buttons"})],$r.prototype,"hideSpinnerButtons",2),h([u({type:String,attribute:"increment-aria-label"})],$r.prototype,"incrementAriaLabel",2),h([u({type:String,attribute:"decrement-aria-label"})],$r.prototype,"decrementAriaLabel",2),h([u({type:String,reflect:!0})],$r.prototype,"clamp",2);var vm=$r;vm.register(Ly);var J0=vm;var Oy="check-bold",Cr=$.constructTagName("option");var Sc=$.constructTagName("optgroup"),gm="header-id";var tI=z`
5624
5624
  :host {
5625
5625
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
5626
5626
  }
@@ -5682,7 +5682,7 @@
5682
5682
  :host([data-hidden]) {
5683
5683
  display: none;
5684
5684
  }
5685
- `],Dy=rI;var Is=class extends ve(Xi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=qn.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return A` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Oy):G;return A`
5685
+ `],Dy=rI;var Is=class extends ve(Zi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=qn.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return A` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Oy):G;return A`
5686
5686
  <div part="leading">
5687
5687
  <slot name="leading-controls">
5688
5688
  ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):G}
@@ -5693,7 +5693,7 @@
5693
5693
  </div>
5694
5694
  </div>
5695
5695
  <div part="trailing">${t}</div>
5696
- `}};Is.styles=[...Xi.styles,...Dy],h([u({type:Boolean,reflect:!0})],Is.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Is.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Is.prototype,"ariaLabel",2);var ym=Is;ym.register(Cr);var iI=ym;var Em={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Py=$.constructTagName("password");var oI=[z`
5696
+ `}};Is.styles=[...Zi.styles,...Dy],h([u({type:Boolean,reflect:!0})],Is.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Is.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Is.prototype,"ariaLabel",2);var ym=Is;ym.register(Cr);var iI=ym;var Em={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Py=$.constructTagName("password");var oI=[z`
5697
5697
  input::-ms-reveal {
5698
5698
  display: none;
5699
5699
  }
@@ -5709,7 +5709,7 @@
5709
5709
  aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
5710
5710
  prefix-icon=${this.showPassword?Em.HIDE_BOLD:Em.SHOW_BOLD}
5711
5711
  ></mdc-button>
5712
- `:G}renderInputElement(t,e){let i=this.showPassword?bi.TEXT:bi.PASSWORD;return super.renderInputElement(i,e)}};Cs.styles=[...pr.styles,...Fy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],Cs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],Cs.prototype,"hideButtonAriaLabel",2),h([lt()],Cs.prototype,"showPassword",2);var Tm=Cs;Tm.register(Py);var sI=Tm;var Ic=$.constructTagName("progressbar"),Cc={DEFAULT:"default",INLINE:"inline"},$y={VARIANT:Cc.DEFAULT,VALIDATION:te.DEFAULT};var aI=[xt,z`
5712
+ `:G}renderInputElement(t,e){let i=this.showPassword?yi.TEXT:yi.PASSWORD;return super.renderInputElement(i,e)}};Cs.styles=[...pr.styles,...Fy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],Cs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],Cs.prototype,"hideButtonAriaLabel",2),h([lt()],Cs.prototype,"showPassword",2);var Tm=Cs;Tm.register(Py);var sI=Tm;var Ic=$.constructTagName("progressbar"),Cc={DEFAULT:"default",INLINE:"inline"},$y={VARIANT:Cc.DEFAULT,VALIDATION:te.DEFAULT};var aI=[xt,z`
5713
5713
  :host {
5714
5714
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
5715
5715
  --mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
@@ -6012,7 +6012,7 @@
6012
6012
  slot[name='filters']::slotted(:first-child) {
6013
6013
  margin-left: 0.25rem;
6014
6014
  }
6015
- `,Yy=[uI];var jy=$.constructTagName("searchfield"),kc={TYPE:bi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var fI=[Qd,ya,rd],qy=fI.join(", ");var ws=class extends xi(Ot(pr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===H.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===H.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===H.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===H.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===H.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,a=i.value.length;i.setSelectionRange(a,a),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var d,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),a=i&&(f=(d=this.chips)==null?void 0:d.indexOf(i))!=null?f:-1;a>=0&&(this.focusedChipIndex=a,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var d;if(super.handleKeyDown(t),this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(e===H.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((d=this.chips)!=null&&d.length))return;let i=this.inputElement,a=i.selectionStart===0&&i.selectionEnd===0;if(e===H.BACKSPACE&&a){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===H.LEFT&&a){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===H.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=kc.ICON,this.trailingButton=kc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(qy)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.disabled||this.softDisabled||this.readonly||(this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove())}clearInputText(){var e;if(this.disabled||this.softDisabled||this.readonly)return;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(this.disabled||this.softDisabled||this.readonly||!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(ya)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,a,d;if((i=this.chips)!=null&&i.includes(t))return t;let e=(a=t.getRootNode())==null?void 0:a.host;return e&&((d=this.chips)!=null&&d.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),a=t.getBoundingClientRect();a.left<i.left?e.scrollLeft-=i.left-a.left:a.right>i.right&&(e.scrollLeft+=a.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let a=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,a)}render(){return A`
6015
+ `,Yy=[uI];var jy=$.constructTagName("searchfield"),kc={TYPE:yi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var fI=[Qd,ya,rd],qy=fI.join(", ");var ws=class extends Ai(Ot(pr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===H.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===H.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===H.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===H.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===H.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,a=i.value.length;i.setSelectionRange(a,a),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var d,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),a=i&&(f=(d=this.chips)==null?void 0:d.indexOf(i))!=null?f:-1;a>=0&&(this.focusedChipIndex=a,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var d;if(super.handleKeyDown(t),this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(e===H.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((d=this.chips)!=null&&d.length))return;let i=this.inputElement,a=i.selectionStart===0&&i.selectionEnd===0;if(e===H.BACKSPACE&&a){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===H.LEFT&&a){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===H.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=kc.ICON,this.trailingButton=kc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(qy)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.disabled||this.softDisabled||this.readonly||(this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove())}clearInputText(){var e;if(this.disabled||this.softDisabled||this.readonly)return;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(this.disabled||this.softDisabled||this.readonly||!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(ya)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,a,d;if((i=this.chips)!=null&&i.includes(t))return t;let e=(a=t.getRootNode())==null?void 0:a.host;return e&&((d=this.chips)!=null&&d.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),a=t.getBoundingClientRect();a.left<i.left?e.scrollLeft-=i.left-a.left:a.right>i.right&&(e.scrollLeft+=a.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let a=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,a)}render(){return A`
6016
6016
  ${this.renderLabelElement()}
6017
6017
  <div
6018
6018
  class="${Qr({"mdc-focus-ring":this.isInputFocused})}"
@@ -6061,7 +6061,7 @@
6061
6061
  min-width: auto;
6062
6062
  padding: 0.75rem 0.5rem;
6063
6063
  }
6064
- `,Xy=[gI];var Zy=$.constructTagName("searchpopover"),_m={TYPE:bi.TEXT,DISPLAY_POPOVER:!1},wm="searchpopover-container-triggerid",Nc="searchpopover-popoverid";var Do=class extends _a{constructor(){super(...arguments);this.displayPopover=_m.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="filters-container"]'))!=null?e:null}handlePopoverHidden(){var t;(this===document.activeElement||this.contains(document.activeElement))&&((t=this.inputElement)==null||t.focus())}renderInputElement(){var e,i;let t=this.hasChips?"":this.placeholder;return A`<input
6064
+ `,Xy=[gI];var Zy=$.constructTagName("searchpopover"),_m={TYPE:yi.TEXT,DISPLAY_POPOVER:!1},wm="searchpopover-container-triggerid",Nc="searchpopover-popoverid";var Do=class extends _a{constructor(){super(...arguments);this.displayPopover=_m.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="filters-container"]'))!=null?e:null}handlePopoverHidden(){var t;(this===document.activeElement||this.contains(document.activeElement))&&((t=this.inputElement)==null||t.focus())}renderInputElement(){var e,i;let t=this.hasChips?"":this.placeholder;return A`<input
6065
6065
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
6066
6066
  part="input-text"
6067
6067
  id="${this.inputId}"
@@ -6232,7 +6232,7 @@
6232
6232
  :host([soft-disabled])::part(base-text) {
6233
6233
  --mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
6234
6234
  }
6235
- `,eE=[yI,...At(!0)];var vr=class extends Ei(Lt(Ti(Ve(ve(oe(ee)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=tE.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||a.length===0)return;let d=i+1;if(d>=a.length&&(d=i-1),d===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(d),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?a[d]:a[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Cr}:not([disabled])`);this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var a;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((a=this.selectedOption)==null?void 0:a.value)&&this.navItems.length){let d=this.getFirstSelectedOption(),f=this.getFirstOption(),v=this.navItems.find(R=>R.value===i),S=null;if(v)S=v;else if(this.placeholder)S=null;else if(f)S=f;else if(d)S=d;else return;this.updateComplete.then(()=>{this.setSelectedOption(S)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===Cr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,a;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(a=this.inputElement)==null||a.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(a=>a.value===t||a.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=qd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var a;return(a=i.getAttribute("label"))==null?void 0:a.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],a=this.filterOptionsBySearchKey(i,t),d=null;if(a.length)[d]=a;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],v=this.filterOptionsBySearchKey(i,t[0]),S=v.filter(R=>R===f);d=S.length?S[0]:v[0]}this.navItems.indexOf(d)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(d))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.DEFAULT)switch(e){case H.DOWN:case H.UP:case H.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case H.SPACE:t.preventDefault(),t.stopPropagation();break;case H.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case H.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===H.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&e===H.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===re.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,a,d,f;return A`
6235
+ `,eE=[yI,...At(!0)];var vr=class extends Ti(Lt(xi(Ve(ve(oe(ee)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=tE.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||a.length===0)return;let d=i+1;if(d>=a.length&&(d=i-1),d===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(d),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?a[d]:a[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Cr}:not([disabled])`);this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var a;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((a=this.selectedOption)==null?void 0:a.value)&&this.navItems.length){let d=this.getFirstSelectedOption(),f=this.getFirstOption(),v=this.navItems.find(R=>R.value===i),S=null;if(v)S=v;else if(this.placeholder)S=null;else if(f)S=f;else if(d)S=d;else return;this.updateComplete.then(()=>{this.setSelectedOption(S)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===Cr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,a;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(a=this.inputElement)==null||a.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(a=>a.value===t||a.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=qd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var a;return(a=i.getAttribute("label"))==null?void 0:a.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],a=this.filterOptionsBySearchKey(i,t),d=null;if(a.length)[d]=a;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],v=this.filterOptionsBySearchKey(i,t[0]),S=v.filter(R=>R===f);d=S.length?S[0]:v[0]}this.navItems.indexOf(d)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(d))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.DEFAULT)switch(e){case H.DOWN:case H.UP:case H.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case H.SPACE:t.preventDefault(),t.stopPropagation();break;case H.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case H.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===H.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&e===H.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===re.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,a,d,f;return A`
6236
6236
  ${this.renderLabel()}
6237
6237
  <div part="container">
6238
6238
  <div
@@ -6458,7 +6458,7 @@
6458
6458
  <svg part="container" viewBox="0 0 100 100">
6459
6459
  <circle part="circle" cx="50" cy="50" r="46"></circle>
6460
6460
  </svg>
6461
- `}};Po.styles=[...Q.styles,...sE],h([u({type:Boolean,reflect:!0})],Po.prototype,"inverted",2),h([u({type:String,reflect:!0})],Po.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],Po.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],Po.prototype,"variant",2);var Pm=Po;Pm.register(aE);var wI=Pm;$n.register(vb);var kI=$n;var NI={COMPLETE:"complete",INCOMPLETE:"incomplete"},Fm={VERTICAL:"vertical",HORIZONTAL:"horizontal"},$m={STATUS:NI.INCOMPLETE,ORIENTATION:Fm.HORIZONTAL},nE=$.constructTagName("stepperconnector");var lE=$.constructTagName("stepperitem"),Vm={INLINE:"inline",STACKED:"stacked"},Qi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Rc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},zm={VARIANT:Vm.INLINE,STATUS:Qi.NOT_STARTED};var Dc=$.constructTagName("stepper"),hl={ORIENTATION:Fm.HORIZONTAL,VARIANT:Vm.INLINE};var Pc=class{constructor(o,t){this.orientation=o,this.variant=t}};Pc.context=Dc;var Fc=Pc;var LI=z`
6461
+ `}};Po.styles=[...Q.styles,...sE],h([u({type:Boolean,reflect:!0})],Po.prototype,"inverted",2),h([u({type:String,reflect:!0})],Po.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],Po.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],Po.prototype,"variant",2);var Pm=Po;Pm.register(aE);var wI=Pm;$n.register(vb);var kI=$n;var NI={COMPLETE:"complete",INCOMPLETE:"incomplete"},Fm={VERTICAL:"vertical",HORIZONTAL:"horizontal"},$m={STATUS:NI.INCOMPLETE,ORIENTATION:Fm.HORIZONTAL},nE=$.constructTagName("stepperconnector");var lE=$.constructTagName("stepperitem"),Vm={INLINE:"inline",STACKED:"stacked"},Jr={COMPLETED:"completed",CURRENT:"current",LOADING:"loading",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Rc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},zm={VARIANT:Vm.INLINE,STATUS:Jr.NOT_STARTED};var Dc=$.constructTagName("stepper"),hl={ORIENTATION:Fm.HORIZONTAL,VARIANT:Vm.INLINE};var Pc=class{constructor(o,t){this.orientation=o,this.variant=t}};Pc.context=Dc;var Fc=Pc;var LI=z`
6462
6462
  :host {
6463
6463
  gap: 0.5rem;
6464
6464
  }
@@ -6583,6 +6583,10 @@
6583
6583
  color: var(--mdc-stepperitem-label-color);
6584
6584
  }
6585
6585
 
6586
+ :host::part(status-spinner) {
6587
+ --mdc-spinner-size: 1rem;
6588
+ }
6589
+
6586
6590
  :host::part(label-container) {
6587
6591
  background-color: var(--mdc-stepperitem-label-container-background);
6588
6592
  border-radius: 0.5rem;
@@ -6609,7 +6613,8 @@
6609
6613
  :host([status='completed'])::part(status-icon) {
6610
6614
  --mdc-icon-fill-color: var(--mds-color-theme-inverted-text-primary-normal);
6611
6615
  }
6612
- :host([status='current'])::part(status-container) {
6616
+ :host([status='current'])::part(status-container),
6617
+ :host([status='loading'])::part(status-container) {
6613
6618
  --mdc-stepperitem-status-container-border-color: var(--mds-color-theme-control-active-normal);
6614
6619
  }
6615
6620
  :host([status='error-current'])::part(status-container) {
@@ -6642,11 +6647,13 @@
6642
6647
  --mdc-stepperitem-status-container-background: var(--mds-color-theme-control-active-active);
6643
6648
  }
6644
6649
 
6645
- :host([status='current']:hover)::part(status-container) {
6650
+ :host([status='current']:hover)::part(status-container),
6651
+ :host([status='loading']:hover)::part(status-container) {
6646
6652
  --mdc-stepperitem-status-container-background: var(--mds-color-theme-outline-secondary-normal);
6647
6653
  --mdc-stepperitem-status-container-border-color: var(--mds-color-theme-control-active-hover);
6648
6654
  }
6649
- :host([status='current']:active)::part(status-container) {
6655
+ :host([status='current']:active)::part(status-container),
6656
+ :host([status='loading']:active)::part(status-container) {
6650
6657
  --mdc-stepperitem-status-container-background: var(--mds-color-theme-background-secondary-active);
6651
6658
  --mdc-stepperitem-status-container-border-color: var(--mds-color-theme-control-active-hover);
6652
6659
  }
@@ -6744,17 +6751,21 @@
6744
6751
  :host([disabled][status='completed'])::part(status-icon) {
6745
6752
  --mdc-icon-fill-color: var(--mds-color-theme-inverted-text-primary-disabled);
6746
6753
  }
6747
- `,hE=[xt,DI,...At()];var Ji=class extends Ot(Lt(si(Zt(Q)))){constructor(){super();this.variant=zm.VARIANT;this.status=zm.STATUS;this.label="";this.stepperContext=me.consume({host:this,context:ks.Context});this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.variant&&this.variant!==e.variant&&(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}handleKeyDown(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.add("pressed"),e===H.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.remove("pressed"),e===H.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Qi.COMPLETED?A`<mdc-icon part="status-icon" name=${Rc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Qi.ERROR_CURRENT||this.status===Qi.CURRENT?A`<mdc-icon part="status-icon" name=${Rc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Qi.NOT_STARTED||this.status===Qi.ERROR_INCOMPLETE)?A`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6754
+
6755
+ :host([disabled])::part(status-spinner) {
6756
+ --mdc-spinner-default-color: var(--mds-color-theme-text-primary-disabled);
6757
+ }
6758
+ `,hE=[xt,DI,...At()];var Ji=class extends Ot(Lt(ai(Zt(Q)))){constructor(){super();this.variant=zm.VARIANT;this.status=zm.STATUS;this.label="";this.stepperContext=me.consume({host:this,context:ks.Context});this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.variant&&this.variant!==e.variant&&(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}handleKeyDown(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.add("pressed"),e===H.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.remove("pressed"),e===H.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Jr.LOADING?A`<mdc-spinner part="status-spinner"></mdc-spinner>`:this.status===Jr.COMPLETED?A`<mdc-icon part="status-icon" name=${Rc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Jr.ERROR_CURRENT||this.status===Jr.CURRENT?A`<mdc-icon part="status-icon" name=${Rc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Jr.NOT_STARTED||this.status===Jr.ERROR_INCOMPLETE)?A`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6748
6759
  >${this.stepNumber}</mdc-text
6749
6760
  >`:G}renderHelpText(){if(!this.helpText)return G;let t=A`<mdc-text
6750
6761
  part="help-text"
6751
6762
  tagname=${pt.SPAN}
6752
6763
  type=${at.BODY_MIDSIZE_REGULAR}
6753
6764
  >${this.helpText}</mdc-text
6754
- >`;return this.status===Qi.ERROR_INCOMPLETE||this.status===Qi.ERROR_CURRENT?A`<div part="help-text-container">
6765
+ >`;return this.status===Jr.ERROR_INCOMPLETE||this.status===Jr.ERROR_CURRENT?A`<div part="help-text-container">
6755
6766
  <mdc-icon part="help-icon" name=${Rc.ERROR} length-unit="rem" size="1"></mdc-icon>
6756
6767
  ${t}
6757
- </div>`:t}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.classList.remove("pressed"),this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}render(){return A` <div part="status-container">${this.renderStatusIcon()}</div>
6768
+ </div>`:t}update(t){super.update(t),t.has("status")&&(this.ariaBusy=this.status===Jr.LOADING?"true":null),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.classList.remove("pressed"),this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}render(){return A` <div part="status-container">${this.renderStatusIcon()}</div>
6758
6769
  <div part="label-container">
6759
6770
  ${this.label?A`<mdc-text part="label" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6760
6771
  >${this.label}</mdc-text
@@ -7056,7 +7067,7 @@
7056
7067
  :host mdc-button[prefix-icon='arrow-right-regular'] {
7057
7068
  margin-left: var(--mdc-tablist-arrow-button-margin);
7058
7069
  }
7059
- `],fE=[...$I];var vE=$.constructTagName("tablist"),Oa={FORWARD:"forward",BACKWARD:"backward"};var Ii=class extends Ei(Ti(Ot(Lt(zc(Q))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.boundHandleFocus=t=>{this.handleFocus(t)};this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${La}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1);let d=this.navItems.at(a);d instanceof eo&&d.focus(),this.resetTabIndexes(a,!1)}}resetTabIndexAndSetFocus(t,e){var d;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),a=(d=this.navItems)==null?void 0:d.at(t);return a instanceof eo&&a.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,a;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(d=>d.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=Km(this.navItems))==null?void 0:i.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.boundHandleFocus)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.boundHandleFocus)}focus(t){let e=Vc(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof eo||!(t.target instanceof eo)||t.relatedTarget instanceof vo)return;let e=Vc(this.navItems||[]);if(!(e instanceof eo))return;let i=this.navItems.findIndex(a=>a===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===Oa.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Vc(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var U,J,j;if(!this.navItems||!this.tabsContainer)return;let t=!1;((U=this.shadowRoot)==null?void 0:U.activeElement)instanceof vo&&(t=!0);let e=Km(this.navItems),i=mE(this.navItems);if(!e||!i)return;let a=e.getBoundingClientRect().left,d=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().left,f=i.getBoundingClientRect().right,v=(j=this.tabsContainer)==null?void 0:j.getBoundingClientRect().right,S=e.getBoundingClientRect().right,R=i.getBoundingClientRect().left;if(!this.isRtl()){a<=d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>v?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}S>v?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,R<d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var a;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(t===Oa.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=a=>A` ${this.shouldShowArrowButton(a)?A`<mdc-button
7070
+ `],fE=[...$I];var vE=$.constructTagName("tablist"),Oa={FORWARD:"forward",BACKWARD:"backward"};var Ci=class extends Ti(xi(Ot(Lt(zc(Q))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.boundHandleFocus=t=>{this.handleFocus(t)};this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${La}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1);let d=this.navItems.at(a);d instanceof eo&&d.focus(),this.resetTabIndexes(a,!1)}}resetTabIndexAndSetFocus(t,e){var d;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),a=(d=this.navItems)==null?void 0:d.at(t);return a instanceof eo&&a.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,a;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(d=>d.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=Km(this.navItems))==null?void 0:i.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.boundHandleFocus)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.boundHandleFocus)}focus(t){let e=Vc(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof eo||!(t.target instanceof eo)||t.relatedTarget instanceof vo)return;let e=Vc(this.navItems||[]);if(!(e instanceof eo))return;let i=this.navItems.findIndex(a=>a===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===Oa.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Vc(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var U,J,j;if(!this.navItems||!this.tabsContainer)return;let t=!1;((U=this.shadowRoot)==null?void 0:U.activeElement)instanceof vo&&(t=!0);let e=Km(this.navItems),i=mE(this.navItems);if(!e||!i)return;let a=e.getBoundingClientRect().left,d=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().left,f=i.getBoundingClientRect().right,v=(j=this.tabsContainer)==null?void 0:j.getBoundingClientRect().right,S=e.getBoundingClientRect().right,R=i.getBoundingClientRect().left;if(!this.isRtl()){a<=d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>v?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}S>v?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,R<d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var a;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(t===Oa.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=a=>A` ${this.shouldShowArrowButton(a)?A`<mdc-button
7060
7071
  variant="tertiary"
7061
7072
  prefix-icon="arrow-${a===Oa.FORWARD?t:e}-regular"
7062
7073
  aria-label="Scroll tabs ${a===Oa.FORWARD?t:e}"
@@ -7065,7 +7076,7 @@
7065
7076
  <div part="container" role="${et.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
7066
7077
  <slot></slot>
7067
7078
  </div>
7068
- ${i(Oa.FORWARD)}`}};Ii.styles=[...Q.styles,...fE],Ii.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],Ii.prototype,"dataAriaLabel",2),h([Ht('[part="container"]')],Ii.prototype,"tabsContainer",2),h([Ht("mdc-button:not(:focus-visible)")],Ii.prototype,"notFocusedArrowButton",2),h([lt()],Ii.prototype,"showForwardArrowButton",2),h([lt()],Ii.prototype,"showBackwardArrowButton",2);var Wm=Ii;Wm.register(vE);var VI=Wm;var gE=$.constructTagName("textarea"),Ym={HARD:"hard",SOFT:"soft"},bE={OFF:"off",ON:"on"},Bc={ROWS:5,COLS:40,WRAP:Ym.SOFT};var zI=[z`
7079
+ ${i(Oa.FORWARD)}`}};Ci.styles=[...Q.styles,...fE],Ci.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],Ci.prototype,"dataAriaLabel",2),h([Ht('[part="container"]')],Ci.prototype,"tabsContainer",2),h([Ht("mdc-button:not(:focus-visible)")],Ci.prototype,"notFocusedArrowButton",2),h([lt()],Ci.prototype,"showForwardArrowButton",2),h([lt()],Ci.prototype,"showBackwardArrowButton",2);var Wm=Ci;Wm.register(vE);var VI=Wm;var gE=$.constructTagName("textarea"),Ym={HARD:"hard",SOFT:"soft"},bE={OFF:"off",ON:"on"},Bc={ROWS:5,COLS:40,WRAP:Ym.SOFT};var zI=[z`
7069
7080
  :host {
7070
7081
  --mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
7071
7082
  --mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
@@ -7582,18 +7593,18 @@
7582
7593
  :host::part(typewriter-hidden) {
7583
7594
  display: none;
7584
7595
  }
7585
- `],xE=GI;var AE=$.constructTagName("typewriter"),Ns={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},Ci={TYPE:Me.TYPE,TEXT_ELEMENT_TAGNAME:Me.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CSS_PART_HIDDEN:"typewriter-hidden",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var Jr=class extends Q{constructor(){super(...arguments);this.type=Ci.TYPE;this.tagname=Ci.TEXT_ELEMENT_TAGNAME;this.speed=Ci.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,e){let i=window.setTimeout(()=>{this.pendingTimeouts.delete(i),t()},e);return this.pendingTimeouts.add(i),i}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,i){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:e,instant:i}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),e=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Ci.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Ci.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return Ns.SLOW;case"fast":return Ns.FAST;case"very-slow":return Ns.VERY_SLOW;case"very-fast":return Ns.VERY_FAST;case"normal":return Ns.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?Ns.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(a=>a.nodeType===Node.TEXT_NODE||a.nodeType===Node.ELEMENT_NODE).map(a=>a.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let e=()=>{if(this.currentIndex<this.originalText.length){let i=this.originalText[this.currentIndex],a=this.displayedText+i;a!==this.displayedText&&(this.displayedText=a,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(Ci.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return A`
7586
- <div part="${Ci.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
7596
+ `],xE=GI;var AE=$.constructTagName("typewriter"),Ns={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},_i={TYPE:Me.TYPE,TEXT_ELEMENT_TAGNAME:Me.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CSS_PART_HIDDEN:"typewriter-hidden",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var ti=class extends Q{constructor(){super(...arguments);this.type=_i.TYPE;this.tagname=_i.TEXT_ELEMENT_TAGNAME;this.speed=_i.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,e){let i=window.setTimeout(()=>{this.pendingTimeouts.delete(i),t()},e);return this.pendingTimeouts.add(i),i}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,i){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:e,instant:i}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),e=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(_i.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(_i.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return Ns.SLOW;case"fast":return Ns.FAST;case"very-slow":return Ns.VERY_SLOW;case"very-fast":return Ns.VERY_FAST;case"normal":return Ns.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?Ns.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(a=>a.nodeType===Node.TEXT_NODE||a.nodeType===Node.ELEMENT_NODE).map(a=>a.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let e=()=>{if(this.currentIndex<this.originalText.length){let i=this.originalText[this.currentIndex],a=this.displayedText+i;a!==this.displayedText&&(this.displayedText=a,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(_i.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return A`
7597
+ <div part="${_i.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
7587
7598
  <mdc-text
7588
- part="${Ci.CSS_PART_TEXT}"
7599
+ part="${_i.CSS_PART_TEXT}"
7589
7600
  type="${this.type}"
7590
7601
  tagname="${tt(this.tagname)}"
7591
7602
  aria-label="${this.originalText}"
7592
7603
  >${this.displayedText}</mdc-text
7593
7604
  >
7594
- <slot @slotchange=${this.handleSlotChange} part="${Ci.CSS_PART_HIDDEN}"></slot>
7605
+ <slot @slotchange=${this.handleSlotChange} part="${_i.CSS_PART_HIDDEN}"></slot>
7595
7606
  </div>
7596
- `}};Jr.styles=[...Q.styles,...xE],h([u({attribute:"type",reflect:!0,type:String})],Jr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Jr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],Jr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],Jr.prototype,"maxQueueSize",2),h([lt()],Jr.prototype,"displayedText",2),h([lt()],Jr.prototype,"originalText",2),h([lt()],Jr.prototype,"typingComplete",2);var Jm=Jr;Jm.register(AE);var KI=Jm;var Uc=$.constructTagName("themeprovider"),tu={THEMECLASS:"mds-theme-stable-darkWebex"};var Hc=class{constructor(o){this.themeclass=o}};Hc.context=Uc;var Gc=Hc;var WI=z`
7607
+ `}};ti.styles=[...Q.styles,...xE],h([u({attribute:"type",reflect:!0,type:String})],ti.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],ti.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],ti.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],ti.prototype,"maxQueueSize",2),h([lt()],ti.prototype,"displayedText",2),h([lt()],ti.prototype,"originalText",2),h([lt()],ti.prototype,"typingComplete",2);var Jm=ti;Jm.register(AE);var KI=Jm;var Uc=$.constructTagName("themeprovider"),tu={THEMECLASS:"mds-theme-stable-darkWebex"};var Hc=class{constructor(o){this.themeclass=o}};Hc.context=Uc;var Gc=Hc;var WI=z`
7597
7608
  :host {
7598
7609
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
7599
7610
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -7613,7 +7624,7 @@
7613
7624
  * {
7614
7625
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
7615
7626
  }
7616
- `,SE=[WI];var Ra=class extends pe{constructor(){super({context:Gc.context,initialValue:new Gc(tu.THEMECLASS)});this.themeclass=tu.THEMECLASS}static get Context(){return Gc.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(" "))}};Ra.styles=[...pe.styles,...SE],h([lt()],Ra.prototype,"currentThemeClass",2),h([u({type:String})],Ra.prototype,"themeclass",2);var eu=Ra;eu.register(Uc);var YI=eu;var IE=$.constructTagName("toast"),pl={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Kc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},gr={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:ar[20],BUTTON:Pi,PRIMARY_BUTTON:Ft.PRIMARY,SECONDARY_BUTTON:Ft.SECONDARY,TERTIARY_BUTTON:Ft.TERTIARY,VARIANT:pl.CUSTOM};var CE=n=>{switch(n){case pl.SUCCESS:return Kc.SUCCESS_ICON_NAME;case pl.WARNING:return Kc.WARNING_ICON_NAME;case pl.ERROR:return Kc.ERROR_ICON_NAME;default:return null}};var jI=z`
7627
+ `,SE=[WI];var Ra=class extends pe{constructor(){super({context:Gc.context,initialValue:new Gc(tu.THEMECLASS)});this.themeclass=tu.THEMECLASS}static get Context(){return Gc.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(" "))}};Ra.styles=[...pe.styles,...SE],h([lt()],Ra.prototype,"currentThemeClass",2),h([u({type:String})],Ra.prototype,"themeclass",2);var eu=Ra;eu.register(Uc);var YI=eu;var IE=$.constructTagName("toast"),pl={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Kc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},gr={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:ar[20],BUTTON:Fi,PRIMARY_BUTTON:Ft.PRIMARY,SECONDARY_BUTTON:Ft.SECONDARY,TERTIARY_BUTTON:Ft.TERTIARY,VARIANT:pl.CUSTOM};var CE=n=>{switch(n){case pl.SUCCESS:return Kc.SUCCESS_ICON_NAME;case pl.WARNING:return Kc.WARNING_ICON_NAME;case pl.ERROR:return Kc.ERROR_ICON_NAME;default:return null}};var jI=z`
7617
7628
  :host {
7618
7629
  --mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
7619
7630
  --mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
@@ -7833,7 +7844,7 @@
7833
7844
  :host([soft-disabled]) {
7834
7845
  pointer-events: none;
7835
7846
  }
7836
- `,...At(!0)],wE=XI;var Ls=class extends Lt(xi(Ve(ve(oe(hr))))){constructor(){super(...arguments);this.checked=!1;this.size=om.SIZE;this.renderLabelAndHelperText=()=>this.label?A`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:G}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);if(this.softDisabled&&e===H.ENTER){t.preventDefault();return}(this.readonly||this.softDisabled)&&e===H.SPACE&&t.preventDefault(),e===H.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ol).includes(t)?t:om.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return A`
7847
+ `,...At(!0)],wE=XI;var Ls=class extends Lt(Ai(Ve(ve(oe(hr))))){constructor(){super(...arguments);this.checked=!1;this.size=om.SIZE;this.renderLabelAndHelperText=()=>this.label?A`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:G}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);if(this.softDisabled&&e===H.ENTER){t.preventDefault();return}(this.readonly||this.softDisabled)&&e===H.SPACE&&t.preventDefault(),e===H.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ol).includes(t)?t:om.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return A`
7837
7848
  <mdc-statictoggle
7838
7849
  ?checked="${this.checked}"
7839
7850
  ?disabled="${this.disabled}"
@@ -7897,7 +7908,7 @@
7897
7908
  ::slotted(mdc-listitem) {
7898
7909
  position: relative;
7899
7910
  }
7900
- `],$E=rC;var VE=$.constructTagName("virtualizedlist"),tst=$.constructTagName("virtualizedwrapper"),Da={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var br=class extends oe(qi){constructor(){super();this.virtualizerProps=Da.VIRTUALIZER_PROPS;this.loop=Da.LOOP;this.scrollAnchoring=Da.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Da.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(a=>a===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Xn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Qt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Da.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,a;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let d=(a=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?a:"data-index";this.virtualizedNavItems=new qc(super.navItems,f=>Number(f.getAttribute(d)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Yc(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==Xn.VERTICAL&&(this.orientation=Xn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,a;this.observeSizeChanges&&((a=(i=this.virtualizer)==null?void 0:i.measureElement)==null||a.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var a,d;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((a=t==null?void 0:t.count)!=null?a:0)),v=this.selectedIndex,S=this.firstKey,R=new jc(v-f,v+f,{includeEnd:!0}),U=(d=Array.from(R).find(j=>e.options.getItemKey(j)===this.selectedKey))!=null?d:this.selectedIndex;if(this.setSelectedIndex(U),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&v!==this.selectedIndex||!this.focusWithin&&this.firstKey!==S){let j=e.measurementsCache[this.selectedIndex].end-i[v].end;this.scrollRef.scrollTop+=j}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,a,d,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(d=(a=this.virtualizer)==null?void 0:a.getVirtualItems)==null?void 0:d.call(a))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var v,S,R,U;let{navItems:e,virtualizerProps:i,virtualizer:a}=this,d=(S=(v=i.rangeExtractor)==null?void 0:v.call(i,t))!=null?S:su(t);return this.hiddenIndexes.forEach(J=>{let j=e.at(J);j&&(j.removeAttribute("data-virtualized-hidden"),j.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(U=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?U:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var j;d.includes(J)||(J<t.startIndex&&J>=0&&(d.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((j=a==null?void 0:a.options.count)!=null?j:0)&&(d.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),d.sort((J,j)=>J-j),d}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:a}=this;if(!a||i.count===0)return;let{measurementsCache:d}=a;this.hiddenIndexes.forEach(f=>{let v=e.at(f);if(v){let S=Math.max(t.startIndex-t.overscan,0),R=d[S],U=d[f];v.setAttribute("data-virtualized-hidden","true"),v.style.setProperty("--mdc-virtualizedlist-hidden-top",`${U.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let a=this.isElementSelected(t);if(t.tabIndex=a?0:-1,!a&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let d=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);d!==void 0&&this.setSelectedIndex(d)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,a,d,f;switch(this.getActionForKeyEvent(t)){case H.HOME:{(a=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||a.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case H.END:{let v=this.virtualizerProps.count-1;(f=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||f.call(d,v,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(v));break}case H.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let a=t;a>=0&&a<i;a+=e)if(this.isItemNavigable(a))return a;return null}resetTabIndexAndSetFocus(t,e,i=!0,a=i){if(this.navItems.find(v=>{var S;return((S=this.virtualizer)==null?void 0:S.indexFromElement(v))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let v=t>=e?1:-1,S=this.findNextNavigableIndex(t+v,v);return S!==null?this.resetTabIndexAndSetFocus(S,e,i,a):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,a),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,a);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,a;(a=(i=this.virtualizer).scrollToIndex)==null||a.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var a;let t=this.virtualItems.find(({index:d})=>!this.hiddenIndexes.includes(d)),e=(a=t==null?void 0:t.start)!=null?a:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return A`
7911
+ `],$E=rC;var VE=$.constructTagName("virtualizedlist"),est=$.constructTagName("virtualizedwrapper"),Da={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var br=class extends oe(Xi){constructor(){super();this.virtualizerProps=Da.VIRTUALIZER_PROPS;this.loop=Da.LOOP;this.scrollAnchoring=Da.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Da.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(a=>a===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Xn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Qt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Da.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,a;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let d=(a=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?a:"data-index";this.virtualizedNavItems=new qc(super.navItems,f=>Number(f.getAttribute(d)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Yc(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==Xn.VERTICAL&&(this.orientation=Xn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,a;this.observeSizeChanges&&((a=(i=this.virtualizer)==null?void 0:i.measureElement)==null||a.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var a,d;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((a=t==null?void 0:t.count)!=null?a:0)),v=this.selectedIndex,S=this.firstKey,R=new jc(v-f,v+f,{includeEnd:!0}),U=(d=Array.from(R).find(j=>e.options.getItemKey(j)===this.selectedKey))!=null?d:this.selectedIndex;if(this.setSelectedIndex(U),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&v!==this.selectedIndex||!this.focusWithin&&this.firstKey!==S){let j=e.measurementsCache[this.selectedIndex].end-i[v].end;this.scrollRef.scrollTop+=j}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,a,d,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(d=(a=this.virtualizer)==null?void 0:a.getVirtualItems)==null?void 0:d.call(a))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var v,S,R,U;let{navItems:e,virtualizerProps:i,virtualizer:a}=this,d=(S=(v=i.rangeExtractor)==null?void 0:v.call(i,t))!=null?S:su(t);return this.hiddenIndexes.forEach(J=>{let j=e.at(J);j&&(j.removeAttribute("data-virtualized-hidden"),j.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(U=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?U:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var j;d.includes(J)||(J<t.startIndex&&J>=0&&(d.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((j=a==null?void 0:a.options.count)!=null?j:0)&&(d.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),d.sort((J,j)=>J-j),d}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:a}=this;if(!a||i.count===0)return;let{measurementsCache:d}=a;this.hiddenIndexes.forEach(f=>{let v=e.at(f);if(v){let S=Math.max(t.startIndex-t.overscan,0),R=d[S],U=d[f];v.setAttribute("data-virtualized-hidden","true"),v.style.setProperty("--mdc-virtualizedlist-hidden-top",`${U.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let a=this.isElementSelected(t);if(t.tabIndex=a?0:-1,!a&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let d=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);d!==void 0&&this.setSelectedIndex(d)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,a,d,f;switch(this.getActionForKeyEvent(t)){case H.HOME:{(a=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||a.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case H.END:{let v=this.virtualizerProps.count-1;(f=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||f.call(d,v,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(v));break}case H.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let a=t;a>=0&&a<i;a+=e)if(this.isItemNavigable(a))return a;return null}resetTabIndexAndSetFocus(t,e,i=!0,a=i){if(this.navItems.find(v=>{var S;return((S=this.virtualizer)==null?void 0:S.indexFromElement(v))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let v=t>=e?1:-1,S=this.findNextNavigableIndex(t+v,v);return S!==null?this.resetTabIndexAndSetFocus(S,e,i,a):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,a),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,a);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,a;(a=(i=this.virtualizer).scrollToIndex)==null||a.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var a;let t=this.virtualItems.find(({index:d})=>!this.hiddenIndexes.includes(d)),e=(a=t==null?void 0:t.start)!=null?a:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return A`
7901
7912
  <slot name="list-header"></slot>
7902
7913
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
7903
7914
  <div part="wrapper">
@@ -7906,7 +7917,7 @@
7906
7917
  </div>
7907
7918
  </div>
7908
7919
  </div>
7909
- `}};br.styles=[...qi.styles,...$E],h([u({type:Object})],br.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],br.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],br.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],br.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],br.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],br.prototype,"atBottomThreshold",2),h([Ht('[part="scroll"]',!0)],br.prototype,"scrollRef",2),h([Ht('[part="wrapper"]',!0)],br.prototype,"wrapperRef",2),h([Ht('[part="container"]',!0)],br.prototype,"containerRef",2),h([Df({passive:!0})],br.prototype,"onScrollHandler",1);var nu=br;nu.register(VE);var iC=nu;Ee.register($f);var oC=Ee;var zE=$.constructTagName("combobox"),lu={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},du={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},BE="list";var cu="combobox-trigger-id";var $o=class{static dispatchComboboxEvent(o,t,e,i=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:i}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var sC=z`
7920
+ `}};br.styles=[...Xi.styles,...$E],h([u({type:Object})],br.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],br.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],br.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],br.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],br.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],br.prototype,"atBottomThreshold",2),h([Ht('[part="scroll"]',!0)],br.prototype,"scrollRef",2),h([Ht('[part="wrapper"]',!0)],br.prototype,"wrapperRef",2),h([Ht('[part="container"]',!0)],br.prototype,"containerRef",2),h([Df({passive:!0})],br.prototype,"onScrollHandler",1);var nu=br;nu.register(VE);var iC=nu;Ee.register($f);var oC=Ee;var zE=$.constructTagName("combobox"),lu={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},du={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},BE="list";var cu="combobox-trigger-id";var $o=class{static dispatchComboboxEvent(o,t,e,i=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:i}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var sC=z`
7910
7921
  :host {
7911
7922
  --mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
7912
7923
  --mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
@@ -8015,7 +8026,7 @@
8015
8026
  --mdc-icon-fill-color: ButtonText;
8016
8027
  }
8017
8028
  }
8018
- `,UE=[sC];var ke=class extends Ot(Lt(Ti(Ve(ve(oe(xi(ee))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=du.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(d=>d.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let d=t;if(d&&(!this.isValidItem(d)||d.tabIndex!==0))return;let f=this.navItems.findIndex(S=>S===d);if(f===-1)return;let v=f+1;v>=this.navItems.length&&(v=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Cr)}openPopover(){this.disabled||this.softDisabled||this.readonly||(this.isOpen=!0)}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===du.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||this.softDisabled||this.readonly||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let a=(t==null?void 0:t.getAttribute("label"))||"",d=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===d&&this.filteredValue===a)){if(this.controlType==="controlled"&&!i){e&&($o.onInputCombobox(this,t),$o.onChangeCombobox(this,t));return}this.filteredValue=a,this.value=d,this.lastCommittedValue=d,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&($o.onInputCombobox(this,t),$o.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=te.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let a=null;if(i!==""){let d=this.getFirstSelectedOption(),f=this.navItems.find(v=>v.value===i);if(f)a=f;else if(d)a=d;else if(this.placeholder)a=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(a,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,a;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(a=this.visualCombobox)==null||a.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){if(this.disabled||this.softDisabled||this.readonly)return;let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(a=>a.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(a=>(a.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let a=this.navItems.find(d=>d.value===this.lastCommittedValue);this.setSelectedValue(a)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=te.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var a;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(a=t[i])==null||a.scrollIntoView({block:"nearest"})}handleInputKeydown(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),i=e.findIndex(d=>d.hasAttribute("data-focused")),a=this.getKeyboardNavMode()===re.SPATIAL;switch(this.getActionForKeyEvent(t)){case H.DOWN:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case H.UP:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case H.ENTER:{if(a&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case H.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case H.TAB:{this.closePopover(),this.keyDownEventHandled();break}case H.HOME:case H.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let a=this.matchesFilter(i,this.filteredValue);a?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let d=i.parentElement;if(d&&d.matches(Sc)){let v=d;e.add(v),a&&t.set(v,((f=t.get(v))!=null?f:0)+1)}}),e.forEach(i=>{var f;let a=((f=t.get(i))!=null?f:0)>0,d=i.nextElementSibling;a?(i.removeAttribute("data-hidden"),d&&d.matches(Gn)&&d.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),d&&d.matches(Gn)&&d.setAttribute("data-hidden",""))})}handleInputChange(t){var e;this.preventSoftDisabledChange(t,this.filteredValue)||(t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),$o.onInputCombobox(this,{value:this.filteredValue}))}handleOptionsClick(t){var i;if(this.disabled||this.softDisabled||this.readonly)return;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(Cr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.softDisabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return A`
8029
+ `,UE=[sC];var ke=class extends Ot(Lt(xi(Ve(ve(oe(Ai(ee))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=du.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(d=>d.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let d=t;if(d&&(!this.isValidItem(d)||d.tabIndex!==0))return;let f=this.navItems.findIndex(S=>S===d);if(f===-1)return;let v=f+1;v>=this.navItems.length&&(v=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Cr)}openPopover(){this.disabled||this.softDisabled||this.readonly||(this.isOpen=!0)}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===du.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||this.softDisabled||this.readonly||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let a=(t==null?void 0:t.getAttribute("label"))||"",d=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===d&&this.filteredValue===a)){if(this.controlType==="controlled"&&!i){e&&($o.onInputCombobox(this,t),$o.onChangeCombobox(this,t));return}this.filteredValue=a,this.value=d,this.lastCommittedValue=d,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&($o.onInputCombobox(this,t),$o.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=te.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let a=null;if(i!==""){let d=this.getFirstSelectedOption(),f=this.navItems.find(v=>v.value===i);if(f)a=f;else if(d)a=d;else if(this.placeholder)a=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(a,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,a;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(a=this.visualCombobox)==null||a.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){if(this.disabled||this.softDisabled||this.readonly)return;let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(a=>a.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(a=>(a.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let a=this.navItems.find(d=>d.value===this.lastCommittedValue);this.setSelectedValue(a)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=te.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var a;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(a=t[i])==null||a.scrollIntoView({block:"nearest"})}handleInputKeydown(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),i=e.findIndex(d=>d.hasAttribute("data-focused")),a=this.getKeyboardNavMode()===re.SPATIAL;switch(this.getActionForKeyEvent(t)){case H.DOWN:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case H.UP:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case H.ENTER:{if(a&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case H.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case H.TAB:{this.closePopover(),this.keyDownEventHandled();break}case H.HOME:case H.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let a=this.matchesFilter(i,this.filteredValue);a?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let d=i.parentElement;if(d&&d.matches(Sc)){let v=d;e.add(v),a&&t.set(v,((f=t.get(v))!=null?f:0)+1)}}),e.forEach(i=>{var f;let a=((f=t.get(i))!=null?f:0)>0,d=i.nextElementSibling;a?(i.removeAttribute("data-hidden"),d&&d.matches(Gn)&&d.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),d&&d.matches(Gn)&&d.setAttribute("data-hidden",""))})}handleInputChange(t){var e;this.preventSoftDisabledChange(t,this.filteredValue)||(t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),$o.onInputCombobox(this,{value:this.filteredValue}))}handleOptionsClick(t){var i;if(this.disabled||this.softDisabled||this.readonly)return;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(Cr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.softDisabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return A`
8019
8030
  <input
8020
8031
  id="${this.inputId}"
8021
8032
  name="${this.name}"
@@ -8114,7 +8125,7 @@
8114
8125
  </mdc-popover>
8115
8126
  </div>
8116
8127
  ${this.renderHelperText()}
8117
- `}};ke.styles=[...pr.styles,...ee.styles,...UE],h([u({type:String})],ke.prototype,"placeholder",2),h([u({type:String,reflect:!0})],ke.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],ke.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ke.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],ke.prototype,"boundary",2),h([u({type:String,reflect:!0})],ke.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ke.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],ke.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ke.prototype,"backdropAppendTo",2),h([Ht(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([Ht('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([Xt({selector:Mc})],ke.prototype,"slottedListboxes",2),h([lt()],ke.prototype,"isOpen",2),h([lt()],ke.prototype,"filteredValue",2);var hu=ke;hu.register(zE);var aC=hu;var HE=(n,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(n[i],i);return e},GE=Bi(class extends ci{constructor(n){if(super(n),n.type!==xr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],a=[],d=0;for(let f of n)i[d]=e?e(f,d):d,a[d]=t(f,d),d++;return{values:a,keys:i}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,e]){var rt;let i=bv(n),{values:a,keys:d}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=d,a;let f=(rt=this.ut)!=null?rt:this.ut=[],v=[],S,R,U=0,J=i.length-1,j=0,Z=a.length-1;for(;U<=J&&j<=Z;)if(i[U]===null)U++;else if(i[J]===null)J--;else if(f[U]===d[j])v[j]=bo(i[U],a[j]),U++,j++;else if(f[J]===d[Z])v[Z]=bo(i[J],a[Z]),J--,Z--;else if(f[U]===d[Z])v[Z]=bo(i[U],a[Z]),Zs(n,v[Z+1],i[U]),U++,Z--;else if(f[J]===d[j])v[j]=bo(i[J],a[j]),Zs(n,i[U],i[J]),J--,j++;else if(S===void 0&&(S=HE(d,j,Z),R=HE(f,U,J)),S.has(f[U]))if(S.has(f[J])){let st=R.get(d[j]),ht=st!==void 0?i[st]:null;if(ht===null){let bt=Zs(n,i[U]);bo(bt,a[j]),v[j]=bt}else v[j]=bo(ht,a[j]),Zs(n,i[U],ht),i[st]=null;j++}else sd(i[J]),J--;else sd(i[U]),U++;for(;j<=Z;){let st=Zs(n,v[Z+1]);bo(st,a[j]),v[j++]=st}for(;U<=J;){let st=i[U++];st!==null&&sd(st)}return this.ut=d,od(n,v),$e}});var KE=$.constructTagName("slider"),nC={START:"start",END:"end",UNDEFINED:void 0},Vo={MIN:0,MAX:100,STEP:1,STATE:nC.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var lC=z`
8128
+ `}};ke.styles=[...pr.styles,...ee.styles,...UE],h([u({type:String})],ke.prototype,"placeholder",2),h([u({type:String,reflect:!0})],ke.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],ke.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ke.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],ke.prototype,"boundary",2),h([u({type:String,reflect:!0})],ke.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ke.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],ke.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ke.prototype,"backdropAppendTo",2),h([Ht(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([Ht('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([Xt({selector:Mc})],ke.prototype,"slottedListboxes",2),h([lt()],ke.prototype,"isOpen",2),h([lt()],ke.prototype,"filteredValue",2);var hu=ke;hu.register(zE);var aC=hu;var HE=(n,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(n[i],i);return e},GE=Ui(class extends hi{constructor(n){if(super(n),n.type!==xr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],a=[],d=0;for(let f of n)i[d]=e?e(f,d):d,a[d]=t(f,d),d++;return{values:a,keys:i}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,e]){var rt;let i=bv(n),{values:a,keys:d}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=d,a;let f=(rt=this.ut)!=null?rt:this.ut=[],v=[],S,R,U=0,J=i.length-1,j=0,Z=a.length-1;for(;U<=J&&j<=Z;)if(i[U]===null)U++;else if(i[J]===null)J--;else if(f[U]===d[j])v[j]=bo(i[U],a[j]),U++,j++;else if(f[J]===d[Z])v[Z]=bo(i[J],a[Z]),J--,Z--;else if(f[U]===d[Z])v[Z]=bo(i[U],a[Z]),Zs(n,v[Z+1],i[U]),U++,Z--;else if(f[J]===d[j])v[j]=bo(i[J],a[j]),Zs(n,i[U],i[J]),J--,j++;else if(S===void 0&&(S=HE(d,j,Z),R=HE(f,U,J)),S.has(f[U]))if(S.has(f[J])){let st=R.get(d[j]),ht=st!==void 0?i[st]:null;if(ht===null){let bt=Zs(n,i[U]);bo(bt,a[j]),v[j]=bt}else v[j]=bo(ht,a[j]),Zs(n,i[U],ht),i[st]=null;j++}else sd(i[J]),J--;else sd(i[U]),U++;for(;j<=Z;){let st=Zs(n,v[Z+1]);bo(st,a[j]),v[j++]=st}for(;U<=J;){let st=i[U++];st!==null&&sd(st)}return this.ut=d,od(n,v),$e}});var KE=$.constructTagName("slider"),nC={START:"start",END:"end",UNDEFINED:void 0},Vo={MIN:0,MAX:100,STEP:1,STATE:nC.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var lC=z`
8118
8129
  :host {
8119
8130
  width: 100%;
8120
8131
  --mdc-slider-tooltip-left: 0;
@@ -8463,7 +8474,7 @@
8463
8474
  ::slotted(mdc-option) {
8464
8475
  width: 100%;
8465
8476
  }
8466
- `,YE=[cC];var zo=class extends Ei(Ti(Q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,!1)}}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Cr}:not([disabled])`)}handleClick(t){let i=t.target.closest(Cr);!i||!this.isValidItem(i)||(this.multiple?this.toggleOptionSelection(i):this.setSelectedOption(i))}toggleOptionSelection(t){if(t.disabled||t.softDisabled)return;let e=t.hasAttribute("selected");t.toggleAttribute("selected",!e),this.syncValueToFirstSelected(),this.fireEvents()}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}syncValueToFirstSelected(){let t=this.getFirstSelectedOption();this.value=t==null?void 0:t.value,this.selectedOption=t!=null?t:null}getSelectedValues(){return this.itemsStore.items.reduce((t,e)=>{let{value:i}=e;return e.hasAttribute("selected")&&i!==void 0&&t.push(i),t},[])}setInitialFocus(){let t=this.getFirstSelectedOption();if(t){let e=this.itemsStore.items.indexOf(t);if(e!==-1){this.resetTabIndexAndSetFocus(e,void 0,!1);return}}super.setInitialFocus()}updated(t){if(t.has("multiple")&&(this.multiple?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),t.has("value")&&!this.multiple){let e=this.itemsStore.items.find(i=>i.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,i=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(i&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return A`<slot part="container"></slot>`}};zo.styles=[...jp.styles,...YE],h([u({type:String,reflect:!0})],zo.prototype,"name",2),h([u({type:String,reflect:!0})],zo.prototype,"value",2),h([u({type:Boolean,reflect:!0})],zo.prototype,"multiple",2),h([lt()],zo.prototype,"selectedOption",2);var mu=zo;var jE=$.constructTagName("listbox");mu.register(jE);var hC=mu;var qE=$.constructTagName("banner"),Pa={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},ml={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Xc={VARIANT:Pa.CUSTOM,PREFIX_ICON_SIZE:1.25};var pC=z`
8477
+ `,YE=[cC];var zo=class extends Ti(xi(Q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,!1)}}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Cr}:not([disabled])`)}handleClick(t){let i=t.target.closest(Cr);!i||!this.isValidItem(i)||(this.multiple?this.toggleOptionSelection(i):this.setSelectedOption(i))}toggleOptionSelection(t){if(t.disabled||t.softDisabled)return;let e=t.hasAttribute("selected");t.toggleAttribute("selected",!e),this.syncValueToFirstSelected(),this.fireEvents()}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}syncValueToFirstSelected(){let t=this.getFirstSelectedOption();this.value=t==null?void 0:t.value,this.selectedOption=t!=null?t:null}getSelectedValues(){return this.itemsStore.items.reduce((t,e)=>{let{value:i}=e;return e.hasAttribute("selected")&&i!==void 0&&t.push(i),t},[])}setInitialFocus(){let t=this.getFirstSelectedOption();if(t){let e=this.itemsStore.items.indexOf(t);if(e!==-1){this.resetTabIndexAndSetFocus(e,void 0,!1);return}}super.setInitialFocus()}updated(t){if(t.has("multiple")&&(this.multiple?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),t.has("value")&&!this.multiple){let e=this.itemsStore.items.find(i=>i.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,i=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(i&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return A`<slot part="container"></slot>`}};zo.styles=[...jp.styles,...YE],h([u({type:String,reflect:!0})],zo.prototype,"name",2),h([u({type:String,reflect:!0})],zo.prototype,"value",2),h([u({type:Boolean,reflect:!0})],zo.prototype,"multiple",2),h([lt()],zo.prototype,"selectedOption",2);var mu=zo;var jE=$.constructTagName("listbox");mu.register(jE);var hC=mu;var qE=$.constructTagName("banner"),Pa={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},ml={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Xc={VARIANT:Pa.CUSTOM,PREFIX_ICON_SIZE:1.25};var pC=z`
8467
8478
  :host {
8468
8479
  --mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
8469
8480
  --mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -8596,10 +8607,10 @@
8596
8607
  --mdc-tab-line-active-indicator-width: 0.125rem;
8597
8608
  --mdc-tab-content-justification: space-between;
8598
8609
  }
8599
- `,QE=[uC];var Zc=class extends zc(qi){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${La}:not([disabled])`)}onElementStoreUpdate(t,e,i){super.onElementStoreUpdate(t,e,i),e==="added"&&t.setAttribute("variant","line")}connectedCallback(){super.connectedCallback(),this.role=et.TABLIST,this.setAttribute("aria-orientation","vertical")}render(){return A`
8610
+ `,QE=[uC];var Zc=class extends zc(Xi){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${La}:not([disabled])`)}onElementStoreUpdate(t,e,i){super.onElementStoreUpdate(t,e,i),e==="added"&&t.setAttribute("variant","line")}connectedCallback(){super.connectedCallback(),this.role=et.TABLIST,this.setAttribute("aria-orientation","vertical")}render(){return A`
8600
8611
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
8601
8612
  <slot part="container" role="presentation"></slot>
8602
- `}};Zc.styles=[...qi.styles,...QE];var fu=Zc;var JE=$.constructTagName("verticaltablist");fu.register(JE);var fC=fu;var tT=$.constructTagName("focustrap"),Qc={TRAP_DISABLED:!1,RESTORE_FOCUS_DISABLED:!1,AUTO_FOCUS:!1};var vC=z`
8613
+ `}};Zc.styles=[...Xi.styles,...QE];var fu=Zc;var JE=$.constructTagName("verticaltablist");fu.register(JE);var fC=fu;var tT=$.constructTagName("focustrap"),Qc={TRAP_DISABLED:!1,RESTORE_FOCUS_DISABLED:!1,AUTO_FOCUS:!1};var vC=z`
8603
8614
  :host {
8604
8615
  display: contents;
8605
8616
  }
@@ -8625,7 +8636,7 @@
8625
8636
  /* Keep the fallback here so consumer overrides inherit through nested trees. */
8626
8637
  padding-inline-start: var(--mdc-checkboxtree-indent, 1.5rem);
8627
8638
  }
8628
- `,rT=[bC];var Jc=class extends Ei(va){constructor(){super();this.loop="false";this.pendingSynchronization=!1;this.handleSlotChange=()=>{this.rootTree.synchronizeTree()};this.handleCheckboxModified=t=>{this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(as)||this.scheduleSynchronizeTree()};this.handleCheckboxChange=t=>{if(this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(as))return;let e=t.target,i=this.getChildTree(e);i&&this.setDescendantState(i,e.checked),this.synchronizeParentStates()};this.addEventListener("change",this.handleCheckboxChange),this.addEventListener("modified",this.handleCheckboxModified)}connectedCallback(){var e;let t=this.getAttribute("aria-label");super.connectedCallback(),this.generatedAriaLabel===void 0&&t===null&&(this.generatedAriaLabel=(e=this.label)!=null?e:""),this.synchronizeContext(),this.isNested||this.synchronizeTree()}get parentTree(){var t,e;return(e=(t=this.parentElement)==null?void 0:t.closest(Fa))!=null?e:null}get rootTree(){var t,e;return(e=(t=this.parentTree)==null?void 0:t.rootTree)!=null?e:this}get isNested(){return this.parentTree!==null}get navItems(){return this.isNested?[]:this.getCheckboxes().filter(t=>!t.disabled)}setInitialFocus(){this.isNested||this.synchronizeTabIndexes()}getCheckboxes(){return Array.from(this.querySelectorAll(as))}scheduleSynchronizeTree(){this.pendingSynchronization||(this.pendingSynchronization=!0,queueMicrotask(()=>{this.pendingSynchronization=!1,this.synchronizeTree()}))}getChildTree(t){let e=t.nextElementSibling;return e!=null&&e.matches(Fa)?e:null}getParentCheckbox(t){let e=t.previousElementSibling;return e!=null&&e.matches(as)?e:null}setDescendantState(t,e){t.getCheckboxes().forEach(i=>{if(i.disabled||i.readonly||i.softDisabled)return;let a=i;a.checked=e,a.indeterminate=!1})}synchronizeTree(){this.isNested||!this.isConnected||(this.synchronizeParentStates(),this.synchronizeTabIndexes())}synchronizeParentStates(){Array.from(this.querySelectorAll(Fa)).reverse().forEach(e=>{let i=this.getParentCheckbox(e),a=e.getCheckboxes();if(!i||a.length===0)return;let d=a.every(v=>v.checked&&!v.indeterminate),f=a.some(v=>v.checked||v.indeterminate);i.checked=d,i.indeterminate=!d&&f})}synchronizeTabIndexes(){var f;let t=this.getCheckboxes(),e=t.filter(v=>!v.disabled),i=e.find(v=>v.matches(":focus-within")),a=e.find(v=>v.getAttribute("tabindex")==="0"),d=(f=i!=null?i:a)!=null?f:e[0];t.forEach(v=>{v.setAttribute("tabindex",v===d?"0":"-1")})}synchronizeContext(){var t;if(this.isNested){this.removeAttribute("aria-description"),this.removeAttribute("aria-invalid"),this.removeAttribute("aria-label"),this.removeAttribute("role");return}this.role=et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.helpTextType===te.ERROR?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}update(t){var i;let e=this.getAttribute("aria-label");super.update(t),!this.isNested&&(e===null||e===this.generatedAriaLabel)&&(this.generatedAriaLabel=(i=this.label)!=null?i:"",this.setAttribute("aria-label",this.generatedAriaLabel))}updated(t){super.updated(t),this.synchronizeContext()}render(){return A`
8639
+ `,rT=[bC];var Jc=class extends Ti(va){constructor(){super();this.loop="false";this.pendingSynchronization=!1;this.handleSlotChange=()=>{this.rootTree.synchronizeTree()};this.handleCheckboxModified=t=>{this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(as)||this.scheduleSynchronizeTree()};this.handleCheckboxChange=t=>{if(this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(as))return;let e=t.target,i=this.getChildTree(e);i&&this.setDescendantState(i,e.checked),this.synchronizeParentStates()};this.addEventListener("change",this.handleCheckboxChange),this.addEventListener("modified",this.handleCheckboxModified)}connectedCallback(){var e;let t=this.getAttribute("aria-label");super.connectedCallback(),this.generatedAriaLabel===void 0&&t===null&&(this.generatedAriaLabel=(e=this.label)!=null?e:""),this.synchronizeContext(),this.isNested||this.synchronizeTree()}get parentTree(){var t,e;return(e=(t=this.parentElement)==null?void 0:t.closest(Fa))!=null?e:null}get rootTree(){var t,e;return(e=(t=this.parentTree)==null?void 0:t.rootTree)!=null?e:this}get isNested(){return this.parentTree!==null}get navItems(){return this.isNested?[]:this.getCheckboxes().filter(t=>!t.disabled)}setInitialFocus(){this.isNested||this.synchronizeTabIndexes()}getCheckboxes(){return Array.from(this.querySelectorAll(as))}scheduleSynchronizeTree(){this.pendingSynchronization||(this.pendingSynchronization=!0,queueMicrotask(()=>{this.pendingSynchronization=!1,this.synchronizeTree()}))}getChildTree(t){let e=t.nextElementSibling;return e!=null&&e.matches(Fa)?e:null}getParentCheckbox(t){let e=t.previousElementSibling;return e!=null&&e.matches(as)?e:null}setDescendantState(t,e){t.getCheckboxes().forEach(i=>{if(i.disabled||i.readonly||i.softDisabled)return;let a=i;a.checked=e,a.indeterminate=!1})}synchronizeTree(){this.isNested||!this.isConnected||(this.synchronizeParentStates(),this.synchronizeTabIndexes())}synchronizeParentStates(){Array.from(this.querySelectorAll(Fa)).reverse().forEach(e=>{let i=this.getParentCheckbox(e),a=e.getCheckboxes();if(!i||a.length===0)return;let d=a.every(v=>v.checked&&!v.indeterminate),f=a.some(v=>v.checked||v.indeterminate);i.checked=d,i.indeterminate=!d&&f})}synchronizeTabIndexes(){var f;let t=this.getCheckboxes(),e=t.filter(v=>!v.disabled),i=e.find(v=>v.matches(":focus-within")),a=e.find(v=>v.getAttribute("tabindex")==="0"),d=(f=i!=null?i:a)!=null?f:e[0];t.forEach(v=>{v.setAttribute("tabindex",v===d?"0":"-1")})}synchronizeContext(){var t;if(this.isNested){this.removeAttribute("aria-description"),this.removeAttribute("aria-invalid"),this.removeAttribute("aria-label"),this.removeAttribute("role");return}this.role=et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.helpTextType===te.ERROR?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}update(t){var i;let e=this.getAttribute("aria-label");super.update(t),!this.isNested&&(e===null||e===this.generatedAriaLabel)&&(this.generatedAriaLabel=(i=this.label)!=null?i:"",this.setAttribute("aria-label",this.generatedAriaLabel))}updated(t){super.updated(t),this.synchronizeContext()}render(){return A`
8629
8640
  ${this.isNested?G:A`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`}
8630
8641
  <slot @slotchange=${this.handleSlotChange}></slot>
8631
8642
  `}};Jc.styles=[...va.styles,...rT];var gu=Jc;gu.register(Fa);var yC=gu;})();