@momentum-design/components 0.133.13 → 0.133.14

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 uT=Object.create;var Vc=Object.defineProperty;var wu=Object.getOwnPropertyDescriptor;var fT=Object.getOwnPropertyNames;var vT=Object.getPrototypeOf,gT=Object.prototype.hasOwnProperty;var bT=(a,i)=>()=>(i||a((i={exports:{}}).exports,i),i.exports);var yT=(a,i,t,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let o of fT(i))!gT.call(a,o)&&o!==t&&Vc(a,o,{get:()=>i[o],enumerable:!(e=wu(i,o))||e.enumerable});return a};var ET=(a,i,t)=>(t=a!=null?uT(vT(a)):{},yT(i||!a||!a.__esModule?Vc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,i,t,e)=>{for(var o=e>1?void 0:e?wu(i,t):i,l=a.length-1,c;l>=0;l--)(c=a[l])&&(o=(e?c(i,t,o):c(o))||o);return e&&o&&Vc(i,t,o),o};var zf=bT((rn,Ul)=>{typeof navigator<"u"&&function(a,i){typeof rn=="object"&&typeof Ul<"u"?Ul.exports=i():typeof define=="function"&&define.amd?define(i):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=i())}(rn,function(){"use strict";var a="http://www.w3.org/2000/svg",i="",t=!1,e=-999999,o=function(s){t=!!s},l=function(){return t},c=function(s){i=s},f=function(){return i};function y(r){return document.createElement(r)}function A(r,s){var n,d=r.length,m;for(n=0;n<d;n+=1){m=r[n].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function F(r,s){return Object.getOwnPropertyDescriptor(r,s)}function U(r){function s(){}return s.prototype=r,s}var Q=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),X=function(){function r(n,d){var m=0,p=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(m=0;m<d;m+=1)p.push(g);return p}function s(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):r(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function tt(r){return Array.apply(null,{length:r})}function nt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(n){return typeof n}:nt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nt(r)}var at=!0,ft=null,It=null,_t="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),$t=!1,Ut=Math.pow,Ot=Math.sqrt,ae=Math.floor,Ue=Math.max,Yt=Math.min,Te={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,n=r.length;for(s=0;s<n;s+=1)Te[r[s]]=Math[r[s]]})();function xe(){return{}}Te.random=Math.random,Te.abs=function(r){var s=nt(r);if(s==="object"&&r.length){var n=tt(r.length),d,m=r.length;for(d=0;d<m;d+=1)n[d]=Math.abs(r[d]);return n}return Math.abs(r)};var Ae=150,kt=Math.PI/180,oe=.5519;function Ge(r){$t=!!r}function Qe(r){return $t?Math.round(r):r}function Je(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function Tr(r,s,n,d){this.type=r,this.currentTime=s,this.totalTime=n,this.direction=d<0?-1:1}function Xn(r,s){this.type=r,this.direction=s<0?-1:1}function Pm(r,s,n,d){this.type=r,this.currentLoop=n,this.totalLoops=s,this.direction=d<0?-1:1}function Fm(r,s,n){this.type=r,this.firstFrame=s,this.totalFrames=n}function $m(r,s){this.type=r,this.target=s}function uE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function fE(r){this.type="configError",this.nativeError=r}function xI(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,_t+"__lottie_element_"+r}}();function _c(r,s,n){var d,m,p,g,I,b,w,L;switch(g=Math.floor(r*6),I=r*6-g,b=n*(1-s),w=n*(1-I*s),L=n*(1-(1-I)*s),g%6){case 0:d=n,m=L,p=b;break;case 1:d=w,m=n,p=b;break;case 2:d=b,m=n,p=L;break;case 3:d=b,m=w,p=n;break;case 4:d=L,m=b,p=n;break;case 5:d=n,m=b,p=w;break;default:break}return[d,m,p]}function Cc(r,s,n){var d=Math.max(r,s,n),m=Math.min(r,s,n),p=d-m,g,I=d===0?0:p/d,b=d/255;switch(d){case m:g=0;break;case r:g=s-n+p*(s<n?6:0),g/=6*p;break;case s:g=n-r+p*2,g/=6*p;break;case n:g=r-s+p*4,g/=6*p;break;default:break}return[g,I,b]}function Vm(r,s){var n=Cc(r[0]*255,r[1]*255,r[2]*255);return n[1]+=s,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),_c(n[0],n[1],n[2])}function zm(r,s){var n=Cc(r[0]*255,r[1]*255,r[2]*255);return n[2]+=s,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),_c(n[0],n[1],n[2])}function Bm(r,s){var n=Cc(r[0]*255,r[1]*255,r[2]*255);return n[0]+=s/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),_c(n[0],n[1],n[2])}var AI=function(){var r=[],s,n;for(s=0;s<256;s+=1)n=s.toString(16),r[s]=n.length===1?"0"+n:n;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),vE=function(s){at=!!s},gE=function(){return at},bE=function(s){ft=s},Zn=function(){return ft},SI=function(s){It=s},Hm=function(){return It},Qn=function(s){Ae=s},Ea=function(){return Ae},yE=function(s){_t=s},II=function(){return _t};function At(r){return document.createElementNS(a,r)}function Jn(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jn=function(n){return typeof n}:Jn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jn(r)}var Ta=function(){var r=1,s=[],n,d,m={onmessage:function(){},postMessage:function(O){n({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),P=URL.createObjectURL(O);return new Worker(P)}return n=x,m}function I(){d||(d=g(function(O){function P(){function H(rt,C){var D,v,E=rt.length,Y,V,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var xt=D.masksProperties;for(V=xt.length,Y=0;Y<V;Y+=1)if(xt[Y].pt.k.i)N(xt[Y].pt.k);else for(gt=xt[Y].pt.k.length,ct=0;ct<gt;ct+=1)xt[Y].pt.k[ct].s&&N(xt[Y].pt.k[ct].s[0]),xt[Y].pt.k[ct].e&&N(xt[Y].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,C),H(D.layers,C)):D.ty===4?_(D.shapes):D.ty===5&&St(D)}}function M(rt,C){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,C),H(rt[D].data.layers,C))}}function k(rt,C){for(var D=0,v=C.length;D<v;){if(C[D].id===rt)return C[D];D+=1}return null}function T(rt,C){var D=k(rt,C);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function _(rt){var C,D=rt.length,v,E;for(C=D-1;C>=0;C-=1)if(rt[C].ty==="sh")if(rt[C].ks.k.i)N(rt[C].ks.k);else for(E=rt[C].ks.k.length,v=0;v<E;v+=1)rt[C].ks.k[v].s&&N(rt[C].ks.k[v].s[0]),rt[C].ks.k[v].e&&N(rt[C].ks.k[v].e[0]);else rt[C].ty==="gr"&&_(rt[C].it)}function N(rt){var C,D=rt.i.length;for(C=0;C<D;C+=1)rt.i[C][0]+=rt.v[C][0],rt.i[C][1]+=rt.v[C][1],rt.o[C][0]+=rt.v[C][0],rt.o[C][1]+=rt.v[C][1]}function $(rt,C){var D=C?C.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var G=function(){var rt=[4,4,14];function C(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),j=function(){var rt=[4,7,99];return function(C){if(C.chars&&!$(rt,C.v)){var D,v=C.chars.length;for(D=0;D<v;D+=1){var E=C.chars[D];E.data&&E.data.shapes&&(_(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}},C.chars[D].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function C(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),Tt=function(){var rt=[4,1,9];function C(v){var E,Y=v.length,V,ct;for(E=0;E<Y;E+=1)if(v[E].ty==="gr")C(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,V=0;V<ct;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===4&&C(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function C(v){var E,Y=v.length,V,ct;for(E=Y-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,V=0;V<ct;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&C(v[E].it)}function D(v){var E,Y,V=v.length,ct,gt,xt,Pt;for(Y=0;Y<V;Y+=1){if(E=v[Y],E.hasMask){var Ft=E.masksProperties;for(gt=Ft.length,ct=0;ct<gt;ct+=1)if(Ft[ct].pt.k.i)Ft[ct].pt.k.c=Ft[ct].cl;else for(Pt=Ft[ct].pt.k.length,xt=0;xt<Pt;xt+=1)Ft[ct].pt.k[xt].s&&(Ft[ct].pt.k[xt].s[0].c=Ft[ct].cl),Ft[ct].pt.k[xt].e&&(Ft[ct].pt.k[xt].e[0].c=Ft[ct].cl)}E.ty===4&&C(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function st(rt){rt.__complete||(Tt(rt),G(rt),j(rt),it(rt),ut(rt),H(rt.layers,rt.assets),M(rt.chars,rt.assets),rt.__complete=!0)}function St(rt){rt.t.a.length===0&&"m"in rt.t.p}var ht={};return ht.completeData=st,ht.checkColors=Tt,ht.checkChars=j,ht.checkPathProperties=it,ht.checkShapes=ut,ht.completeLayers=H,ht}if(p.dataManager||(p.dataManager=P()),p.assetLoader||(p.assetLoader=function(){function H(k){var T=k.getResponseHeader("content-type");return T&&k.responseType==="json"&&T.indexOf("json")!==-1||k.response&&Jn(k.response)==="object"?k.response:k.response&&typeof k.response=="string"?JSON.parse(k.response):k.responseText?JSON.parse(k.responseText):null}function M(k,T,_,N){var $,G=new XMLHttpRequest;try{G.responseType="json"}catch{}G.onreadystatechange=function(){if(G.readyState===4)if(G.status===200)$=H(G),_($);else try{$=H(G),_($)}catch(j){N&&N(j)}};try{G.open(["G","E","T"].join(""),k,!0)}catch{G.open(["G","E","T"].join(""),T+"/"+k,!0)}G.send()}return{load:M}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(H){p.dataManager.completeData(H),p.postMessage({id:O.data.id,payload:H,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(H){p.postMessage({id:O.data.id,payload:H,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,P=O.id,R=s[P];s[P]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){r+=1;var P="processId_"+r;return s[P]={onComplete:x,onError:O},P}function w(x,O,P){I();var R=b(O,P);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function L(x,O,P){I();var R=b(O,P);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function K(x,O,P){I();var R=b(O,P);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:L,completeAnimation:K}}(),EE=function(){var r=function(){var M=y("canvas");M.width=1,M.height=1;var k=M.getContext("2d");return k.fillStyle="rgba(0,0,0,0)",k.fillRect(0,0,1,1),M}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(M,k,T){var _="";if(M.e)_=M.p;else if(k){var N=M.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),_=k+N}else _=T,_+=M.u?M.u:"",_+=M.p;return _}function m(M){var k=0,T=setInterval((function(){var _=M.getBBox();(_.width||k>500)&&(this._imageLoaded(),clearInterval(T)),k+=1}).bind(this),50)}function p(M){var k=d(M,this.assetsPath,this.path),T=At("image");Ht?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",k),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var _={img:T,assetData:M};return _}function g(M){var k=d(M,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.src=k;var _={img:T,assetData:M};return _}function I(M){var k={assetData:M},T=d(M,this.assetsPath,this.path);return Ta.loadData(T,(function(_){k.img=_,this._footageLoaded()}).bind(this),(function(){k.img={},this._footageLoaded()}).bind(this)),k}function b(M,k){this.imagesLoadedCb=k;var T,_=M.length;for(T=0;T<_;T+=1)M[T].layers||(!M[T].t||M[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(M[T]))):M[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(M[T]))))}function w(M){this.path=M||""}function L(M){this.assetsPath=M||""}function K(M){for(var k=0,T=this.images.length;k<T;){if(this.images[k].assetData===M)return this.images[k].img;k+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function R(M,k){M==="svg"?(this._elementHelper=k,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function H(){this._imageLoaded=s.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return H.prototype={loadAssets:b,setAssetsPath:L,setPath:w,loadedImages:O,loadedFootages:P,destroy:x,getAsset:K,createImgData:g,createImageData:p,imageLoaded:s,footageLoaded:n,setCacheType:R},H}();function Um(){}Um.prototype={triggerEvent:function(s,n){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](n)},addEventListener:function(s,n){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(n),(function(){this.removeEventListener(s,n)}).bind(this)},removeEventListener:function(s,n){if(!n)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===n&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var TE=function(){function r(s){for(var n=s.split(`\r
2
- `),d={},m,p=0,g=0;g<n.length;g+=1)m=n[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var n=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}n.push(p)}return n}}(),xE=function(){function r(s){this.compositions.push(s)}return function(){function s(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),xa={},AE=function(s,n){xa[s]=n};function SE(r){return xa[r]}function IE(){if(xa.canvas)return"canvas";for(var r in xa)if(xa[r])return r;return""}function Aa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Aa=function(n){return typeof n}:Aa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Aa(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=gE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=xE(),this.imagePreloader=new EE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Tr("drawnFrame",0,0,0),this.expressionsPlugin=Zn()};A([Um],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var n=SE(s);this.renderer=new n(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Ta.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Ta.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Aa(s)!=="object"&&(s=JSON.parse(s));var n={wrapper:r,animationData:s},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:IE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,n,d=s.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(n=0;n<d;){if(s[n].id===m[p].id){s[n]=m[p];break}n+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,Ta.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Zn();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ta.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=TE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=Zn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var n=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(n,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,n=0;n<this.markers.length;n+=1)if(s=this.markers[n],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,n=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(n=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,s=0)):this.setCurrentRawFrameValue(s),n&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>s&&(n=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Aa(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),s=this.assetsPath+n}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,n=this.assets.length;s<n;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Tr(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 Pm(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Xn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Fm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new $m(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Tr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Pm(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Xn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Fm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new $m(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new uE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new fE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var me=function(){var r={},s=[],n=0,d=0,m=0,p=!0,g=!1;function I(C){for(var D=0,v=C.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||K()),D+=1}function b(C,D){if(!C)return null;for(var v=0;v<d;){if(s[v].elem===C&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,C),E.setData(C,D),E}function w(){var C,D=s.length,v=[];for(C=0;C<D;C+=1)v.push(s[C].animation);return v}function L(){m+=1,Tt()}function K(){m-=1}function x(C,D){C.addEventListener("destroy",I),C.addEventListener("_active",L),C.addEventListener("_idle",K),s.push({elem:D,animation:C}),d+=1}function O(C){var D=new vt;return x(D,null),D.setParams(C),D}function P(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(C,D)}function R(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(C,D)}function H(C){var D;for(D=0;D<d;D+=1)s[D].animation.play(C)}function M(C){var D=C-n,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);n=C,m&&!g?window.requestAnimationFrame(M):p=!0}function k(C){n=C,window.requestAnimationFrame(M)}function T(C){var D;for(D=0;D<d;D+=1)s[D].animation.pause(C)}function _(C,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(C,D,v)}function N(C){var D;for(D=0;D<d;D+=1)s[D].animation.stop(C)}function $(C){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(C)}function G(C){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(C)}function j(C,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,V=E.length;for(Y=0;Y<V;Y+=1)v&&E[Y].setAttribute("data-bm-type",v),b(E[Y],C);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=y("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),b(gt,C)}}function it(){var C;for(C=0;C<d;C+=1)s[C].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(k),p=!1)}function ut(){g=!0}function st(){g=!1,Tt()}function St(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(C,D)}function ht(C){var D;for(D=0;D<d;D+=1)s[D].animation.mute(C)}function rt(C){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(C)}return r.registerAnimation=b,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=H,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=j,r.resize=it,r.goToAndStop=_,r.destroy=G,r.freeze=ut,r.unfreeze=st,r.setVolume=St,r.mute=ht,r.unmute=rt,r.getRegisteredAnimations=w,r}(),Sa=function(){var r={};r.getBezierEasing=n;var s={};function n(k,T,_,N,$){var G=$||("bez_"+k+"_"+T+"_"+_+"_"+N).replace(/\./g,"p");if(s[G])return s[G];var j=new M([k,T,_,N]);return s[G]=j,j}var d=4,m=.001,p=1e-7,g=10,I=11,b=1/(I-1),w=typeof Float32Array=="function";function L(k,T){return 1-3*T+3*k}function K(k,T){return 3*T-6*k}function x(k){return 3*k}function O(k,T,_){return((L(T,_)*k+K(T,_))*k+x(T))*k}function P(k,T,_){return 3*L(T,_)*k*k+2*K(T,_)*k+x(T)}function R(k,T,_,N,$){var G,j,it=0;do j=T+(_-T)/2,G=O(j,N,$)-k,G>0?_=j:T=j;while(Math.abs(G)>p&&++it<g);return j}function H(k,T,_,N){for(var $=0;$<d;++$){var G=P(T,_,N);if(G===0)return T;var j=O(T,_,N)-k;T-=j/G}return T}function M(k){this._p=k,this._mSampleValues=w?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return M.prototype={get:function(T){var _=this._p[0],N=this._p[1],$=this._p[2],G=this._p[3];return this._precomputed||this._precompute(),_===N&&$===G?T:T===0?0:T===1?1:O(this._getTForX(T),N,G)},_precompute:function(){var T=this._p[0],_=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==_||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],_=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*b,T,_)},_getTForX:function(T){for(var _=this._p[0],N=this._p[2],$=this._mSampleValues,G=0,j=1,it=I-1;j!==it&&$[j]<=T;++j)G+=b;--j;var Tt=(T-$[j])/($[j+1]-$[j]),ut=G+Tt*b,st=P(ut,_,N);return st>=m?H(T,ut,_,N):st===0?ut:R(T,G,G+b,_,N)}},r}(),Gm=function(){function r(s){return s.concat(tt(s.length))}return{double:r}}(),tl=function(){return function(r,s,n){var d=0,m=r,p=tt(m),g={newElement:I,release:b};function I(){var w;return d?(d-=1,w=p[d]):w=s(),w}function b(w){d===m&&(p=Gm.double(p),m*=2),n&&n(w),p[d]=w,d+=1}return g}}(),Km=function(){function r(){return{addedLength:0,percents:X("float32",Ea()),lengths:X("float32",Ea())}}return tl(8,r)}(),Wm=function(){function r(){return{lengths:[],totalLength:0}}function s(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)Km.release(n.lengths[d]);n.lengths.length=0}return tl(8,r,s)}();function _E(){var r=Math;function s(x,O,P,R,H,M){var k=x*R+O*H+P*M-H*R-M*x-P*O;return k>-.001&&k<.001}function n(x,O,P,R,H,M,k,T,_){if(P===0&&M===0&&_===0)return s(x,O,R,H,k,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(H-O,2)+r.pow(M-P,2)),$=r.sqrt(r.pow(k-x,2)+r.pow(T-O,2)+r.pow(_-P,2)),G=r.sqrt(r.pow(k-R,2)+r.pow(T-H,2)+r.pow(_-M,2)),j;return N>$?N>G?j=N-$-G:j=G-$-N:G>$?j=G-$-N:j=$-N-G,j>-1e-4&&j<1e-4}var d=function(){return function(x,O,P,R){var H=Ea(),M,k,T,_,N,$=0,G,j=[],it=[],Tt=Km.newElement();for(T=P.length,M=0;M<H;M+=1){for(N=M/(H-1),G=0,k=0;k<T;k+=1)_=Ut(1-N,3)*x[k]+3*Ut(1-N,2)*N*P[k]+3*(1-N)*Ut(N,2)*R[k]+Ut(N,3)*O[k],j[k]=_,it[k]!==null&&(G+=Ut(j[k]-it[k],2)),it[k]=j[k];G&&(G=Ot(G),$+=G),Tt.percents[M]=N,Tt.lengths[M]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=Wm.newElement(),P=x.c,R=x.v,H=x.o,M=x.i,k,T=x._length,_=O.lengths,N=0;for(k=0;k<T-1;k+=1)_[k]=d(R[k],R[k+1],H[k],M[k+1]),N+=_[k].addedLength;return P&&T&&(_[k]=d(R[k],R[0],H[k],M[0]),N+=_[k].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,H){var M=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+H[0]+"_"+H[1]).replace(/\./g,"p");if(!x[M]){var k=Ea(),T,_,N,$,G,j=0,it,Tt,ut=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+H[0],P[1]+H[1])&&(k=2);var st=new p(k);for(N=R.length,T=0;T<k;T+=1){for(Tt=tt(N),G=T/(k-1),it=0,_=0;_<N;_+=1)$=Ut(1-G,3)*O[_]+3*Ut(1-G,2)*G*(O[_]+R[_])+3*(1-G)*Ut(G,2)*(P[_]+H[_])+Ut(G,3)*P[_],Tt[_]=$,ut!==null&&(it+=Ut(Tt[_]-ut[_],2));it=Ot(it),j+=it,st.points[T]=new g(it,Tt),ut=Tt}st.segmentLength=j,x[M]=st}return x[M]}}();function b(x,O){var P=O.percents,R=O.lengths,H=P.length,M=ae((H-1)*x),k=x*O.addedLength,T=0;if(M===H-1||M===0||k===R[M])return P[M];for(var _=R[M]>k?-1:1,N=!0;N;)if(R[M]<=k&&R[M+1]>k?(T=(k-R[M])/(R[M+1]-R[M]),N=!1):M+=_,M<0||M>=H-1){if(M===H-1)return P[M];N=!1}return P[M]+(P[M+1]-P[M])*T}function w(x,O,P,R,H,M){var k=b(H,M),T=1-k,_=r.round((T*T*T*x[0]+(k*T*T+T*k*T+T*T*k)*P[0]+(k*k*T+T*k*k+k*T*k)*R[0]+k*k*k*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(k*T*T+T*k*T+T*T*k)*P[1]+(k*k*T+T*k*k+k*T*k)*R[1]+k*k*k*O[1])*1e3)/1e3;return[_,N]}var L=X("float32",8);function K(x,O,P,R,H,M,k){H<0?H=0:H>1&&(H=1);var T=b(H,k);M=M>1?1:M;var _=b(M,k),N,$=x.length,G=1-T,j=1-_,it=G*G*G,Tt=T*G*G*3,ut=T*T*G*3,st=T*T*T,St=G*G*j,ht=T*G*j+G*T*j+G*G*_,rt=T*T*j+G*T*_+T*G*_,C=T*T*_,D=G*j*j,v=T*j*j+G*_*j+G*j*_,E=T*_*j+G*_*_+T*j*_,Y=T*_*_,V=j*j*j,ct=_*j*j+j*_*j+j*j*_,gt=_*_*j+j*_*_+_*j*_,xt=_*_*_;for(N=0;N<$;N+=1)L[N*4]=r.round((it*x[N]+Tt*P[N]+ut*R[N]+st*O[N])*1e3)/1e3,L[N*4+1]=r.round((St*x[N]+ht*P[N]+rt*R[N]+C*O[N])*1e3)/1e3,L[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+Y*O[N])*1e3)/1e3,L[N*4+3]=r.round((V*x[N]+ct*P[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return L}return{getSegmentsLength:m,getNewSegment:K,getPointInSegment:w,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:n}}var qr=_E(),Mo=e,Ym=Math.abs;function jm(r,s){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=X("float32",this.pv.length));for(var m=s.lastIndex,p=m,g=this.keyframes.length-1,I=!0,b,w,L;I;){if(b=this.keyframes[p],w=this.keyframes[p+1],p===g-1&&r>=w.t-n){b.h&&(b=w),m=0;break}if(w.t-n>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}L=this.keyframesMetadata[p]||{};var K,x,O,P,R,H,M=w.t-n,k=b.t-n,T;if(b.to){L.bezierData||(L.bezierData=qr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var _=L.bezierData;if(r>=M||r<k){var N=r>=M?_.points.length-1:0;for(x=_.points[N].point.length,K=0;K<x;K+=1)d[K]=_.points[N].point[K]}else{L.__fnct?H=L.__fnct:(H=Sa.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,L.__fnct=H),O=H((r-k)/(M-k));var $=_.segmentLength*O,G,j=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=_.points.length;I;){if(j+=_.points[R].partialLength,$===0||O===0||R===_.points.length-1){for(x=_.points[R].point.length,K=0;K<x;K+=1)d[K]=_.points[R].point[K];break}else if($>=j&&$<j+_.points[R+1].partialLength){for(G=($-j)/_.points[R+1].partialLength,x=_.points[R].point.length,K=0;K<x;K+=1)d[K]=_.points[R].point[K]+(_.points[R+1].point[K]-_.points[R].point[K])*G;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=j-_.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,Tt,ut,st,St;if(g=b.s.length,T=w.s||b.e,this.sh&&b.h!==1)if(r>=M)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=k)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ht=qm(b.s),rt=qm(T),C=(r-k)/(M-k);kE(d,CE(ht,rt,C))}else for(p=0;p<g;p+=1)b.h!==1&&(r>=M?O=1:r<k?O=0:(b.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[p]?H=L.__fnct[p]:(it=b.o.x[p]===void 0?b.o.x[0]:b.o.x[p],Tt=b.o.y[p]===void 0?b.o.y[0]:b.o.y[p],ut=b.i.x[p]===void 0?b.i.x[0]:b.i.x[p],st=b.i.y[p]===void 0?b.i.y[0]:b.i.y[p],H=Sa.getBezierEasing(it,Tt,ut,st).get,L.__fnct[p]=H)):L.__fnct?H=L.__fnct:(it=b.o.x,Tt=b.o.y,ut=b.i.x,st=b.i.y,H=Sa.getBezierEasing(it,Tt,ut,st).get,b.keyframeMetadata=H),O=H((r-k)/(M-k)))),T=w.s||b.e,St=b.h===1?b.s[p]:b.s[p]+(T[p]-b.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return s.lastIndex=m,d}function CE(r,s,n){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],b=s[0],w=s[1],L=s[2],K=s[3],x,O,P,R,H;return O=m*b+p*w+g*L+I*K,O<0&&(O=-O,b=-b,w=-w,L=-L,K=-K),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-n)*x)/P,H=Math.sin(n*x)/P):(R=1-n,H=n),d[0]=R*m+H*b,d[1]=R*p+H*w,d[2]=R*g+H*L,d[3]=R*I+H*K,d}function kE(r,s){var n=s[0],d=s[1],m=s[2],p=s[3],g=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),b=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=g/kt,r[1]=I/kt,r[2]=b/kt}function qm(r){var s=r[0]*kt,n=r[1]*kt,d=r[2]*kt,m=Math.cos(s/2),p=Math.cos(n/2),g=Math.cos(d/2),I=Math.sin(s/2),b=Math.sin(n/2),w=Math.sin(d/2),L=m*p*g-I*b*w,K=I*b*g+m*p*w,x=I*p*g+m*b*w,O=m*b*g-I*p*w;return[K,x,O,L]}function Xm(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Mo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function el(r){var s;if(this.propType==="unidimensional")s=r*this.mult,Ym(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)s=r[n]*this.mult,Ym(this.v[n]-s)>1e-5&&(this.v[n]=s,this._mdf=!0),n+=1}function rl(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function il(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function wE(r,s,n,d){this.propType="unidimensional",this.mult=n||1,this.data=s,this.v=n?s.k*n:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.addEffect=il}function NE(r,s,n,d){this.propType="multidimensional",this.mult=n||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=X("float32",p),this.pv=X("float32",p),this.vel=X("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=rl,this.setVValue=el,this.addEffect=il}function ME(r,s,n,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Mo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Mo,this.pv=Mo,this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.interpolateValue=jm,this.effectsSequence=[Xm.bind(this)],this.addEffect=il}function LE(r,s,n,d){this.propType="multidimensional";var m,p=s.k.length,g,I,b,w;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(g=s.k[m].s,I=s.k[m+1].s,b=s.k[m].to,w=s.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&qr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+b[0],g[1]+b[1])&&qr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+w[0],I[1]+w[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&qr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&qr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+w[0],I[1]+w[1],I[2]+w[2]))&&(s.k[m].to=null,s.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===I[2]&&b[2]===0&&w[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Xm.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=rl,this.setVValue=el,this.interpolateValue=jm,this.frameId=-1;var L=s.k[0].s.length;for(this.v=X("float32",L),this.pv=X("float32",L),m=0;m<L;m+=1)this.v[m]=Mo,this.pv[m]=Mo;this._caching={lastFrame:Mo,lastIndex:0,value:X("float32",L)},this.addEffect=il}var lt=function(){function r(n,d,m,p,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new wE(n,d,p,g);else if(typeof d.k[0]=="number")I=new NE(n,d,p,g);else switch(m){case 0:I=new ME(n,d,p,g);break;case 1:I=new LE(n,d,p,g);break;default:break}return I.effectsSequence.length&&g.addDynamicProperty(I),I}var s={getProp:r};return s}();function Me(){}Me.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,n=this.dynamicProperties.length;for(s=0;s<n;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Lo=function(){function r(){return X("float32",2)}return tl(8,r)}();function mi(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}mi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var n=0;n<s;)this.v[n]=Lo.newElement(),this.o[n]=Lo.newElement(),this.i[n]=Lo.newElement(),n+=1},mi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},mi.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},mi.prototype.setXYAt=function(r,s,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Lo.newElement()),p[d][0]=r,p[d][1]=s},mi.prototype.setTripleAt=function(r,s,n,d,m,p,g,I){this.setXYAt(r,s,"v",g,I),this.setXYAt(n,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},mi.prototype.reverse=function(){var r=new mi;r.setPathData(this.c,this._length);var s=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},mi.prototype.length=function(){return this._length};var De=function(){function r(){return new mi}function s(m){var p=m._length,g;for(g=0;g<p;g+=1)Lo.release(m.v[g]),Lo.release(m.i[g]),Lo.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=tl(4,r,s);return d.clone=n,d}();function kc(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}kc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},kc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var _s=function(){var r={newShapeCollection:m,release:p},s=0,n=4,d=tt(n);function m(){var g;return s?(s-=1,g=d[s]):g=new kc,g}function p(g){var I,b=g._length;for(I=0;I<b;I+=1)De.release(g.shapes[I]);g._length=0,s===n&&(d=Gm.double(d),n*=2),d[s]=g,s+=1}return r}(),ol=function(){var r=-999999;function s(M,k,T){var _=T.lastIndex,N,$,G,j,it,Tt,ut,st,St,ht=this.keyframes;if(M<ht[0].t-this.offsetTime)N=ht[0].s[0],G=!0,_=0;else if(M>=ht[ht.length-1].t-this.offsetTime)N=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],G=!0;else{for(var rt=_,C=ht.length-1,D=!0,v,E,Y;D&&(v=ht[rt],E=ht[rt+1],!(E.t-this.offsetTime>M));)rt<C-1?rt+=1:D=!1;if(Y=this.keyframesMetadata[rt]||{},G=v.h===1,_=rt,!G){if(M>=E.t-this.offsetTime)st=1;else if(M<v.t-this.offsetTime)st=0;else{var V;Y.__fnct?V=Y.__fnct:(V=Sa.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=V),st=V((M-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=k._length,ut=N.i[0].length,T.lastIndex=_,j=0;j<Tt;j+=1)for(it=0;it<ut;it+=1)St=G?N.i[j][it]:N.i[j][it]+($.i[j][it]-N.i[j][it])*st,k.i[j][it]=St,St=G?N.o[j][it]:N.o[j][it]+($.o[j][it]-N.o[j][it])*st,k.o[j][it]=St,St=G?N.v[j][it]:N.v[j][it]+($.v[j][it]-N.v[j][it])*st,k.v[j][it]=St}function n(){var M=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==r&&(_<k&&M<k||_>T&&M>T)||(this._caching.lastIndex=_<M?this._caching.lastIndex:0,this.interpolateShape(M,this.pv,this._caching)),this._caching.lastFrame=M,this.pv}function d(){this.paths=this.localShapeCollection}function m(M,k){if(M._length!==k._length||M.c!==k.c)return!1;var T,_=M._length;for(T=0;T<_;T+=1)if(M.v[T][0]!==k.v[T][0]||M.v[T][1]!==k.v[T][1]||M.o[T][0]!==k.o[T][0]||M.o[T][1]!==k.o[T][1]||M.i[T][0]!==k.i[T][0]||M.i[T][1]!==k.i[T][1])return!1;return!0}function p(M){m(this.v,M)||(this.v=De.clone(M),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var M;this.kf?M=this.pv:this.data.ks?M=this.data.ks.k:M=this.data.pt.k;var k,T=this.effectsSequence.length;for(k=0;k<T;k+=1)M=this.effectsSequence[k](M);this.setVValue(M),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(M,k,T){this.propType="shape",this.comp=M.comp,this.container=M,this.elem=M,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var _=T===3?k.pt.k:k.ks.k;this.v=De.clone(_),this.pv=De.clone(this.v),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=b;function w(M,k,T){this.propType="shape",this.comp=M.comp,this.elem=M,this.container=M,this.offsetTime=M.data.st,this.keyframes=T===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=De.clone(this.v),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=s,w.prototype.setVValue=p,w.prototype.addEffect=b;var L=function(){var M=oe;function k(T,_){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,_.p,1,0,this),this.s=lt.getProp(T,_.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return k.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var _=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,G=this.s.v[1]/2,j=this.d!==3,it=this.v;it.v[0][0]=_,it.v[0][1]=N-G,it.v[1][0]=j?_+$:_-$,it.v[1][1]=N,it.v[2][0]=_,it.v[2][1]=N+G,it.v[3][0]=j?_-$:_+$,it.v[3][1]=N,it.i[0][0]=j?_-$*M:_+$*M,it.i[0][1]=N-G,it.i[1][0]=j?_+$:_-$,it.i[1][1]=N-G*M,it.i[2][0]=j?_+$*M:_-$*M,it.i[2][1]=N+G,it.i[3][0]=j?_-$:_+$,it.i[3][1]=N+G*M,it.o[0][0]=j?_+$*M:_-$*M,it.o[0][1]=N-G,it.o[1][0]=j?_+$:_-$,it.o[1][1]=N+G*M,it.o[2][0]=j?_-$*M:_+$*M,it.o[2][1]=N+G,it.o[3][0]=j?_-$:_+$,it.o[3][1]=N-G*M}},A([Me],k),k}(),K=function(){function M(k,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),T.sy===1?(this.ir=lt.getProp(k,T.ir,0,0,this),this.is=lt.getProp(k,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(k,T.pt,0,0,this),this.p=lt.getProp(k,T.p,1,0,this),this.r=lt.getProp(k,T.r,0,kt,this),this.or=lt.getProp(k,T.or,0,0,this),this.os=lt.getProp(k,T.os,0,.01,this),this.localShapeCollection=_s.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return M.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,_=Math.PI*2/T,N=!0,$=this.or.v,G=this.ir.v,j=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ut=2*Math.PI*G/(T*2),st,St,ht,rt,C=-Math.PI/2;C+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){St=N?$:G,ht=N?j:it,rt=N?Tt:ut;var v=St*Math.cos(C),E=St*Math.sin(C),Y=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-Y*rt*ht*D,E-V*rt*ht*D,v+Y*rt*ht*D,E+V*rt*ht*D,st,!0),N=!N,C+=_*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),_=Math.PI*2/T,N=this.or.v,$=this.os.v,G=2*Math.PI*N/(T*4),j,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,j=0;j<T;j+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),St=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ht=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-St*G*$*Tt,st-ht*G*$*Tt,ut+St*G*$*Tt,st+ht*G*$*Tt,j,!0),it+=_*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Me],M),M}(),x=function(){function M(k,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=_s.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),this.p=lt.getProp(k,T.p,1,0,this),this.s=lt.getProp(k,T.s,1,0,this),this.r=lt.getProp(k,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return M.prototype={convertRectToPath:function(){var T=this.p.v[0],_=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,G=Yt(N,$,this.r.v),j=G*(1-oe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,_-$+G,T+N,_-$+G,T+N,_-$+j,0,!0),this.v.setTripleAt(T+N,_+$-G,T+N,_+$-j,T+N,_+$-G,1,!0),G!==0?(this.v.setTripleAt(T+N-G,_+$,T+N-G,_+$,T+N-j,_+$,2,!0),this.v.setTripleAt(T-N+G,_+$,T-N+j,_+$,T-N+G,_+$,3,!0),this.v.setTripleAt(T-N,_+$-G,T-N,_+$-G,T-N,_+$-j,4,!0),this.v.setTripleAt(T-N,_-$+G,T-N,_-$+j,T-N,_-$+G,5,!0),this.v.setTripleAt(T-N+G,_-$,T-N+G,_-$,T-N+j,_-$,6,!0),this.v.setTripleAt(T+N-G,_-$,T+N-j,_-$,T+N-G,_-$,7,!0)):(this.v.setTripleAt(T-N,_+$,T-N+j,_+$,T-N,_+$,2),this.v.setTripleAt(T-N,_-$,T-N,_-$+j,T-N,_-$,3))):(this.v.setTripleAt(T+N,_-$+G,T+N,_-$+j,T+N,_-$+G,0,!0),G!==0?(this.v.setTripleAt(T+N-G,_-$,T+N-G,_-$,T+N-j,_-$,1,!0),this.v.setTripleAt(T-N+G,_-$,T-N+j,_-$,T-N+G,_-$,2,!0),this.v.setTripleAt(T-N,_-$+G,T-N,_-$+G,T-N,_-$+j,3,!0),this.v.setTripleAt(T-N,_+$-G,T-N,_+$-j,T-N,_+$-G,4,!0),this.v.setTripleAt(T-N+G,_+$,T-N+G,_+$,T-N+j,_+$,5,!0),this.v.setTripleAt(T+N-G,_+$,T+N-j,_+$,T+N-G,_+$,6,!0),this.v.setTripleAt(T+N,_+$-G,T+N,_+$-G,T+N,_+$-j,7,!0)):(this.v.setTripleAt(T-N,_-$,T-N+j,_-$,T-N,_-$,1,!0),this.v.setTripleAt(T-N,_+$,T-N,_+$-j,T-N,_+$,2,!0),this.v.setTripleAt(T+N,_+$,T+N-j,_+$,T+N,_+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Me],M),M}();function O(M,k,T){var _;if(T===3||T===4){var N=T===3?k.pt:k.ks,$=N.k;$.length?_=new w(M,k,T):_=new I(M,k,T)}else T===5?_=new x(M,k):T===6?_=new L(M,k):T===7&&(_=new K(M,k));return _.k&&M.addDynamicProperty(_),_}function P(){return I}function R(){return w}var H={};return H.getShapeProp=O,H.getConstructorFunction=P,H.getKeyframedConstructorFunction=R,H}();var Pe=function(){var r=Math.cos,s=Math.sin,n=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(1,0,0,0,0,E,-Y,0,0,Y,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,0,Y,0,0,1,0,0,-Y,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function w(v,E){return this._t(1,E,v,1,0,0)}function L(v,E){return this.shear(n(v),n(E))}function K(v,E){var Y=r(E),V=s(E);return this._t(Y,V,0,0,-V,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-V,0,0,V,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,E,Y){return!Y&&Y!==0&&(Y=1),v===1&&E===1&&Y===1?this:this._t(v,0,0,0,0,E,0,0,0,0,Y,0,0,0,0,1)}function O(v,E,Y,V,ct,gt,xt,Pt,Ft,ue,rr,Zr,ir,Le,ur,Wt){return this.props[0]=v,this.props[1]=E,this.props[2]=Y,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Pt,this.props[8]=Ft,this.props[9]=ue,this.props[10]=rr,this.props[11]=Zr,this.props[12]=ir,this.props[13]=Le,this.props[14]=ur,this.props[15]=Wt,this}function P(v,E,Y){return Y=Y||0,v!==0||E!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,Y,1):this}function R(v,E,Y,V,ct,gt,xt,Pt,Ft,ue,rr,Zr,ir,Le,ur,Wt){var pt=this.props;if(v===1&&E===0&&Y===0&&V===0&&ct===0&&gt===1&&xt===0&&Pt===0&&Ft===0&&ue===0&&rr===1&&Zr===0)return pt[12]=pt[12]*v+pt[15]*ir,pt[13]=pt[13]*gt+pt[15]*Le,pt[14]=pt[14]*rr+pt[15]*ur,pt[15]*=Wt,this._identityCalculated=!1,this;var vi=pt[0],Zi=pt[1],gi=pt[2],Qr=pt[3],bi=pt[4],yi=pt[5],or=pt[6],Qi=pt[7],Ji=pt[8],Pr=pt[9],to=pt[10],Fr=pt[11],Po=pt[12],ml=pt[13],ul=pt[14],fl=pt[15];return pt[0]=vi*v+Zi*ct+gi*Ft+Qr*ir,pt[1]=vi*E+Zi*gt+gi*ue+Qr*Le,pt[2]=vi*Y+Zi*xt+gi*rr+Qr*ur,pt[3]=vi*V+Zi*Pt+gi*Zr+Qr*Wt,pt[4]=bi*v+yi*ct+or*Ft+Qi*ir,pt[5]=bi*E+yi*gt+or*ue+Qi*Le,pt[6]=bi*Y+yi*xt+or*rr+Qi*ur,pt[7]=bi*V+yi*Pt+or*Zr+Qi*Wt,pt[8]=Ji*v+Pr*ct+to*Ft+Fr*ir,pt[9]=Ji*E+Pr*gt+to*ue+Fr*Le,pt[10]=Ji*Y+Pr*xt+to*rr+Fr*ur,pt[11]=Ji*V+Pr*Pt+to*Zr+Fr*Wt,pt[12]=Po*v+ml*ct+ul*Ft+fl*ir,pt[13]=Po*E+ml*gt+ul*ue+fl*Le,pt[14]=Po*Y+ml*xt+ul*rr+fl*ur,pt[15]=Po*V+ml*Pt+ul*Zr+fl*Wt,this._identityCalculated=!1,this}function H(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function M(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function k(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function _(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,Y){return{x:v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}}function $(v,E,Y){return v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12]}function G(v,E,Y){return v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13]}function j(v,E,Y){return v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,Y=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new Pe;return Pt.props[0]=E,Pt.props[1]=Y,Pt.props[4]=V,Pt.props[5]=ct,Pt.props[12]=gt,Pt.props[13]=xt,Pt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,Y=v.length,V=[];for(E=0;E<Y;E+=1)V[E]=Tt(v[E]);return V}function st(v,E,Y){var V=X("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=Y[0],V[5]=Y[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Pt=this.props[5],Ft=this.props[12],ue=this.props[13];V[0]=v[0]*ct+v[1]*xt+Ft,V[1]=v[0]*gt+v[1]*Pt+ue,V[2]=E[0]*ct+E[1]*xt+Ft,V[3]=E[0]*gt+E[1]*Pt+ue,V[4]=Y[0]*ct+Y[1]*xt+Ft,V[5]=Y[0]*gt+Y[1]*Pt+ue}return V}function St(v,E,Y){var V;return this.isIdentity()?V=[v,E,Y]:V=[v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]],V}function ht(v,E){if(this.isIdentity())return v+","+E;var Y=this.props;return Math.round((v*Y[0]+E*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+E*Y[5]+Y[13])*100)/100}function rt(){for(var v=0,E=this.props,Y="matrix3d(",V=1e4;v<16;)Y+=d(E[v]*V)/V,Y+=v===15?")":",",v+=1;return Y}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=C(v[0]),Y=C(v[1]),V=C(v[4]),ct=C(v[5]),gt=C(v[12]),xt=C(v[13]);return"matrix("+E+","+Y+","+V+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=b,this.skew=L,this.skewFromAxis=K,this.shear=w,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=H,this.applyToPoint=N,this.applyToX=$,this.applyToY=G,this.applyToZ=j,this.applyToPointArray=St,this.applyToTriplePoints=st,this.applyToPointStringified=ht,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=_,this.equals=k,this.inversePoints=ut,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=M,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function sl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(n){return typeof n}:sl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sl(r)}var Gt={},al="__[STANDALONE]__",Zm="__[ANIMATIONDATA]__",Qm="";function OE(r){c(r)}function Jm(){al===!0?me.searchAnimations(Zm,al,Qm):me.searchAnimations()}function RE(r){vE(r)}function DE(r){yE(r)}function PE(r){return al===!0&&(r.animationData=JSON.parse(Zm)),me.loadAnimation(r)}function FE(r){if(typeof r=="string")switch(r){case"high":Qn(200);break;default:case"medium":Qn(50);break;case"low":Qn(10);break}else!isNaN(r)&&r>1&&Qn(r);Ea()>=50?Ge(!1):Ge(!0)}function $E(){return typeof navigator<"u"}function VE(r,s){r==="expressions"&&bE(s)}function zE(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return ol;case"matrix":return Pe;default:return null}}Gt.play=me.play,Gt.pause=me.pause,Gt.setLocationHref=OE,Gt.togglePause=me.togglePause,Gt.setSpeed=me.setSpeed,Gt.setDirection=me.setDirection,Gt.stop=me.stop,Gt.searchAnimations=Jm,Gt.registerAnimation=me.registerAnimation,Gt.loadAnimation=PE,Gt.setSubframeRendering=RE,Gt.resize=me.resize,Gt.goToAndStop=me.goToAndStop,Gt.destroy=me.destroy,Gt.setQuality=FE,Gt.inBrowser=$E,Gt.installPlugin=VE,Gt.freeze=me.freeze,Gt.unfreeze=me.unfreeze,Gt.setVolume=me.setVolume,Gt.mute=me.mute,Gt.unmute=me.unmute,Gt.getRegisteredAnimations=me.getRegisteredAnimations,Gt.useWebWorker=o,Gt.setIDPrefix=DE,Gt.__getFactory=zE,Gt.version="5.12.2";function BE(){document.readyState==="complete"&&(clearInterval(GE),Jm())}function HE(r){for(var s=tu.split("&"),n=0;n<s.length;n+=1){var d=s[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var tu="";if(al){var eu=document.getElementsByTagName("script"),UE=eu.length-1,ru=eu[UE]||{src:""};tu=ru.src?ru.src.replace(/^[^\?]+\??/,""):"",Qm=HE("renderer")}var GE=setInterval(BE,100);try{!((typeof rn>"u"?"undefined":sl(rn))==="object"&&typeof Ul<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Gt)}catch{}var Ki=function(){var r={},s={};r.registerModifier=n,r.getModifier=d;function n(m,p){s[m]||(s[m]=p)}function d(m,p,g){return new s[m](p,g)}return r}();function xr(){}xr.prototype.initModifierProperties=function(){},xr.prototype.addShapeToModifier=function(){},xr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:_s.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},xr.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)},xr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Me],xr);function Dr(){}A([xr],Dr),Dr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Dr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Dr.prototype.calculateShapeEdges=function(r,s,n,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var g=[],I,b=p.length,w;for(I=0;I<b;I+=1)if(w=p[I],!(w.e*m<d||w.s*m>d+n)){var L,K;w.s*m<=d?L=0:L=(w.s*m-d)/n,w.e*m>=d+n?K=1:K=(w.e*m-d)/n,g.push([L,K])}return g.length||g.push([0,0]),g},Dr.prototype.releasePathsData=function(r){var s,n=r.length;for(s=0;s<n;s+=1)Wm.release(r[s]);return r.length=0,r},Dr.prototype.processShapes=function(r){var s,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,s>n){var m=s;s=n,n=m}s=Math.round(s*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=s,this.eValue=n}else s=this.sValue,n=this.eValue;var p,g,I=this.shapes.length,b,w,L,K,x,O=0;if(n===s)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&s===0||n===0&&s===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var P=[],R,H;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,w=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(L=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)K=qr.getSegmentsLength(p.shapes[b]),L.push(K),x+=K.totalLength;R.totalShapeLength=x,R.pathsData=L}O+=x,R.shape._mdf=!0}var M=s,k=n,T=0,_;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(H=R.localShapeCollection,H.releaseShapes(),this.m===2&&I>1?(_=this.calculateShapeEdges(s,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):_=[[M,k]],w=_.length,b=0;b<w;b+=1){M=_[b][0],k=_[b][1],P.length=0,k<=1?P.push({s:R.totalShapeLength*M,e:R.totalShapeLength*k}):M>=1?P.push({s:R.totalShapeLength*(M-1),e:R.totalShapeLength*(k-1)}):(P.push({s:R.totalShapeLength*M,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(k-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var G=N.pop();this.addPaths(N,H),N=this.addShapes(R,P[1],G)}else this.addPaths(N,H),N=this.addShapes(R,P[1])}this.addPaths(N,H)}}R.shape.paths=H}}},Dr.prototype.addPaths=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)s.addShape(r[n])},Dr.prototype.addSegment=function(r,s,n,d,m,p,g){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Dr.prototype.addSegmentFromArray=function(r,s,n,d){s.setXYAt(r[1],r[5],"o",n),s.setXYAt(r[2],r[6],"i",n+1),d&&s.setXYAt(r[0],r[4],"v",n),s.setXYAt(r[3],r[7],"v",n+1)},Dr.prototype.addShapes=function(r,s,n){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,b,w=0,L,K,x,O,P=[],R,H=!0;for(n?(K=n._length,R=n._length):(n=De.newElement(),K=0,R=0),P.push(n),p=0;p<g;p+=1){for(x=d[p].lengths,n.c=m[p].c,b=m[p].c?x.length:x.length+1,I=1;I<b;I+=1)if(L=x[I-1],w+L.addedLength<s.s)w+=L.addedLength,n.c=!1;else if(w>s.e){n.c=!1;break}else s.s<=w&&s.e>=w+L.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,K,H),H=!1):(O=qr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-w)/L.addedLength,(s.e-w)/L.addedLength,x[I-1]),this.addSegmentFromArray(O,n,K,H),H=!1,n.c=!1),w+=L.addedLength,K+=1;if(m[p].c&&x.length){if(L=x[I-1],w<=s.e){var M=x[I-1].addedLength;s.s<=w&&s.e>=w+M?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,K,H),H=!1):(O=qr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-w)/M,(s.e-w)/M,x[I-1]),this.addSegmentFromArray(O,n,K,H),H=!1,n.c=!1)}else n.c=!1;w+=L.addedLength,K+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),w>s.e)break;p<g-1&&(n=De.newElement(),H=!0,P.push(n),K=0)}return P};function Ia(){}A([xr],Ia),Ia.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ia.prototype.processPath=function(r,s){var n=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=De.newElement();g.c=r.c;var I,b,w,L,K,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,b=r.v[p][1]+(d[1]-r.v[p][1])*n,w=r.o[p][0]+(d[0]-r.o[p][0])*-n,L=r.o[p][1]+(d[1]-r.o[p][1])*-n,K=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,g.setTripleAt(I,b,w,L,K,x,p);return g},Ia.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var wc=function(){var r=[0,0];function s(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var w;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var L,K;if(w=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),K=this.p.getValueAtTime(this.p.keyframes[0].t/w,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(L=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],K=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(L[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),L[1]=O.getValueAtTime((O.keyframes[0].t+.01)/w,0),K[0]=x.getValueAtTime(x.keyframes[0].t/w,0),K[1]=O.getValueAtTime(O.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(L[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),L[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/w,0),K[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),K[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/w,0)):(L=[x.pv,O.pv],K[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),K[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/w,O.offsetTime))}else K=r,L=K;this.v.rotate(-Math.atan2(L[1]-K[1],L[0]-K[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,L){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||b),w.p&&w.p.s?(this.px=lt.getProp(b,w.p.x,0,0,this),this.py=lt.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=lt.getProp(b,w.p.z,0,0,this))):this.p=lt.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=lt.getProp(b,w.rx,0,kt,this),this.ry=lt.getProp(b,w.ry,0,kt,this),this.rz=lt.getProp(b,w.rz,0,kt,this),w.or.k[0].ti){var K,x=w.or.k.length;for(K=0;K<x;K+=1)w.or.k[K].to=null,w.or.k[K].ti=null}this.or=lt.getProp(b,w.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(b,w.r||{k:0},0,kt,this);w.sk&&(this.sk=lt.getProp(b,w.sk,0,kt,this),this.sa=lt.getProp(b,w.sa,0,kt,this)),this.a=lt.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=lt.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:n,precalculateMatrix:d,autoOrient:m},A([Me],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Me.prototype.addDynamicProperty;function I(b,w,L){return new g(b,w,L)}return{getTransformProperty:I}}();function Xr(){}A([xr],Xr),Xr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=wc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Xr.prototype.applyTransforms=function(r,s,n,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),b=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*g*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Xr.prototype.init=function(r,s,n,d){for(this.elem=r,this.arr=s,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[n]);n>0;)n-=1,this._elements.unshift(s[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Xr.prototype.resetElements=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Xr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Xr.prototype.changeGroupRender=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=s,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,s)},Xr.prototype.processShapes=function(r){var s,n,d,m,p,g=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}p=0;var w;for(d=0;d<=this._groups.length-1;d+=1){if(w=p<I,this._groups[d]._render=w,this.changeGroupRender(this._groups[d].it,w),!w){var L=this.elemsData[d].it,K=L[L.length-1];K.transform.op.v!==0?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,H=this.rMatrix.props,M=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k=0;if(x>0){for(;k<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),k+=O)}else if(x<0){for(;k>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),k-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,_;p;){if(s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,_=n.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),k!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<_;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<_;T+=1)n[T]=this.matrix.props[T];k+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return g},Xr.prototype.addShape=function(){};function _a(){}A([xr],_a),_a.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_a.prototype.processPath=function(r,s){var n=De.newElement();n.c=r.c;var d,m=r._length,p,g,I,b,w,L,K=0,x,O,P,R,H,M;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],K),K+=1):(d===0?b=r.v[m-1]:b=r.v[d-1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,H=p[0]+(b[0]-p[0])*L,x=H,M=p[1]-(p[1]-b[1])*L,O=M,P=x-(x-p[0])*oe,R=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,H,M,K),K+=1,d===m-1?b=r.v[0]:b=r.v[d+1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,P=p[0]+(b[0]-p[0])*L,x=P,R=p[1]+(b[1]-p[1])*L,O=R,H=x-(x-p[0])*oe,M=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,H,M,K),K+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],K),K+=1);return n},_a.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Nc(r){return Math.abs(r)<=1e-5}function iu(r,s,n){return r*(1-n)+s*n}function Wi(r,s,n){return[iu(r[0],s[0],n),iu(r[1],s[1],n)]}function KE(r,s,n){if(r===0)return[];var d=s*s-4*r*n;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function ou(r,s,n,d){return[-r+3*s-3*n+d,3*r-6*s+3*n,-3*r+3*s,r]}function su(r){return new ne(r,r,r,r,!1)}function ne(r,s,n,d,m){m&&ks(r,s)&&(s=Wi(r,d,1/3)),m&&ks(n,d)&&(n=Wi(r,d,2/3));var p=ou(r[0],s[0],n[0],d[0]),g=ou(r[1],s[1],n[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,s,n,d]}ne.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},ne.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},ne.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},ne.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},ne.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Nc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Nc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},ne.prototype.split=function(r){if(r<=0)return[su(this.points[0]),this];if(r>=1)return[this,su(this.points[this.points.length-1])];var s=Wi(this.points[0],this.points[1],r),n=Wi(this.points[1],this.points[2],r),d=Wi(this.points[2],this.points[3],r),m=Wi(s,n,r),p=Wi(n,d,r),g=Wi(m,p,r);return[new ne(this.points[0],s,m,g,!0),new ne(g,p,d,this.points[3],!0)]};function au(r,s){var n=r.points[0][s],d=r.points[r.points.length-1][s];if(n>d){var m=d;d=n,n=m}for(var p=KE(3*r.a[s],2*r.b[s],r.c[s]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[s];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}ne.prototype.bounds=function(){return{x:au(this,0),y:au(this,1)}},ne.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function ll(r,s,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+n)/2,t1:s,t2:n}}function nu(r){var s=r.bez.split(.5);return[ll(s[0],r.t1,r.t),ll(s[1],r.t,r.t2)]}function WE(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 Ca(r,s,n,d,m,p){if(WE(r,s)){if(n>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var g=nu(r),I=nu(s);Ca(g[0],I[0],n+1,d,m,p),Ca(g[0],I[1],n+1,d,m,p),Ca(g[1],I[0],n+1,d,m,p),Ca(g[1],I[1],n+1,d,m,p)}}ne.prototype.intersections=function(r,s,n){s===void 0&&(s=2),n===void 0&&(n=7);var d=[];return Ca(ll(this,0,1),ll(r,0,1),0,s,d,n),d},ne.shapeSegment=function(r,s){var n=(s+1)%r.length();return new ne(r.v[s],r.o[s],r.i[n],r.v[n],!0)},ne.shapeSegmentInverted=function(r,s){var n=(s+1)%r.length();return new ne(r.v[n],r.i[n],r.o[s],r.v[s],!0)};function Mc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function dl(r,s,n,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],g=[n[0],n[1],1],I=[d[0],d[1],1],b=Mc(Mc(m,p),Mc(g,I));return Nc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function Cs(r,s,n){return[r[0]+Math.cos(s)*n,r[1]-Math.sin(s)*n]}function Lc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ks(r,s){return nl(r[0],s[0])&&nl(r[1],s[1])}function ka(){}A([xr],ka),ka.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function lu(r,s,n,d,m,p,g){var I=n-Math.PI/2,b=n+Math.PI/2,w=s[0]+Math.cos(n)*d*m,L=s[1]-Math.sin(n)*d*m;r.setTripleAt(w,L,w+Math.cos(I)*p,L-Math.sin(I)*p,w+Math.cos(b)*g,L-Math.sin(b)*g,r.length())}function YE(r,s){var n=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function jE(r,s){var n=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[n],p=r.v[d],g=YE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function du(r,s,n,d,m,p,g){var I=jE(s,n),b=s.v[n%s._length],w=s.v[n===0?s._length-1:n-1],L=s.v[(n+1)%s._length],K=p===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=p===2?Math.sqrt(Math.pow(b[0]-L[0],2)+Math.pow(b[1]-L[1],2)):0;lu(r,s.v[n%s._length],I,g,d,x/((m+1)*2),K/((m+1)*2),p)}function qE(r,s,n,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+1),b=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,w=s.normalAngle(I),L=s.point(I);lu(r,L,w,p,n,b/((d+1)*2),b/((d+1)*2),m),p=-p}return p}ka.prototype.processPath=function(r,s,n,d){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=ne.shapeSegment(r,0);du(p,r,0,s,n,d,g);for(var b=0;b<m;b+=1)g=qE(p,I,s,n,d,-g),b===m-1&&!r.c?I=null:I=ne.shapeSegment(r,(b+1)%m),du(p,r,b+1,s,n,d,g);return p},ka.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,L;for(n=0;n<d;n+=1){if(w=this.shapes[n],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,I,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Oc(r,s,n){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Cs(r,d,n),Cs(s,d,n)]}function ws(r,s){var n,d,m,p,g,I,b;b=Oc(r.points[0],r.points[1],s),n=b[0],d=b[1],b=Oc(r.points[1],r.points[2],s),m=b[0],p=b[1],b=Oc(r.points[2],r.points[3],s),g=b[0],I=b[1];var w=dl(n,d,m,p);w===null&&(w=d);var L=dl(g,I,m,p);return L===null&&(L=g),new ne(n,w,L,I)}function cu(r,s,n,d,m){var p=s.points[3],g=n.points[0];if(d===3||ks(p,g))return p;if(d===2){var I=-s.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,w=dl(p,Cs(p,I+Math.PI/2,100),g,Cs(g,I+Math.PI/2,100)),L=w?Lc(w,p):Lc(p,g)/2,K=Cs(p,I,2*L*oe);return r.setXYAt(K[0],K[1],"o",r.length()-1),K=Cs(g,b,2*L*oe),r.setTripleAt(g[0],g[1],g[0],g[1],K[0],K[1],r.length()),g}var x=ks(p,s.points[2])?s.points[0]:s.points[2],O=ks(g,n.points[1])?n.points[3]:n.points[1],P=dl(x,p,g,O);return P&&Lc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function hu(r,s){var n=r.intersections(s);return n.length&&nl(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pu(r,s){var n=r.slice(),d=s.slice(),m=hu(r[r.length-1],s[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=hu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[n,d]}function XE(r){for(var s,n=1;n<r.length;n+=1)s=pu(r[n-1],r[n]),r[n-1]=s[0],r[n]=s[1];return r.length>1&&(s=pu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function mu(r,s){var n=r.inflectionPoints(),d,m,p,g;if(n.length===0)return[ws(r,s)];if(n.length===1||nl(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[ws(d,s),ws(m,s)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),g=p[0],m=p[1],[ws(d,s),ws(g,s),ws(m,s)]}function wa(){}A([xr],wa),wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},wa.prototype.processPath=function(r,s,n,d){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,b,w=[];for(g=0;g<p;g+=1)b=ne.shapeSegment(r,g),w.push(mu(b,s));if(!r.c)for(g=p-1;g>=0;g-=1)b=ne.shapeSegmentInverted(r,g),w.push(mu(b,s));w=XE(w);var L=null,K=null;for(g=0;g<w.length;g+=1){var x=w[g];for(K&&(L=cu(m,K,x[0],n,d)),K=x[x.length-1],I=0;I<x.length;I+=1)b=x[I],L&&ks(b.points[0],L)?m.setXYAt(b.points[1][0],b.points[1][1],"o",m.length()-1):m.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],m.length()),m.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],m.length()),L=b.points[3]}return w.length&&cu(m,K,w[0][0],n,d),m},wa.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,L;for(n=0;n<d;n+=1){if(w=this.shapes[n],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,b,I));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function uu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=s.length,p,g=0;g<m;g+=1)switch(p=s[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var Oo=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,g=917626,I=65039,b=8205,w=127462,L=127487,K=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var D=C.split(","),v,E=D.length,Y=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&Y.push(D[v]);return Y.join(",")}function O(C,D){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var Y=E.offsetWidth;return E.style.fontFamily=x(C)+", "+D,{node:E,w:Y,parent:v}}function P(){var C,D=this.fonts.length,v,E,Y=D;for(C=0;C<D;C+=1)this.fonts[C].loaded?Y-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(Y-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(Y-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));Y!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,D){var v=document.body&&D?"svg":"canvas",E,Y=uu(C);if(v==="svg"){var V=At("text");V.style.fontSize="100px",V.setAttribute("font-family",C.fFamily),V.setAttribute("font-style",Y.style),V.setAttribute("font-weight",Y.weight),V.textContent="1",C.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",C.fClass)):V.style.fontFamily=C.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=Y.style+" "+Y.weight+" 100px "+C.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function H(C,D){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(rr){rr.helper=R(rr),rr.cache={}}),this.fonts=C.list;return}var v=C.list,E,Y=v.length,V=Y;for(E=0;E<Y;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Ft=y("link");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.type="text/css",Ft.rel="stylesheet",Ft.href=v[E].fPath,document.body.appendChild(Ft)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var ue=y("link");ue.setAttribute("f-forigin",v[E].fOrigin),ue.setAttribute("f-origin",v[E].origin),ue.setAttribute("rel","stylesheet"),ue.setAttribute("href",v[E].fPath),D.appendChild(ue)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function M(C){if(C){this.chars||(this.chars=[]);var D,v=C.length,E,Y=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<Y;)this.chars[E].style===C[D].style&&this.chars[E].fFamily===C[D].fFamily&&this.chars[E].ch===C[D].ch&&(V=!0),E+=1;V||(this.chars.push(C[D]),Y+=1)}}}function k(C,D,v){for(var E=0,Y=this.chars.length;E<Y;){if(this.chars[E].ch===C&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,D,v)),s}function T(C,D,v){var E=this.getFontByName(D),Y=C;if(!E.cache[Y]){var V=E.helper;if(C===" "){var ct=V.measureText("|"+C+"|"),gt=V.measureText("||");E.cache[Y]=(ct-gt)/100}else E.cache[Y]=V.measureText(C)/100}return E.cache[Y]*v}function _(C){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===C)return this.fonts[D];D+=1}return this.fonts[0]}function N(C){var D=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(C,D){var v=C.toString(16)+D.toString(16);return K.indexOf(v)!==-1}function G(C){return C===b}function j(C){return C===I}function it(C){var D=N(C);return D>=w&&D<=L}function Tt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return n.indexOf(C)!==-1}function st(C,D){var v=N(C.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(C.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(C.substr(D,2))===m}function St(){this.isLoaded=!0}var ht=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)};ht.isModifier=$,ht.isZeroWidthJoiner=G,ht.isFlagEmoji=Tt,ht.isRegionalCode=it,ht.isCombinedCharacter=ut,ht.isRegionalFlag=st,ht.isVariationSelector=j,ht.BLACK_FLAG_CODE_POINT=d;var rt={addChars:M,addFonts:H,getCharData:k,getFontByName:_,measureText:T,checkLoadedFonts:P,setIsLoaded:St};return ht.prototype=rt,ht}();function fu(r){this.animationData=r}fu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function ZE(r){return new fu(r)}function cl(){}cl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,n=this.renderableComponents.length;for(s=0;s<n;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Rc=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 QE(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function JE(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function tT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function eT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function rT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function iT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function oT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function sT(){this.p={}}function vu(r,s){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new Na(n[d],s),this.effectElements.push(p)}function Na(r,s){this.init(r,s)}A([Me],Na),Na.prototype.getValue=Na.prototype.iterateDynamicProperties,Na.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new QE(p[n],s,this);break;case 1:m=new JE(p[n],s,this);break;case 2:m=new tT(p[n],s,this);break;case 3:m=new eT(p[n],s,this);break;case 4:case 7:m=new oT(p[n],s,this);break;case 10:m=new rT(p[n],s,this);break;case 11:m=new iT(p[n],s,this);break;case 5:m=new vu(p[n],s,this);break;default:m=new sT(p[n],s,this);break}m&&this.effectElements.push(m)}};function Yi(){}Yi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,n=this.data.masksProperties.length;s<n;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Hm();if(s){var n=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),g=s("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=Rc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=s},initBaseData:function(s,n,d){this.globalData=n,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new vu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function ji(){}ji.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function qi(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,n)}qi.prototype.prepareFrame=function(){},A([cl,Yi,ji],qi),qi.prototype.getBaseElement=function(){return null},qi.prototype.renderFrame=function(){},qi.prototype.destroy=function(){},qi.prototype.initExpressions=function(){var r=Hm();if(r){var s=r("footage");this.layerInterface=s(this)}},qi.prototype.getFootageData=function(){return this.footageData};function er(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([cl,Yi,ji],er),er.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,n=this.layers.length,d;for(this.completeLayers=!0,s=n-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new qi(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,n=r.length,d,m=this.layers.length;for(s=0;s<n;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,n){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,n=r.length;for(s=0;s<n;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Fe.prototype.getElementById=function(r){var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),n;if(typeof s=="number")n=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Oo,this.globalData.slotManager=ZE(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 aT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?wc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,n.cloneFromProps(s),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<n;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<n;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<n;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(aT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var n=0,d=s.length;for(n=0;n<d;n+=1)this.localTransforms.push(s[n])}}},globalToLocal:function(s){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=n.length,I;for(p=0;p<g;p+=1)I=n[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Ro(r,s,n){this.data=r,this.element=s,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(p),this.solidPath="";var g,I=this.masksProperties,b=0,w=[],L,K,x=tr(),O,P,R,H,M="clipPath",k="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(M="mask",k="mask"),(I[m].mode==="s"||I[m].mode==="i")&&b===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),w.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(M="mask",k="mask",H=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),P=At("filter"),P.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,H=null),this.storedData[m]={elem:g,x:H,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){K=w.length;var _=At("g");for(L=0;L<K;L+=1)_.appendChild(w[L]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),_.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(_)}else w.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=At(M),p=w.length,m=0;m<p;m+=1)this.maskElement.appendChild(w[m]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Ro.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Ro.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Ro.prototype.getMaskelement=function(){return this.maskElement},Ro.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},Ro.prototype.drawPath=function(r,s,n){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),n.lastPath!==d){var g="";n.elem&&(s.c&&(g=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},Ro.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ma=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=n;function s(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),gu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),hl={},bu="filter_result_";function Dc(r){var s,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=Ma.createFilter(m,!0),g=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var b=r.data.ef[s].ty;if(hl[b]){var w=hl[b].effect;I=new w(p,r.effectsManager.effectElements[s],r,bu+g,n),n=bu+g,hl[b].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Dc.prototype.renderFrame=function(r){var s,n=this.filters.length;for(s=0;s<n;s+=1)this.filters[s].renderFrame(r)},Dc.prototype.getEffects=function(r){var s,n=this.filters.length,d=[];for(s=0;s<n;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function _I(r,s,n){hl[r]={effect:s,countsAsEffect:n}}function La(){}La.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var n=At("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=At("clipPath"),m=At("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ro(this.data,this,this.globalData),this.renderableEffectsManager=new Dc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var n=this.layerId+"_"+s,d,m,p,g;if(s===1||s===3){var I=At("mask");I.setAttribute("id",n),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!gu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=Ma.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Ma.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var b=At("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var w=At("g");b.appendChild(w),d=tr(),m=Ma.createFilter(d);var L=At("feComponentTransfer");L.setAttribute("in","SourceGraphic"),m.appendChild(L);var K=At("feFuncA");K.setAttribute("type","table"),K.setAttribute("tableValues","1.0 0.0"),L.appendChild(K),this.globalData.defs.appendChild(m);var x=At("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),w.setAttribute("filter","url("+f()+"#"+d+")"),w.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(p),gu.maskType||(b.setAttribute("mask-type","luminance"),m.appendChild(Ma.createAlphaToLuminanceFilter()),g=At("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=n}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ms(){}Ms.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 Oa(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([cl,U(r)],Oa)})();function Ra(r,s,n){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Yi,Ns,La,Ms,ji,Oa],Ra),Ra.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Ra.prototype.sourceRectAtTime=function(){return this.sourceRect};function nT(r,s){this.elem=r,this.pos=s}function yu(){}yu.prototype={addShapeToModifiers:function(s){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,n=this.shapes.length;for(s=0;s<n;s+=1)this.shapes[s].sh.reset();n=this.shapeModifiers.length;var d;for(s=n-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===s)return n[d].pos;d+=1}return 0},addProcessedElement:function(s,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=n;return}d.push(new nT(s,n))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Eu={1:"butt",2:"round",3:"square"},Tu={1:"miter",2:"round",3:"bevel"};function xu(r,s,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=s,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}xu.prototype.setAsAnimated=function(){this._isAnimated=!0};function Au(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}Au.prototype.reset=function(){this.d="",this._mdf=!1};function pl(r,s,n,d){this.elem=r,this.frameId=-1,this.dataProps=tt(s.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",s.length?s.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,g;for(m=0;m<p;m+=1)g=lt.getProp(r,s[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:s[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}pl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<n;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Me],pl);function Su(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Me],Su);function Iu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n}A([Me],Iu);function _u(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Me],_u);function Da(r,s,n){this.data=s,this.c=X("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=X("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Da.prototype.comparePoints=function(r,s){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[s*4+n*2]),m>.01)return!1;n+=1}return!0},Da.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},Da.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,n=this.data.p*4,d,m;for(s=0;s<n;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,s=this.data.p*4;s<n;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Me],Da);function Ls(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,n)}Ls.prototype.initGradientData=function(r,s,n){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new Da(r,s.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,s),this.setGradientOpacity(s,n),this._isAnimated=!!this._isAnimated},Ls.prototype.setGradientData=function(r,s){var n=tr(),d=At(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=s.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ls.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=tr(),b=tr();p.setAttribute("id",b);var w=At(r.t===1?"linearGradient":"radialGradient");w.setAttribute("id",I),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var L=this.stops;for(d=r.g.p*4;d<m;d+=2)n=At("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),L.push(n);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",Eu[r.lc||2]),g.setAttribute("stroke-linejoin",Tu[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=w,this.ms=p,this.ost=L,this.maskId=b,s.msElem=g}},A([Me],Ls);function Cu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.initGradientData(r,s,n),this._isAnimated=!!this._isAnimated}A([Ls,Me],Cu);function lT(){this.it=[],this.prevViewData=[],this.gr=At("g")}function dT(r,s,n){this.transform={mProps:r,op:s,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var ku=function(s,n,d,m){if(n===0)return"";var p=s.o,g=s.i,I=s.v,b,w=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(b=1;b<n;b+=1)w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[b][0],g[b][1])+" "+m.applyToPointStringified(I[b][0],I[b][1]);return d&&n&&(w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),w+="z"),w},cT=function(){var r=new Pe,s=new Pe,n={createRenderFunction:d};function d(K){switch(K.ty){case"fl":return I;case"gf":return w;case"gs":return b;case"st":return L;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(K,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function g(K,x,O){var P,R,H,M,k,T,_=x.styles.length,N=x.lvl,$,G,j,it;for(T=0;T<_;T+=1){if(M=x.sh._mdf||O,x.styles[T].lvl<N){for(G=s.reset(),j=N-x.styles[T].lvl,it=x.transformers.length-1;!M&&j>0;)M=x.transformers[it].mProps._mdf||M,j-=1,it-=1;if(M)for(j=N-x.styles[T].lvl,it=x.transformers.length-1;j>0;)G.multiply(x.transformers[it].mProps.v),j-=1,it-=1}else G=r;if($=x.sh.paths,R=$._length,M){for(H="",P=0;P<R;P+=1)k=$.shapes[P],k&&k._length&&(H+=ku(k,k._length,k.c,G));x.caches[T]=H}else H=x.caches[T];x.styles[T].d+=K.hd===!0?"":H,x.styles[T]._mdf=M||x.styles[T]._mdf}}function I(K,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function b(K,x,O){w(K,x,O),L(K,x,O)}function w(K,x,O){var P=x.gf,R=x.g._hasOpacity,H=x.s.v,M=x.e.v;if(x.o._mdf||O){var k=K.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(k,x.o.v)}if(x.s._mdf||O){var T=K.t===1?"x1":"cx",_=T==="x1"?"y1":"cy";P.setAttribute(T,H[0]),P.setAttribute(_,H[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,H[0]),x.of.setAttribute(_,H[1]))}var N,$,G,j;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(G=N.length,$=0;$<G;$+=1)j=N[$],j.setAttribute("offset",it[$*4]+"%"),j.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,G=N.length,$=0;$<G;$+=1)j=N[$],x.g._collapsable||j.setAttribute("offset",Tt[$*2]+"%"),j.setAttribute("stop-opacity",Tt[$*2+1])}if(K.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",M[0]),P.setAttribute("y2",M[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",M[0]),x.of.setAttribute("y2",M[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)),P.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)));var st=Math.atan2(M[1]-H[1],M[0]-H[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var ht=ut*St,rt=Math.cos(st+x.a.v)*ht+H[0],C=Math.sin(st+x.a.v)*ht+H[1];P.setAttribute("fx",rt),P.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function L(K,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return n}();function de(r,s,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,n),this.prevViewData=[]}A([Yi,Ns,La,yu,Ms,ji,Oa],de),de.prototype.initSecondaryElement=function(){},de.prototype.identityMatrix=new Pe,de.prototype.buildExpressionInterface=function(){},de.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},de.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,n,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<s;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(g.push(n),I=n._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},de.prototype.setShapesAsAnimated=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s].setAsAnimated()},de.prototype.createStyleElement=function(r,s){var n,d=new Au(r,s),m=d.pElem;if(r.ty==="st")n=new Su(this,r,d);else if(r.ty==="fl")n=new Iu(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ls:Cu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new _u(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Eu[r.lc||2]),m.setAttribute("stroke-linejoin",Tu[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"]=Rc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},de.prototype.createGroupElement=function(r){var s=new lT;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"]=Rc(r.bm)),s},de.prototype.createTransformElement=function(r,s){var n=wc.getTransformProperty(this,r,this),d=new dT(n,n.o,s);return this.addToAnimatedContents(r,d),d},de.prototype.createShapeElement=function(r,s,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=ol.getShapeProp(this,r,d,this),p=new xu(s,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},de.prototype.addToAnimatedContents=function(r,s){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===s)return;n+=1}this.animatedContents.push({fn:cT.createRenderFunction(r),element:s,data:r})},de.prototype.setElementStyles=function(r){var s=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||s.push(this.stylesList[n])},de.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},de.prototype.searchShapes=function(r,s,n,d,m,p,g){var I=[].concat(p),b,w=r.length-1,L,K,x=[],O=[],P,R,H;for(b=w;b>=0;b-=1){if(H=this.searchProcessedElement(r[b]),H?s[b]=n[H-1]:r[b]._render=g,r[b].ty==="fl"||r[b].ty==="st"||r[b].ty==="gf"||r[b].ty==="gs"||r[b].ty==="no")H?s[b].style.closed=!1:s[b]=this.createStyleElement(r[b],m),r[b]._render&&s[b].style.pElem.parentNode!==d&&d.appendChild(s[b].style.pElem),x.push(s[b].style);else if(r[b].ty==="gr"){if(!H)s[b]=this.createGroupElement(r[b]);else for(K=s[b].it.length,L=0;L<K;L+=1)s[b].prevViewData[L]=s[b].it[L];this.searchShapes(r[b].it,s[b].it,s[b].prevViewData,s[b].gr,m+1,I,g),r[b]._render&&s[b].gr.parentNode!==d&&d.appendChild(s[b].gr)}else r[b].ty==="tr"?(H||(s[b]=this.createTransformElement(r[b],d)),P=s[b].transform,I.push(P)):r[b].ty==="sh"||r[b].ty==="rc"||r[b].ty==="el"||r[b].ty==="sr"?(H||(s[b]=this.createShapeElement(r[b],I,m)),this.setElementStyles(s[b])):r[b].ty==="tm"||r[b].ty==="rd"||r[b].ty==="ms"||r[b].ty==="pb"||r[b].ty==="zz"||r[b].ty==="op"?(H?(R=s[b],R.closed=!1):(R=Ki.getModifier(r[b].ty),R.init(this,r[b]),s[b]=R,this.shapeModifiers.push(R)),O.push(R)):r[b].ty==="rp"&&(H?(R=s[b],R.closed=!0):(R=Ki.getModifier(r[b].ty),s[b]=R,R.init(this,r,b,s),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=O.length,b=0;b<w;b+=1)O[b].closed=!0},de.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},de.prototype.renderShape=function(){var r,s=this.animatedContents.length,n;for(r=0;r<s;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},de.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Pc(r,s,n,d,m,p){this.o=r,this.sw=s,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!n,fc:!!d,m:!0,p:!0}}Pc.prototype.update=function(r,s,n,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,g=!0),g};function Ke(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Ke.prototype.defaultBoxWidth=[0,0],Ke.prototype.copyData=function(r,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n]);return r},Ke.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ke.prototype.searchProperty=function(){return this.searchKeyframes()},Ke.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ke.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},Ke.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Ke.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>s);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Ke.prototype.buildFinalText=function(r){for(var s=[],n=0,d=r.length,m,p,g=!1,I=!1,b="";n<d;)g=I,I=!1,m=r.charCodeAt(n),b=r.charAt(n),Oo.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?Oo.isRegionalFlag(r,n)?b=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(Oo.isModifier(m,p)?(b=r.substr(n,2),g=!0):Oo.isFlagEmoji(r.substr(n,4))?b=r.substr(n,4):b=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),Oo.isVariationSelector(m)&&(g=!0)):Oo.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),n+=b.length;return s},Ke.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,n=this.data,d=[],m,p,g,I=0,b,w=n.m.g,L=0,K=0,x=0,O=[],P=0,R=0,H,M,k=s.getFontByName(r.f),T,_=0,N=uu(k);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,G;if(r.sz)for(var j=!0,it=r.sz[0],Tt=r.sz[1],ut,st;j;){st=this.buildFinalText(r.t),ut=0,P=0,p=st.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)G=st[m].charCodeAt(0),g=!1,st[m]===" "?St=m:(G===13||G===3)&&(P=0,g=!0,ut+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(st[m],k.fStyle,k.fFamily),_=g?0:T.w*r.finalSize/100):_=s.measureText(st[m],r.f,r.finalSize),P+_>it&&st[m]!==" "?(St===-1?p+=1:m=St,ut+=r.finalLineHeight||r.finalSize*1.2,st.splice(m,St===m?1:0,"\r"),St=-1,P=0):(P+=_,P+=$);ut+=k.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ut?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=st,p=r.finalText.length,j=!1)}P=-$,_=0;var ht=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],G=rt.charCodeAt(0),G===13||G===3?(ht=0,O.push(P),R=P>R?P:R,P=-2*$,b="",g=!0,x+=1):b=rt,s.chars?(T=s.getCharData(rt,k.fStyle,s.getFontByName(r.f).fFamily),_=g?0:T.w*r.finalSize/100):_=s.measureText(b,r.f,r.finalSize),rt===" "?ht+=_+$:(P+=_+$+ht,ht=0),d.push({l:_,an:_,add:L,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(L+=_,b===""||b===" "||m===p-1){for((b===""||b===" ")&&(L-=_);K<=m;)d[K].an=L,d[K].ind=I,d[K].extra=_,K+=1;I+=1,L=0}}else if(w==3){if(L+=_,b===""||m===p-1){for(b===""&&(L-=_);K<=m;)d[K].an=L,d[K].ind=I,d[K].extra=_,K+=1;L=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var C=n.a,D,v;M=C.length;var E,Y,V=[];for(H=0;H<M;H+=1){for(D=C[H],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),Y=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[H]=Y,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(Y),Y+=1);n.a[H].s.totalChars=Y;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[H]&&(ct=v.anIndexes[H],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[H]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=k.ascent*r.finalSize/100},Ke.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var n=this.copyData({},this.data.d.k[s].s);n=this.copyData(n,r),this.data.d.k[s].s=n,this.recalculate(s),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Ke.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},Ke.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ke.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var hT=function(){var r=Math.max,s=Math.min,n=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=lt.getProp(p,g.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,g.o||{k:0},0,0,this),this.xe=lt.getProp(p,g.xe||{k:0},0,0,this),this.ne=lt.getProp(p,g.ne||{k:0},0,0,this),this.sm=lt.getProp(p,g.sm||{k:100},0,0,this),this.a=lt.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,b=0,w=1,L=1;this.ne.v>0?I=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:L=1+this.xe.v/100;var K=Sa.getBezierEasing(I,b,w,L).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=g>=P?1:0:x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===3)P===O?x=g>=P?0:1:x=1-r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=K(x);else if(R===5){if(P===O)x=0;else{var H=P-O;g=s(r(0,g+.5-O),P-O);var M=-H/2+g,k=H/2;x=Math.sqrt(1-M*M/(k*k))}x=K(x)}else R===6?(P===O?x=0:(g=s(r(0,g+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(P-O)))/2),x=K(x)):(g>=n(O)&&(g-O<0?x=r(0,s(s(P,1)-(O-g),1)):x=r(0,s(P-g,1))),x=K(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var _=.5-T*.5;x<_?x=0:(x=(x-_)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/I,w=this.s.v/I+b,L=this.e.v/I+b;if(w>L){var K=w;w=L,L=K}this.finalS=w,this.finalE=L}},A([Me],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function pT(r,s,n){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,n):d,rx:p.rx?m(r,p.rx,0,kt,n):d,ry:p.ry?m(r,p.ry,0,kt,n):d,sk:p.sk?m(r,p.sk,0,kt,n):d,sa:p.sa?m(r,p.sa,0,kt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=hT.getTextSelectorProp(r,s.s,n),this.s.t=s.s.t}function Do(r,s,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=n,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Do.prototype.searchProperties=function(){var r,s=this._textData.a.length,n,d=lt.getProp;for(r=0;r<s;r+=1)n=this._textData.a[r],this._animatorsData[r]=new pT(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},Do.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,b,w,L,K,x=r.l,O,P,R,H,M,k,T,_,N,$,G,j,it,Tt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},K=st._length-1;var St;for(j=0,L=0;L<K;L+=1)St=qr.buildBezierData(st.v[L],st.v[L+1],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[L+1][0]-st.v[L+1][0],st.i[L+1][1]-st.v[L+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),j+=St.segmentLength;L=K,ut.v.c&&(St=qr.buildBezierData(st.v[L],st.v[0],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),j+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,k=1,H=0,M=!0,$=O.segments,P<0&&ut.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,k=N.length-1;P<0;)P+=N[k].partialLength,k-=1,k<0&&(T-=1,N=$[T].points,k=N.length-1);N=$[T].points,_=N[k-1],R=N[k],G=R.partialLength}K=x.length,b=0,w=0;var ht=r.finalSize*1.2*.714,rt=!0,C,D,v,E,Y;E=d.length;var V,ct=-1,gt,xt,Pt,Ft=P,ue=T,rr=k,Zr=-1,ir,Le,ur,Wt,pt,vi,Zi,gi,Qr="",bi=this.defaultPropsArray,yi;if(r.j===2||r.j===1){var or=0,Qi=0,Ji=r.j===2?-.5:-1,Pr=0,to=!0;for(L=0;L<K;L+=1)if(x[L].n){for(or&&(or+=Qi);Pr<L;)x[Pr].animatorJustifyOffset=or,Pr+=1;or=0,to=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(to&&r.j===2&&(Qi+=C.t.v*Ji),D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?or+=C.t.v*V[0]*Ji:or+=C.t.v*V*Ji);to=!1}for(or&&(or+=Qi);Pr<L;)x[Pr].animatorJustifyOffset=or,Pr+=1}for(L=0;L<K;L+=1){if(p.reset(),ir=1,x[L].n)b=0,w+=r.yOffset,w+=rt?1:0,P=Ft,rt=!1,this._hasMaskedPath&&(T=ue,k=rr,N=$[T].points,_=N[k-1],R=N[k],G=R.partialLength,H=0),Qr="",gi="",vi="",yi="",bi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Zr!==x[L].line){switch(r.j){case 1:P+=j-r.lineWidths[x[L].line];break;case 2:P+=(j-r.lineWidths[x[L].line])/2;break;default:break}Zr=x[L].line}ct!==x[L].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[L].an/2,ct=x[L].ind),P+=n[0]*x[L].an*.005;var Fr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Fr+=C.p.v[0]*V[0]:Fr+=C.p.v[0]*V),C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Fr+=C.a.v[0]*V[0]:Fr+=C.a.v[0]*V);for(M=!0,this._pathData.a.v&&(P=x[0].an*.5+(j-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(K-1),P+=this._pathData.f.v);M;)H+G>=P+Fr||!N?(it=(P+Fr-H)/R.partialLength,xt=_.point[0]+(R.point[0]-_.point[0])*it,Pt=_.point[1]+(R.point[1]-_.point[1])*it,p.translate(-n[0]*x[L].an*.005,-(n[1]*ht)*.01),M=!1):N&&(H+=R.partialLength,k+=1,k>=N.length&&(k=0,T+=1,$[T]?N=$[T].points:ut.v.c?(k=0,T=0,N=$[T].points):(H-=R.partialLength,N=null)),N&&(_=R,R=N[k],G=R.partialLength));gt=x[L].an/2-x[L].add,p.translate(-gt,0,0)}else gt=x[L].an/2-x[L].add,p.translate(-gt,0,0),p.translate(-n[0]*x[L].an*.005,-n[1]*ht*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),(b!==0||r.j!==0)&&(this._hasMaskedPath?V.length?P+=C.t.v*V[0]:P+=C.t.v*V:V.length?b+=C.t.v*V[0]:b+=C.t.v*V));for(r.strokeWidthAnim&&(ur=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Wt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-C.a.v[0]*V[0],-C.a.v[1]*V[1],C.a.v[2]*V[2]):p.translate(-C.a.v[0]*V,-C.a.v[1]*V,C.a.v[2]*V));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(C.s.v[0]-1)*V[0],1+(C.s.v[1]-1)*V[1],1):p.scale(1+(C.s.v[0]-1)*V,1+(C.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(C=d[v].a,D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),C.sk.propType&&(V.length?p.skewFromAxis(-C.sk.v*V[0],C.sa.v*V[1]):p.skewFromAxis(-C.sk.v*V,C.sa.v*V)),C.r.propType&&(V.length?p.rotateZ(-C.r.v*V[2]):p.rotateZ(-C.r.v*V)),C.ry.propType&&(V.length?p.rotateY(C.ry.v*V[1]):p.rotateY(C.ry.v*V)),C.rx.propType&&(V.length?p.rotateX(C.rx.v*V[0]):p.rotateX(C.rx.v*V)),C.o.propType&&(V.length?ir+=(C.o.v*V[0]-ir)*V[0]:ir+=(C.o.v*V-ir)*V),r.strokeWidthAnim&&C.sw.propType&&(V.length?ur+=C.sw.v*V[0]:ur+=C.sw.v*V),r.strokeColorAnim&&C.sc.propType)for(pt=0;pt<3;pt+=1)V.length?Le[pt]+=(C.sc.v[pt]-Le[pt])*V[0]:Le[pt]+=(C.sc.v[pt]-Le[pt])*V;if(r.fillColorAnim&&r.fc){if(C.fc.propType)for(pt=0;pt<3;pt+=1)V.length?Wt[pt]+=(C.fc.v[pt]-Wt[pt])*V[0]:Wt[pt]+=(C.fc.v[pt]-Wt[pt])*V;C.fh.propType&&(V.length?Wt=Bm(Wt,C.fh.v*V[0]):Wt=Bm(Wt,C.fh.v*V)),C.fs.propType&&(V.length?Wt=Vm(Wt,C.fs.v*V[0]):Wt=Vm(Wt,C.fs.v*V)),C.fb.propType&&(V.length?Wt=zm(Wt,C.fb.v*V[0]):Wt=zm(Wt,C.fb.v*V))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,C.p.v[1]*V[0],-C.p.v[2]*V[1]):p.translate(0,C.p.v[1]*V,-C.p.v[2]*V):V.length?p.translate(C.p.v[0]*V[0],C.p.v[1]*V[1],-C.p.v[2]*V[2]):p.translate(C.p.v[0]*V,C.p.v[1]*V,-C.p.v[2]*V));if(r.strokeWidthAnim&&(vi=ur<0?0:ur),r.strokeColorAnim&&(Zi="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(gi="rgb("+Math.round(Wt[0]*255)+","+Math.round(Wt[1]*255)+","+Math.round(Wt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,n[1]*ht*.01+w,0),this._pathData.p.v){Tt=(R.point[1]-_.point[1])/(R.point[0]-_.point[0]);var Po=Math.atan(Tt)*180/Math.PI;R.point[0]<_.point[0]&&(Po+=180),p.rotate(-Po*Math.PI/180)}p.translate(xt,Pt,0),P-=n[0]*x[L].an*.005,x[L+1]&&ct!==x[L+1].ind&&(P+=x[L].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(b,w,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line]),0,0);break;case 2:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(n[0]*x[L].an*.005,n[1]*ht*.01,0),b+=x[L].l+r.tr*.001*r.finalSize}g==="html"?Qr=p.toCSS():g==="svg"?Qr=p.to2dCSS():bi=[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]],yi=ir}I<=L?(Y=new Pc(yi,vi,Zi,gi,Qr,bi),this.renderedLetters.push(Y),I+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[L],this.lettersChangedFlag=Y.update(yi,vi,Zi,gi,Qr,bi)||this.lettersChangedFlag)}}},Do.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Do.prototype.mHelper=new Pe,Do.prototype.defaultPropsArray=[],A([Me],Do);function Ar(){}Ar.prototype.initElement=function(r,s,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,n),this.textProperty=new Ke(this,r.t,this.dynamicProperties),this.textAnimator=new Do(r.t,this.renderType,this),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ar.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Ar.prototype.createPathShape=function(r,s){var n,d=s.length,m,p="";for(n=0;n<d;n+=1)s[n].ty==="sh"&&(m=s[n].ks.k,p+=ku(m,m.i.length,!0,r));return p},Ar.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Ar.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Ar.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Ar.prototype.applyTextPropertiesToMatrix=function(r,s,n,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}s.translate(d,m,0)},Ar.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Ar.prototype.emptyProp=new Pc,Ar.prototype.destroy=function(){},Ar.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var mT={shapes:[]};function ui(r,s,n){this.textSpans=[],this.renderType="svg",this.initElement(r,s,n)}A([Yi,Ns,La,Ms,ji,Oa,Ar],ui),ui.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},ui.prototype.buildTextContents=function(r){for(var s=0,n=r.length,d=[],m="";s<n;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},ui.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},ui.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,n=this.textProperty.currentData;this.renderedLetters=tt(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],I=!!this.globalData.fontManager.chars;s=g.length;var b,w=this.mHelper,L="",K=this.data.singleShape,x=0,O=0,P=!0,R=n.tr*.001*n.finalSize;if(K&&!I&&!n.sz){var H=this.textContainer,M="start";switch(n.j){case 1:M="end";break;case 2:M="middle";break;default:M="start";break}H.setAttribute("text-anchor",M),H.setAttribute("letter-spacing",R);var k=this.buildTextContents(n.finalText);for(s=k.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<s;r+=1)b=this.textSpans[r].span||At("tspan"),b.textContent=k[r],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",H.appendChild(b),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(H)}else{var T=this.textSpans.length,_;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!K||r===0){if(b=T>r?this.textSpans[r].span:At(I?"g":"text"),T<=r){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=b,I){var N=At("g");b.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),K&&(g[r].n&&(x=-R,O+=n.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(n,w,g[r].line,x,O),x+=g[r].l||0,x+=R),I){_=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(_.t===1)$=new Pa(_.data,this.globalData,this);else{var G=mT;_.data&&_.data.shapes&&(G=this.buildShapeData(_.data,n.finalSize)),$=new de(G,this.globalData,this)}if(this.textSpans[r].glyph){var j=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(j.layerElement),j.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),_.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else K&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[r].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}K&&b&&b.setAttribute("d",L)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},ui.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},ui.prototype.getValue=function(){var r,s=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ui.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,g;for(r=0;r<s;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Fc(r,s,n){this.initElement(r,s,n)}A([Ra],Fc),Fc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Xi(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initFrame(),this.initTransform(r,s,n),this.initHierarchy()}Xi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Xi.prototype.renderFrame=function(){},Xi.prototype.getBaseElement=function(){return null},Xi.prototype.destroy=function(){},Xi.prototype.sourceRectAtTime=function(){},Xi.prototype.hide=function(){},A([Yi,Ns,Ms,ji],Xi);function Se(){}A([Fe],Se),Se.prototype.createNull=function(r){return new Xi(r,this.globalData,this)},Se.prototype.createShape=function(r){return new de(r,this.globalData,this)},Se.prototype.createText=function(r){return new ui(r,this.globalData,this)},Se.prototype.createImage=function(r){return new Ra(r,this.globalData,this)},Se.prototype.createSolid=function(r){return new Fc(r,this.globalData,this)},Se.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var n=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(n),this.layers=r.layers,this.elements=tt(r.layers.length)},Se.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},Se.prototype.updateContainerSize=function(){},Se.prototype.findIndexByInd=function(r){var s=0,n=this.layers.length;for(s=0;s<n;s+=1)if(this.layers[s].ind===r)return s;return-1},Se.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var n=this.createItem(this.layers[r]);if(s[r]=n,Zn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=s[d],p=m.getMatte(this.layers[r].tt);n.setMatte(p)}}}},Se.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,n=this.elements.length;s<n;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Se.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<n;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Se.prototype.appendElementInPos=function(r,s){var n=r.getBaseElement();if(n){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Se.prototype.hide=function(){this.layerElement.style.display="none"},Se.prototype.show=function(){this.layerElement.style.display="block"};function fi(){}A([Yi,Ns,Ms,ji,Oa],fi),fi.prototype.initElement=function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},fi.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},fi.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()},fi.prototype.setElements=function(r){this.elements=r},fi.prototype.getElements=function(){return this.elements},fi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},fi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Pa(r,s,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(r,s,n),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Se,fi,La],Pa),Pa.prototype.createComp=function(r){return new Pa(r,this.globalData,this)};function $c(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var n="";if(s&&s.title){var d=At("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),n+=m}if(s&&s.description){var p=At("desc"),g=tr();p.setAttribute("id",g),p.textContent=s.description,this.svgElement.appendChild(p),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=At("defs");this.svgElement.appendChild(I);var b=At("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Se],$c),$c.prototype.createComp=function(r){return new Pa(r,this.globalData,this)},AE("svg",$c),Ki.registerModifier("tm",Dr),Ki.registerModifier("pb",Ia),Ki.registerModifier("rp",Xr),Ki.registerModifier("rd",_a),Ki.registerModifier("zz",ka),Ki.registerModifier("op",wa),Gt})});var vl=globalThis,gl=vl.ShadowRoot&&(vl.ShadyCSS===void 0||vl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zc=Symbol(),Nu=new WeakMap,Fa=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==zc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(gl&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=Nu.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Nu.set(t,i))}return i}toString(){return this.cssText}},Mu=a=>new Fa(typeof a=="string"?a:a+"",void 0,zc),B=(a,...i)=>{let t=a.length===1?a[0]:i.reduce((e,o,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+a[l+1],a[0]);return new Fa(t,a,zc)},Bc=(a,i)=>{if(gl)a.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),o=vl.litNonce;o!==void 0&&e.setAttribute("nonce",o),e.textContent=t.cssText,a.appendChild(e)}},bl=gl?a=>a:a=>a instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Mu(t)})(a):a;var{is:TT,defineProperty:xT,getOwnPropertyDescriptor:AT,getOwnPropertyNames:ST,getOwnPropertySymbols:IT,getPrototypeOf:_T}=Object,eo=globalThis,Lu=eo.trustedTypes,CT=Lu?Lu.emptyScript:"",Hc=eo.reactiveElementPolyfillSupport,$a=(a,i)=>a,Va={toAttribute(a,i){switch(i){case Boolean:a=a?CT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,i){let t=a;switch(i){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},yl=(a,i)=>!TT(a,i),Ou={attribute:!0,type:String,converter:Va,reflect:!1,hasChanged:yl},Ru,Du;(Ru=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Du=eo.litPropertyMetadata)!=null||(eo.litPropertyMetadata=new WeakMap);var Ei=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Ou){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),o=this.getPropertyDescriptor(i,e,t);o!==void 0&&xT(this.prototype,i,o)}}static getPropertyDescriptor(i,t,e){var c;let{get:o,set:l}=(c=AT(this.prototype,i))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return o==null?void 0:o.call(this)},set(f){let y=o==null?void 0:o.call(this);l.call(this,f),this.requestUpdate(i,y,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Ou}static _$Ei(){if(this.hasOwnProperty($a("elementProperties")))return;let i=_T(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty($a("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($a("properties"))){let t=this.properties,e=[...ST(t),...IT(t)];for(let o of e)this.createProperty(o,t[o])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,o]of t)this.elementProperties.set(e,o)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let o=this._$Eu(t,e);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let o of e)t.unshift(bl(o))}else i!==void 0&&t.push(bl(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Bc(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostConnected)==null?void 0:o.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var l;let e=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,e);if(o!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:Va).toAttribute(t,e.type);this._$Em=i,c==null?this.removeAttribute(o):this.setAttribute(o,c),this._$Em=null}}_$AK(i,t){var l;let e=this.constructor,o=e._$Eh.get(i);if(o!==void 0&&this._$Em!==o){let c=e.getPropertyOptions(o),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:Va;this._$Em=o,this[o]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(i,t,e){var o;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((o=e.hasChanged)!=null?o:yl)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var o;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw i=!1,this._$EU(),l}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostUpdated)==null?void 0:o.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Pu;Ei.elementStyles=[],Ei.shadowRootOptions={mode:"open"},Ei[$a("elementProperties")]=new Map,Ei[$a("finalized")]=new Map,Hc==null||Hc({ReactiveElement:Ei}),((Pu=eo.reactiveElementVersions)!=null?Pu:eo.reactiveElementVersions=[]).push("2.0.4");var Ba=globalThis,El=Ba.trustedTypes,Fu=El?El.createPolicy("lit-html",{createHTML:a=>a}):void 0,Kc="$lit$",Ti=`lit$${Math.random().toFixed(9).slice(2)}$`,Wc="?"+Ti,kT=`<${Wc}>`,Vo=document,Ha=()=>Vo.createComment(""),Ua=a=>a===null||typeof a!="object"&&typeof a!="function",Yc=Array.isArray,Gu=a=>Yc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Uc=`[
3
- \f\r]`,za=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$u=/-->/g,Vu=/>/g,Fo=RegExp(`>|${Uc}(?:([^\\s"'>=/]+)(${Uc}*=${Uc}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),zu=/'/g,Bu=/"/g,Ku=/^(?:script|style|textarea|title)$/i,jc=a=>(i,...t)=>({_$litType$:a,strings:i,values:t}),S=jc(1),LI=jc(2),OI=jc(3),$e=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Hu=new WeakMap,$o=Vo.createTreeWalker(Vo,129);function Wu(a,i){if(!Yc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fu!==void 0?Fu.createHTML(i):i}var Yu=(a,i)=>{let t=a.length-1,e=[],o,l=i===2?"<svg>":i===3?"<math>":"",c=za;for(let f=0;f<t;f++){let y=a[f],A,F,U=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===za?F[1]==="!--"?c=$u:F[1]!==void 0?c=Vu:F[2]!==void 0?(Ku.test(F[2])&&(o=RegExp("</"+F[2],"g")),c=Fo):F[3]!==void 0&&(c=Fo):c===Fo?F[0]===">"?(c=o!=null?o:za,U=-1):F[1]===void 0?U=-2:(U=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?Fo:F[3]==='"'?Bu:zu):c===Bu||c===zu?c=Fo:c===$u||c===Vu?c=za:(c=Fo,o=void 0);let X=c===Fo&&a[f+1].startsWith("/>")?" ":"";l+=c===za?y+kT:U>=0?(e.push(A),y.slice(0,U)+Kc+y.slice(U)+Ti+X):y+Ti+(U===-2?f:X)}return[Wu(a,l+(a[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),e]},Ga=class a{constructor({strings:i,_$litType$:t},e){let o;this.parts=[];let l=0,c=0,f=i.length-1,y=this.parts,[A,F]=Yu(i,t);if(this.el=a.createElement(A,e),$o.currentNode=this.el.content,t===2||t===3){let U=this.el.content.firstChild;U.replaceWith(...U.childNodes)}for(;(o=$o.nextNode())!==null&&y.length<f;){if(o.nodeType===1){if(o.hasAttributes())for(let U of o.getAttributeNames())if(U.endsWith(Kc)){let Q=F[c++],X=o.getAttribute(U).split(Ti),tt=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:tt[2],strings:X,ctor:tt[1]==="."?xl:tt[1]==="?"?Al:tt[1]==="@"?Sl:Bo}),o.removeAttribute(U)}else U.startsWith(Ti)&&(y.push({type:6,index:l}),o.removeAttribute(U));if(Ku.test(o.tagName)){let U=o.textContent.split(Ti),Q=U.length-1;if(Q>0){o.textContent=El?El.emptyScript:"";for(let X=0;X<Q;X++)o.append(U[X],Ha()),$o.nextNode(),y.push({type:2,index:++l});o.append(U[Q],Ha())}}}else if(o.nodeType===8)if(o.data===Wc)y.push({type:2,index:l});else{let U=-1;for(;(U=o.data.indexOf(Ti,U+1))!==-1;)y.push({type:7,index:l}),U+=Ti.length-1}l++}}static createElement(i,t){let e=Vo.createElement("template");return e.innerHTML=i,e}};function zo(a,i,t=a,e){var c,f,y;if(i===$e)return i;let o=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Ua(i)?void 0:i._$litDirective$;return(o==null?void 0:o.constructor)!==l&&((f=o==null?void 0:o._$AO)==null||f.call(o,!1),l===void 0?o=void 0:(o=new l(a),o._$AT(a,t,e)),e!==void 0?((y=t.o)!=null?y:t.o=[])[e]=o:t.l=o),o!==void 0&&(i=zo(a,o._$AS(a,i.values),o,e)),i}var Tl=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var A;let{el:{content:t},parts:e}=this._$AD,o=((A=i==null?void 0:i.creationScope)!=null?A:Vo).importNode(t,!0);$o.currentNode=o;let l=$o.nextNode(),c=0,f=0,y=e[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new Os(l,l.nextSibling,this,i):y.type===1?F=new y.ctor(l,y.name,y.strings,this,i):y.type===6&&(F=new Il(l,this,i)),this._$AV.push(F),y=e[++f]}c!==(y==null?void 0:y.index)&&(l=$o.nextNode(),c++)}return $o.currentNode=Vo,o}p(i){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(i,e,t),t+=e.strings.length-2):e._$AI(i[t])),t++}},Os=class a{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,e,o){var l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=e,this.options=o,this.v=(l=o==null?void 0:o.isConnected)!=null?l:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=zo(this,i,t),Ua(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==$e&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Gu(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==W&&Ua(this._$AH)?this._$AA.nextSibling.data=i:this.T(Vo.createTextNode(i)),this._$AH=i}$(i){var l;let{values:t,_$litType$:e}=i,o=typeof e=="number"?this._$AC(i):(e.el===void 0&&(e.el=Ga.createElement(Wu(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===o)this._$AH.p(t);else{let c=new Tl(o,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(i){let t=Hu.get(i.strings);return t===void 0&&Hu.set(i.strings,t=new Ga(i)),t}k(i){Yc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,o=0;for(let l of i)o===t.length?t.push(e=new a(this.O(Ha()),this.O(Ha()),this,this.options)):e=t[o],e._$AI(l),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(i=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);i&&i!==this._$AB;){let o=i.nextSibling;i.remove(),i=o}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Bo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,e,o,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,this._$AM=o,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(i,t=this,e,o){let l=this.strings,c=!1;if(l===void 0)i=zo(this,i,t,0),c=!Ua(i)||i!==this._$AH&&i!==$e,c&&(this._$AH=i);else{let f=i,y,A;for(i=l[0],y=0;y<l.length-1;y++)A=zo(this,f[e+y],t,y),A===$e&&(A=this._$AH[y]),c||(c=!Ua(A)||A!==this._$AH[y]),A===W?i=W:i!==W&&(i+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!o&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},xl=class extends Bo{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},Al=class extends Bo{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},Sl=class extends Bo{constructor(i,t,e,o,l){super(i,t,e,o,l),this.type=5}_$AI(i,t=this){var c;if((i=(c=zo(this,i,t,0))!=null?c:W)===$e)return;let e=this._$AH,o=i===W&&e!==W||i.capture!==e.capture||i.once!==e.once||i.passive!==e.passive,l=i!==W&&(e===W||o);o&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,i):this._$AH.handleEvent(i)}},Il=class{constructor(i,t,e){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(i){zo(this,i)}},ju={M:Kc,P:Ti,A:Wc,C:1,L:Yu,R:Tl,D:Gu,V:zo,I:Os,H:Bo,N:Al,U:Sl,B:xl,F:Il},Gc=Ba.litHtmlPolyfillSupport,Uu;Gc==null||Gc(Ga,Os),((Uu=Ba.litHtmlVersions)!=null?Uu:Ba.litHtmlVersions=[]).push("3.2.0");var qu=(a,i,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:i,o=e._$litPart$;if(o===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=o=new Os(i.insertBefore(Ha(),f),f,void 0,t!=null?t:{})}return o._$AI(a),o};var ro=class extends Ei{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=qu(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return $e}},Xu;ro._$litElement$=!0,ro.finalized=!0,(Xu=globalThis.litElementHydrateSupport)==null||Xu.call(globalThis,{LitElement:ro});var qc=globalThis.litElementPolyfillSupport;qc==null||qc({LitElement:ro});var Zu;((Zu=globalThis.litElementVersions)!=null?Zu:globalThis.litElementVersions=[]).push("4.1.0");var wT={attribute:!0,type:String,converter:Va,reflect:!1,hasChanged:yl},NT=(a=wT,i,t)=>{let{kind:e,metadata:o}=t,l=globalThis.litPropertyMetadata.get(o);if(l===void 0&&globalThis.litPropertyMetadata.set(o,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let y=i.get.call(this);i.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let y=this[c];i.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(i,t)=>typeof t=="object"?NT(a,i,t):((e,o,l)=>{let c=o.hasOwnProperty(l);return o.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(o,l):void 0})(a,i,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function Qu(a){return(i,t)=>{let e=typeof i=="function"?i:i[t];Object.assign(e,a)}}var Jr=(a,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(a,i,t),t);function Kt(a,i){return(t,e,o)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(i){let{get:c,set:f}=typeof e=="object"?t:o!=null?o:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return Jr(t,e,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Jr(t,e,{get(){return l(this)}})}}var Xc;function Ju(a){return(i,t)=>Jr(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:Xc!=null?Xc:Xc=document.createDocumentFragment()).querySelectorAll(a)}})}function jt(a){return(i,t)=>{let{slot:e,selector:o}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return Jr(i,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return o===void 0?f:f.filter(F=>F.matches(o))}})}}function tf(a){return(i,t)=>{let{slot:e}=a!=null?a:{},o="slot"+(e?`[name=${e}]`:":not([name])");return Jr(i,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(o);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var MT={PREFIX:"mdc",SEPARATOR:"-"},LT={NAMESPACE:MT},Zc=LT;var OT=a=>[Zc.NAMESPACE.PREFIX,a].join(Zc.NAMESPACE.SEPARATOR),z={constructTagName:OT};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 ef=z.constructTagName("buttonsimple"),Ho={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ka={SIZE:Ho[32],TYPE:Rs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var xi=z.constructTagName("button"),Vt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Wa={40:40,32:32,28:28,24:24},Sr={64:64,52:52,20:20,...Wa},Uo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},sr={VARIANT:Vt.PRIMARY,SIZE:Wa[32],COLOR:Uo.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var _l=a=>{class i extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(Vt).includes(o)?o:sr.VARIANT)}setColor(o){!Object.values(Uo).includes(o)||this.variant===Vt.TERTIARY?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",o)}setSize(o){let c=this.typeInternal===Ds.ICON?Object.values(Sr).includes(o)&&!(o===Sr[20]&&this.variant!==Vt.TERTIARY):Object.values(Wa).includes(o);this.setAttribute("size",c?`${o}`:`${sr.SIZE}`)}inferButtonType(){var A,F,U,Q,X,tt;let o=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,l=(Q=(U=this.shadowRoot)==null?void 0:U.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,c=this.prefixIcon||l&&l>0,f=(tt=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,y=this.postfixIcon||f&&f>0;o&&(c||y)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(c||y)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),h([u({type:String})],i.prototype,"variant",2),h([u({type:String})],i.prototype,"color",2),h([dt()],i.prototype,"typeInternal",2),i};var rf=B`
2
+ `),d={},m,p=0,g=0;g<n.length;g+=1)m=n[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var n=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}n.push(p)}return n}}(),xE=function(){function r(s){this.compositions.push(s)}return function(){function s(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),xa={},AE=function(s,n){xa[s]=n};function SE(r){return xa[r]}function IE(){if(xa.canvas)return"canvas";for(var r in xa)if(xa[r])return r;return""}function Aa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Aa=function(n){return typeof n}:Aa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Aa(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=gE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=xE(),this.imagePreloader=new EE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Tr("drawnFrame",0,0,0),this.expressionsPlugin=Zn()};A([Um],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var n=SE(s);this.renderer=new n(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Ta.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Ta.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Aa(s)!=="object"&&(s=JSON.parse(s));var n={wrapper:r,animationData:s},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:IE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,n,d=s.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(n=0;n<d;){if(s[n].id===m[p].id){s[n]=m[p];break}n+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,Ta.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Zn();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ta.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=TE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=Zn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var n=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(n,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,n=0;n<this.markers.length;n+=1)if(s=this.markers[n],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,n=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(n=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,s=0)):this.setCurrentRawFrameValue(s),n&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>s&&(n=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Aa(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),s=this.assetsPath+n}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,n=this.assets.length;s<n;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Tr(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 Pm(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Xn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Fm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new $m(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Tr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Pm(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Xn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Fm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new $m(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new uE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new fE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var me=function(){var r={},s=[],n=0,d=0,m=0,p=!0,g=!1;function I(C){for(var D=0,v=C.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||K()),D+=1}function b(C,D){if(!C)return null;for(var v=0;v<d;){if(s[v].elem===C&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,C),E.setData(C,D),E}function w(){var C,D=s.length,v=[];for(C=0;C<D;C+=1)v.push(s[C].animation);return v}function L(){m+=1,Tt()}function K(){m-=1}function x(C,D){C.addEventListener("destroy",I),C.addEventListener("_active",L),C.addEventListener("_idle",K),s.push({elem:D,animation:C}),d+=1}function O(C){var D=new vt;return x(D,null),D.setParams(C),D}function P(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(C,D)}function R(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(C,D)}function H(C){var D;for(D=0;D<d;D+=1)s[D].animation.play(C)}function M(C){var D=C-n,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);n=C,m&&!g?window.requestAnimationFrame(M):p=!0}function k(C){n=C,window.requestAnimationFrame(M)}function T(C){var D;for(D=0;D<d;D+=1)s[D].animation.pause(C)}function _(C,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(C,D,v)}function N(C){var D;for(D=0;D<d;D+=1)s[D].animation.stop(C)}function $(C){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(C)}function G(C){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(C)}function j(C,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,V=E.length;for(Y=0;Y<V;Y+=1)v&&E[Y].setAttribute("data-bm-type",v),b(E[Y],C);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=y("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),b(gt,C)}}function it(){var C;for(C=0;C<d;C+=1)s[C].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(k),p=!1)}function ut(){g=!0}function st(){g=!1,Tt()}function St(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(C,D)}function ht(C){var D;for(D=0;D<d;D+=1)s[D].animation.mute(C)}function rt(C){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(C)}return r.registerAnimation=b,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=H,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=j,r.resize=it,r.goToAndStop=_,r.destroy=G,r.freeze=ut,r.unfreeze=st,r.setVolume=St,r.mute=ht,r.unmute=rt,r.getRegisteredAnimations=w,r}(),Sa=function(){var r={};r.getBezierEasing=n;var s={};function n(k,T,_,N,$){var G=$||("bez_"+k+"_"+T+"_"+_+"_"+N).replace(/\./g,"p");if(s[G])return s[G];var j=new M([k,T,_,N]);return s[G]=j,j}var d=4,m=.001,p=1e-7,g=10,I=11,b=1/(I-1),w=typeof Float32Array=="function";function L(k,T){return 1-3*T+3*k}function K(k,T){return 3*T-6*k}function x(k){return 3*k}function O(k,T,_){return((L(T,_)*k+K(T,_))*k+x(T))*k}function P(k,T,_){return 3*L(T,_)*k*k+2*K(T,_)*k+x(T)}function R(k,T,_,N,$){var G,j,it=0;do j=T+(_-T)/2,G=O(j,N,$)-k,G>0?_=j:T=j;while(Math.abs(G)>p&&++it<g);return j}function H(k,T,_,N){for(var $=0;$<d;++$){var G=P(T,_,N);if(G===0)return T;var j=O(T,_,N)-k;T-=j/G}return T}function M(k){this._p=k,this._mSampleValues=w?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return M.prototype={get:function(T){var _=this._p[0],N=this._p[1],$=this._p[2],G=this._p[3];return this._precomputed||this._precompute(),_===N&&$===G?T:T===0?0:T===1?1:O(this._getTForX(T),N,G)},_precompute:function(){var T=this._p[0],_=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==_||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],_=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*b,T,_)},_getTForX:function(T){for(var _=this._p[0],N=this._p[2],$=this._mSampleValues,G=0,j=1,it=I-1;j!==it&&$[j]<=T;++j)G+=b;--j;var Tt=(T-$[j])/($[j+1]-$[j]),ut=G+Tt*b,st=P(ut,_,N);return st>=m?H(T,ut,_,N):st===0?ut:R(T,G,G+b,_,N)}},r}(),Gm=function(){function r(s){return s.concat(tt(s.length))}return{double:r}}(),tl=function(){return function(r,s,n){var d=0,m=r,p=tt(m),g={newElement:I,release:b};function I(){var w;return d?(d-=1,w=p[d]):w=s(),w}function b(w){d===m&&(p=Gm.double(p),m*=2),n&&n(w),p[d]=w,d+=1}return g}}(),Km=function(){function r(){return{addedLength:0,percents:X("float32",Ea()),lengths:X("float32",Ea())}}return tl(8,r)}(),Wm=function(){function r(){return{lengths:[],totalLength:0}}function s(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)Km.release(n.lengths[d]);n.lengths.length=0}return tl(8,r,s)}();function _E(){var r=Math;function s(x,O,P,R,H,M){var k=x*R+O*H+P*M-H*R-M*x-P*O;return k>-.001&&k<.001}function n(x,O,P,R,H,M,k,T,_){if(P===0&&M===0&&_===0)return s(x,O,R,H,k,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(H-O,2)+r.pow(M-P,2)),$=r.sqrt(r.pow(k-x,2)+r.pow(T-O,2)+r.pow(_-P,2)),G=r.sqrt(r.pow(k-R,2)+r.pow(T-H,2)+r.pow(_-M,2)),j;return N>$?N>G?j=N-$-G:j=G-$-N:G>$?j=G-$-N:j=$-N-G,j>-1e-4&&j<1e-4}var d=function(){return function(x,O,P,R){var H=Ea(),M,k,T,_,N,$=0,G,j=[],it=[],Tt=Km.newElement();for(T=P.length,M=0;M<H;M+=1){for(N=M/(H-1),G=0,k=0;k<T;k+=1)_=Ut(1-N,3)*x[k]+3*Ut(1-N,2)*N*P[k]+3*(1-N)*Ut(N,2)*R[k]+Ut(N,3)*O[k],j[k]=_,it[k]!==null&&(G+=Ut(j[k]-it[k],2)),it[k]=j[k];G&&(G=Ot(G),$+=G),Tt.percents[M]=N,Tt.lengths[M]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=Wm.newElement(),P=x.c,R=x.v,H=x.o,M=x.i,k,T=x._length,_=O.lengths,N=0;for(k=0;k<T-1;k+=1)_[k]=d(R[k],R[k+1],H[k],M[k+1]),N+=_[k].addedLength;return P&&T&&(_[k]=d(R[k],R[0],H[k],M[0]),N+=_[k].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,H){var M=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+H[0]+"_"+H[1]).replace(/\./g,"p");if(!x[M]){var k=Ea(),T,_,N,$,G,j=0,it,Tt,ut=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+H[0],P[1]+H[1])&&(k=2);var st=new p(k);for(N=R.length,T=0;T<k;T+=1){for(Tt=tt(N),G=T/(k-1),it=0,_=0;_<N;_+=1)$=Ut(1-G,3)*O[_]+3*Ut(1-G,2)*G*(O[_]+R[_])+3*(1-G)*Ut(G,2)*(P[_]+H[_])+Ut(G,3)*P[_],Tt[_]=$,ut!==null&&(it+=Ut(Tt[_]-ut[_],2));it=Ot(it),j+=it,st.points[T]=new g(it,Tt),ut=Tt}st.segmentLength=j,x[M]=st}return x[M]}}();function b(x,O){var P=O.percents,R=O.lengths,H=P.length,M=ae((H-1)*x),k=x*O.addedLength,T=0;if(M===H-1||M===0||k===R[M])return P[M];for(var _=R[M]>k?-1:1,N=!0;N;)if(R[M]<=k&&R[M+1]>k?(T=(k-R[M])/(R[M+1]-R[M]),N=!1):M+=_,M<0||M>=H-1){if(M===H-1)return P[M];N=!1}return P[M]+(P[M+1]-P[M])*T}function w(x,O,P,R,H,M){var k=b(H,M),T=1-k,_=r.round((T*T*T*x[0]+(k*T*T+T*k*T+T*T*k)*P[0]+(k*k*T+T*k*k+k*T*k)*R[0]+k*k*k*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(k*T*T+T*k*T+T*T*k)*P[1]+(k*k*T+T*k*k+k*T*k)*R[1]+k*k*k*O[1])*1e3)/1e3;return[_,N]}var L=X("float32",8);function K(x,O,P,R,H,M,k){H<0?H=0:H>1&&(H=1);var T=b(H,k);M=M>1?1:M;var _=b(M,k),N,$=x.length,G=1-T,j=1-_,it=G*G*G,Tt=T*G*G*3,ut=T*T*G*3,st=T*T*T,St=G*G*j,ht=T*G*j+G*T*j+G*G*_,rt=T*T*j+G*T*_+T*G*_,C=T*T*_,D=G*j*j,v=T*j*j+G*_*j+G*j*_,E=T*_*j+G*_*_+T*j*_,Y=T*_*_,V=j*j*j,ct=_*j*j+j*_*j+j*j*_,gt=_*_*j+j*_*_+_*j*_,xt=_*_*_;for(N=0;N<$;N+=1)L[N*4]=r.round((it*x[N]+Tt*P[N]+ut*R[N]+st*O[N])*1e3)/1e3,L[N*4+1]=r.round((St*x[N]+ht*P[N]+rt*R[N]+C*O[N])*1e3)/1e3,L[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+Y*O[N])*1e3)/1e3,L[N*4+3]=r.round((V*x[N]+ct*P[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return L}return{getSegmentsLength:m,getNewSegment:K,getPointInSegment:w,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:n}}var qr=_E(),Lo=e,Ym=Math.abs;function jm(r,s){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=X("float32",this.pv.length));for(var m=s.lastIndex,p=m,g=this.keyframes.length-1,I=!0,b,w,L;I;){if(b=this.keyframes[p],w=this.keyframes[p+1],p===g-1&&r>=w.t-n){b.h&&(b=w),m=0;break}if(w.t-n>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}L=this.keyframesMetadata[p]||{};var K,x,O,P,R,H,M=w.t-n,k=b.t-n,T;if(b.to){L.bezierData||(L.bezierData=qr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var _=L.bezierData;if(r>=M||r<k){var N=r>=M?_.points.length-1:0;for(x=_.points[N].point.length,K=0;K<x;K+=1)d[K]=_.points[N].point[K]}else{L.__fnct?H=L.__fnct:(H=Sa.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,L.__fnct=H),O=H((r-k)/(M-k));var $=_.segmentLength*O,G,j=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=_.points.length;I;){if(j+=_.points[R].partialLength,$===0||O===0||R===_.points.length-1){for(x=_.points[R].point.length,K=0;K<x;K+=1)d[K]=_.points[R].point[K];break}else if($>=j&&$<j+_.points[R+1].partialLength){for(G=($-j)/_.points[R+1].partialLength,x=_.points[R].point.length,K=0;K<x;K+=1)d[K]=_.points[R].point[K]+(_.points[R+1].point[K]-_.points[R].point[K])*G;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=j-_.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,Tt,ut,st,St;if(g=b.s.length,T=w.s||b.e,this.sh&&b.h!==1)if(r>=M)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=k)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ht=qm(b.s),rt=qm(T),C=(r-k)/(M-k);kE(d,CE(ht,rt,C))}else for(p=0;p<g;p+=1)b.h!==1&&(r>=M?O=1:r<k?O=0:(b.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[p]?H=L.__fnct[p]:(it=b.o.x[p]===void 0?b.o.x[0]:b.o.x[p],Tt=b.o.y[p]===void 0?b.o.y[0]:b.o.y[p],ut=b.i.x[p]===void 0?b.i.x[0]:b.i.x[p],st=b.i.y[p]===void 0?b.i.y[0]:b.i.y[p],H=Sa.getBezierEasing(it,Tt,ut,st).get,L.__fnct[p]=H)):L.__fnct?H=L.__fnct:(it=b.o.x,Tt=b.o.y,ut=b.i.x,st=b.i.y,H=Sa.getBezierEasing(it,Tt,ut,st).get,b.keyframeMetadata=H),O=H((r-k)/(M-k)))),T=w.s||b.e,St=b.h===1?b.s[p]:b.s[p]+(T[p]-b.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return s.lastIndex=m,d}function CE(r,s,n){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],b=s[0],w=s[1],L=s[2],K=s[3],x,O,P,R,H;return O=m*b+p*w+g*L+I*K,O<0&&(O=-O,b=-b,w=-w,L=-L,K=-K),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-n)*x)/P,H=Math.sin(n*x)/P):(R=1-n,H=n),d[0]=R*m+H*b,d[1]=R*p+H*w,d[2]=R*g+H*L,d[3]=R*I+H*K,d}function kE(r,s){var n=s[0],d=s[1],m=s[2],p=s[3],g=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),b=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=g/kt,r[1]=I/kt,r[2]=b/kt}function qm(r){var s=r[0]*kt,n=r[1]*kt,d=r[2]*kt,m=Math.cos(s/2),p=Math.cos(n/2),g=Math.cos(d/2),I=Math.sin(s/2),b=Math.sin(n/2),w=Math.sin(d/2),L=m*p*g-I*b*w,K=I*b*g+m*p*w,x=I*p*g+m*b*w,O=m*b*g-I*p*w;return[K,x,O,L]}function Xm(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Lo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function el(r){var s;if(this.propType==="unidimensional")s=r*this.mult,Ym(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)s=r[n]*this.mult,Ym(this.v[n]-s)>1e-5&&(this.v[n]=s,this._mdf=!0),n+=1}function rl(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function il(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function wE(r,s,n,d){this.propType="unidimensional",this.mult=n||1,this.data=s,this.v=n?s.k*n:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.addEffect=il}function NE(r,s,n,d){this.propType="multidimensional",this.mult=n||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=X("float32",p),this.pv=X("float32",p),this.vel=X("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=rl,this.setVValue=el,this.addEffect=il}function ME(r,s,n,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Lo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Lo,this.pv=Lo,this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.interpolateValue=jm,this.effectsSequence=[Xm.bind(this)],this.addEffect=il}function LE(r,s,n,d){this.propType="multidimensional";var m,p=s.k.length,g,I,b,w;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(g=s.k[m].s,I=s.k[m+1].s,b=s.k[m].to,w=s.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&qr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+b[0],g[1]+b[1])&&qr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+w[0],I[1]+w[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&qr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&qr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+w[0],I[1]+w[1],I[2]+w[2]))&&(s.k[m].to=null,s.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===I[2]&&b[2]===0&&w[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Xm.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=rl,this.setVValue=el,this.interpolateValue=jm,this.frameId=-1;var L=s.k[0].s.length;for(this.v=X("float32",L),this.pv=X("float32",L),m=0;m<L;m+=1)this.v[m]=Lo,this.pv[m]=Lo;this._caching={lastFrame:Lo,lastIndex:0,value:X("float32",L)},this.addEffect=il}var lt=function(){function r(n,d,m,p,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new wE(n,d,p,g);else if(typeof d.k[0]=="number")I=new NE(n,d,p,g);else switch(m){case 0:I=new ME(n,d,p,g);break;case 1:I=new LE(n,d,p,g);break;default:break}return I.effectsSequence.length&&g.addDynamicProperty(I),I}var s={getProp:r};return s}();function Me(){}Me.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,n=this.dynamicProperties.length;for(s=0;s<n;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Oo=function(){function r(){return X("float32",2)}return tl(8,r)}();function mi(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}mi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var n=0;n<s;)this.v[n]=Oo.newElement(),this.o[n]=Oo.newElement(),this.i[n]=Oo.newElement(),n+=1},mi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},mi.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},mi.prototype.setXYAt=function(r,s,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Oo.newElement()),p[d][0]=r,p[d][1]=s},mi.prototype.setTripleAt=function(r,s,n,d,m,p,g,I){this.setXYAt(r,s,"v",g,I),this.setXYAt(n,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},mi.prototype.reverse=function(){var r=new mi;r.setPathData(this.c,this._length);var s=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},mi.prototype.length=function(){return this._length};var De=function(){function r(){return new mi}function s(m){var p=m._length,g;for(g=0;g<p;g+=1)Oo.release(m.v[g]),Oo.release(m.i[g]),Oo.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=tl(4,r,s);return d.clone=n,d}();function kc(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}kc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},kc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var _s=function(){var r={newShapeCollection:m,release:p},s=0,n=4,d=tt(n);function m(){var g;return s?(s-=1,g=d[s]):g=new kc,g}function p(g){var I,b=g._length;for(I=0;I<b;I+=1)De.release(g.shapes[I]);g._length=0,s===n&&(d=Gm.double(d),n*=2),d[s]=g,s+=1}return r}(),ol=function(){var r=-999999;function s(M,k,T){var _=T.lastIndex,N,$,G,j,it,Tt,ut,st,St,ht=this.keyframes;if(M<ht[0].t-this.offsetTime)N=ht[0].s[0],G=!0,_=0;else if(M>=ht[ht.length-1].t-this.offsetTime)N=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],G=!0;else{for(var rt=_,C=ht.length-1,D=!0,v,E,Y;D&&(v=ht[rt],E=ht[rt+1],!(E.t-this.offsetTime>M));)rt<C-1?rt+=1:D=!1;if(Y=this.keyframesMetadata[rt]||{},G=v.h===1,_=rt,!G){if(M>=E.t-this.offsetTime)st=1;else if(M<v.t-this.offsetTime)st=0;else{var V;Y.__fnct?V=Y.__fnct:(V=Sa.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=V),st=V((M-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=k._length,ut=N.i[0].length,T.lastIndex=_,j=0;j<Tt;j+=1)for(it=0;it<ut;it+=1)St=G?N.i[j][it]:N.i[j][it]+($.i[j][it]-N.i[j][it])*st,k.i[j][it]=St,St=G?N.o[j][it]:N.o[j][it]+($.o[j][it]-N.o[j][it])*st,k.o[j][it]=St,St=G?N.v[j][it]:N.v[j][it]+($.v[j][it]-N.v[j][it])*st,k.v[j][it]=St}function n(){var M=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==r&&(_<k&&M<k||_>T&&M>T)||(this._caching.lastIndex=_<M?this._caching.lastIndex:0,this.interpolateShape(M,this.pv,this._caching)),this._caching.lastFrame=M,this.pv}function d(){this.paths=this.localShapeCollection}function m(M,k){if(M._length!==k._length||M.c!==k.c)return!1;var T,_=M._length;for(T=0;T<_;T+=1)if(M.v[T][0]!==k.v[T][0]||M.v[T][1]!==k.v[T][1]||M.o[T][0]!==k.o[T][0]||M.o[T][1]!==k.o[T][1]||M.i[T][0]!==k.i[T][0]||M.i[T][1]!==k.i[T][1])return!1;return!0}function p(M){m(this.v,M)||(this.v=De.clone(M),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var M;this.kf?M=this.pv:this.data.ks?M=this.data.ks.k:M=this.data.pt.k;var k,T=this.effectsSequence.length;for(k=0;k<T;k+=1)M=this.effectsSequence[k](M);this.setVValue(M),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(M,k,T){this.propType="shape",this.comp=M.comp,this.container=M,this.elem=M,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var _=T===3?k.pt.k:k.ks.k;this.v=De.clone(_),this.pv=De.clone(this.v),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=b;function w(M,k,T){this.propType="shape",this.comp=M.comp,this.elem=M,this.container=M,this.offsetTime=M.data.st,this.keyframes=T===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=De.clone(this.v),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=s,w.prototype.setVValue=p,w.prototype.addEffect=b;var L=function(){var M=oe;function k(T,_){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,_.p,1,0,this),this.s=lt.getProp(T,_.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return k.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var _=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,G=this.s.v[1]/2,j=this.d!==3,it=this.v;it.v[0][0]=_,it.v[0][1]=N-G,it.v[1][0]=j?_+$:_-$,it.v[1][1]=N,it.v[2][0]=_,it.v[2][1]=N+G,it.v[3][0]=j?_-$:_+$,it.v[3][1]=N,it.i[0][0]=j?_-$*M:_+$*M,it.i[0][1]=N-G,it.i[1][0]=j?_+$:_-$,it.i[1][1]=N-G*M,it.i[2][0]=j?_+$*M:_-$*M,it.i[2][1]=N+G,it.i[3][0]=j?_-$:_+$,it.i[3][1]=N+G*M,it.o[0][0]=j?_+$*M:_-$*M,it.o[0][1]=N-G,it.o[1][0]=j?_+$:_-$,it.o[1][1]=N+G*M,it.o[2][0]=j?_-$*M:_+$*M,it.o[2][1]=N+G,it.o[3][0]=j?_-$:_+$,it.o[3][1]=N-G*M}},A([Me],k),k}(),K=function(){function M(k,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),T.sy===1?(this.ir=lt.getProp(k,T.ir,0,0,this),this.is=lt.getProp(k,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(k,T.pt,0,0,this),this.p=lt.getProp(k,T.p,1,0,this),this.r=lt.getProp(k,T.r,0,kt,this),this.or=lt.getProp(k,T.or,0,0,this),this.os=lt.getProp(k,T.os,0,.01,this),this.localShapeCollection=_s.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return M.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,_=Math.PI*2/T,N=!0,$=this.or.v,G=this.ir.v,j=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ut=2*Math.PI*G/(T*2),st,St,ht,rt,C=-Math.PI/2;C+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){St=N?$:G,ht=N?j:it,rt=N?Tt:ut;var v=St*Math.cos(C),E=St*Math.sin(C),Y=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-Y*rt*ht*D,E-V*rt*ht*D,v+Y*rt*ht*D,E+V*rt*ht*D,st,!0),N=!N,C+=_*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),_=Math.PI*2/T,N=this.or.v,$=this.os.v,G=2*Math.PI*N/(T*4),j,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,j=0;j<T;j+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),St=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ht=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-St*G*$*Tt,st-ht*G*$*Tt,ut+St*G*$*Tt,st+ht*G*$*Tt,j,!0),it+=_*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Me],M),M}(),x=function(){function M(k,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=_s.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),this.p=lt.getProp(k,T.p,1,0,this),this.s=lt.getProp(k,T.s,1,0,this),this.r=lt.getProp(k,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return M.prototype={convertRectToPath:function(){var T=this.p.v[0],_=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,G=Yt(N,$,this.r.v),j=G*(1-oe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,_-$+G,T+N,_-$+G,T+N,_-$+j,0,!0),this.v.setTripleAt(T+N,_+$-G,T+N,_+$-j,T+N,_+$-G,1,!0),G!==0?(this.v.setTripleAt(T+N-G,_+$,T+N-G,_+$,T+N-j,_+$,2,!0),this.v.setTripleAt(T-N+G,_+$,T-N+j,_+$,T-N+G,_+$,3,!0),this.v.setTripleAt(T-N,_+$-G,T-N,_+$-G,T-N,_+$-j,4,!0),this.v.setTripleAt(T-N,_-$+G,T-N,_-$+j,T-N,_-$+G,5,!0),this.v.setTripleAt(T-N+G,_-$,T-N+G,_-$,T-N+j,_-$,6,!0),this.v.setTripleAt(T+N-G,_-$,T+N-j,_-$,T+N-G,_-$,7,!0)):(this.v.setTripleAt(T-N,_+$,T-N+j,_+$,T-N,_+$,2),this.v.setTripleAt(T-N,_-$,T-N,_-$+j,T-N,_-$,3))):(this.v.setTripleAt(T+N,_-$+G,T+N,_-$+j,T+N,_-$+G,0,!0),G!==0?(this.v.setTripleAt(T+N-G,_-$,T+N-G,_-$,T+N-j,_-$,1,!0),this.v.setTripleAt(T-N+G,_-$,T-N+j,_-$,T-N+G,_-$,2,!0),this.v.setTripleAt(T-N,_-$+G,T-N,_-$+G,T-N,_-$+j,3,!0),this.v.setTripleAt(T-N,_+$-G,T-N,_+$-j,T-N,_+$-G,4,!0),this.v.setTripleAt(T-N+G,_+$,T-N+G,_+$,T-N+j,_+$,5,!0),this.v.setTripleAt(T+N-G,_+$,T+N-j,_+$,T+N-G,_+$,6,!0),this.v.setTripleAt(T+N,_+$-G,T+N,_+$-G,T+N,_+$-j,7,!0)):(this.v.setTripleAt(T-N,_-$,T-N+j,_-$,T-N,_-$,1,!0),this.v.setTripleAt(T-N,_+$,T-N,_+$-j,T-N,_+$,2,!0),this.v.setTripleAt(T+N,_+$,T+N-j,_+$,T+N,_+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Me],M),M}();function O(M,k,T){var _;if(T===3||T===4){var N=T===3?k.pt:k.ks,$=N.k;$.length?_=new w(M,k,T):_=new I(M,k,T)}else T===5?_=new x(M,k):T===6?_=new L(M,k):T===7&&(_=new K(M,k));return _.k&&M.addDynamicProperty(_),_}function P(){return I}function R(){return w}var H={};return H.getShapeProp=O,H.getConstructorFunction=P,H.getKeyframedConstructorFunction=R,H}();var Pe=function(){var r=Math.cos,s=Math.sin,n=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(1,0,0,0,0,E,-Y,0,0,Y,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,0,Y,0,0,1,0,0,-Y,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function w(v,E){return this._t(1,E,v,1,0,0)}function L(v,E){return this.shear(n(v),n(E))}function K(v,E){var Y=r(E),V=s(E);return this._t(Y,V,0,0,-V,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-V,0,0,V,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,E,Y){return!Y&&Y!==0&&(Y=1),v===1&&E===1&&Y===1?this:this._t(v,0,0,0,0,E,0,0,0,0,Y,0,0,0,0,1)}function O(v,E,Y,V,ct,gt,xt,Pt,Ft,ue,rr,Zr,ir,Le,ur,Wt){return this.props[0]=v,this.props[1]=E,this.props[2]=Y,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Pt,this.props[8]=Ft,this.props[9]=ue,this.props[10]=rr,this.props[11]=Zr,this.props[12]=ir,this.props[13]=Le,this.props[14]=ur,this.props[15]=Wt,this}function P(v,E,Y){return Y=Y||0,v!==0||E!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,Y,1):this}function R(v,E,Y,V,ct,gt,xt,Pt,Ft,ue,rr,Zr,ir,Le,ur,Wt){var pt=this.props;if(v===1&&E===0&&Y===0&&V===0&&ct===0&&gt===1&&xt===0&&Pt===0&&Ft===0&&ue===0&&rr===1&&Zr===0)return pt[12]=pt[12]*v+pt[15]*ir,pt[13]=pt[13]*gt+pt[15]*Le,pt[14]=pt[14]*rr+pt[15]*ur,pt[15]*=Wt,this._identityCalculated=!1,this;var vi=pt[0],Zi=pt[1],gi=pt[2],Qr=pt[3],bi=pt[4],yi=pt[5],or=pt[6],Qi=pt[7],Ji=pt[8],Pr=pt[9],to=pt[10],Fr=pt[11],Fo=pt[12],ml=pt[13],ul=pt[14],fl=pt[15];return pt[0]=vi*v+Zi*ct+gi*Ft+Qr*ir,pt[1]=vi*E+Zi*gt+gi*ue+Qr*Le,pt[2]=vi*Y+Zi*xt+gi*rr+Qr*ur,pt[3]=vi*V+Zi*Pt+gi*Zr+Qr*Wt,pt[4]=bi*v+yi*ct+or*Ft+Qi*ir,pt[5]=bi*E+yi*gt+or*ue+Qi*Le,pt[6]=bi*Y+yi*xt+or*rr+Qi*ur,pt[7]=bi*V+yi*Pt+or*Zr+Qi*Wt,pt[8]=Ji*v+Pr*ct+to*Ft+Fr*ir,pt[9]=Ji*E+Pr*gt+to*ue+Fr*Le,pt[10]=Ji*Y+Pr*xt+to*rr+Fr*ur,pt[11]=Ji*V+Pr*Pt+to*Zr+Fr*Wt,pt[12]=Fo*v+ml*ct+ul*Ft+fl*ir,pt[13]=Fo*E+ml*gt+ul*ue+fl*Le,pt[14]=Fo*Y+ml*xt+ul*rr+fl*ur,pt[15]=Fo*V+ml*Pt+ul*Zr+fl*Wt,this._identityCalculated=!1,this}function H(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function M(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function k(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function _(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,Y){return{x:v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}}function $(v,E,Y){return v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12]}function G(v,E,Y){return v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13]}function j(v,E,Y){return v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,Y=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new Pe;return Pt.props[0]=E,Pt.props[1]=Y,Pt.props[4]=V,Pt.props[5]=ct,Pt.props[12]=gt,Pt.props[13]=xt,Pt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,Y=v.length,V=[];for(E=0;E<Y;E+=1)V[E]=Tt(v[E]);return V}function st(v,E,Y){var V=X("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=Y[0],V[5]=Y[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Pt=this.props[5],Ft=this.props[12],ue=this.props[13];V[0]=v[0]*ct+v[1]*xt+Ft,V[1]=v[0]*gt+v[1]*Pt+ue,V[2]=E[0]*ct+E[1]*xt+Ft,V[3]=E[0]*gt+E[1]*Pt+ue,V[4]=Y[0]*ct+Y[1]*xt+Ft,V[5]=Y[0]*gt+Y[1]*Pt+ue}return V}function St(v,E,Y){var V;return this.isIdentity()?V=[v,E,Y]:V=[v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]],V}function ht(v,E){if(this.isIdentity())return v+","+E;var Y=this.props;return Math.round((v*Y[0]+E*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+E*Y[5]+Y[13])*100)/100}function rt(){for(var v=0,E=this.props,Y="matrix3d(",V=1e4;v<16;)Y+=d(E[v]*V)/V,Y+=v===15?")":",",v+=1;return Y}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=C(v[0]),Y=C(v[1]),V=C(v[4]),ct=C(v[5]),gt=C(v[12]),xt=C(v[13]);return"matrix("+E+","+Y+","+V+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=b,this.skew=L,this.skewFromAxis=K,this.shear=w,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=H,this.applyToPoint=N,this.applyToX=$,this.applyToY=G,this.applyToZ=j,this.applyToPointArray=St,this.applyToTriplePoints=st,this.applyToPointStringified=ht,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=_,this.equals=k,this.inversePoints=ut,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=M,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function sl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(n){return typeof n}:sl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sl(r)}var Gt={},al="__[STANDALONE]__",Zm="__[ANIMATIONDATA]__",Qm="";function OE(r){c(r)}function Jm(){al===!0?me.searchAnimations(Zm,al,Qm):me.searchAnimations()}function RE(r){vE(r)}function DE(r){yE(r)}function PE(r){return al===!0&&(r.animationData=JSON.parse(Zm)),me.loadAnimation(r)}function FE(r){if(typeof r=="string")switch(r){case"high":Qn(200);break;default:case"medium":Qn(50);break;case"low":Qn(10);break}else!isNaN(r)&&r>1&&Qn(r);Ea()>=50?Ge(!1):Ge(!0)}function $E(){return typeof navigator<"u"}function VE(r,s){r==="expressions"&&bE(s)}function zE(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return ol;case"matrix":return Pe;default:return null}}Gt.play=me.play,Gt.pause=me.pause,Gt.setLocationHref=OE,Gt.togglePause=me.togglePause,Gt.setSpeed=me.setSpeed,Gt.setDirection=me.setDirection,Gt.stop=me.stop,Gt.searchAnimations=Jm,Gt.registerAnimation=me.registerAnimation,Gt.loadAnimation=PE,Gt.setSubframeRendering=RE,Gt.resize=me.resize,Gt.goToAndStop=me.goToAndStop,Gt.destroy=me.destroy,Gt.setQuality=FE,Gt.inBrowser=$E,Gt.installPlugin=VE,Gt.freeze=me.freeze,Gt.unfreeze=me.unfreeze,Gt.setVolume=me.setVolume,Gt.mute=me.mute,Gt.unmute=me.unmute,Gt.getRegisteredAnimations=me.getRegisteredAnimations,Gt.useWebWorker=o,Gt.setIDPrefix=DE,Gt.__getFactory=zE,Gt.version="5.12.2";function BE(){document.readyState==="complete"&&(clearInterval(GE),Jm())}function HE(r){for(var s=tu.split("&"),n=0;n<s.length;n+=1){var d=s[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var tu="";if(al){var eu=document.getElementsByTagName("script"),UE=eu.length-1,ru=eu[UE]||{src:""};tu=ru.src?ru.src.replace(/^[^\?]+\??/,""):"",Qm=HE("renderer")}var GE=setInterval(BE,100);try{!((typeof rn>"u"?"undefined":sl(rn))==="object"&&typeof Ul<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Gt)}catch{}var Ki=function(){var r={},s={};r.registerModifier=n,r.getModifier=d;function n(m,p){s[m]||(s[m]=p)}function d(m,p,g){return new s[m](p,g)}return r}();function xr(){}xr.prototype.initModifierProperties=function(){},xr.prototype.addShapeToModifier=function(){},xr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:_s.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},xr.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)},xr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Me],xr);function Dr(){}A([xr],Dr),Dr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Dr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Dr.prototype.calculateShapeEdges=function(r,s,n,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var g=[],I,b=p.length,w;for(I=0;I<b;I+=1)if(w=p[I],!(w.e*m<d||w.s*m>d+n)){var L,K;w.s*m<=d?L=0:L=(w.s*m-d)/n,w.e*m>=d+n?K=1:K=(w.e*m-d)/n,g.push([L,K])}return g.length||g.push([0,0]),g},Dr.prototype.releasePathsData=function(r){var s,n=r.length;for(s=0;s<n;s+=1)Wm.release(r[s]);return r.length=0,r},Dr.prototype.processShapes=function(r){var s,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,s>n){var m=s;s=n,n=m}s=Math.round(s*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=s,this.eValue=n}else s=this.sValue,n=this.eValue;var p,g,I=this.shapes.length,b,w,L,K,x,O=0;if(n===s)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&s===0||n===0&&s===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var P=[],R,H;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,w=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(L=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)K=qr.getSegmentsLength(p.shapes[b]),L.push(K),x+=K.totalLength;R.totalShapeLength=x,R.pathsData=L}O+=x,R.shape._mdf=!0}var M=s,k=n,T=0,_;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(H=R.localShapeCollection,H.releaseShapes(),this.m===2&&I>1?(_=this.calculateShapeEdges(s,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):_=[[M,k]],w=_.length,b=0;b<w;b+=1){M=_[b][0],k=_[b][1],P.length=0,k<=1?P.push({s:R.totalShapeLength*M,e:R.totalShapeLength*k}):M>=1?P.push({s:R.totalShapeLength*(M-1),e:R.totalShapeLength*(k-1)}):(P.push({s:R.totalShapeLength*M,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(k-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var G=N.pop();this.addPaths(N,H),N=this.addShapes(R,P[1],G)}else this.addPaths(N,H),N=this.addShapes(R,P[1])}this.addPaths(N,H)}}R.shape.paths=H}}},Dr.prototype.addPaths=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)s.addShape(r[n])},Dr.prototype.addSegment=function(r,s,n,d,m,p,g){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Dr.prototype.addSegmentFromArray=function(r,s,n,d){s.setXYAt(r[1],r[5],"o",n),s.setXYAt(r[2],r[6],"i",n+1),d&&s.setXYAt(r[0],r[4],"v",n),s.setXYAt(r[3],r[7],"v",n+1)},Dr.prototype.addShapes=function(r,s,n){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,b,w=0,L,K,x,O,P=[],R,H=!0;for(n?(K=n._length,R=n._length):(n=De.newElement(),K=0,R=0),P.push(n),p=0;p<g;p+=1){for(x=d[p].lengths,n.c=m[p].c,b=m[p].c?x.length:x.length+1,I=1;I<b;I+=1)if(L=x[I-1],w+L.addedLength<s.s)w+=L.addedLength,n.c=!1;else if(w>s.e){n.c=!1;break}else s.s<=w&&s.e>=w+L.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,K,H),H=!1):(O=qr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-w)/L.addedLength,(s.e-w)/L.addedLength,x[I-1]),this.addSegmentFromArray(O,n,K,H),H=!1,n.c=!1),w+=L.addedLength,K+=1;if(m[p].c&&x.length){if(L=x[I-1],w<=s.e){var M=x[I-1].addedLength;s.s<=w&&s.e>=w+M?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,K,H),H=!1):(O=qr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-w)/M,(s.e-w)/M,x[I-1]),this.addSegmentFromArray(O,n,K,H),H=!1,n.c=!1)}else n.c=!1;w+=L.addedLength,K+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),w>s.e)break;p<g-1&&(n=De.newElement(),H=!0,P.push(n),K=0)}return P};function Ia(){}A([xr],Ia),Ia.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ia.prototype.processPath=function(r,s){var n=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=De.newElement();g.c=r.c;var I,b,w,L,K,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,b=r.v[p][1]+(d[1]-r.v[p][1])*n,w=r.o[p][0]+(d[0]-r.o[p][0])*-n,L=r.o[p][1]+(d[1]-r.o[p][1])*-n,K=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,g.setTripleAt(I,b,w,L,K,x,p);return g},Ia.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var wc=function(){var r=[0,0];function s(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var w;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var L,K;if(w=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),K=this.p.getValueAtTime(this.p.keyframes[0].t/w,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(L=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],K=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(L[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),L[1]=O.getValueAtTime((O.keyframes[0].t+.01)/w,0),K[0]=x.getValueAtTime(x.keyframes[0].t/w,0),K[1]=O.getValueAtTime(O.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(L[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),L[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/w,0),K[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),K[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/w,0)):(L=[x.pv,O.pv],K[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),K[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/w,O.offsetTime))}else K=r,L=K;this.v.rotate(-Math.atan2(L[1]-K[1],L[0]-K[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,L){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||b),w.p&&w.p.s?(this.px=lt.getProp(b,w.p.x,0,0,this),this.py=lt.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=lt.getProp(b,w.p.z,0,0,this))):this.p=lt.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=lt.getProp(b,w.rx,0,kt,this),this.ry=lt.getProp(b,w.ry,0,kt,this),this.rz=lt.getProp(b,w.rz,0,kt,this),w.or.k[0].ti){var K,x=w.or.k.length;for(K=0;K<x;K+=1)w.or.k[K].to=null,w.or.k[K].ti=null}this.or=lt.getProp(b,w.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(b,w.r||{k:0},0,kt,this);w.sk&&(this.sk=lt.getProp(b,w.sk,0,kt,this),this.sa=lt.getProp(b,w.sa,0,kt,this)),this.a=lt.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=lt.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:n,precalculateMatrix:d,autoOrient:m},A([Me],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Me.prototype.addDynamicProperty;function I(b,w,L){return new g(b,w,L)}return{getTransformProperty:I}}();function Xr(){}A([xr],Xr),Xr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=wc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Xr.prototype.applyTransforms=function(r,s,n,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),b=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*g*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Xr.prototype.init=function(r,s,n,d){for(this.elem=r,this.arr=s,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[n]);n>0;)n-=1,this._elements.unshift(s[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Xr.prototype.resetElements=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Xr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Xr.prototype.changeGroupRender=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=s,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,s)},Xr.prototype.processShapes=function(r){var s,n,d,m,p,g=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}p=0;var w;for(d=0;d<=this._groups.length-1;d+=1){if(w=p<I,this._groups[d]._render=w,this.changeGroupRender(this._groups[d].it,w),!w){var L=this.elemsData[d].it,K=L[L.length-1];K.transform.op.v!==0?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,H=this.rMatrix.props,M=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k=0;if(x>0){for(;k<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),k+=O)}else if(x<0){for(;k>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),k-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,_;p;){if(s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,_=n.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),k!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<_;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<_;T+=1)n[T]=this.matrix.props[T];k+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return g},Xr.prototype.addShape=function(){};function _a(){}A([xr],_a),_a.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_a.prototype.processPath=function(r,s){var n=De.newElement();n.c=r.c;var d,m=r._length,p,g,I,b,w,L,K=0,x,O,P,R,H,M;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],K),K+=1):(d===0?b=r.v[m-1]:b=r.v[d-1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,H=p[0]+(b[0]-p[0])*L,x=H,M=p[1]-(p[1]-b[1])*L,O=M,P=x-(x-p[0])*oe,R=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,H,M,K),K+=1,d===m-1?b=r.v[0]:b=r.v[d+1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,P=p[0]+(b[0]-p[0])*L,x=P,R=p[1]+(b[1]-p[1])*L,O=R,H=x-(x-p[0])*oe,M=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,H,M,K),K+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],K),K+=1);return n},_a.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Nc(r){return Math.abs(r)<=1e-5}function iu(r,s,n){return r*(1-n)+s*n}function Wi(r,s,n){return[iu(r[0],s[0],n),iu(r[1],s[1],n)]}function KE(r,s,n){if(r===0)return[];var d=s*s-4*r*n;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function ou(r,s,n,d){return[-r+3*s-3*n+d,3*r-6*s+3*n,-3*r+3*s,r]}function su(r){return new ne(r,r,r,r,!1)}function ne(r,s,n,d,m){m&&ks(r,s)&&(s=Wi(r,d,1/3)),m&&ks(n,d)&&(n=Wi(r,d,2/3));var p=ou(r[0],s[0],n[0],d[0]),g=ou(r[1],s[1],n[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,s,n,d]}ne.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},ne.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},ne.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},ne.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},ne.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Nc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Nc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},ne.prototype.split=function(r){if(r<=0)return[su(this.points[0]),this];if(r>=1)return[this,su(this.points[this.points.length-1])];var s=Wi(this.points[0],this.points[1],r),n=Wi(this.points[1],this.points[2],r),d=Wi(this.points[2],this.points[3],r),m=Wi(s,n,r),p=Wi(n,d,r),g=Wi(m,p,r);return[new ne(this.points[0],s,m,g,!0),new ne(g,p,d,this.points[3],!0)]};function au(r,s){var n=r.points[0][s],d=r.points[r.points.length-1][s];if(n>d){var m=d;d=n,n=m}for(var p=KE(3*r.a[s],2*r.b[s],r.c[s]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[s];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}ne.prototype.bounds=function(){return{x:au(this,0),y:au(this,1)}},ne.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function ll(r,s,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+n)/2,t1:s,t2:n}}function nu(r){var s=r.bez.split(.5);return[ll(s[0],r.t1,r.t),ll(s[1],r.t,r.t2)]}function WE(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 Ca(r,s,n,d,m,p){if(WE(r,s)){if(n>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var g=nu(r),I=nu(s);Ca(g[0],I[0],n+1,d,m,p),Ca(g[0],I[1],n+1,d,m,p),Ca(g[1],I[0],n+1,d,m,p),Ca(g[1],I[1],n+1,d,m,p)}}ne.prototype.intersections=function(r,s,n){s===void 0&&(s=2),n===void 0&&(n=7);var d=[];return Ca(ll(this,0,1),ll(r,0,1),0,s,d,n),d},ne.shapeSegment=function(r,s){var n=(s+1)%r.length();return new ne(r.v[s],r.o[s],r.i[n],r.v[n],!0)},ne.shapeSegmentInverted=function(r,s){var n=(s+1)%r.length();return new ne(r.v[n],r.i[n],r.o[s],r.v[s],!0)};function Mc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function dl(r,s,n,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],g=[n[0],n[1],1],I=[d[0],d[1],1],b=Mc(Mc(m,p),Mc(g,I));return Nc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function Cs(r,s,n){return[r[0]+Math.cos(s)*n,r[1]-Math.sin(s)*n]}function Lc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ks(r,s){return nl(r[0],s[0])&&nl(r[1],s[1])}function ka(){}A([xr],ka),ka.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function lu(r,s,n,d,m,p,g){var I=n-Math.PI/2,b=n+Math.PI/2,w=s[0]+Math.cos(n)*d*m,L=s[1]-Math.sin(n)*d*m;r.setTripleAt(w,L,w+Math.cos(I)*p,L-Math.sin(I)*p,w+Math.cos(b)*g,L-Math.sin(b)*g,r.length())}function YE(r,s){var n=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function jE(r,s){var n=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[n],p=r.v[d],g=YE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function du(r,s,n,d,m,p,g){var I=jE(s,n),b=s.v[n%s._length],w=s.v[n===0?s._length-1:n-1],L=s.v[(n+1)%s._length],K=p===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=p===2?Math.sqrt(Math.pow(b[0]-L[0],2)+Math.pow(b[1]-L[1],2)):0;lu(r,s.v[n%s._length],I,g,d,x/((m+1)*2),K/((m+1)*2),p)}function qE(r,s,n,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+1),b=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,w=s.normalAngle(I),L=s.point(I);lu(r,L,w,p,n,b/((d+1)*2),b/((d+1)*2),m),p=-p}return p}ka.prototype.processPath=function(r,s,n,d){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=ne.shapeSegment(r,0);du(p,r,0,s,n,d,g);for(var b=0;b<m;b+=1)g=qE(p,I,s,n,d,-g),b===m-1&&!r.c?I=null:I=ne.shapeSegment(r,(b+1)%m),du(p,r,b+1,s,n,d,g);return p},ka.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,L;for(n=0;n<d;n+=1){if(w=this.shapes[n],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,I,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Oc(r,s,n){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Cs(r,d,n),Cs(s,d,n)]}function ws(r,s){var n,d,m,p,g,I,b;b=Oc(r.points[0],r.points[1],s),n=b[0],d=b[1],b=Oc(r.points[1],r.points[2],s),m=b[0],p=b[1],b=Oc(r.points[2],r.points[3],s),g=b[0],I=b[1];var w=dl(n,d,m,p);w===null&&(w=d);var L=dl(g,I,m,p);return L===null&&(L=g),new ne(n,w,L,I)}function cu(r,s,n,d,m){var p=s.points[3],g=n.points[0];if(d===3||ks(p,g))return p;if(d===2){var I=-s.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,w=dl(p,Cs(p,I+Math.PI/2,100),g,Cs(g,I+Math.PI/2,100)),L=w?Lc(w,p):Lc(p,g)/2,K=Cs(p,I,2*L*oe);return r.setXYAt(K[0],K[1],"o",r.length()-1),K=Cs(g,b,2*L*oe),r.setTripleAt(g[0],g[1],g[0],g[1],K[0],K[1],r.length()),g}var x=ks(p,s.points[2])?s.points[0]:s.points[2],O=ks(g,n.points[1])?n.points[3]:n.points[1],P=dl(x,p,g,O);return P&&Lc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function hu(r,s){var n=r.intersections(s);return n.length&&nl(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pu(r,s){var n=r.slice(),d=s.slice(),m=hu(r[r.length-1],s[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=hu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[n,d]}function XE(r){for(var s,n=1;n<r.length;n+=1)s=pu(r[n-1],r[n]),r[n-1]=s[0],r[n]=s[1];return r.length>1&&(s=pu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function mu(r,s){var n=r.inflectionPoints(),d,m,p,g;if(n.length===0)return[ws(r,s)];if(n.length===1||nl(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[ws(d,s),ws(m,s)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),g=p[0],m=p[1],[ws(d,s),ws(g,s),ws(m,s)]}function wa(){}A([xr],wa),wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},wa.prototype.processPath=function(r,s,n,d){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,b,w=[];for(g=0;g<p;g+=1)b=ne.shapeSegment(r,g),w.push(mu(b,s));if(!r.c)for(g=p-1;g>=0;g-=1)b=ne.shapeSegmentInverted(r,g),w.push(mu(b,s));w=XE(w);var L=null,K=null;for(g=0;g<w.length;g+=1){var x=w[g];for(K&&(L=cu(m,K,x[0],n,d)),K=x[x.length-1],I=0;I<x.length;I+=1)b=x[I],L&&ks(b.points[0],L)?m.setXYAt(b.points[1][0],b.points[1][1],"o",m.length()-1):m.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],m.length()),m.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],m.length()),L=b.points[3]}return w.length&&cu(m,K,w[0][0],n,d),m},wa.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,L;for(n=0;n<d;n+=1){if(w=this.shapes[n],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,b,I));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function uu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=s.length,p,g=0;g<m;g+=1)switch(p=s[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var Ro=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,g=917626,I=65039,b=8205,w=127462,L=127487,K=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var D=C.split(","),v,E=D.length,Y=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&Y.push(D[v]);return Y.join(",")}function O(C,D){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var Y=E.offsetWidth;return E.style.fontFamily=x(C)+", "+D,{node:E,w:Y,parent:v}}function P(){var C,D=this.fonts.length,v,E,Y=D;for(C=0;C<D;C+=1)this.fonts[C].loaded?Y-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(Y-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(Y-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));Y!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,D){var v=document.body&&D?"svg":"canvas",E,Y=uu(C);if(v==="svg"){var V=At("text");V.style.fontSize="100px",V.setAttribute("font-family",C.fFamily),V.setAttribute("font-style",Y.style),V.setAttribute("font-weight",Y.weight),V.textContent="1",C.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",C.fClass)):V.style.fontFamily=C.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=Y.style+" "+Y.weight+" 100px "+C.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function H(C,D){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(rr){rr.helper=R(rr),rr.cache={}}),this.fonts=C.list;return}var v=C.list,E,Y=v.length,V=Y;for(E=0;E<Y;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Ft=y("link");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.type="text/css",Ft.rel="stylesheet",Ft.href=v[E].fPath,document.body.appendChild(Ft)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var ue=y("link");ue.setAttribute("f-forigin",v[E].fOrigin),ue.setAttribute("f-origin",v[E].origin),ue.setAttribute("rel","stylesheet"),ue.setAttribute("href",v[E].fPath),D.appendChild(ue)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function M(C){if(C){this.chars||(this.chars=[]);var D,v=C.length,E,Y=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<Y;)this.chars[E].style===C[D].style&&this.chars[E].fFamily===C[D].fFamily&&this.chars[E].ch===C[D].ch&&(V=!0),E+=1;V||(this.chars.push(C[D]),Y+=1)}}}function k(C,D,v){for(var E=0,Y=this.chars.length;E<Y;){if(this.chars[E].ch===C&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,D,v)),s}function T(C,D,v){var E=this.getFontByName(D),Y=C;if(!E.cache[Y]){var V=E.helper;if(C===" "){var ct=V.measureText("|"+C+"|"),gt=V.measureText("||");E.cache[Y]=(ct-gt)/100}else E.cache[Y]=V.measureText(C)/100}return E.cache[Y]*v}function _(C){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===C)return this.fonts[D];D+=1}return this.fonts[0]}function N(C){var D=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(C,D){var v=C.toString(16)+D.toString(16);return K.indexOf(v)!==-1}function G(C){return C===b}function j(C){return C===I}function it(C){var D=N(C);return D>=w&&D<=L}function Tt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return n.indexOf(C)!==-1}function st(C,D){var v=N(C.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(C.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(C.substr(D,2))===m}function St(){this.isLoaded=!0}var ht=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)};ht.isModifier=$,ht.isZeroWidthJoiner=G,ht.isFlagEmoji=Tt,ht.isRegionalCode=it,ht.isCombinedCharacter=ut,ht.isRegionalFlag=st,ht.isVariationSelector=j,ht.BLACK_FLAG_CODE_POINT=d;var rt={addChars:M,addFonts:H,getCharData:k,getFontByName:_,measureText:T,checkLoadedFonts:P,setIsLoaded:St};return ht.prototype=rt,ht}();function fu(r){this.animationData=r}fu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function ZE(r){return new fu(r)}function cl(){}cl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,n=this.renderableComponents.length;for(s=0;s<n;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Rc=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 QE(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function JE(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function tT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function eT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function rT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function iT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function oT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function sT(){this.p={}}function vu(r,s){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new Na(n[d],s),this.effectElements.push(p)}function Na(r,s){this.init(r,s)}A([Me],Na),Na.prototype.getValue=Na.prototype.iterateDynamicProperties,Na.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new QE(p[n],s,this);break;case 1:m=new JE(p[n],s,this);break;case 2:m=new tT(p[n],s,this);break;case 3:m=new eT(p[n],s,this);break;case 4:case 7:m=new oT(p[n],s,this);break;case 10:m=new rT(p[n],s,this);break;case 11:m=new iT(p[n],s,this);break;case 5:m=new vu(p[n],s,this);break;default:m=new sT(p[n],s,this);break}m&&this.effectElements.push(m)}};function Yi(){}Yi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,n=this.data.masksProperties.length;s<n;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Hm();if(s){var n=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),g=s("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=Rc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=s},initBaseData:function(s,n,d){this.globalData=n,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new vu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function ji(){}ji.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function qi(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,n)}qi.prototype.prepareFrame=function(){},A([cl,Yi,ji],qi),qi.prototype.getBaseElement=function(){return null},qi.prototype.renderFrame=function(){},qi.prototype.destroy=function(){},qi.prototype.initExpressions=function(){var r=Hm();if(r){var s=r("footage");this.layerInterface=s(this)}},qi.prototype.getFootageData=function(){return this.footageData};function er(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([cl,Yi,ji],er),er.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,n=this.layers.length,d;for(this.completeLayers=!0,s=n-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new qi(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,n=r.length,d,m=this.layers.length;for(s=0;s<n;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,n){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,n=r.length;for(s=0;s<n;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Fe.prototype.getElementById=function(r){var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),n;if(typeof s=="number")n=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Ro,this.globalData.slotManager=ZE(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 aT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?wc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,n.cloneFromProps(s),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<n;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<n;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<n;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(aT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var n=0,d=s.length;for(n=0;n<d;n+=1)this.localTransforms.push(s[n])}}},globalToLocal:function(s){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=n.length,I;for(p=0;p<g;p+=1)I=n[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Do(r,s,n){this.data=r,this.element=s,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(p),this.solidPath="";var g,I=this.masksProperties,b=0,w=[],L,K,x=tr(),O,P,R,H,M="clipPath",k="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(M="mask",k="mask"),(I[m].mode==="s"||I[m].mode==="i")&&b===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),w.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(M="mask",k="mask",H=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),P=At("filter"),P.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,H=null),this.storedData[m]={elem:g,x:H,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){K=w.length;var _=At("g");for(L=0;L<K;L+=1)_.appendChild(w[L]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),_.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(_)}else w.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=At(M),p=w.length,m=0;m<p;m+=1)this.maskElement.appendChild(w[m]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Do.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Do.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Do.prototype.getMaskelement=function(){return this.maskElement},Do.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Do.prototype.drawPath=function(r,s,n){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),n.lastPath!==d){var g="";n.elem&&(s.c&&(g=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},Do.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ma=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=n;function s(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),gu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),hl={},bu="filter_result_";function Dc(r){var s,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=Ma.createFilter(m,!0),g=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var b=r.data.ef[s].ty;if(hl[b]){var w=hl[b].effect;I=new w(p,r.effectsManager.effectElements[s],r,bu+g,n),n=bu+g,hl[b].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Dc.prototype.renderFrame=function(r){var s,n=this.filters.length;for(s=0;s<n;s+=1)this.filters[s].renderFrame(r)},Dc.prototype.getEffects=function(r){var s,n=this.filters.length,d=[];for(s=0;s<n;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function _I(r,s,n){hl[r]={effect:s,countsAsEffect:n}}function La(){}La.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var n=At("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=At("clipPath"),m=At("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Do(this.data,this,this.globalData),this.renderableEffectsManager=new Dc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var n=this.layerId+"_"+s,d,m,p,g;if(s===1||s===3){var I=At("mask");I.setAttribute("id",n),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!gu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=Ma.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Ma.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var b=At("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var w=At("g");b.appendChild(w),d=tr(),m=Ma.createFilter(d);var L=At("feComponentTransfer");L.setAttribute("in","SourceGraphic"),m.appendChild(L);var K=At("feFuncA");K.setAttribute("type","table"),K.setAttribute("tableValues","1.0 0.0"),L.appendChild(K),this.globalData.defs.appendChild(m);var x=At("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),w.setAttribute("filter","url("+f()+"#"+d+")"),w.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(p),gu.maskType||(b.setAttribute("mask-type","luminance"),m.appendChild(Ma.createAlphaToLuminanceFilter()),g=At("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=n}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ms(){}Ms.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 Oa(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([cl,U(r)],Oa)})();function Ra(r,s,n){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Yi,Ns,La,Ms,ji,Oa],Ra),Ra.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Ra.prototype.sourceRectAtTime=function(){return this.sourceRect};function nT(r,s){this.elem=r,this.pos=s}function yu(){}yu.prototype={addShapeToModifiers:function(s){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,n=this.shapes.length;for(s=0;s<n;s+=1)this.shapes[s].sh.reset();n=this.shapeModifiers.length;var d;for(s=n-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===s)return n[d].pos;d+=1}return 0},addProcessedElement:function(s,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=n;return}d.push(new nT(s,n))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Eu={1:"butt",2:"round",3:"square"},Tu={1:"miter",2:"round",3:"bevel"};function xu(r,s,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=s,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}xu.prototype.setAsAnimated=function(){this._isAnimated=!0};function Au(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}Au.prototype.reset=function(){this.d="",this._mdf=!1};function pl(r,s,n,d){this.elem=r,this.frameId=-1,this.dataProps=tt(s.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",s.length?s.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,g;for(m=0;m<p;m+=1)g=lt.getProp(r,s[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:s[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}pl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<n;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Me],pl);function Su(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Me],Su);function Iu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n}A([Me],Iu);function _u(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Me],_u);function Da(r,s,n){this.data=s,this.c=X("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=X("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Da.prototype.comparePoints=function(r,s){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[s*4+n*2]),m>.01)return!1;n+=1}return!0},Da.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},Da.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,n=this.data.p*4,d,m;for(s=0;s<n;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,s=this.data.p*4;s<n;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Me],Da);function Ls(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,n)}Ls.prototype.initGradientData=function(r,s,n){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new Da(r,s.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,s),this.setGradientOpacity(s,n),this._isAnimated=!!this._isAnimated},Ls.prototype.setGradientData=function(r,s){var n=tr(),d=At(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=s.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ls.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=tr(),b=tr();p.setAttribute("id",b);var w=At(r.t===1?"linearGradient":"radialGradient");w.setAttribute("id",I),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var L=this.stops;for(d=r.g.p*4;d<m;d+=2)n=At("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),L.push(n);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",Eu[r.lc||2]),g.setAttribute("stroke-linejoin",Tu[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=w,this.ms=p,this.ost=L,this.maskId=b,s.msElem=g}},A([Me],Ls);function Cu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.initGradientData(r,s,n),this._isAnimated=!!this._isAnimated}A([Ls,Me],Cu);function lT(){this.it=[],this.prevViewData=[],this.gr=At("g")}function dT(r,s,n){this.transform={mProps:r,op:s,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var ku=function(s,n,d,m){if(n===0)return"";var p=s.o,g=s.i,I=s.v,b,w=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(b=1;b<n;b+=1)w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[b][0],g[b][1])+" "+m.applyToPointStringified(I[b][0],I[b][1]);return d&&n&&(w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),w+="z"),w},cT=function(){var r=new Pe,s=new Pe,n={createRenderFunction:d};function d(K){switch(K.ty){case"fl":return I;case"gf":return w;case"gs":return b;case"st":return L;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(K,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function g(K,x,O){var P,R,H,M,k,T,_=x.styles.length,N=x.lvl,$,G,j,it;for(T=0;T<_;T+=1){if(M=x.sh._mdf||O,x.styles[T].lvl<N){for(G=s.reset(),j=N-x.styles[T].lvl,it=x.transformers.length-1;!M&&j>0;)M=x.transformers[it].mProps._mdf||M,j-=1,it-=1;if(M)for(j=N-x.styles[T].lvl,it=x.transformers.length-1;j>0;)G.multiply(x.transformers[it].mProps.v),j-=1,it-=1}else G=r;if($=x.sh.paths,R=$._length,M){for(H="",P=0;P<R;P+=1)k=$.shapes[P],k&&k._length&&(H+=ku(k,k._length,k.c,G));x.caches[T]=H}else H=x.caches[T];x.styles[T].d+=K.hd===!0?"":H,x.styles[T]._mdf=M||x.styles[T]._mdf}}function I(K,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function b(K,x,O){w(K,x,O),L(K,x,O)}function w(K,x,O){var P=x.gf,R=x.g._hasOpacity,H=x.s.v,M=x.e.v;if(x.o._mdf||O){var k=K.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(k,x.o.v)}if(x.s._mdf||O){var T=K.t===1?"x1":"cx",_=T==="x1"?"y1":"cy";P.setAttribute(T,H[0]),P.setAttribute(_,H[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,H[0]),x.of.setAttribute(_,H[1]))}var N,$,G,j;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(G=N.length,$=0;$<G;$+=1)j=N[$],j.setAttribute("offset",it[$*4]+"%"),j.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,G=N.length,$=0;$<G;$+=1)j=N[$],x.g._collapsable||j.setAttribute("offset",Tt[$*2]+"%"),j.setAttribute("stop-opacity",Tt[$*2+1])}if(K.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",M[0]),P.setAttribute("y2",M[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",M[0]),x.of.setAttribute("y2",M[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)),P.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)));var st=Math.atan2(M[1]-H[1],M[0]-H[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var ht=ut*St,rt=Math.cos(st+x.a.v)*ht+H[0],C=Math.sin(st+x.a.v)*ht+H[1];P.setAttribute("fx",rt),P.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function L(K,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return n}();function de(r,s,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,n),this.prevViewData=[]}A([Yi,Ns,La,yu,Ms,ji,Oa],de),de.prototype.initSecondaryElement=function(){},de.prototype.identityMatrix=new Pe,de.prototype.buildExpressionInterface=function(){},de.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},de.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,n,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<s;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(g.push(n),I=n._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},de.prototype.setShapesAsAnimated=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s].setAsAnimated()},de.prototype.createStyleElement=function(r,s){var n,d=new Au(r,s),m=d.pElem;if(r.ty==="st")n=new Su(this,r,d);else if(r.ty==="fl")n=new Iu(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ls:Cu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new _u(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Eu[r.lc||2]),m.setAttribute("stroke-linejoin",Tu[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"]=Rc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},de.prototype.createGroupElement=function(r){var s=new lT;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"]=Rc(r.bm)),s},de.prototype.createTransformElement=function(r,s){var n=wc.getTransformProperty(this,r,this),d=new dT(n,n.o,s);return this.addToAnimatedContents(r,d),d},de.prototype.createShapeElement=function(r,s,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=ol.getShapeProp(this,r,d,this),p=new xu(s,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},de.prototype.addToAnimatedContents=function(r,s){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===s)return;n+=1}this.animatedContents.push({fn:cT.createRenderFunction(r),element:s,data:r})},de.prototype.setElementStyles=function(r){var s=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||s.push(this.stylesList[n])},de.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},de.prototype.searchShapes=function(r,s,n,d,m,p,g){var I=[].concat(p),b,w=r.length-1,L,K,x=[],O=[],P,R,H;for(b=w;b>=0;b-=1){if(H=this.searchProcessedElement(r[b]),H?s[b]=n[H-1]:r[b]._render=g,r[b].ty==="fl"||r[b].ty==="st"||r[b].ty==="gf"||r[b].ty==="gs"||r[b].ty==="no")H?s[b].style.closed=!1:s[b]=this.createStyleElement(r[b],m),r[b]._render&&s[b].style.pElem.parentNode!==d&&d.appendChild(s[b].style.pElem),x.push(s[b].style);else if(r[b].ty==="gr"){if(!H)s[b]=this.createGroupElement(r[b]);else for(K=s[b].it.length,L=0;L<K;L+=1)s[b].prevViewData[L]=s[b].it[L];this.searchShapes(r[b].it,s[b].it,s[b].prevViewData,s[b].gr,m+1,I,g),r[b]._render&&s[b].gr.parentNode!==d&&d.appendChild(s[b].gr)}else r[b].ty==="tr"?(H||(s[b]=this.createTransformElement(r[b],d)),P=s[b].transform,I.push(P)):r[b].ty==="sh"||r[b].ty==="rc"||r[b].ty==="el"||r[b].ty==="sr"?(H||(s[b]=this.createShapeElement(r[b],I,m)),this.setElementStyles(s[b])):r[b].ty==="tm"||r[b].ty==="rd"||r[b].ty==="ms"||r[b].ty==="pb"||r[b].ty==="zz"||r[b].ty==="op"?(H?(R=s[b],R.closed=!1):(R=Ki.getModifier(r[b].ty),R.init(this,r[b]),s[b]=R,this.shapeModifiers.push(R)),O.push(R)):r[b].ty==="rp"&&(H?(R=s[b],R.closed=!0):(R=Ki.getModifier(r[b].ty),s[b]=R,R.init(this,r,b,s),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=O.length,b=0;b<w;b+=1)O[b].closed=!0},de.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},de.prototype.renderShape=function(){var r,s=this.animatedContents.length,n;for(r=0;r<s;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},de.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Pc(r,s,n,d,m,p){this.o=r,this.sw=s,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!n,fc:!!d,m:!0,p:!0}}Pc.prototype.update=function(r,s,n,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,g=!0),g};function Ke(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Ke.prototype.defaultBoxWidth=[0,0],Ke.prototype.copyData=function(r,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n]);return r},Ke.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ke.prototype.searchProperty=function(){return this.searchKeyframes()},Ke.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ke.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},Ke.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Ke.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>s);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Ke.prototype.buildFinalText=function(r){for(var s=[],n=0,d=r.length,m,p,g=!1,I=!1,b="";n<d;)g=I,I=!1,m=r.charCodeAt(n),b=r.charAt(n),Ro.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?Ro.isRegionalFlag(r,n)?b=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(Ro.isModifier(m,p)?(b=r.substr(n,2),g=!0):Ro.isFlagEmoji(r.substr(n,4))?b=r.substr(n,4):b=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),Ro.isVariationSelector(m)&&(g=!0)):Ro.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),n+=b.length;return s},Ke.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,n=this.data,d=[],m,p,g,I=0,b,w=n.m.g,L=0,K=0,x=0,O=[],P=0,R=0,H,M,k=s.getFontByName(r.f),T,_=0,N=uu(k);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,G;if(r.sz)for(var j=!0,it=r.sz[0],Tt=r.sz[1],ut,st;j;){st=this.buildFinalText(r.t),ut=0,P=0,p=st.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)G=st[m].charCodeAt(0),g=!1,st[m]===" "?St=m:(G===13||G===3)&&(P=0,g=!0,ut+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(st[m],k.fStyle,k.fFamily),_=g?0:T.w*r.finalSize/100):_=s.measureText(st[m],r.f,r.finalSize),P+_>it&&st[m]!==" "?(St===-1?p+=1:m=St,ut+=r.finalLineHeight||r.finalSize*1.2,st.splice(m,St===m?1:0,"\r"),St=-1,P=0):(P+=_,P+=$);ut+=k.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ut?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=st,p=r.finalText.length,j=!1)}P=-$,_=0;var ht=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],G=rt.charCodeAt(0),G===13||G===3?(ht=0,O.push(P),R=P>R?P:R,P=-2*$,b="",g=!0,x+=1):b=rt,s.chars?(T=s.getCharData(rt,k.fStyle,s.getFontByName(r.f).fFamily),_=g?0:T.w*r.finalSize/100):_=s.measureText(b,r.f,r.finalSize),rt===" "?ht+=_+$:(P+=_+$+ht,ht=0),d.push({l:_,an:_,add:L,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(L+=_,b===""||b===" "||m===p-1){for((b===""||b===" ")&&(L-=_);K<=m;)d[K].an=L,d[K].ind=I,d[K].extra=_,K+=1;I+=1,L=0}}else if(w==3){if(L+=_,b===""||m===p-1){for(b===""&&(L-=_);K<=m;)d[K].an=L,d[K].ind=I,d[K].extra=_,K+=1;L=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var C=n.a,D,v;M=C.length;var E,Y,V=[];for(H=0;H<M;H+=1){for(D=C[H],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),Y=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[H]=Y,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(Y),Y+=1);n.a[H].s.totalChars=Y;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[H]&&(ct=v.anIndexes[H],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[H]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=k.ascent*r.finalSize/100},Ke.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var n=this.copyData({},this.data.d.k[s].s);n=this.copyData(n,r),this.data.d.k[s].s=n,this.recalculate(s),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Ke.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},Ke.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ke.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var hT=function(){var r=Math.max,s=Math.min,n=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=lt.getProp(p,g.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,g.o||{k:0},0,0,this),this.xe=lt.getProp(p,g.xe||{k:0},0,0,this),this.ne=lt.getProp(p,g.ne||{k:0},0,0,this),this.sm=lt.getProp(p,g.sm||{k:100},0,0,this),this.a=lt.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,b=0,w=1,L=1;this.ne.v>0?I=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:L=1+this.xe.v/100;var K=Sa.getBezierEasing(I,b,w,L).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=g>=P?1:0:x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===3)P===O?x=g>=P?0:1:x=1-r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=K(x);else if(R===5){if(P===O)x=0;else{var H=P-O;g=s(r(0,g+.5-O),P-O);var M=-H/2+g,k=H/2;x=Math.sqrt(1-M*M/(k*k))}x=K(x)}else R===6?(P===O?x=0:(g=s(r(0,g+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(P-O)))/2),x=K(x)):(g>=n(O)&&(g-O<0?x=r(0,s(s(P,1)-(O-g),1)):x=r(0,s(P-g,1))),x=K(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var _=.5-T*.5;x<_?x=0:(x=(x-_)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/I,w=this.s.v/I+b,L=this.e.v/I+b;if(w>L){var K=w;w=L,L=K}this.finalS=w,this.finalE=L}},A([Me],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function pT(r,s,n){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,n):d,rx:p.rx?m(r,p.rx,0,kt,n):d,ry:p.ry?m(r,p.ry,0,kt,n):d,sk:p.sk?m(r,p.sk,0,kt,n):d,sa:p.sa?m(r,p.sa,0,kt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=hT.getTextSelectorProp(r,s.s,n),this.s.t=s.s.t}function Po(r,s,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=n,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Po.prototype.searchProperties=function(){var r,s=this._textData.a.length,n,d=lt.getProp;for(r=0;r<s;r+=1)n=this._textData.a[r],this._animatorsData[r]=new pT(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},Po.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,b,w,L,K,x=r.l,O,P,R,H,M,k,T,_,N,$,G,j,it,Tt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},K=st._length-1;var St;for(j=0,L=0;L<K;L+=1)St=qr.buildBezierData(st.v[L],st.v[L+1],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[L+1][0]-st.v[L+1][0],st.i[L+1][1]-st.v[L+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),j+=St.segmentLength;L=K,ut.v.c&&(St=qr.buildBezierData(st.v[L],st.v[0],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),j+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,k=1,H=0,M=!0,$=O.segments,P<0&&ut.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,k=N.length-1;P<0;)P+=N[k].partialLength,k-=1,k<0&&(T-=1,N=$[T].points,k=N.length-1);N=$[T].points,_=N[k-1],R=N[k],G=R.partialLength}K=x.length,b=0,w=0;var ht=r.finalSize*1.2*.714,rt=!0,C,D,v,E,Y;E=d.length;var V,ct=-1,gt,xt,Pt,Ft=P,ue=T,rr=k,Zr=-1,ir,Le,ur,Wt,pt,vi,Zi,gi,Qr="",bi=this.defaultPropsArray,yi;if(r.j===2||r.j===1){var or=0,Qi=0,Ji=r.j===2?-.5:-1,Pr=0,to=!0;for(L=0;L<K;L+=1)if(x[L].n){for(or&&(or+=Qi);Pr<L;)x[Pr].animatorJustifyOffset=or,Pr+=1;or=0,to=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(to&&r.j===2&&(Qi+=C.t.v*Ji),D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?or+=C.t.v*V[0]*Ji:or+=C.t.v*V*Ji);to=!1}for(or&&(or+=Qi);Pr<L;)x[Pr].animatorJustifyOffset=or,Pr+=1}for(L=0;L<K;L+=1){if(p.reset(),ir=1,x[L].n)b=0,w+=r.yOffset,w+=rt?1:0,P=Ft,rt=!1,this._hasMaskedPath&&(T=ue,k=rr,N=$[T].points,_=N[k-1],R=N[k],G=R.partialLength,H=0),Qr="",gi="",vi="",yi="",bi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Zr!==x[L].line){switch(r.j){case 1:P+=j-r.lineWidths[x[L].line];break;case 2:P+=(j-r.lineWidths[x[L].line])/2;break;default:break}Zr=x[L].line}ct!==x[L].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[L].an/2,ct=x[L].ind),P+=n[0]*x[L].an*.005;var Fr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Fr+=C.p.v[0]*V[0]:Fr+=C.p.v[0]*V),C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Fr+=C.a.v[0]*V[0]:Fr+=C.a.v[0]*V);for(M=!0,this._pathData.a.v&&(P=x[0].an*.5+(j-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(K-1),P+=this._pathData.f.v);M;)H+G>=P+Fr||!N?(it=(P+Fr-H)/R.partialLength,xt=_.point[0]+(R.point[0]-_.point[0])*it,Pt=_.point[1]+(R.point[1]-_.point[1])*it,p.translate(-n[0]*x[L].an*.005,-(n[1]*ht)*.01),M=!1):N&&(H+=R.partialLength,k+=1,k>=N.length&&(k=0,T+=1,$[T]?N=$[T].points:ut.v.c?(k=0,T=0,N=$[T].points):(H-=R.partialLength,N=null)),N&&(_=R,R=N[k],G=R.partialLength));gt=x[L].an/2-x[L].add,p.translate(-gt,0,0)}else gt=x[L].an/2-x[L].add,p.translate(-gt,0,0),p.translate(-n[0]*x[L].an*.005,-n[1]*ht*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),(b!==0||r.j!==0)&&(this._hasMaskedPath?V.length?P+=C.t.v*V[0]:P+=C.t.v*V:V.length?b+=C.t.v*V[0]:b+=C.t.v*V));for(r.strokeWidthAnim&&(ur=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Wt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-C.a.v[0]*V[0],-C.a.v[1]*V[1],C.a.v[2]*V[2]):p.translate(-C.a.v[0]*V,-C.a.v[1]*V,C.a.v[2]*V));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(C.s.v[0]-1)*V[0],1+(C.s.v[1]-1)*V[1],1):p.scale(1+(C.s.v[0]-1)*V,1+(C.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(C=d[v].a,D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),C.sk.propType&&(V.length?p.skewFromAxis(-C.sk.v*V[0],C.sa.v*V[1]):p.skewFromAxis(-C.sk.v*V,C.sa.v*V)),C.r.propType&&(V.length?p.rotateZ(-C.r.v*V[2]):p.rotateZ(-C.r.v*V)),C.ry.propType&&(V.length?p.rotateY(C.ry.v*V[1]):p.rotateY(C.ry.v*V)),C.rx.propType&&(V.length?p.rotateX(C.rx.v*V[0]):p.rotateX(C.rx.v*V)),C.o.propType&&(V.length?ir+=(C.o.v*V[0]-ir)*V[0]:ir+=(C.o.v*V-ir)*V),r.strokeWidthAnim&&C.sw.propType&&(V.length?ur+=C.sw.v*V[0]:ur+=C.sw.v*V),r.strokeColorAnim&&C.sc.propType)for(pt=0;pt<3;pt+=1)V.length?Le[pt]+=(C.sc.v[pt]-Le[pt])*V[0]:Le[pt]+=(C.sc.v[pt]-Le[pt])*V;if(r.fillColorAnim&&r.fc){if(C.fc.propType)for(pt=0;pt<3;pt+=1)V.length?Wt[pt]+=(C.fc.v[pt]-Wt[pt])*V[0]:Wt[pt]+=(C.fc.v[pt]-Wt[pt])*V;C.fh.propType&&(V.length?Wt=Bm(Wt,C.fh.v*V[0]):Wt=Bm(Wt,C.fh.v*V)),C.fs.propType&&(V.length?Wt=Vm(Wt,C.fs.v*V[0]):Wt=Vm(Wt,C.fs.v*V)),C.fb.propType&&(V.length?Wt=zm(Wt,C.fb.v*V[0]):Wt=zm(Wt,C.fb.v*V))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,C.p.v[1]*V[0],-C.p.v[2]*V[1]):p.translate(0,C.p.v[1]*V,-C.p.v[2]*V):V.length?p.translate(C.p.v[0]*V[0],C.p.v[1]*V[1],-C.p.v[2]*V[2]):p.translate(C.p.v[0]*V,C.p.v[1]*V,-C.p.v[2]*V));if(r.strokeWidthAnim&&(vi=ur<0?0:ur),r.strokeColorAnim&&(Zi="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(gi="rgb("+Math.round(Wt[0]*255)+","+Math.round(Wt[1]*255)+","+Math.round(Wt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,n[1]*ht*.01+w,0),this._pathData.p.v){Tt=(R.point[1]-_.point[1])/(R.point[0]-_.point[0]);var Fo=Math.atan(Tt)*180/Math.PI;R.point[0]<_.point[0]&&(Fo+=180),p.rotate(-Fo*Math.PI/180)}p.translate(xt,Pt,0),P-=n[0]*x[L].an*.005,x[L+1]&&ct!==x[L+1].ind&&(P+=x[L].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(b,w,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line]),0,0);break;case 2:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(n[0]*x[L].an*.005,n[1]*ht*.01,0),b+=x[L].l+r.tr*.001*r.finalSize}g==="html"?Qr=p.toCSS():g==="svg"?Qr=p.to2dCSS():bi=[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]],yi=ir}I<=L?(Y=new Pc(yi,vi,Zi,gi,Qr,bi),this.renderedLetters.push(Y),I+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[L],this.lettersChangedFlag=Y.update(yi,vi,Zi,gi,Qr,bi)||this.lettersChangedFlag)}}},Po.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Po.prototype.mHelper=new Pe,Po.prototype.defaultPropsArray=[],A([Me],Po);function Ar(){}Ar.prototype.initElement=function(r,s,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,n),this.textProperty=new Ke(this,r.t,this.dynamicProperties),this.textAnimator=new Po(r.t,this.renderType,this),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ar.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Ar.prototype.createPathShape=function(r,s){var n,d=s.length,m,p="";for(n=0;n<d;n+=1)s[n].ty==="sh"&&(m=s[n].ks.k,p+=ku(m,m.i.length,!0,r));return p},Ar.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Ar.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Ar.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Ar.prototype.applyTextPropertiesToMatrix=function(r,s,n,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}s.translate(d,m,0)},Ar.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Ar.prototype.emptyProp=new Pc,Ar.prototype.destroy=function(){},Ar.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var mT={shapes:[]};function ui(r,s,n){this.textSpans=[],this.renderType="svg",this.initElement(r,s,n)}A([Yi,Ns,La,Ms,ji,Oa,Ar],ui),ui.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},ui.prototype.buildTextContents=function(r){for(var s=0,n=r.length,d=[],m="";s<n;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},ui.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},ui.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,n=this.textProperty.currentData;this.renderedLetters=tt(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],I=!!this.globalData.fontManager.chars;s=g.length;var b,w=this.mHelper,L="",K=this.data.singleShape,x=0,O=0,P=!0,R=n.tr*.001*n.finalSize;if(K&&!I&&!n.sz){var H=this.textContainer,M="start";switch(n.j){case 1:M="end";break;case 2:M="middle";break;default:M="start";break}H.setAttribute("text-anchor",M),H.setAttribute("letter-spacing",R);var k=this.buildTextContents(n.finalText);for(s=k.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<s;r+=1)b=this.textSpans[r].span||At("tspan"),b.textContent=k[r],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",H.appendChild(b),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(H)}else{var T=this.textSpans.length,_;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!K||r===0){if(b=T>r?this.textSpans[r].span:At(I?"g":"text"),T<=r){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=b,I){var N=At("g");b.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),K&&(g[r].n&&(x=-R,O+=n.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(n,w,g[r].line,x,O),x+=g[r].l||0,x+=R),I){_=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(_.t===1)$=new Pa(_.data,this.globalData,this);else{var G=mT;_.data&&_.data.shapes&&(G=this.buildShapeData(_.data,n.finalSize)),$=new de(G,this.globalData,this)}if(this.textSpans[r].glyph){var j=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(j.layerElement),j.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),_.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else K&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[r].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}K&&b&&b.setAttribute("d",L)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},ui.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},ui.prototype.getValue=function(){var r,s=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ui.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,g;for(r=0;r<s;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Fc(r,s,n){this.initElement(r,s,n)}A([Ra],Fc),Fc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Xi(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initFrame(),this.initTransform(r,s,n),this.initHierarchy()}Xi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Xi.prototype.renderFrame=function(){},Xi.prototype.getBaseElement=function(){return null},Xi.prototype.destroy=function(){},Xi.prototype.sourceRectAtTime=function(){},Xi.prototype.hide=function(){},A([Yi,Ns,Ms,ji],Xi);function Se(){}A([Fe],Se),Se.prototype.createNull=function(r){return new Xi(r,this.globalData,this)},Se.prototype.createShape=function(r){return new de(r,this.globalData,this)},Se.prototype.createText=function(r){return new ui(r,this.globalData,this)},Se.prototype.createImage=function(r){return new Ra(r,this.globalData,this)},Se.prototype.createSolid=function(r){return new Fc(r,this.globalData,this)},Se.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var n=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(n),this.layers=r.layers,this.elements=tt(r.layers.length)},Se.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},Se.prototype.updateContainerSize=function(){},Se.prototype.findIndexByInd=function(r){var s=0,n=this.layers.length;for(s=0;s<n;s+=1)if(this.layers[s].ind===r)return s;return-1},Se.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var n=this.createItem(this.layers[r]);if(s[r]=n,Zn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=s[d],p=m.getMatte(this.layers[r].tt);n.setMatte(p)}}}},Se.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,n=this.elements.length;s<n;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Se.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<n;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Se.prototype.appendElementInPos=function(r,s){var n=r.getBaseElement();if(n){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Se.prototype.hide=function(){this.layerElement.style.display="none"},Se.prototype.show=function(){this.layerElement.style.display="block"};function fi(){}A([Yi,Ns,Ms,ji,Oa],fi),fi.prototype.initElement=function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},fi.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},fi.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()},fi.prototype.setElements=function(r){this.elements=r},fi.prototype.getElements=function(){return this.elements},fi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},fi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Pa(r,s,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(r,s,n),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Se,fi,La],Pa),Pa.prototype.createComp=function(r){return new Pa(r,this.globalData,this)};function $c(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var n="";if(s&&s.title){var d=At("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),n+=m}if(s&&s.description){var p=At("desc"),g=tr();p.setAttribute("id",g),p.textContent=s.description,this.svgElement.appendChild(p),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=At("defs");this.svgElement.appendChild(I);var b=At("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Se],$c),$c.prototype.createComp=function(r){return new Pa(r,this.globalData,this)},AE("svg",$c),Ki.registerModifier("tm",Dr),Ki.registerModifier("pb",Ia),Ki.registerModifier("rp",Xr),Ki.registerModifier("rd",_a),Ki.registerModifier("zz",ka),Ki.registerModifier("op",wa),Gt})});var vl=globalThis,gl=vl.ShadowRoot&&(vl.ShadyCSS===void 0||vl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zc=Symbol(),Nu=new WeakMap,Fa=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==zc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(gl&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=Nu.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Nu.set(t,i))}return i}toString(){return this.cssText}},Mu=a=>new Fa(typeof a=="string"?a:a+"",void 0,zc),B=(a,...i)=>{let t=a.length===1?a[0]:i.reduce((e,o,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+a[l+1],a[0]);return new Fa(t,a,zc)},Bc=(a,i)=>{if(gl)a.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),o=vl.litNonce;o!==void 0&&e.setAttribute("nonce",o),e.textContent=t.cssText,a.appendChild(e)}},bl=gl?a=>a:a=>a instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Mu(t)})(a):a;var{is:TT,defineProperty:xT,getOwnPropertyDescriptor:AT,getOwnPropertyNames:ST,getOwnPropertySymbols:IT,getPrototypeOf:_T}=Object,eo=globalThis,Lu=eo.trustedTypes,CT=Lu?Lu.emptyScript:"",Hc=eo.reactiveElementPolyfillSupport,$a=(a,i)=>a,Va={toAttribute(a,i){switch(i){case Boolean:a=a?CT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,i){let t=a;switch(i){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},yl=(a,i)=>!TT(a,i),Ou={attribute:!0,type:String,converter:Va,reflect:!1,hasChanged:yl},Ru,Du;(Ru=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Du=eo.litPropertyMetadata)!=null||(eo.litPropertyMetadata=new WeakMap);var Ei=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Ou){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),o=this.getPropertyDescriptor(i,e,t);o!==void 0&&xT(this.prototype,i,o)}}static getPropertyDescriptor(i,t,e){var c;let{get:o,set:l}=(c=AT(this.prototype,i))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return o==null?void 0:o.call(this)},set(f){let y=o==null?void 0:o.call(this);l.call(this,f),this.requestUpdate(i,y,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Ou}static _$Ei(){if(this.hasOwnProperty($a("elementProperties")))return;let i=_T(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty($a("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($a("properties"))){let t=this.properties,e=[...ST(t),...IT(t)];for(let o of e)this.createProperty(o,t[o])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,o]of t)this.elementProperties.set(e,o)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let o=this._$Eu(t,e);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let o of e)t.unshift(bl(o))}else i!==void 0&&t.push(bl(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Bc(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostConnected)==null?void 0:o.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var l;let e=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,e);if(o!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:Va).toAttribute(t,e.type);this._$Em=i,c==null?this.removeAttribute(o):this.setAttribute(o,c),this._$Em=null}}_$AK(i,t){var l;let e=this.constructor,o=e._$Eh.get(i);if(o!==void 0&&this._$Em!==o){let c=e.getPropertyOptions(o),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:Va;this._$Em=o,this[o]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(i,t,e){var o;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((o=e.hasChanged)!=null?o:yl)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var o;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw i=!1,this._$EU(),l}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostUpdated)==null?void 0:o.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Pu;Ei.elementStyles=[],Ei.shadowRootOptions={mode:"open"},Ei[$a("elementProperties")]=new Map,Ei[$a("finalized")]=new Map,Hc==null||Hc({ReactiveElement:Ei}),((Pu=eo.reactiveElementVersions)!=null?Pu:eo.reactiveElementVersions=[]).push("2.0.4");var Ba=globalThis,El=Ba.trustedTypes,Fu=El?El.createPolicy("lit-html",{createHTML:a=>a}):void 0,Kc="$lit$",Ti=`lit$${Math.random().toFixed(9).slice(2)}$`,Wc="?"+Ti,kT=`<${Wc}>`,zo=document,Ha=()=>zo.createComment(""),Ua=a=>a===null||typeof a!="object"&&typeof a!="function",Yc=Array.isArray,Gu=a=>Yc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Uc=`[
3
+ \f\r]`,za=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$u=/-->/g,Vu=/>/g,$o=RegExp(`>|${Uc}(?:([^\\s"'>=/]+)(${Uc}*=${Uc}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),zu=/'/g,Bu=/"/g,Ku=/^(?:script|style|textarea|title)$/i,jc=a=>(i,...t)=>({_$litType$:a,strings:i,values:t}),S=jc(1),LI=jc(2),OI=jc(3),$e=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Hu=new WeakMap,Vo=zo.createTreeWalker(zo,129);function Wu(a,i){if(!Yc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fu!==void 0?Fu.createHTML(i):i}var Yu=(a,i)=>{let t=a.length-1,e=[],o,l=i===2?"<svg>":i===3?"<math>":"",c=za;for(let f=0;f<t;f++){let y=a[f],A,F,U=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===za?F[1]==="!--"?c=$u:F[1]!==void 0?c=Vu:F[2]!==void 0?(Ku.test(F[2])&&(o=RegExp("</"+F[2],"g")),c=$o):F[3]!==void 0&&(c=$o):c===$o?F[0]===">"?(c=o!=null?o:za,U=-1):F[1]===void 0?U=-2:(U=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?$o:F[3]==='"'?Bu:zu):c===Bu||c===zu?c=$o:c===$u||c===Vu?c=za:(c=$o,o=void 0);let X=c===$o&&a[f+1].startsWith("/>")?" ":"";l+=c===za?y+kT:U>=0?(e.push(A),y.slice(0,U)+Kc+y.slice(U)+Ti+X):y+Ti+(U===-2?f:X)}return[Wu(a,l+(a[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),e]},Ga=class a{constructor({strings:i,_$litType$:t},e){let o;this.parts=[];let l=0,c=0,f=i.length-1,y=this.parts,[A,F]=Yu(i,t);if(this.el=a.createElement(A,e),Vo.currentNode=this.el.content,t===2||t===3){let U=this.el.content.firstChild;U.replaceWith(...U.childNodes)}for(;(o=Vo.nextNode())!==null&&y.length<f;){if(o.nodeType===1){if(o.hasAttributes())for(let U of o.getAttributeNames())if(U.endsWith(Kc)){let Q=F[c++],X=o.getAttribute(U).split(Ti),tt=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:tt[2],strings:X,ctor:tt[1]==="."?xl:tt[1]==="?"?Al:tt[1]==="@"?Sl:Ho}),o.removeAttribute(U)}else U.startsWith(Ti)&&(y.push({type:6,index:l}),o.removeAttribute(U));if(Ku.test(o.tagName)){let U=o.textContent.split(Ti),Q=U.length-1;if(Q>0){o.textContent=El?El.emptyScript:"";for(let X=0;X<Q;X++)o.append(U[X],Ha()),Vo.nextNode(),y.push({type:2,index:++l});o.append(U[Q],Ha())}}}else if(o.nodeType===8)if(o.data===Wc)y.push({type:2,index:l});else{let U=-1;for(;(U=o.data.indexOf(Ti,U+1))!==-1;)y.push({type:7,index:l}),U+=Ti.length-1}l++}}static createElement(i,t){let e=zo.createElement("template");return e.innerHTML=i,e}};function Bo(a,i,t=a,e){var c,f,y;if(i===$e)return i;let o=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Ua(i)?void 0:i._$litDirective$;return(o==null?void 0:o.constructor)!==l&&((f=o==null?void 0:o._$AO)==null||f.call(o,!1),l===void 0?o=void 0:(o=new l(a),o._$AT(a,t,e)),e!==void 0?((y=t.o)!=null?y:t.o=[])[e]=o:t.l=o),o!==void 0&&(i=Bo(a,o._$AS(a,i.values),o,e)),i}var Tl=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var A;let{el:{content:t},parts:e}=this._$AD,o=((A=i==null?void 0:i.creationScope)!=null?A:zo).importNode(t,!0);Vo.currentNode=o;let l=Vo.nextNode(),c=0,f=0,y=e[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new Os(l,l.nextSibling,this,i):y.type===1?F=new y.ctor(l,y.name,y.strings,this,i):y.type===6&&(F=new Il(l,this,i)),this._$AV.push(F),y=e[++f]}c!==(y==null?void 0:y.index)&&(l=Vo.nextNode(),c++)}return Vo.currentNode=zo,o}p(i){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(i,e,t),t+=e.strings.length-2):e._$AI(i[t])),t++}},Os=class a{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,e,o){var l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=e,this.options=o,this.v=(l=o==null?void 0:o.isConnected)!=null?l:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=Bo(this,i,t),Ua(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==$e&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Gu(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==W&&Ua(this._$AH)?this._$AA.nextSibling.data=i:this.T(zo.createTextNode(i)),this._$AH=i}$(i){var l;let{values:t,_$litType$:e}=i,o=typeof e=="number"?this._$AC(i):(e.el===void 0&&(e.el=Ga.createElement(Wu(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===o)this._$AH.p(t);else{let c=new Tl(o,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(i){let t=Hu.get(i.strings);return t===void 0&&Hu.set(i.strings,t=new Ga(i)),t}k(i){Yc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,o=0;for(let l of i)o===t.length?t.push(e=new a(this.O(Ha()),this.O(Ha()),this,this.options)):e=t[o],e._$AI(l),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(i=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);i&&i!==this._$AB;){let o=i.nextSibling;i.remove(),i=o}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Ho=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,e,o,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,this._$AM=o,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(i,t=this,e,o){let l=this.strings,c=!1;if(l===void 0)i=Bo(this,i,t,0),c=!Ua(i)||i!==this._$AH&&i!==$e,c&&(this._$AH=i);else{let f=i,y,A;for(i=l[0],y=0;y<l.length-1;y++)A=Bo(this,f[e+y],t,y),A===$e&&(A=this._$AH[y]),c||(c=!Ua(A)||A!==this._$AH[y]),A===W?i=W:i!==W&&(i+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!o&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},xl=class extends Ho{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},Al=class extends Ho{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},Sl=class extends Ho{constructor(i,t,e,o,l){super(i,t,e,o,l),this.type=5}_$AI(i,t=this){var c;if((i=(c=Bo(this,i,t,0))!=null?c:W)===$e)return;let e=this._$AH,o=i===W&&e!==W||i.capture!==e.capture||i.once!==e.once||i.passive!==e.passive,l=i!==W&&(e===W||o);o&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,i):this._$AH.handleEvent(i)}},Il=class{constructor(i,t,e){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(i){Bo(this,i)}},ju={M:Kc,P:Ti,A:Wc,C:1,L:Yu,R:Tl,D:Gu,V:Bo,I:Os,H:Ho,N:Al,U:Sl,B:xl,F:Il},Gc=Ba.litHtmlPolyfillSupport,Uu;Gc==null||Gc(Ga,Os),((Uu=Ba.litHtmlVersions)!=null?Uu:Ba.litHtmlVersions=[]).push("3.2.0");var qu=(a,i,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:i,o=e._$litPart$;if(o===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=o=new Os(i.insertBefore(Ha(),f),f,void 0,t!=null?t:{})}return o._$AI(a),o};var ro=class extends Ei{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=qu(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return $e}},Xu;ro._$litElement$=!0,ro.finalized=!0,(Xu=globalThis.litElementHydrateSupport)==null||Xu.call(globalThis,{LitElement:ro});var qc=globalThis.litElementPolyfillSupport;qc==null||qc({LitElement:ro});var Zu;((Zu=globalThis.litElementVersions)!=null?Zu:globalThis.litElementVersions=[]).push("4.1.0");var wT={attribute:!0,type:String,converter:Va,reflect:!1,hasChanged:yl},NT=(a=wT,i,t)=>{let{kind:e,metadata:o}=t,l=globalThis.litPropertyMetadata.get(o);if(l===void 0&&globalThis.litPropertyMetadata.set(o,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let y=i.get.call(this);i.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let y=this[c];i.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(i,t)=>typeof t=="object"?NT(a,i,t):((e,o,l)=>{let c=o.hasOwnProperty(l);return o.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(o,l):void 0})(a,i,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function Qu(a){return(i,t)=>{let e=typeof i=="function"?i:i[t];Object.assign(e,a)}}var Jr=(a,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(a,i,t),t);function Kt(a,i){return(t,e,o)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(i){let{get:c,set:f}=typeof e=="object"?t:o!=null?o:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return Jr(t,e,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Jr(t,e,{get(){return l(this)}})}}var Xc;function Ju(a){return(i,t)=>Jr(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:Xc!=null?Xc:Xc=document.createDocumentFragment()).querySelectorAll(a)}})}function jt(a){return(i,t)=>{let{slot:e,selector:o}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return Jr(i,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return o===void 0?f:f.filter(F=>F.matches(o))}})}}function tf(a){return(i,t)=>{let{slot:e}=a!=null?a:{},o="slot"+(e?`[name=${e}]`:":not([name])");return Jr(i,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(o);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var MT={PREFIX:"mdc",SEPARATOR:"-"},LT={NAMESPACE:MT},Zc=LT;var OT=a=>[Zc.NAMESPACE.PREFIX,a].join(Zc.NAMESPACE.SEPARATOR),z={constructTagName:OT};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 ef=z.constructTagName("buttonsimple"),Uo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ka={SIZE:Uo[32],TYPE:Rs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var xi=z.constructTagName("button"),Vt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Wa={40:40,32:32,28:28,24:24},Sr={64:64,52:52,20:20,...Wa},Go={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},sr={VARIANT:Vt.PRIMARY,SIZE:Wa[32],COLOR:Go.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var _l=a=>{class i extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(Vt).includes(o)?o:sr.VARIANT)}setColor(o){!Object.values(Go).includes(o)||this.variant===Vt.TERTIARY?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",o)}setSize(o){let c=this.typeInternal===Ds.ICON?Object.values(Sr).includes(o)&&!(o===Sr[20]&&this.variant!==Vt.TERTIARY):Object.values(Wa).includes(o);this.setAttribute("size",c?`${o}`:`${sr.SIZE}`)}inferButtonType(){var A,F,U,Q,X,tt;let o=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,l=(Q=(U=this.shadowRoot)==null?void 0:U.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,c=this.prefixIcon||l&&l>0,f=(tt=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,y=this.postfixIcon||f&&f>0;o&&(c||y)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(c||y)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),h([u({type:String})],i.prototype,"variant",2),h([u({type:String})],i.prototype,"color",2),h([dt()],i.prototype,"typeInternal",2),i};var rf=B`
5
5
  :host {
6
6
  box-sizing: border-box;
7
7
  }
@@ -15,7 +15,7 @@
15
15
  :host {
16
16
  display: contents;
17
17
  }
18
- `,sf=RT;var wl=class extends Z{constructor({context:i,initialValue:t}){super(),this.context=new Fs(this,{context:i,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};wl.styles=[...Z.styles,sf];var af=wl;var Ie=af;var Ve=a=>{class i extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(o){super.firstUpdated(o),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],i.prototype,"autoFocusOnMount",2),i};var te=a=>{class i extends a{}return h([u({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var ti=a=>{class i extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var wt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var DT=a=>{let{host:i,context:t,subscribe:e,callback:o,syncProperties:l}=a,c=(o||l)&&(f=>{l&&l.forEach(y=>{i.requestUpdate(y)}),o==null||o(f)});return new Ps(i,{context:t,callback:c,subscribe:e!=null?e:!0})},PT={consume:DT},_e=PT;var nf=(a,i)=>!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING),lf=(a,i)=>!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING),FT=a=>a.getClientRects().length===0,$T=a=>{let{width:i,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:o}=a;return e+o+t+i===0},df=a=>{if(!(a instanceof Element))return!1;let i=getComputedStyle(a),{overflowX:t,overflowY:e}=i;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},VT=a=>$T(a)||FT(a),zT=a=>{let{display:i,opacity:t,visibility:e}=a.style;return i==="none"||t==="0"||e==="hidden"||e==="collapse"},BT=a=>{let i=getComputedStyle(a);return i.visibility==="hidden"||i.height==="0"||i.display==="none"},HT=a=>getComputedStyle(a).display==="contents",UT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||zT(a)||!HT(a)&&(BT(a)||VT(a)),GT=a=>a.disabled,KT=a=>a.getAttribute("tabindex")!=="-1",WT=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),YT=(a,i)=>i.some(t=>a.matches(t));var $s=(a,i={})=>{var f,y;if(!a)return[];let t=new Set((f=i==null?void 0:i.excludedElements)!=null?f:[]),e=(y=i==null?void 0:i.includeSelectors)!=null?y:[],o=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(UT(A)||GT(A))?"stop":YT(A,e)||KT(A)&&WT(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&o.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(U=>{let Q=U,X=l(Q);X==="focusable"&&o.add(Q),X!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(nt=>{nt instanceof HTMLElement&&c(nt)}):c(Q))})};return c(a),[...o]},Ya=(a=document)=>{var t;let i=a instanceof Document?a.activeElement:a;for(;(t=i==null?void 0:i.shadowRoot)!=null&&t.activeElement;)i=i.shadowRoot.activeElement;return i},cf=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Jc=a=>{let i=a.getRootNode();return i!==document&&i instanceof ShadowRoot?Jc(i.host):a},hf=a=>{let i=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,i.push(t);else break}return i};var Ai=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Ai.stack=new Set,Ai.currentKeydownListener=null;var Nl=z.constructTagName("spatialnavigationprovider");var th={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var jT=Nl,eh=jT;var pf=a=>{let{x:i,y:t,width:e,height:o,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=i+e/2,F=t+o/2;return{x:i,y:t,width:e,height:o,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},qT=(a,i,t)=>Math.abs(t==="horizontal"?i.yMid-a.yMid:i.xMid-a.xMid),XT=(a,i)=>i==="horizontal"?a.height/2:a.width/2,ZT=(a,i,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,i.bottom)-Math.max(a.top,i.top)):Math.max(0,Math.min(a.right,i.right)-Math.max(a.left,i.left)),QT=(a,i,t)=>i==="horizontal"?t/a.height:t/a.width,JT=(a,i,t,e)=>{let o=i.xMid-a.xMid,l=i.yMid-a.yMid,c=Math.sqrt(o*o+l*l),f=qT(a,i,t)+XT(a,t)*e.orthogonalWeight[t],y=ZT(a,i,t),A=QT(a,t,y)*e.alignWeight;return c+f-A-Math.sqrt(y)},mf=(a,i,t,e)=>{if(!a||i.length===0)return[];if(i.length===1)return i[0]===a?[]:[{candidate:i[0],distance:0}];let o=pf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return i.reduce((c,f)=>{if(f===a)return c;let y=pf(f);if(t==="left"&&y.right>o.xMid||t==="right"&&y.left<o.xMid||t==="up"&&y.bottom>o.yMid||t==="down"&&y.top<o.yMid)return c;let A=JT(o,y,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Go=class extends UIEvent{constructor(i,t,e){super(i,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var ja=class extends Ie{constructor(){super({context:eh});this.navigationKeyMapping=th.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=th.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],o=new Go("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(o)),o.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Go("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Ya();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return eh}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,o])=>[o,e]))},this.context.updateObservers())}initActiveElement(t){let e=$s(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let o=t[0];o&&this.setActiveElementAndFocus(o)}}focusNext(t,e){let o=Ai.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===o||y===this.root||df(y)){c.push(...$s(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||y===o||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,e){var o;if(t){let l=new Go("navbeforefocus",t,e);if((o=this.getActiveElement())==null||o.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var y,A;if(t.length===0)return;let o=this.getActiveElement(),l=Ya();if((!o||!t.includes(o)||o!==l)&&(l&&t.includes(l)?o=l:[o]=t,this.setActiveElement(o)),o!==Ya())return o;let c=`data-spatial-${e}`;if(l){let F=hf(l).find(Q=>Q.hasAttribute(c)),U=F==null?void 0:F.getAttribute(c);if(F&&U){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(U);if(Q)return Q}}return(A=mf(o,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Go("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=Ya();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(o=>o.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],ja.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],ja.prototype,"distanceCalculationWeights",2);var rh=ja;rh.register(Nl);var uf=rh;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},tx={[wt.ARROW_UP]:q.UP,[wt.ARROW_DOWN]:q.DOWN,[wt.ARROW_LEFT]:q.LEFT,[wt.ARROW_RIGHT]:q.RIGHT,[wt.ENTER]:q.ENTER,[wt.SPACE]:q.SPACE,[wt.ESCAPE]:q.ESCAPE,[wt.TAB]:q.TAB,[wt.HOME]:q.HOME,[wt.END]:q.END},ee={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class i extends a{constructor(){super(...arguments);this.spatialNavigationContext=_e.consume({host:this,context:uf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?ee.SPATIAL:ee.DEFAULT}getActionForKeyEvent(o,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:tx)[o.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(o){return o===q.UP||o===q.DOWN||o===q.LEFT||o===q.RIGHT}}return i};var Lt=a=>{class i extends a{constructor(...o){super(...o);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=o=>{this.keyDownEventHandledFlag&&o.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return i};var yt=B`
18
+ `,sf=RT;var wl=class extends Z{constructor({context:i,initialValue:t}){super(),this.context=new Fs(this,{context:i,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};wl.styles=[...Z.styles,sf];var af=wl;var Ie=af;var Ve=a=>{class i extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(o){super.firstUpdated(o),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],i.prototype,"autoFocusOnMount",2),i};var te=a=>{class i extends a{}return h([u({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var ti=a=>{class i extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var wt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var DT=a=>{let{host:i,context:t,subscribe:e,callback:o,syncProperties:l}=a,c=(o||l)&&(f=>{l&&l.forEach(y=>{i.requestUpdate(y)}),o==null||o(f)});return new Ps(i,{context:t,callback:c,subscribe:e!=null?e:!0})},PT={consume:DT},_e=PT;var nf=(a,i)=>!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING),lf=(a,i)=>!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING),FT=a=>a.getClientRects().length===0,$T=a=>{let{width:i,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:o}=a;return e+o+t+i===0},df=a=>{if(!(a instanceof Element))return!1;let i=getComputedStyle(a),{overflowX:t,overflowY:e}=i;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},VT=a=>$T(a)||FT(a),zT=a=>{let{display:i,opacity:t,visibility:e}=a.style;return i==="none"||t==="0"||e==="hidden"||e==="collapse"},BT=a=>{let i=getComputedStyle(a);return i.visibility==="hidden"||i.height==="0"||i.display==="none"},HT=a=>getComputedStyle(a).display==="contents",UT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||zT(a)||!HT(a)&&(BT(a)||VT(a)),GT=a=>a.disabled,KT=a=>a.getAttribute("tabindex")!=="-1",WT=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),YT=(a,i)=>i.some(t=>a.matches(t));var $s=(a,i={})=>{var f,y;if(!a)return[];let t=new Set((f=i==null?void 0:i.excludedElements)!=null?f:[]),e=(y=i==null?void 0:i.includeSelectors)!=null?y:[],o=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(UT(A)||GT(A))?"stop":YT(A,e)||KT(A)&&WT(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&o.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(U=>{let Q=U,X=l(Q);X==="focusable"&&o.add(Q),X!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(nt=>{nt instanceof HTMLElement&&c(nt)}):c(Q))})};return c(a),[...o]},Ya=(a=document)=>{var t;let i=a instanceof Document?a.activeElement:a;for(;(t=i==null?void 0:i.shadowRoot)!=null&&t.activeElement;)i=i.shadowRoot.activeElement;return i},cf=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Jc=a=>{let i=a.getRootNode();return i!==document&&i instanceof ShadowRoot?Jc(i.host):a},hf=a=>{let i=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,i.push(t);else break}return i};var Ai=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Ai.stack=new Set,Ai.currentKeydownListener=null;var Nl=z.constructTagName("spatialnavigationprovider");var th={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var jT=Nl,eh=jT;var pf=a=>{let{x:i,y:t,width:e,height:o,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=i+e/2,F=t+o/2;return{x:i,y:t,width:e,height:o,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},qT=(a,i,t)=>Math.abs(t==="horizontal"?i.yMid-a.yMid:i.xMid-a.xMid),XT=(a,i)=>i==="horizontal"?a.height/2:a.width/2,ZT=(a,i,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,i.bottom)-Math.max(a.top,i.top)):Math.max(0,Math.min(a.right,i.right)-Math.max(a.left,i.left)),QT=(a,i,t)=>i==="horizontal"?t/a.height:t/a.width,JT=(a,i,t,e)=>{let o=i.xMid-a.xMid,l=i.yMid-a.yMid,c=Math.sqrt(o*o+l*l),f=qT(a,i,t)+XT(a,t)*e.orthogonalWeight[t],y=ZT(a,i,t),A=QT(a,t,y)*e.alignWeight;return c+f-A-Math.sqrt(y)},mf=(a,i,t,e)=>{if(!a||i.length===0)return[];if(i.length===1)return i[0]===a?[]:[{candidate:i[0],distance:0}];let o=pf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return i.reduce((c,f)=>{if(f===a)return c;let y=pf(f);if(t==="left"&&y.right>o.xMid||t==="right"&&y.left<o.xMid||t==="up"&&y.bottom>o.yMid||t==="down"&&y.top<o.yMid)return c;let A=JT(o,y,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Ko=class extends UIEvent{constructor(i,t,e){super(i,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var ja=class extends Ie{constructor(){super({context:eh});this.navigationKeyMapping=th.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=th.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],o=new Ko("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(o)),o.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Ko("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Ya();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return eh}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,o])=>[o,e]))},this.context.updateObservers())}initActiveElement(t){let e=$s(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let o=t[0];o&&this.setActiveElementAndFocus(o)}}focusNext(t,e){let o=Ai.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===o||y===this.root||df(y)){c.push(...$s(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||y===o||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,e){var o;if(t){let l=new Ko("navbeforefocus",t,e);if((o=this.getActiveElement())==null||o.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var y,A;if(t.length===0)return;let o=this.getActiveElement(),l=Ya();if((!o||!t.includes(o)||o!==l)&&(l&&t.includes(l)?o=l:[o]=t,this.setActiveElement(o)),o!==Ya())return o;let c=`data-spatial-${e}`;if(l){let F=hf(l).find(Q=>Q.hasAttribute(c)),U=F==null?void 0:F.getAttribute(c);if(F&&U){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(U);if(Q)return Q}}return(A=mf(o,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Ko("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Ya();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(o=>o.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],ja.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],ja.prototype,"distanceCalculationWeights",2);var rh=ja;rh.register(Nl);var uf=rh;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},tx={[wt.ARROW_UP]:q.UP,[wt.ARROW_DOWN]:q.DOWN,[wt.ARROW_LEFT]:q.LEFT,[wt.ARROW_RIGHT]:q.RIGHT,[wt.ENTER]:q.ENTER,[wt.SPACE]:q.SPACE,[wt.ESCAPE]:q.ESCAPE,[wt.TAB]:q.TAB,[wt.HOME]:q.HOME,[wt.END]:q.END},ee={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class i extends a{constructor(){super(...arguments);this.spatialNavigationContext=_e.consume({host:this,context:uf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?ee.SPATIAL:ee.DEFAULT}getActionForKeyEvent(o,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:tx)[o.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(o){return o===q.UP||o===q.DOWN||o===q.LEFT||o===q.RIGHT}}return i};var Lt=a=>{class i extends a{constructor(...o){super(...o);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=o=>{this.keyDownEventHandledFlag&&o.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return i};var yt=B`
19
19
  :host {
20
20
  align-items: center;
21
21
  display: flex;
@@ -416,7 +416,7 @@
416
416
  :host::part(postfix-icon) {
417
417
  flex-shrink: 0;
418
418
  }
419
- `,vf=[rx];var Ko=a=>{let i=a.split("-"),t=["bold","filled","regular","light"];return i.filter(e=>!t.includes(e)).join("-")};var ri=class extends Ml(_l(fe)){constructor(){super(...arguments);this.size=sr.SIZE;this.inverted=sr.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Ko(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Ko(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
419
+ `,vf=[rx];var Wo=a=>{let i=a.split("-"),t=["bold","filled","regular","light"];return i.filter(e=>!t.includes(e)).join("-")};var ri=class extends Ml(_l(fe)){constructor(){super(...arguments);this.size=sr.SIZE;this.inverted=sr.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Wo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Wo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
420
420
  <slot name="prefix" part="prefix">
421
421
  ${this.prefixFilledIconName?S` <mdc-icon
422
422
  name="${this.prefixFilledIconName}"
@@ -432,7 +432,7 @@
432
432
  length-unit="rem"
433
433
  ></mdc-icon>`:""}
434
434
  </slot>
435
- `}};ri.styles=[...fe.styles,...vf],h([Kt('slot[part="button-text"]')],ri.prototype,"buttonTextPart",2),h([u({type:Number})],ri.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ri.prototype,"inverted",2),h([u({type:String,reflect:!0})],ri.prototype,"role",2),h([dt()],ri.prototype,"prefixFilledIconName",2),h([dt()],ri.prototype,"postfixFilledIconName",2);var Wo=ri;var Ll=z.constructTagName("iconprovider"),gf=["svg"],bf=["em","rem","px","%"],ix={px:16,em:1,rem:1,"%":100},Si={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ix.em,ICON_SET:"momentum-icons"};var Ol=class{};Ol.context=Ll;var Rl=Ol;var ii=class extends Ie{constructor(){super({context:Rl.context,initialValue:new Rl});this.iconSet=Si.ICON_SET;this.fileExtension=Si.FILE_EXTENSION;this.lengthUnit=Si.LENGTH_UNIT;this.size=Si.SIZE}static get Context(){return Rl.context}updateValuesInContext(){this.fileExtension&&gf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Si.FILE_EXTENSION,this.context.value.fileExtension=Si.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&&bf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Si.LENGTH_UNIT,this.context.value.lengthUnit=Si.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ii.prototype,"iconSet",2),h([u({type:String})],ii.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ii.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ii.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ii.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ii.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ii.prototype,"cacheName",2);var qa=ii;var ox=[yt,B`
435
+ `}};ri.styles=[...fe.styles,...vf],h([Kt('slot[part="button-text"]')],ri.prototype,"buttonTextPart",2),h([u({type:Number})],ri.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ri.prototype,"inverted",2),h([u({type:String,reflect:!0})],ri.prototype,"role",2),h([dt()],ri.prototype,"prefixFilledIconName",2),h([dt()],ri.prototype,"postfixFilledIconName",2);var Yo=ri;var Ll=z.constructTagName("iconprovider"),gf=["svg"],bf=["em","rem","px","%"],ix={px:16,em:1,rem:1,"%":100},Si={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ix.em,ICON_SET:"momentum-icons"};var Ol=class{};Ol.context=Ll;var Rl=Ol;var ii=class extends Ie{constructor(){super({context:Rl.context,initialValue:new Rl});this.iconSet=Si.ICON_SET;this.fileExtension=Si.FILE_EXTENSION;this.lengthUnit=Si.LENGTH_UNIT;this.size=Si.SIZE}static get Context(){return Rl.context}updateValuesInContext(){this.fileExtension&&gf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Si.FILE_EXTENSION,this.context.value.fileExtension=Si.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&&bf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Si.LENGTH_UNIT,this.context.value.lengthUnit=Si.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ii.prototype,"iconSet",2),h([u({type:String})],ii.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ii.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ii.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ii.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ii.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ii.prototype,"cacheName",2);var qa=ii;var ox=[yt,B`
436
436
  :host {
437
437
  --mdc-icon-fill-color: currentColor;
438
438
  --mdc-icon-size: var(--computed-icon-size);
@@ -447,7 +447,7 @@
447
447
  width: 100%;
448
448
  fill: var(--mdc-icon-fill-color);
449
449
  }
450
- `,...Et()],yf=ox;var Xa={},Ef=async a=>(Xa[a]===void 0&&(Xa[a]=new Map),{async set(i,t){Xa[a].set(i.url,await t.text())},async get(i){return Xa[a].get(i.url)},async delete(i){Xa[a].delete(i.url)}}),Tf=async a=>{let i=await caches.open(a);return{set:async(t,e)=>{await i.put(t,e)},get:async t=>{let e=await i.match(t);return e==null?void 0:e.text()},delete:async t=>{await i.delete(t)}}},Dl=async(a,i)=>i==="in-memory-cache"?Ef(a):Tf(a);var xf=async a=>fetch(a).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),Af=async({url:a,name:i,fileExtension:t,cacheStrategy:e,cacheName:o,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${i}.${t}`,{signal:c});return!o||!e||!["in-memory-cache","web-cache-api"].includes(e)?xf(f).then(y=>y.text()):Dl(o,e).then(y=>y.get(f).then(A=>A||xf(f.clone()).then(F=>{var U;return F.status<400&&F.headers.has("content-type")?(U=y.set)==null?void 0:U.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${i}, ${A}`)}))};var Sf=z.constructTagName("icon"),ih={NAME:void 0,SIZE:1};var vr=class extends Z{constructor(){super();this.name=ih.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=_e.consume({host:this,context:qa.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:o,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&o&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Af({url:o,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:ih.SIZE}updated(t){var e,o,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};vr.styles=[...Z.styles,...yf],h([dt()],vr.prototype,"iconData",2),h([dt()],vr.prototype,"lengthUnitFromContext",2),h([dt()],vr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:Number})],vr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],vr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],vr.prototype,"ariaLabelledby",2),h([dt()],vr.prototype,"abortController",2);var oh=vr;oh.register(Sf);var sx=oh;Wo.register(xi);var ax=Wo;var If=B`
450
+ `,...Et()],yf=ox;var Xa={},Ef=async a=>(Xa[a]===void 0&&(Xa[a]=new Map),{async set(i,t){Xa[a].set(i.url,await t.text())},async get(i){return Xa[a].get(i.url)},async delete(i){Xa[a].delete(i.url)}}),Tf=async a=>{let i=await caches.open(a);return{set:async(t,e)=>{await i.put(t,e)},get:async t=>{let e=await i.match(t);return e==null?void 0:e.text()},delete:async t=>{await i.delete(t)}}},Dl=async(a,i)=>i==="in-memory-cache"?Ef(a):Tf(a);var xf=async a=>fetch(a).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),Af=async({url:a,name:i,fileExtension:t,cacheStrategy:e,cacheName:o,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${i}.${t}`,{signal:c});return!o||!e||!["in-memory-cache","web-cache-api"].includes(e)?xf(f).then(y=>y.text()):Dl(o,e).then(y=>y.get(f).then(A=>A||xf(f.clone()).then(F=>{var U;return F.status<400&&F.headers.has("content-type")?(U=y.set)==null?void 0:U.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${i}, ${A}`)}))};var Sf=z.constructTagName("icon"),ih={NAME:void 0,SIZE:1};var vr=class extends Z{constructor(){super();this.name=ih.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=_e.consume({host:this,context:qa.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:o,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&o&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Af({url:o,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:ih.SIZE}updated(t){var e,o,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};vr.styles=[...Z.styles,...yf],h([dt()],vr.prototype,"iconData",2),h([dt()],vr.prototype,"lengthUnitFromContext",2),h([dt()],vr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:Number})],vr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],vr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],vr.prototype,"ariaLabelledby",2),h([dt()],vr.prototype,"abortController",2);var oh=vr;oh.register(Sf);var sx=oh;Yo.register(xi);var ax=Yo;var If=B`
451
451
  :host::part(text) {
452
452
  font-size: unset;
453
453
  font-weight: unset;
@@ -697,7 +697,7 @@
697
697
  display: block;
698
698
  font-family: var(--mdc-text-font-family);
699
699
  }
700
- `,If],_f=nx;var Za=z.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},mt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Oe={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:mt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Yo=class extends Ml(Z){constructor(){super(...arguments);this.type=Oe.TYPE;this.tagname=Oe.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[mt.SPAN,mt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case mt.H1:return S`<h1 part=${Oe.CSS_PART_TEXT}><slot></slot></h1>`;case mt.H2:return S`<h2 part=${Oe.CSS_PART_TEXT}><slot></slot></h2>`;case mt.H3:return S`<h3 part=${Oe.CSS_PART_TEXT}><slot></slot></h3>`;case mt.H4:return S`<h4 part=${Oe.CSS_PART_TEXT}><slot></slot></h4>`;case mt.H5:return S`<h5 part=${Oe.CSS_PART_TEXT}><slot></slot></h5>`;case mt.H6:return S`<h6 part=${Oe.CSS_PART_TEXT}><slot></slot></h6>`;case mt.DIV:return S`<div part=${Oe.CSS_PART_TEXT}><slot></slot></div>`;case mt.SPAN:return S`<span part=${Oe.CSS_PART_TEXT}><slot></slot></span>`;case mt.SMALL:return S`<small part=${Oe.CSS_PART_TEXT}><slot></slot></small>`;case mt.P:default:return S`<p part=${Oe.CSS_PART_TEXT}><slot></slot></p>`}}};Yo.styles=[...Z.styles,..._f],h([Kt(`[part='${Oe.CSS_PART_TEXT}']`)],Yo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],Yo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Yo.prototype,"tagname",2);var sh=Yo;sh.register(Za);var lx=sh;var J=a=>a!=null?a:W;var Re=[];for(let a=0;a<256;++a)Re.push((a+256).toString(16).slice(1));function Cf(a,i=0){return(Re[a[i+0]]+Re[a[i+1]]+Re[a[i+2]]+Re[a[i+3]]+"-"+Re[a[i+4]]+Re[a[i+5]]+"-"+Re[a[i+6]]+Re[a[i+7]]+"-"+Re[a[i+8]]+Re[a[i+9]]+"-"+Re[a[i+10]]+Re[a[i+11]]+Re[a[i+12]]+Re[a[i+13]]+Re[a[i+14]]+Re[a[i+15]]).toLowerCase()}var ah,dx=new Uint8Array(16);function nh(){if(!ah){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ah=crypto.getRandomValues.bind(crypto)}return ah(dx)}var cx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lh={randomUUID:cx};function hx(a,i,t){var o,l,c;if(lh.randomUUID&&!i&&!a)return lh.randomUUID();a=a||{};let e=(c=(l=a.random)!=null?l:(o=a.rng)==null?void 0:o.call(a))!=null?c:nh();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,i){if(t=t||0,t<0||t+16>i.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)i[t+f]=e[f];return i}return Cf(e)}var ze=hx;var kf=z.constructTagName("accordiongroup"),dh={SMALL:"small",LARGE:"large"},px={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Qa={SIZE:dh.SMALL,VARIANT:px.STACKED};var Pl=z.constructTagName("accordionbutton"),Ja={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},mx={DEFAULT:"default",BORDERLESS:"borderless"},tn={LEADING:"leading",TRAILING:"trailing"},oi={EXPANDED:!1,SIZE:dh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:mx.DEFAULT,ICON_NAME:Ja.ARROW_UP,TOGGLE_POSITION:tn.TRAILING};var ux=B`
700
+ `,If],_f=nx;var Za=z.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},mt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Oe={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:mt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var jo=class extends Ml(Z){constructor(){super(...arguments);this.type=Oe.TYPE;this.tagname=Oe.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[mt.SPAN,mt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case mt.H1:return S`<h1 part=${Oe.CSS_PART_TEXT}><slot></slot></h1>`;case mt.H2:return S`<h2 part=${Oe.CSS_PART_TEXT}><slot></slot></h2>`;case mt.H3:return S`<h3 part=${Oe.CSS_PART_TEXT}><slot></slot></h3>`;case mt.H4:return S`<h4 part=${Oe.CSS_PART_TEXT}><slot></slot></h4>`;case mt.H5:return S`<h5 part=${Oe.CSS_PART_TEXT}><slot></slot></h5>`;case mt.H6:return S`<h6 part=${Oe.CSS_PART_TEXT}><slot></slot></h6>`;case mt.DIV:return S`<div part=${Oe.CSS_PART_TEXT}><slot></slot></div>`;case mt.SPAN:return S`<span part=${Oe.CSS_PART_TEXT}><slot></slot></span>`;case mt.SMALL:return S`<small part=${Oe.CSS_PART_TEXT}><slot></slot></small>`;case mt.P:default:return S`<p part=${Oe.CSS_PART_TEXT}><slot></slot></p>`}}};jo.styles=[...Z.styles,..._f],h([Kt(`[part='${Oe.CSS_PART_TEXT}']`)],jo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],jo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],jo.prototype,"tagname",2);var sh=jo;sh.register(Za);var lx=sh;var J=a=>a!=null?a:W;var Re=[];for(let a=0;a<256;++a)Re.push((a+256).toString(16).slice(1));function Cf(a,i=0){return(Re[a[i+0]]+Re[a[i+1]]+Re[a[i+2]]+Re[a[i+3]]+"-"+Re[a[i+4]]+Re[a[i+5]]+"-"+Re[a[i+6]]+Re[a[i+7]]+"-"+Re[a[i+8]]+Re[a[i+9]]+"-"+Re[a[i+10]]+Re[a[i+11]]+Re[a[i+12]]+Re[a[i+13]]+Re[a[i+14]]+Re[a[i+15]]).toLowerCase()}var ah,dx=new Uint8Array(16);function nh(){if(!ah){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ah=crypto.getRandomValues.bind(crypto)}return ah(dx)}var cx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lh={randomUUID:cx};function hx(a,i,t){var o,l,c;if(lh.randomUUID&&!i&&!a)return lh.randomUUID();a=a||{};let e=(c=(l=a.random)!=null?l:(o=a.rng)==null?void 0:o.call(a))!=null?c:nh();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,i){if(t=t||0,t<0||t+16>i.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)i[t+f]=e[f];return i}return Cf(e)}var ze=hx;var kf=z.constructTagName("accordiongroup"),dh={SMALL:"small",LARGE:"large"},px={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Qa={SIZE:dh.SMALL,VARIANT:px.STACKED};var Pl=z.constructTagName("accordionbutton"),Ja={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},mx={DEFAULT:"default",BORDERLESS:"borderless"},tn={LEADING:"leading",TRAILING:"trailing"},oi={EXPANDED:!1,SIZE:dh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:mx.DEFAULT,ICON_NAME:Ja.ARROW_UP,TOGGLE_POSITION:tn.TRAILING};var ux=B`
701
701
  :host {
702
702
  --mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
703
703
  --mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
@@ -1047,7 +1047,7 @@
1047
1047
  --mdc-chip-icon-color: ButtonText;
1048
1048
  }
1049
1049
  }
1050
- `,Lf=[yt,Ex,...Et()];var Of=z.constructTagName("alertchip"),jo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},zs={VARIANT:jo.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Ho[24],ROLE:et.BUTTON};var Rf=a=>({[jo.ERROR]:"error-legacy-badge-filled",[jo.INFORMATIONAL]:"info-badge-filled",[jo.NEUTRAL]:"dnd-presence-badge-filled",[jo.SUCCESS]:"check-circle-badge-filled",[jo.WARNING]:"warning-badge-filled"})[a];var Bs=class extends ce(fe){constructor(){super(...arguments);this.variant=zs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=zs.SIZE,this.role=zs.ROLE}render(){return S`
1050
+ `,Lf=[yt,Ex,...Et()];var Of=z.constructTagName("alertchip"),qo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},zs={VARIANT:qo.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Uo[24],ROLE:et.BUTTON};var Rf=a=>({[qo.ERROR]:"error-legacy-badge-filled",[qo.INFORMATIONAL]:"info-badge-filled",[qo.NEUTRAL]:"dnd-presence-badge-filled",[qo.SUCCESS]:"check-circle-badge-filled",[qo.WARNING]:"warning-badge-filled"})[a];var Bs=class extends ce(fe){constructor(){super(...arguments);this.variant=zs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=zs.SIZE,this.role=zs.ROLE}render(){return S`
1051
1051
  <mdc-icon part="icon" name="${this.iconName||Rf(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1052
1052
  ${this.label?S`<mdc-text part="label" type="${zs.TEXT_TYPE}" tagname="${zs.TAG_NAME}"
1053
1053
  >${this.label}</mdc-text
@@ -1056,7 +1056,7 @@
1056
1056
  :host svg {
1057
1057
  display: block;
1058
1058
  }
1059
- `],Bf=Cx;var Hf=z.constructTagName("animation"),vh={AUTO_PLAY:!0,LOOP:"true"};var Ci=class extends Z{constructor(){super(...arguments);this.loop=vh.LOOP;this.autoplay=vh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=$f();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=Uf.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.name&&fh[this.name]?import(`@momentum-design/animations/dist/lottie${fh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${Vf(this.containerRef)}></div>`}};Ci.styles=[...Z.styles,...Bf],h([u({type:String,reflect:!0})],Ci.prototype,"name",2),h([u({type:String,reflect:!0})],Ci.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],Ci.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],Ci.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Ci.prototype,"ariaLabelledby",2);var gh=Ci;gh.register(Hf);var kx=gh;var Gl=a=>{class i extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(o){this.isFocusTrapActivated=o}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ai.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ai.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=$s(this.shadowRoot))}setInitialFocus(o=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus({preventScroll:!0}))}calculateNextIndex(o,l){let{length:c}=this.focusableElements;if(o===-1)return l>0?0:c-1;let f=o+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((l=o.shadowRoot)!=null&&l.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(o,l))}isEqualFocusNode(o,l){return o.nodeType>=0?l.isEqualNode(o)&&l===o:!1}trapFocus(o){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);o.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(o.preventDefault(),y.focus())}handleTabKeydown(o){this.isFocusTrapActivated&&o.key==="Tab"&&this.trapFocus(o)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Kl=a=>{class i extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Wl=z.constructTagName("link"),Yl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},jl={LARGE:1,MIDSIZE:.875,SMALL:.75},Gf={LINK_SIZE:Yl.LARGE};var Kf=z.constructTagName("card"),bh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},wx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:bh.BORDER,ORIENTATION:wx.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Wl,BUTTON:xi};var Us=a=>{class i extends a{updateFooterButtonColors(e){let o=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];o==null||o.forEach(l=>{e===bh.PROMOTIONAL?l.setAttribute("color",Uo.PROMOTIONAL):l.setAttribute("color",Uo.DEFAULT)})}handleFooterSlot(e,o){var c,f,y;let l=[];e===Ce.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:e===Ce.BUTTON&&o===Vt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:e===Ce.BUTTON&&o===Vt.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(e)||A.remove(),o&&A.setAttribute("variant",o)})}renderFooter(){return S` <slot name="footer">
1059
+ `],Bf=Cx;var Hf=z.constructTagName("animation"),vh={AUTO_PLAY:!0,LOOP:"true"};var Ci=class extends Z{constructor(){super(...arguments);this.loop=vh.LOOP;this.autoplay=vh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=$f();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=Uf.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.name&&fh[this.name]?import(`@momentum-design/animations/dist/lottie${fh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${Vf(this.containerRef)}></div>`}};Ci.styles=[...Z.styles,...Bf],h([u({type:String,reflect:!0})],Ci.prototype,"name",2),h([u({type:String,reflect:!0})],Ci.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],Ci.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],Ci.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Ci.prototype,"ariaLabelledby",2);var gh=Ci;gh.register(Hf);var kx=gh;var Gl=a=>{class i extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(o){this.isFocusTrapActivated=o}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ai.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ai.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=$s(this.shadowRoot))}setInitialFocus(o=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus({preventScroll:!0}))}calculateNextIndex(o,l){let{length:c}=this.focusableElements;if(o===-1)return l>0?0:c-1;let f=o+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((l=o.shadowRoot)!=null&&l.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(o,l))}isEqualFocusNode(o,l){return o.nodeType>=0?l.isEqualNode(o)&&l===o:!1}trapFocus(o){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);o.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(o.preventDefault(),y.focus())}handleTabKeydown(o){this.isFocusTrapActivated&&o.key==="Tab"&&this.trapFocus(o)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Kl=a=>{class i extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Wl=z.constructTagName("link"),Yl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},jl={LARGE:1,MIDSIZE:.875,SMALL:.75},Gf={LINK_SIZE:Yl.LARGE};var Kf=z.constructTagName("card"),bh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},wx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:bh.BORDER,ORIENTATION:wx.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Wl,BUTTON:xi};var Us=a=>{class i extends a{updateFooterButtonColors(e){let o=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];o==null||o.forEach(l=>{e===bh.PROMOTIONAL?l.setAttribute("color",Go.PROMOTIONAL):l.setAttribute("color",Go.DEFAULT)})}handleFooterSlot(e,o){var c,f,y;let l=[];e===Ce.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:e===Ce.BUTTON&&o===Vt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:e===Ce.BUTTON&&o===Vt.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(e)||A.remove(),o&&A.setAttribute("variant",o)})}renderFooter(){return S` <slot name="footer">
1060
1060
  <div part="footer">
1061
1061
  <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Ce.LINK)}></slot>
1062
1062
  <slot
@@ -1650,7 +1650,7 @@
1650
1650
  :host::part(mdc-presence-icon__scheduled) {
1651
1651
  color: var(--mdc-presence-scheduled-background-color);
1652
1652
  }
1653
- `],uv=zx;var fv=a=>{switch(a){case Be.AWAY:return"recents-presence-badge-filled";case Be.AWAY_CALLING:return"away-calling-presence-filled";case Be.BUSY:return"busy-presence-bold";case Be.DND:return"dnd-presence-badge-filled";case Be.MEETING:return"camera-filled";case Be.ON_CALL:return"handset-filled";case Be.ON_DEVICE:return"generic-device-video-badge-filled";case Be.ON_MOBILE:return"phone-badge-filled";case Be.PAUSE:return"pause-badge-filled";case Be.PTO:return"pto-presence-filled";case Be.PRESENTING:return"share-screen-badge-filled";case Be.QUIET:return"quiet-hours-presence-filled";case Be.SCHEDULED:return"meetings-presence-badge-filled";case Be.ACTIVE:default:return"active-presence-small-filled"}},vv=a=>({[he[124]]:2.25,[he[88]]:1.625,[he[72]]:1.3125,[he[64]]:1.1875,[he[48]]:.875,[he[32]]:.875,[he[24]]:.875})[a]||.875;var qo=class extends Z{constructor(){super(...arguments);this.type=js.TYPE;this.size=js.SIZE;this.currentIconType=js.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(he).includes(t)?`${t}`:js.SIZE.toString())}get icon(){let t=fv(this.type);return t==="active-presence-small-filled"&&(this.type=js.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
1653
+ `],uv=zx;var fv=a=>{switch(a){case Be.AWAY:return"recents-presence-badge-filled";case Be.AWAY_CALLING:return"away-calling-presence-filled";case Be.BUSY:return"busy-presence-bold";case Be.DND:return"dnd-presence-badge-filled";case Be.MEETING:return"camera-filled";case Be.ON_CALL:return"handset-filled";case Be.ON_DEVICE:return"generic-device-video-badge-filled";case Be.ON_MOBILE:return"phone-badge-filled";case Be.PAUSE:return"pause-badge-filled";case Be.PTO:return"pto-presence-filled";case Be.PRESENTING:return"share-screen-badge-filled";case Be.QUIET:return"quiet-hours-presence-filled";case Be.SCHEDULED:return"meetings-presence-badge-filled";case Be.ACTIVE:default:return"active-presence-small-filled"}},vv=a=>({[he[124]]:2.25,[he[88]]:1.625,[he[72]]:1.3125,[he[64]]:1.1875,[he[48]]:.875,[he[32]]:.875,[he[24]]:.875})[a]||.875;var Xo=class extends Z{constructor(){super(...arguments);this.type=js.TYPE;this.size=js.SIZE;this.currentIconType=js.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(he).includes(t)?`${t}`:js.SIZE.toString())}get icon(){let t=fv(this.type);return t==="active-presence-small-filled"&&(this.type=js.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
1654
1654
  <div part="presence-content">
1655
1655
  <mdc-icon
1656
1656
  part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -1660,7 +1660,7 @@
1660
1660
  @error="${this.handleOnError}"
1661
1661
  ></mdc-icon>
1662
1662
  </div>
1663
- `}};qo.styles=[...Z.styles,...uv],h([u({type:String,reflect:!0})],qo.prototype,"type",2),h([u({type:Number,reflect:!0})],qo.prototype,"size",2),h([dt()],qo.prototype,"currentIconType",2);var wh=qo;wh.register(cv);var Bx=wh;kh.register(lv);var Hx=kh;var Ux=[yt,B`
1663
+ `}};Xo.styles=[...Z.styles,...uv],h([u({type:String,reflect:!0})],Xo.prototype,"type",2),h([u({type:Number,reflect:!0})],Xo.prototype,"size",2),h([dt()],Xo.prototype,"currentIconType",2);var wh=Xo;wh.register(cv);var Bx=wh;kh.register(lv);var Hx=kh;var Ux=[yt,B`
1664
1664
  :host {
1665
1665
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
1666
1666
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -1818,7 +1818,7 @@
1818
1818
  width: 100%;
1819
1819
  object-fit: contain;
1820
1820
  }
1821
- `,Tv=[Yx];var Xo=class extends Z{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let i=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(i),Promise.reject(i)}updated(i){super.updated(i),i.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),i.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(i,t,e){let c=new DOMParser().parseFromString(i.strings[0],"text/html").querySelector(t);return c&&Object.entries(e).forEach(([f,y])=>{c.setAttribute(f,y)}),c||i}injectHtmlAttributes(i,t){return Object.entries(t).forEach(([e,o])=>{i.setAttribute(e,o)}),i}handleBrandVisualLoadedSuccess(i){this.brandVisualData=this.injectTemplateAttributes(i,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(i){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:i}});this.dispatchEvent(t)}render(){return S` ${this.brandVisualData} `}};Xo.styles=[...Z.styles,...Tv],h([dt()],Xo.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],Xo.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],Xo.prototype,"altText",2);var Oh=Xo;var xv=z.constructTagName("brandvisual");Oh.register(xv);var jx=Oh;var qx=B`
1821
+ `,Tv=[Yx];var Zo=class extends Z{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let i=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(i),Promise.reject(i)}updated(i){super.updated(i),i.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),i.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(i,t,e){let c=new DOMParser().parseFromString(i.strings[0],"text/html").querySelector(t);return c&&Object.entries(e).forEach(([f,y])=>{c.setAttribute(f,y)}),c||i}injectHtmlAttributes(i,t){return Object.entries(t).forEach(([e,o])=>{i.setAttribute(e,o)}),i}handleBrandVisualLoadedSuccess(i){this.brandVisualData=this.injectTemplateAttributes(i,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(i){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:i}});this.dispatchEvent(t)}render(){return S` ${this.brandVisualData} `}};Zo.styles=[...Z.styles,...Tv],h([dt()],Zo.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],Zo.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],Zo.prototype,"altText",2);var Oh=Zo;var xv=z.constructTagName("brandvisual");Oh.register(xv);var jx=Oh;var qx=B`
1822
1822
  :host {
1823
1823
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
1824
1824
  --mdc-bullet-size: 0.25rem;
@@ -2092,7 +2092,7 @@
2092
2092
  ${this.prefixIcon?S`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
2093
2093
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2094
2094
  ${this.postfixIcon?S`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
2095
- `}};Xs.styles=[...Wo.styles,...Nv],h([u({type:Number,reflect:!0})],Xs.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xs.prototype,"softDisabled",2);var Ph=Xs;var Mv=z.constructTagName("buttonlink");Ph.register(Mv);var oA=Ph;var ad=a=>{class i extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ce.VARIANT;this.orientation=Ce.ORIENTATION;this.titleTagName=Ce.TAGNAME;this.subtitleTagName=Ce.TAGNAME}renderImage(){return this.imageSrc?S`<div part="image-wrapper">
2095
+ `}};Xs.styles=[...Yo.styles,...Nv],h([u({type:Number,reflect:!0})],Xs.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xs.prototype,"softDisabled",2);var Ph=Xs;var Mv=z.constructTagName("buttonlink");Ph.register(Mv);var oA=Ph;var ad=a=>{class i extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ce.VARIANT;this.orientation=Ce.ORIENTATION;this.titleTagName=Ce.TAGNAME;this.subtitleTagName=Ce.TAGNAME}renderImage(){return this.imageSrc?S`<div part="image-wrapper">
2096
2096
  <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2097
2097
  </div>`:W}renderIcon(){return this.iconName?S`<mdc-icon
2098
2098
  part="icon"
@@ -2415,7 +2415,7 @@
2415
2415
  --mdc-staticcheckbox-icon-color: GrayText;
2416
2416
  }
2417
2417
  }
2418
- `],Fv=cA;var $v=z.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"},ke={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zo={TONAL:"tonal",CONTRAST:"contrast"},zh={ABSOLUTE:"absolute",FIXED:"fixed"},hA={VIEWPORT:"viewport",DOCUMENT:"document"},bt={PLACEMENT:Mt.BOTTOM,TRIGGER:ke.CLICK,COLOR:Zo.TONAL,STRATEGY:zh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:hA.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},Mi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Vv=z.constructTagName("formfieldwrapper"),qt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Xt={VALIDATION:qt.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:zh.ABSOLUTE},cn={TAGNAME:mt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var zv=z.constructTagName("checkbox"),cd={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Bv={ERROR:qt.ERROR,DEFAULT:qt.DEFAULT};var Hv=z.constructTagName("staticcheckbox");var ho=class extends te(Z){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
2418
+ `],Fv=cA;var $v=z.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"},ke={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Qo={TONAL:"tonal",CONTRAST:"contrast"},zh={ABSOLUTE:"absolute",FIXED:"fixed"},hA={VIEWPORT:"viewport",DOCUMENT:"document"},bt={PLACEMENT:Mt.BOTTOM,TRIGGER:ke.CLICK,COLOR:Qo.TONAL,STRATEGY:zh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:hA.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},Mi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Vv=z.constructTagName("formfieldwrapper"),qt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Xt={VALIDATION:qt.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:zh.ABSOLUTE},cn={TAGNAME:mt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var zv=z.constructTagName("checkbox"),cd={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Bv={ERROR:qt.ERROR,DEFAULT:qt.DEFAULT};var Hv=z.constructTagName("staticcheckbox");var ho=class extends te(Z){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
2419
2419
  <mdc-icon
2420
2420
  part="checkbox-icon"
2421
2421
  name="${this.indeterminate?cd.INDETERMINATE:cd.CHECKED}"
@@ -2584,8 +2584,8 @@
2584
2584
  --mdc-staticradio-outer-circle-background-color: GrayText;
2585
2585
  }
2586
2586
  }
2587
- `],Gv=fA;var Qo=class extends te(Z){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
2588
- <span part="radio-icon" class="radio-icon"></span>`}};Qo.styles=[...Z.styles,...Gv],h([u({type:Boolean,reflect:!0})],Qo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Qo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Qo.prototype,"softDisabled",2);var Uh=Qo;var Kv=z.constructTagName("staticradio");Uh.register(Kv);var vA=Uh;Hh.register(hd);var gA=Hh;var br=Math.min,we=Math.max,pn=Math.round,mn=Math.floor,Br=a=>({x:a,y:a}),bA={left:"right",right:"left",bottom:"top",top:"bottom"},yA={start:"end",end:"start"};function md(a,i,t){return we(a,br(i,t))}function po(a,i){return typeof a=="function"?a(i):a}function Hr(a){return a.split("-")[0]}function Jo(a){return a.split("-")[1]}function Gh(a){return a==="x"?"y":"x"}function ud(a){return a==="y"?"height":"width"}var EA=new Set(["top","bottom"]);function Ur(a){return EA.has(Hr(a))?"y":"x"}function fd(a){return Gh(Ur(a))}function jv(a,i,t){t===void 0&&(t=!1);let e=Jo(a),o=fd(a),l=ud(o),c=o==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[l]>i.floating[l]&&(c=hn(c)),[c,hn(c)]}function qv(a){let i=hn(a);return[pd(a),i,pd(i)]}function pd(a){return a.replace(/start|end/g,i=>yA[i])}var Wv=["left","right"],Yv=["right","left"],TA=["top","bottom"],xA=["bottom","top"];function AA(a,i,t){switch(a){case"top":case"bottom":return t?i?Yv:Wv:i?Wv:Yv;case"left":case"right":return i?TA:xA;default:return[]}}function Xv(a,i,t,e){let o=Jo(a),l=AA(Hr(a),t==="start",e);return o&&(l=l.map(c=>c+"-"+o),i&&(l=l.concat(l.map(pd)))),l}function hn(a){return a.replace(/left|right|bottom|top/g,i=>bA[i])}function SA(a){return{top:0,right:0,bottom:0,left:0,...a}}function vd(a){return typeof a!="number"?SA(a):{top:a,right:a,bottom:a,left:a}}function Li(a){let{x:i,y:t,width:e,height:o}=a;return{width:e,height:o,top:t,left:i,right:i+e,bottom:t+o,x:i,y:t}}function Zv(a,i,t){let{reference:e,floating:o}=a,l=Ur(i),c=fd(i),f=ud(c),y=Hr(i),A=l==="y",F=e.x+e.width/2-o.width/2,U=e.y+e.height/2-o.height/2,Q=e[f]/2-o[f]/2,X;switch(y){case"top":X={x:F,y:e.y-o.height};break;case"bottom":X={x:F,y:e.y+e.height};break;case"right":X={x:e.x+e.width,y:U};break;case"left":X={x:e.x-o.width,y:U};break;default:X={x:e.x,y:e.y}}switch(Jo(i)){case"start":X[c]-=Q*(t&&A?-1:1);break;case"end":X[c]+=Q*(t&&A?-1:1);break}return X}var Qv=async(a,i,t)=>{let{placement:e="bottom",strategy:o="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(i)),A=await c.getElementRects({reference:a,floating:i,strategy:o}),{x:F,y:U}=Zv(A,e,y),Q=e,X={},tt=0;for(let nt=0;nt<f.length;nt++){let{name:at,fn:ft}=f[nt],{x:It,y:_t,data:Ht,reset:$t}=await ft({x:F,y:U,initialPlacement:e,placement:Q,strategy:o,middlewareData:X,rects:A,platform:c,elements:{reference:a,floating:i}});F=It!=null?It:F,U=_t!=null?_t:U,X={...X,[at]:{...X[at],...Ht}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(Q=$t.placement),$t.rects&&(A=$t.rects===!0?await c.getElementRects({reference:a,floating:i,strategy:o}):$t.rects),{x:F,y:U}=Zv(A,Q,y)),nt=-1)}return{x:F,y:U,placement:Q,strategy:o,middlewareData:X}};async function gd(a,i){var t;i===void 0&&(i={});let{x:e,y:o,platform:l,rects:c,elements:f,strategy:y}=a,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:U="floating",altBoundary:Q=!1,padding:X=0}=po(i,a),tt=vd(X),at=f[Q?U==="floating"?"reference":"floating":U],ft=Li(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(at)))==null||t?at:at.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:y})),It=U==="floating"?{x:e,y:o,width:c.floating.width,height:c.floating.height}:c.reference,_t=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Ht=await(l.isElement==null?void 0:l.isElement(_t))?await(l.getScale==null?void 0:l.getScale(_t))||{x:1,y:1}:{x:1,y:1},$t=Li(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:_t,strategy:y}):It);return{top:(ft.top-$t.top+tt.top)/Ht.y,bottom:($t.bottom-ft.bottom+tt.bottom)/Ht.y,left:(ft.left-$t.left+tt.left)/Ht.x,right:($t.right-ft.right+tt.right)/Ht.x}}var Jv=a=>({name:"arrow",options:a,async fn(i){let{x:t,y:e,placement:o,rects:l,platform:c,elements:f,middlewareData:y}=i,{element:A,padding:F=0}=po(a,i)||{};if(A==null)return{};let U=vd(F),Q={x:t,y:e},X=fd(o),tt=ud(X),nt=await c.getDimensions(A),at=X==="y",ft=at?"top":"left",It=at?"bottom":"right",_t=at?"clientHeight":"clientWidth",Ht=l.reference[tt]+l.reference[X]-Q[X]-l.floating[tt],$t=Q[X]-l.reference[X],Ut=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Ot=Ut?Ut[_t]:0;(!Ot||!await(c.isElement==null?void 0:c.isElement(Ut)))&&(Ot=f.floating[_t]||l.floating[tt]);let ae=Ht/2-$t/2,Ue=Ot/2-nt[tt]/2-1,Yt=br(U[ft],Ue),Te=br(U[It],Ue),xe=Yt,Ae=Ot-nt[tt]-Te,kt=Ot/2-nt[tt]/2+ae,oe=md(xe,kt,Ae),Ge=!y.arrow&&Jo(o)!=null&&kt!==oe&&l.reference[tt]/2-(kt<xe?Yt:Te)-nt[tt]/2<0,Qe=Ge?kt<xe?kt-xe:kt-Ae:0;return{[X]:Q[X]+Qe,data:{[X]:oe,centerOffset:kt-oe-Qe,...Ge&&{alignmentOffset:Qe}},reset:Ge}}});var tg=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var t,e;let{placement:o,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=i,{mainAxis:F=!0,crossAxis:U=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:nt=!0,...at}=po(a,i);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ft=Hr(o),It=Ur(f),_t=Hr(f)===f,Ht=await(y.isRTL==null?void 0:y.isRTL(A.floating)),$t=Q||(_t||!nt?[hn(f)]:qv(f)),Ut=tt!=="none";!Q&&Ut&&$t.push(...Xv(f,nt,tt,Ht));let Ot=[f,...$t],ae=await gd(i,at),Ue=[],Yt=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&Ue.push(ae[ft]),U){let kt=jv(o,c,Ht);Ue.push(ae[kt[0]],ae[kt[1]])}if(Yt=[...Yt,{placement:o,overflows:Ue}],!Ue.every(kt=>kt<=0)){var Te,xe;let kt=(((Te=l.flip)==null?void 0:Te.index)||0)+1,oe=Ot[kt];if(oe&&(!(U==="alignment"?It!==Ur(oe):!1)||Yt.every(Je=>Je.overflows[0]>0&&Ur(Je.placement)===It)))return{data:{index:kt,overflows:Yt},reset:{placement:oe}};let Ge=(xe=Yt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:xe.placement;if(!Ge)switch(X){case"bestFit":{var Ae;let Qe=(Ae=Yt.filter(Je=>{if(Ut){let Tr=Ur(Je.placement);return Tr===It||Tr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(Tr=>Tr>0).reduce((Tr,Xn)=>Tr+Xn,0)]).sort((Je,Tr)=>Je[1]-Tr[1])[0])==null?void 0:Ae[0];Qe&&(Ge=Qe);break}case"initialPlacement":Ge=f;break}if(o!==Ge)return{reset:{placement:Ge}}}return{}}}};function eg(a){let i=br(...a.map(l=>l.left)),t=br(...a.map(l=>l.top)),e=we(...a.map(l=>l.right)),o=we(...a.map(l=>l.bottom));return{x:i,y:t,width:e-i,height:o-t}}function IA(a){let i=a.slice().sort((o,l)=>o.y-l.y),t=[],e=null;for(let o=0;o<i.length;o++){let l=i[o];!e||l.y-e.y>e.height/2?t.push([l]):t[t.length-1].push(l),e=l}return t.map(o=>Li(eg(o)))}var rg=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(i){let{placement:t,elements:e,rects:o,platform:l,strategy:c}=i,{padding:f=2,x:y,y:A}=po(a,i),F=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(e.reference))||[]),U=IA(F),Q=Li(eg(F)),X=vd(f);function tt(){if(U.length===2&&U[0].left>U[1].right&&y!=null&&A!=null)return U.find(at=>y>at.left-X.left&&y<at.right+X.right&&A>at.top-X.top&&A<at.bottom+X.bottom)||Q;if(U.length>=2){if(Ur(t)==="y"){let Yt=U[0],Te=U[U.length-1],xe=Hr(t)==="top",Ae=Yt.top,kt=Te.bottom,oe=xe?Yt.left:Te.left,Ge=xe?Yt.right:Te.right,Qe=Ge-oe,Je=kt-Ae;return{top:Ae,bottom:kt,left:oe,right:Ge,width:Qe,height:Je,x:oe,y:Ae}}let at=Hr(t)==="left",ft=we(...U.map(Yt=>Yt.right)),It=br(...U.map(Yt=>Yt.left)),_t=U.filter(Yt=>at?Yt.left===It:Yt.right===ft),Ht=_t[0].top,$t=_t[_t.length-1].bottom,Ut=It,Ot=ft,ae=Ot-Ut,Ue=$t-Ht;return{top:Ht,bottom:$t,left:Ut,right:Ot,width:ae,height:Ue,x:Ut,y:Ht}}return Q}let nt=await l.getElementRects({reference:{getBoundingClientRect:tt},floating:e.floating,strategy:c});return o.reference.x!==nt.reference.x||o.reference.y!==nt.reference.y||o.reference.width!==nt.reference.width||o.reference.height!==nt.reference.height?{reset:{rects:nt}}:{}}}},_A=new Set(["left","top"]);async function CA(a,i){let{placement:t,platform:e,elements:o}=a,l=await(e.isRTL==null?void 0:e.isRTL(o.floating)),c=Hr(t),f=Jo(t),y=Ur(t)==="y",A=_A.has(c)?-1:1,F=l&&y?-1:1,U=po(i,a),{mainAxis:Q,crossAxis:X,alignmentAxis:tt}=typeof U=="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return f&&typeof tt=="number"&&(X=f==="end"?tt*-1:tt),y?{x:X*F,y:Q*A}:{x:Q*A,y:X*F}}var ig=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var t,e;let{x:o,y:l,placement:c,middlewareData:f}=i,y=await CA(i,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:o+y.x,y:l+y.y,data:{...y,placement:c}}}}},og=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){let{x:t,y:e,placement:o}=i,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:at=>{let{x:ft,y:It}=at;return{x:ft,y:It}}},...y}=po(a,i),A={x:t,y:e},F=await gd(i,y),U=Ur(Hr(o)),Q=Gh(U),X=A[Q],tt=A[U];if(l){let at=Q==="y"?"top":"left",ft=Q==="y"?"bottom":"right",It=X+F[at],_t=X-F[ft];X=md(It,X,_t)}if(c){let at=U==="y"?"top":"left",ft=U==="y"?"bottom":"right",It=tt+F[at],_t=tt-F[ft];tt=md(It,tt,_t)}let nt=f.fn({...i,[Q]:X,[U]:tt});return{...nt,data:{x:nt.x-t,y:nt.y-e,enabled:{[Q]:l,[U]:c}}}}}};var sg=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var t,e;let{placement:o,rects:l,platform:c,elements:f}=i,{apply:y=()=>{},...A}=po(a,i),F=await gd(i,A),U=Hr(o),Q=Jo(o),X=Ur(o)==="y",{width:tt,height:nt}=l.floating,at,ft;U==="top"||U==="bottom"?(at=U,ft=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ft=U,at=Q==="end"?"top":"bottom");let It=nt-F.top-F.bottom,_t=tt-F.left-F.right,Ht=br(nt-F[at],It),$t=br(tt-F[ft],_t),Ut=!i.middlewareData.shift,Ot=Ht,ae=$t;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ae=_t),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(Ot=It),Ut&&!Q){let Yt=we(F.left,0),Te=we(F.right,0),xe=we(F.top,0),Ae=we(F.bottom,0);X?ae=tt-2*(Yt!==0||Te!==0?Yt+Te:we(F.left,F.right)):Ot=nt-2*(xe!==0||Ae!==0?xe+Ae:we(F.top,F.bottom))}await y({...i,availableWidth:ae,availableHeight:Ot});let Ue=await c.getDimensions(f.floating);return tt!==Ue.width||nt!==Ue.height?{reset:{rects:!0}}:{}}}};function bd(){return typeof window<"u"}function ts(a){return ng(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function Gr(a){var i;return(i=(ng(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function ng(a){return bd()?a instanceof Node||a instanceof ar(a).Node:!1}function kr(a){return bd()?a instanceof Element||a instanceof ar(a).Element:!1}function Kr(a){return bd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function ag(a){return!bd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var kA=new Set(["inline","contents"]);function ta(a){let{overflow:i,overflowX:t,overflowY:e,display:o}=wr(a);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!kA.has(o)}var wA=new Set(["table","td","th"]);function lg(a){return wA.has(ts(a))}var NA=[":popover-open",":modal"];function un(a){return NA.some(i=>{try{return a.matches(i)}catch{return!1}})}var MA=["transform","translate","scale","rotate","perspective"],LA=["transform","translate","scale","rotate","perspective","filter"],OA=["paint","layout","strict","content"];function yd(a){let i=Ed(),t=kr(a)?wr(a):a;return MA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||LA.some(e=>(t.willChange||"").includes(e))||OA.some(e=>(t.contain||"").includes(e))}function dg(a){let i=Oi(a);for(;Kr(i)&&!es(i);){if(yd(i))return i;if(un(i))return null;i=Oi(i)}return null}function Ed(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var RA=new Set(["html","body","#document"]);function es(a){return RA.has(ts(a))}function wr(a){return ar(a).getComputedStyle(a)}function fn(a){return kr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Oi(a){if(ts(a)==="html")return a;let i=a.assignedSlot||a.parentNode||ag(a)&&a.host||Gr(a);return ag(i)?i.host:i}function cg(a){let i=Oi(a);return es(i)?a.ownerDocument?a.ownerDocument.body:a.body:Kr(i)&&ta(i)?i:cg(i)}function Js(a,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let o=cg(a),l=o===((e=a.ownerDocument)==null?void 0:e.body),c=ar(o);if(l){let f=Td(c);return i.concat(c,c.visualViewport||[],ta(o)?o:[],f&&t?Js(f):[])}return i.concat(o,Js(o,[],t))}function Td(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function mg(a){let i=wr(a),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,o=Kr(a),l=o?a.offsetWidth:t,c=o?a.offsetHeight:e,f=pn(t)!==l||pn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Wh(a){return kr(a)?a:a.contextElement}function ea(a){let i=Wh(a);if(!Kr(i))return Br(1);let t=i.getBoundingClientRect(),{width:e,height:o,$:l}=mg(i),c=(l?pn(t.width):t.width)/e,f=(l?pn(t.height):t.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var DA=Br(0);function ug(a){let i=ar(a);return!Ed()||!i.visualViewport?DA:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function PA(a,i,t){return i===void 0&&(i=!1),!t||i&&t!==ar(a)?!1:i}function rs(a,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let o=a.getBoundingClientRect(),l=Wh(a),c=Br(1);i&&(e?kr(e)&&(c=ea(e)):c=ea(a));let f=PA(l,t,e)?ug(l):Br(0),y=(o.left+f.x)/c.x,A=(o.top+f.y)/c.y,F=o.width/c.x,U=o.height/c.y;if(l){let Q=ar(l),X=e&&kr(e)?ar(e):e,tt=Q,nt=Td(tt);for(;nt&&e&&X!==tt;){let at=ea(nt),ft=nt.getBoundingClientRect(),It=wr(nt),_t=ft.left+(nt.clientLeft+parseFloat(It.paddingLeft))*at.x,Ht=ft.top+(nt.clientTop+parseFloat(It.paddingTop))*at.y;y*=at.x,A*=at.y,F*=at.x,U*=at.y,y+=_t,A+=Ht,tt=ar(nt),nt=Td(tt)}}return Li({width:F,height:U,x:y,y:A})}function Yh(a,i){let t=fn(a).scrollLeft;return i?i.left+t:rs(Gr(a)).left+t}function fg(a,i,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),o=e.left+i.scrollLeft-(t?0:Yh(a,e)),l=e.top+i.scrollTop;return{x:o,y:l}}function FA(a){let{elements:i,rect:t,offsetParent:e,strategy:o}=a,l=o==="fixed",c=Gr(e),f=i?un(i.floating):!1;if(e===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=Br(1),F=Br(0),U=Kr(e);if((U||!U&&!l)&&((ts(e)!=="body"||ta(c))&&(y=fn(e)),Kr(e))){let X=rs(e);A=ea(e),F.x=X.x+e.clientLeft,F.y=X.y+e.clientTop}let Q=c&&!U&&!l?fg(c,y,!0):Br(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+F.y+Q.y}}function $A(a){return Array.from(a.getClientRects())}function VA(a){let i=Gr(a),t=fn(a),e=a.ownerDocument.body,o=we(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),l=we(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Yh(a),f=-t.scrollTop;return wr(e).direction==="rtl"&&(c+=we(i.clientWidth,e.clientWidth)-o),{width:o,height:l,x:c,y:f}}function zA(a,i){let t=ar(a),e=Gr(a),o=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,y=0;if(o){l=o.width,c=o.height;let A=Ed();(!A||A&&i==="fixed")&&(f=o.offsetLeft,y=o.offsetTop)}return{width:l,height:c,x:f,y}}var BA=new Set(["absolute","fixed"]);function HA(a,i){let t=rs(a,!0,i==="fixed"),e=t.top+a.clientTop,o=t.left+a.clientLeft,l=Kr(a)?ea(a):Br(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,y=o*l.x,A=e*l.y;return{width:c,height:f,x:y,y:A}}function hg(a,i,t){let e;if(i==="viewport")e=zA(a,t);else if(i==="document")e=VA(Gr(a));else if(kr(i))e=HA(i,t);else{let o=ug(a);e={x:i.x-o.x,y:i.y-o.y,width:i.width,height:i.height}}return Li(e)}function vg(a,i){let t=Oi(a);return t===i||!kr(t)||es(t)?!1:wr(t).position==="fixed"||vg(t,i)}function UA(a,i){let t=i.get(a);if(t)return t;let e=Js(a,[],!1).filter(f=>kr(f)&&ts(f)!=="body"),o=null,l=wr(a).position==="fixed",c=l?Oi(a):a;for(;kr(c)&&!es(c);){let f=wr(c),y=yd(c);!y&&f.position==="fixed"&&(o=null),(l?!y&&!o:!y&&f.position==="static"&&!!o&&BA.has(o.position)||ta(c)&&!y&&vg(a,c))?e=e.filter(F=>F!==c):o=f,c=Oi(c)}return i.set(a,e),e}function GA(a){let{element:i,boundary:t,rootBoundary:e,strategy:o}=a,c=[...t==="clippingAncestors"?un(i)?[]:UA(i,this._c):[].concat(t),e],f=c[0],y=c.reduce((A,F)=>{let U=hg(i,F,o);return A.top=we(U.top,A.top),A.right=br(U.right,A.right),A.bottom=br(U.bottom,A.bottom),A.left=we(U.left,A.left),A},hg(i,f,o));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function KA(a){let{width:i,height:t}=mg(a);return{width:i,height:t}}function WA(a,i,t){let e=Kr(i),o=Gr(i),l=t==="fixed",c=rs(a,!0,l,i),f={scrollLeft:0,scrollTop:0},y=Br(0);function A(){y.x=Yh(o)}if(e||!e&&!l)if((ts(i)!=="body"||ta(o))&&(f=fn(i)),e){let X=rs(i,!0,l,i);y.x=X.x+i.clientLeft,y.y=X.y+i.clientTop}else o&&A();l&&!e&&o&&A();let F=o&&!e&&!l?fg(o,f):Br(0),U=c.left+f.scrollLeft-y.x-F.x,Q=c.top+f.scrollTop-y.y-F.y;return{x:U,y:Q,width:c.width,height:c.height}}function Kh(a){return wr(a).position==="static"}function pg(a,i){if(!Kr(a)||wr(a).position==="fixed")return null;if(i)return i(a);let t=a.offsetParent;return Gr(a)===t&&(t=t.ownerDocument.body),t}function gg(a,i){let t=ar(a);if(un(a))return t;if(!Kr(a)){let o=Oi(a);for(;o&&!es(o);){if(kr(o)&&!Kh(o))return o;o=Oi(o)}return t}let e=pg(a,i);for(;e&&lg(e)&&Kh(e);)e=pg(e,i);return e&&es(e)&&Kh(e)&&!yd(e)?t:e||dg(a)||t}var YA=async function(a){let i=this.getOffsetParent||gg,t=this.getDimensions,e=await t(a.floating);return{reference:WA(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function jA(a){return wr(a).direction==="rtl"}var qA={convertOffsetParentRelativeRectToViewportRelativeRect:FA,getDocumentElement:Gr,getClippingRect:GA,getOffsetParent:gg,getElementRects:YA,getClientRects:$A,getDimensions:KA,getScale:ea,isElement:kr,isRTL:jA};function bg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function XA(a,i){let t=null,e,o=Gr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=a.getBoundingClientRect(),{left:F,top:U,width:Q,height:X}=A;if(f||i(),!Q||!X)return;let tt=mn(U),nt=mn(o.clientWidth-(F+Q)),at=mn(o.clientHeight-(U+X)),ft=mn(F),_t={rootMargin:-tt+"px "+-nt+"px "+-at+"px "+-ft+"px",threshold:we(0,br(1,y))||1},Ht=!0;function $t(Ut){let Ot=Ut[0].intersectionRatio;if(Ot!==y){if(!Ht)return c();Ot?c(!1,Ot):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Ot===1&&!bg(A,a.getBoundingClientRect())&&c(),Ht=!1}try{t=new IntersectionObserver($t,{..._t,root:o.ownerDocument})}catch{t=new IntersectionObserver($t,_t)}t.observe(a)}return c(!0),l}function yg(a,i,t,e){e===void 0&&(e={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,A=Wh(a),F=o||l?[...A?Js(A):[],...Js(i)]:[];F.forEach(ft=>{o&&ft.addEventListener("scroll",t,{passive:!0}),l&&ft.addEventListener("resize",t)});let U=A&&f?XA(A,t):null,Q=-1,X=null;c&&(X=new ResizeObserver(ft=>{let[It]=ft;It&&It.target===A&&X&&(X.unobserve(i),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var _t;(_t=X)==null||_t.observe(i)})),t()}),A&&!y&&X.observe(A),X.observe(i));let tt,nt=y?rs(a):null;y&&at();function at(){let ft=rs(a);nt&&!bg(nt,ft)&&t(),nt=ft,tt=requestAnimationFrame(at)}return t(),()=>{var ft;F.forEach(It=>{o&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),U==null||U(),(ft=X)==null||ft.disconnect(),X=null,y&&cancelAnimationFrame(tt)}}var Eg=ig;var Tg=og,xg=tg,Ag=sg;var Sg=Jv,Ig=rg;var _g=(a,i,t)=>{let e=new Map,o={platform:qA,...t},l={...o.platform,_c:e};return Qv(a,i,{...o,platform:l})};var xd=class{constructor(i){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;i.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(i,t,e,...o){this.nameToIntervalId.has(i)&&clearInterval(this.nameToIntervalId.get(i));let l=window.setInterval(t,e,...o);return this.nameToIntervalId.set(i,l),l}clearInterval(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,i);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(i,t,e,...o){this.nameToTimeoutId.has(i)&&clearTimeout(this.nameToTimeoutId.get(i));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(i)},e,...o);return this.nameToTimeoutId.set(i,l),l}clearTimeout(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,i);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(i,t){var e;if(typeof t=="number"){let o=t;return[(e=[...i.entries()].find(([,c])=>c===t))==null?void 0:e[0],o]}return[t,i.get(t)]}};var Ri=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var ZA=B`
2587
+ `],Gv=fA;var Jo=class extends te(Z){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
2588
+ <span part="radio-icon" class="radio-icon"></span>`}};Jo.styles=[...Z.styles,...Gv],h([u({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Jo.prototype,"softDisabled",2);var Uh=Jo;var Kv=z.constructTagName("staticradio");Uh.register(Kv);var vA=Uh;Hh.register(hd);var gA=Hh;var br=Math.min,we=Math.max,pn=Math.round,mn=Math.floor,Br=a=>({x:a,y:a}),bA={left:"right",right:"left",bottom:"top",top:"bottom"},yA={start:"end",end:"start"};function md(a,i,t){return we(a,br(i,t))}function po(a,i){return typeof a=="function"?a(i):a}function Hr(a){return a.split("-")[0]}function ts(a){return a.split("-")[1]}function Gh(a){return a==="x"?"y":"x"}function ud(a){return a==="y"?"height":"width"}var EA=new Set(["top","bottom"]);function Ur(a){return EA.has(Hr(a))?"y":"x"}function fd(a){return Gh(Ur(a))}function jv(a,i,t){t===void 0&&(t=!1);let e=ts(a),o=fd(a),l=ud(o),c=o==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[l]>i.floating[l]&&(c=hn(c)),[c,hn(c)]}function qv(a){let i=hn(a);return[pd(a),i,pd(i)]}function pd(a){return a.replace(/start|end/g,i=>yA[i])}var Wv=["left","right"],Yv=["right","left"],TA=["top","bottom"],xA=["bottom","top"];function AA(a,i,t){switch(a){case"top":case"bottom":return t?i?Yv:Wv:i?Wv:Yv;case"left":case"right":return i?TA:xA;default:return[]}}function Xv(a,i,t,e){let o=ts(a),l=AA(Hr(a),t==="start",e);return o&&(l=l.map(c=>c+"-"+o),i&&(l=l.concat(l.map(pd)))),l}function hn(a){return a.replace(/left|right|bottom|top/g,i=>bA[i])}function SA(a){return{top:0,right:0,bottom:0,left:0,...a}}function vd(a){return typeof a!="number"?SA(a):{top:a,right:a,bottom:a,left:a}}function Li(a){let{x:i,y:t,width:e,height:o}=a;return{width:e,height:o,top:t,left:i,right:i+e,bottom:t+o,x:i,y:t}}function Zv(a,i,t){let{reference:e,floating:o}=a,l=Ur(i),c=fd(i),f=ud(c),y=Hr(i),A=l==="y",F=e.x+e.width/2-o.width/2,U=e.y+e.height/2-o.height/2,Q=e[f]/2-o[f]/2,X;switch(y){case"top":X={x:F,y:e.y-o.height};break;case"bottom":X={x:F,y:e.y+e.height};break;case"right":X={x:e.x+e.width,y:U};break;case"left":X={x:e.x-o.width,y:U};break;default:X={x:e.x,y:e.y}}switch(ts(i)){case"start":X[c]-=Q*(t&&A?-1:1);break;case"end":X[c]+=Q*(t&&A?-1:1);break}return X}var Qv=async(a,i,t)=>{let{placement:e="bottom",strategy:o="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(i)),A=await c.getElementRects({reference:a,floating:i,strategy:o}),{x:F,y:U}=Zv(A,e,y),Q=e,X={},tt=0;for(let nt=0;nt<f.length;nt++){let{name:at,fn:ft}=f[nt],{x:It,y:_t,data:Ht,reset:$t}=await ft({x:F,y:U,initialPlacement:e,placement:Q,strategy:o,middlewareData:X,rects:A,platform:c,elements:{reference:a,floating:i}});F=It!=null?It:F,U=_t!=null?_t:U,X={...X,[at]:{...X[at],...Ht}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(Q=$t.placement),$t.rects&&(A=$t.rects===!0?await c.getElementRects({reference:a,floating:i,strategy:o}):$t.rects),{x:F,y:U}=Zv(A,Q,y)),nt=-1)}return{x:F,y:U,placement:Q,strategy:o,middlewareData:X}};async function gd(a,i){var t;i===void 0&&(i={});let{x:e,y:o,platform:l,rects:c,elements:f,strategy:y}=a,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:U="floating",altBoundary:Q=!1,padding:X=0}=po(i,a),tt=vd(X),at=f[Q?U==="floating"?"reference":"floating":U],ft=Li(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(at)))==null||t?at:at.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:y})),It=U==="floating"?{x:e,y:o,width:c.floating.width,height:c.floating.height}:c.reference,_t=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Ht=await(l.isElement==null?void 0:l.isElement(_t))?await(l.getScale==null?void 0:l.getScale(_t))||{x:1,y:1}:{x:1,y:1},$t=Li(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:_t,strategy:y}):It);return{top:(ft.top-$t.top+tt.top)/Ht.y,bottom:($t.bottom-ft.bottom+tt.bottom)/Ht.y,left:(ft.left-$t.left+tt.left)/Ht.x,right:($t.right-ft.right+tt.right)/Ht.x}}var Jv=a=>({name:"arrow",options:a,async fn(i){let{x:t,y:e,placement:o,rects:l,platform:c,elements:f,middlewareData:y}=i,{element:A,padding:F=0}=po(a,i)||{};if(A==null)return{};let U=vd(F),Q={x:t,y:e},X=fd(o),tt=ud(X),nt=await c.getDimensions(A),at=X==="y",ft=at?"top":"left",It=at?"bottom":"right",_t=at?"clientHeight":"clientWidth",Ht=l.reference[tt]+l.reference[X]-Q[X]-l.floating[tt],$t=Q[X]-l.reference[X],Ut=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Ot=Ut?Ut[_t]:0;(!Ot||!await(c.isElement==null?void 0:c.isElement(Ut)))&&(Ot=f.floating[_t]||l.floating[tt]);let ae=Ht/2-$t/2,Ue=Ot/2-nt[tt]/2-1,Yt=br(U[ft],Ue),Te=br(U[It],Ue),xe=Yt,Ae=Ot-nt[tt]-Te,kt=Ot/2-nt[tt]/2+ae,oe=md(xe,kt,Ae),Ge=!y.arrow&&ts(o)!=null&&kt!==oe&&l.reference[tt]/2-(kt<xe?Yt:Te)-nt[tt]/2<0,Qe=Ge?kt<xe?kt-xe:kt-Ae:0;return{[X]:Q[X]+Qe,data:{[X]:oe,centerOffset:kt-oe-Qe,...Ge&&{alignmentOffset:Qe}},reset:Ge}}});var tg=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var t,e;let{placement:o,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=i,{mainAxis:F=!0,crossAxis:U=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:nt=!0,...at}=po(a,i);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ft=Hr(o),It=Ur(f),_t=Hr(f)===f,Ht=await(y.isRTL==null?void 0:y.isRTL(A.floating)),$t=Q||(_t||!nt?[hn(f)]:qv(f)),Ut=tt!=="none";!Q&&Ut&&$t.push(...Xv(f,nt,tt,Ht));let Ot=[f,...$t],ae=await gd(i,at),Ue=[],Yt=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&Ue.push(ae[ft]),U){let kt=jv(o,c,Ht);Ue.push(ae[kt[0]],ae[kt[1]])}if(Yt=[...Yt,{placement:o,overflows:Ue}],!Ue.every(kt=>kt<=0)){var Te,xe;let kt=(((Te=l.flip)==null?void 0:Te.index)||0)+1,oe=Ot[kt];if(oe&&(!(U==="alignment"?It!==Ur(oe):!1)||Yt.every(Je=>Je.overflows[0]>0&&Ur(Je.placement)===It)))return{data:{index:kt,overflows:Yt},reset:{placement:oe}};let Ge=(xe=Yt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:xe.placement;if(!Ge)switch(X){case"bestFit":{var Ae;let Qe=(Ae=Yt.filter(Je=>{if(Ut){let Tr=Ur(Je.placement);return Tr===It||Tr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(Tr=>Tr>0).reduce((Tr,Xn)=>Tr+Xn,0)]).sort((Je,Tr)=>Je[1]-Tr[1])[0])==null?void 0:Ae[0];Qe&&(Ge=Qe);break}case"initialPlacement":Ge=f;break}if(o!==Ge)return{reset:{placement:Ge}}}return{}}}};function eg(a){let i=br(...a.map(l=>l.left)),t=br(...a.map(l=>l.top)),e=we(...a.map(l=>l.right)),o=we(...a.map(l=>l.bottom));return{x:i,y:t,width:e-i,height:o-t}}function IA(a){let i=a.slice().sort((o,l)=>o.y-l.y),t=[],e=null;for(let o=0;o<i.length;o++){let l=i[o];!e||l.y-e.y>e.height/2?t.push([l]):t[t.length-1].push(l),e=l}return t.map(o=>Li(eg(o)))}var rg=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(i){let{placement:t,elements:e,rects:o,platform:l,strategy:c}=i,{padding:f=2,x:y,y:A}=po(a,i),F=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(e.reference))||[]),U=IA(F),Q=Li(eg(F)),X=vd(f);function tt(){if(U.length===2&&U[0].left>U[1].right&&y!=null&&A!=null)return U.find(at=>y>at.left-X.left&&y<at.right+X.right&&A>at.top-X.top&&A<at.bottom+X.bottom)||Q;if(U.length>=2){if(Ur(t)==="y"){let Yt=U[0],Te=U[U.length-1],xe=Hr(t)==="top",Ae=Yt.top,kt=Te.bottom,oe=xe?Yt.left:Te.left,Ge=xe?Yt.right:Te.right,Qe=Ge-oe,Je=kt-Ae;return{top:Ae,bottom:kt,left:oe,right:Ge,width:Qe,height:Je,x:oe,y:Ae}}let at=Hr(t)==="left",ft=we(...U.map(Yt=>Yt.right)),It=br(...U.map(Yt=>Yt.left)),_t=U.filter(Yt=>at?Yt.left===It:Yt.right===ft),Ht=_t[0].top,$t=_t[_t.length-1].bottom,Ut=It,Ot=ft,ae=Ot-Ut,Ue=$t-Ht;return{top:Ht,bottom:$t,left:Ut,right:Ot,width:ae,height:Ue,x:Ut,y:Ht}}return Q}let nt=await l.getElementRects({reference:{getBoundingClientRect:tt},floating:e.floating,strategy:c});return o.reference.x!==nt.reference.x||o.reference.y!==nt.reference.y||o.reference.width!==nt.reference.width||o.reference.height!==nt.reference.height?{reset:{rects:nt}}:{}}}},_A=new Set(["left","top"]);async function CA(a,i){let{placement:t,platform:e,elements:o}=a,l=await(e.isRTL==null?void 0:e.isRTL(o.floating)),c=Hr(t),f=ts(t),y=Ur(t)==="y",A=_A.has(c)?-1:1,F=l&&y?-1:1,U=po(i,a),{mainAxis:Q,crossAxis:X,alignmentAxis:tt}=typeof U=="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return f&&typeof tt=="number"&&(X=f==="end"?tt*-1:tt),y?{x:X*F,y:Q*A}:{x:Q*A,y:X*F}}var ig=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var t,e;let{x:o,y:l,placement:c,middlewareData:f}=i,y=await CA(i,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:o+y.x,y:l+y.y,data:{...y,placement:c}}}}},og=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){let{x:t,y:e,placement:o}=i,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:at=>{let{x:ft,y:It}=at;return{x:ft,y:It}}},...y}=po(a,i),A={x:t,y:e},F=await gd(i,y),U=Ur(Hr(o)),Q=Gh(U),X=A[Q],tt=A[U];if(l){let at=Q==="y"?"top":"left",ft=Q==="y"?"bottom":"right",It=X+F[at],_t=X-F[ft];X=md(It,X,_t)}if(c){let at=U==="y"?"top":"left",ft=U==="y"?"bottom":"right",It=tt+F[at],_t=tt-F[ft];tt=md(It,tt,_t)}let nt=f.fn({...i,[Q]:X,[U]:tt});return{...nt,data:{x:nt.x-t,y:nt.y-e,enabled:{[Q]:l,[U]:c}}}}}};var sg=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var t,e;let{placement:o,rects:l,platform:c,elements:f}=i,{apply:y=()=>{},...A}=po(a,i),F=await gd(i,A),U=Hr(o),Q=ts(o),X=Ur(o)==="y",{width:tt,height:nt}=l.floating,at,ft;U==="top"||U==="bottom"?(at=U,ft=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ft=U,at=Q==="end"?"top":"bottom");let It=nt-F.top-F.bottom,_t=tt-F.left-F.right,Ht=br(nt-F[at],It),$t=br(tt-F[ft],_t),Ut=!i.middlewareData.shift,Ot=Ht,ae=$t;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ae=_t),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(Ot=It),Ut&&!Q){let Yt=we(F.left,0),Te=we(F.right,0),xe=we(F.top,0),Ae=we(F.bottom,0);X?ae=tt-2*(Yt!==0||Te!==0?Yt+Te:we(F.left,F.right)):Ot=nt-2*(xe!==0||Ae!==0?xe+Ae:we(F.top,F.bottom))}await y({...i,availableWidth:ae,availableHeight:Ot});let Ue=await c.getDimensions(f.floating);return tt!==Ue.width||nt!==Ue.height?{reset:{rects:!0}}:{}}}};function bd(){return typeof window<"u"}function es(a){return ng(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function Gr(a){var i;return(i=(ng(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function ng(a){return bd()?a instanceof Node||a instanceof ar(a).Node:!1}function kr(a){return bd()?a instanceof Element||a instanceof ar(a).Element:!1}function Kr(a){return bd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function ag(a){return!bd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var kA=new Set(["inline","contents"]);function ta(a){let{overflow:i,overflowX:t,overflowY:e,display:o}=wr(a);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!kA.has(o)}var wA=new Set(["table","td","th"]);function lg(a){return wA.has(es(a))}var NA=[":popover-open",":modal"];function un(a){return NA.some(i=>{try{return a.matches(i)}catch{return!1}})}var MA=["transform","translate","scale","rotate","perspective"],LA=["transform","translate","scale","rotate","perspective","filter"],OA=["paint","layout","strict","content"];function yd(a){let i=Ed(),t=kr(a)?wr(a):a;return MA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||LA.some(e=>(t.willChange||"").includes(e))||OA.some(e=>(t.contain||"").includes(e))}function dg(a){let i=Oi(a);for(;Kr(i)&&!rs(i);){if(yd(i))return i;if(un(i))return null;i=Oi(i)}return null}function Ed(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var RA=new Set(["html","body","#document"]);function rs(a){return RA.has(es(a))}function wr(a){return ar(a).getComputedStyle(a)}function fn(a){return kr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Oi(a){if(es(a)==="html")return a;let i=a.assignedSlot||a.parentNode||ag(a)&&a.host||Gr(a);return ag(i)?i.host:i}function cg(a){let i=Oi(a);return rs(i)?a.ownerDocument?a.ownerDocument.body:a.body:Kr(i)&&ta(i)?i:cg(i)}function Js(a,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let o=cg(a),l=o===((e=a.ownerDocument)==null?void 0:e.body),c=ar(o);if(l){let f=Td(c);return i.concat(c,c.visualViewport||[],ta(o)?o:[],f&&t?Js(f):[])}return i.concat(o,Js(o,[],t))}function Td(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function mg(a){let i=wr(a),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,o=Kr(a),l=o?a.offsetWidth:t,c=o?a.offsetHeight:e,f=pn(t)!==l||pn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Wh(a){return kr(a)?a:a.contextElement}function ea(a){let i=Wh(a);if(!Kr(i))return Br(1);let t=i.getBoundingClientRect(),{width:e,height:o,$:l}=mg(i),c=(l?pn(t.width):t.width)/e,f=(l?pn(t.height):t.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var DA=Br(0);function ug(a){let i=ar(a);return!Ed()||!i.visualViewport?DA:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function PA(a,i,t){return i===void 0&&(i=!1),!t||i&&t!==ar(a)?!1:i}function is(a,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let o=a.getBoundingClientRect(),l=Wh(a),c=Br(1);i&&(e?kr(e)&&(c=ea(e)):c=ea(a));let f=PA(l,t,e)?ug(l):Br(0),y=(o.left+f.x)/c.x,A=(o.top+f.y)/c.y,F=o.width/c.x,U=o.height/c.y;if(l){let Q=ar(l),X=e&&kr(e)?ar(e):e,tt=Q,nt=Td(tt);for(;nt&&e&&X!==tt;){let at=ea(nt),ft=nt.getBoundingClientRect(),It=wr(nt),_t=ft.left+(nt.clientLeft+parseFloat(It.paddingLeft))*at.x,Ht=ft.top+(nt.clientTop+parseFloat(It.paddingTop))*at.y;y*=at.x,A*=at.y,F*=at.x,U*=at.y,y+=_t,A+=Ht,tt=ar(nt),nt=Td(tt)}}return Li({width:F,height:U,x:y,y:A})}function Yh(a,i){let t=fn(a).scrollLeft;return i?i.left+t:is(Gr(a)).left+t}function fg(a,i,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),o=e.left+i.scrollLeft-(t?0:Yh(a,e)),l=e.top+i.scrollTop;return{x:o,y:l}}function FA(a){let{elements:i,rect:t,offsetParent:e,strategy:o}=a,l=o==="fixed",c=Gr(e),f=i?un(i.floating):!1;if(e===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=Br(1),F=Br(0),U=Kr(e);if((U||!U&&!l)&&((es(e)!=="body"||ta(c))&&(y=fn(e)),Kr(e))){let X=is(e);A=ea(e),F.x=X.x+e.clientLeft,F.y=X.y+e.clientTop}let Q=c&&!U&&!l?fg(c,y,!0):Br(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+F.y+Q.y}}function $A(a){return Array.from(a.getClientRects())}function VA(a){let i=Gr(a),t=fn(a),e=a.ownerDocument.body,o=we(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),l=we(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Yh(a),f=-t.scrollTop;return wr(e).direction==="rtl"&&(c+=we(i.clientWidth,e.clientWidth)-o),{width:o,height:l,x:c,y:f}}function zA(a,i){let t=ar(a),e=Gr(a),o=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,y=0;if(o){l=o.width,c=o.height;let A=Ed();(!A||A&&i==="fixed")&&(f=o.offsetLeft,y=o.offsetTop)}return{width:l,height:c,x:f,y}}var BA=new Set(["absolute","fixed"]);function HA(a,i){let t=is(a,!0,i==="fixed"),e=t.top+a.clientTop,o=t.left+a.clientLeft,l=Kr(a)?ea(a):Br(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,y=o*l.x,A=e*l.y;return{width:c,height:f,x:y,y:A}}function hg(a,i,t){let e;if(i==="viewport")e=zA(a,t);else if(i==="document")e=VA(Gr(a));else if(kr(i))e=HA(i,t);else{let o=ug(a);e={x:i.x-o.x,y:i.y-o.y,width:i.width,height:i.height}}return Li(e)}function vg(a,i){let t=Oi(a);return t===i||!kr(t)||rs(t)?!1:wr(t).position==="fixed"||vg(t,i)}function UA(a,i){let t=i.get(a);if(t)return t;let e=Js(a,[],!1).filter(f=>kr(f)&&es(f)!=="body"),o=null,l=wr(a).position==="fixed",c=l?Oi(a):a;for(;kr(c)&&!rs(c);){let f=wr(c),y=yd(c);!y&&f.position==="fixed"&&(o=null),(l?!y&&!o:!y&&f.position==="static"&&!!o&&BA.has(o.position)||ta(c)&&!y&&vg(a,c))?e=e.filter(F=>F!==c):o=f,c=Oi(c)}return i.set(a,e),e}function GA(a){let{element:i,boundary:t,rootBoundary:e,strategy:o}=a,c=[...t==="clippingAncestors"?un(i)?[]:UA(i,this._c):[].concat(t),e],f=c[0],y=c.reduce((A,F)=>{let U=hg(i,F,o);return A.top=we(U.top,A.top),A.right=br(U.right,A.right),A.bottom=br(U.bottom,A.bottom),A.left=we(U.left,A.left),A},hg(i,f,o));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function KA(a){let{width:i,height:t}=mg(a);return{width:i,height:t}}function WA(a,i,t){let e=Kr(i),o=Gr(i),l=t==="fixed",c=is(a,!0,l,i),f={scrollLeft:0,scrollTop:0},y=Br(0);function A(){y.x=Yh(o)}if(e||!e&&!l)if((es(i)!=="body"||ta(o))&&(f=fn(i)),e){let X=is(i,!0,l,i);y.x=X.x+i.clientLeft,y.y=X.y+i.clientTop}else o&&A();l&&!e&&o&&A();let F=o&&!e&&!l?fg(o,f):Br(0),U=c.left+f.scrollLeft-y.x-F.x,Q=c.top+f.scrollTop-y.y-F.y;return{x:U,y:Q,width:c.width,height:c.height}}function Kh(a){return wr(a).position==="static"}function pg(a,i){if(!Kr(a)||wr(a).position==="fixed")return null;if(i)return i(a);let t=a.offsetParent;return Gr(a)===t&&(t=t.ownerDocument.body),t}function gg(a,i){let t=ar(a);if(un(a))return t;if(!Kr(a)){let o=Oi(a);for(;o&&!rs(o);){if(kr(o)&&!Kh(o))return o;o=Oi(o)}return t}let e=pg(a,i);for(;e&&lg(e)&&Kh(e);)e=pg(e,i);return e&&rs(e)&&Kh(e)&&!yd(e)?t:e||dg(a)||t}var YA=async function(a){let i=this.getOffsetParent||gg,t=this.getDimensions,e=await t(a.floating);return{reference:WA(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function jA(a){return wr(a).direction==="rtl"}var qA={convertOffsetParentRelativeRectToViewportRelativeRect:FA,getDocumentElement:Gr,getClippingRect:GA,getOffsetParent:gg,getElementRects:YA,getClientRects:$A,getDimensions:KA,getScale:ea,isElement:kr,isRTL:jA};function bg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function XA(a,i){let t=null,e,o=Gr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=a.getBoundingClientRect(),{left:F,top:U,width:Q,height:X}=A;if(f||i(),!Q||!X)return;let tt=mn(U),nt=mn(o.clientWidth-(F+Q)),at=mn(o.clientHeight-(U+X)),ft=mn(F),_t={rootMargin:-tt+"px "+-nt+"px "+-at+"px "+-ft+"px",threshold:we(0,br(1,y))||1},Ht=!0;function $t(Ut){let Ot=Ut[0].intersectionRatio;if(Ot!==y){if(!Ht)return c();Ot?c(!1,Ot):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Ot===1&&!bg(A,a.getBoundingClientRect())&&c(),Ht=!1}try{t=new IntersectionObserver($t,{..._t,root:o.ownerDocument})}catch{t=new IntersectionObserver($t,_t)}t.observe(a)}return c(!0),l}function yg(a,i,t,e){e===void 0&&(e={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,A=Wh(a),F=o||l?[...A?Js(A):[],...Js(i)]:[];F.forEach(ft=>{o&&ft.addEventListener("scroll",t,{passive:!0}),l&&ft.addEventListener("resize",t)});let U=A&&f?XA(A,t):null,Q=-1,X=null;c&&(X=new ResizeObserver(ft=>{let[It]=ft;It&&It.target===A&&X&&(X.unobserve(i),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var _t;(_t=X)==null||_t.observe(i)})),t()}),A&&!y&&X.observe(A),X.observe(i));let tt,nt=y?is(a):null;y&&at();function at(){let ft=is(a);nt&&!bg(nt,ft)&&t(),nt=ft,tt=requestAnimationFrame(at)}return t(),()=>{var ft;F.forEach(It=>{o&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),U==null||U(),(ft=X)==null||ft.disconnect(),X=null,y&&cancelAnimationFrame(tt)}}var Eg=ig;var Tg=og,xg=tg,Ag=sg;var Sg=Jv,Ig=rg;var _g=(a,i,t)=>{let e=new Map,o={platform:qA,...t},l={...o.platform,_c:e};return Qv(a,i,{...o,platform:l})};var xd=class{constructor(i){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;i.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(i,t,e,...o){this.nameToIntervalId.has(i)&&clearInterval(this.nameToIntervalId.get(i));let l=window.setInterval(t,e,...o);return this.nameToIntervalId.set(i,l),l}clearInterval(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,i);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(i,t,e,...o){this.nameToTimeoutId.has(i)&&clearTimeout(this.nameToTimeoutId.get(i));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(i)},e,...o);return this.nameToTimeoutId.set(i,l),l}clearTimeout(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,i);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(i,t){var e;if(typeof t=="number"){let o=t;return[(e=[...i.entries()].find(([,c])=>c===t))==null?void 0:e[0],o]}return[t,i.get(t)]}};var Ri=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var ZA=B`
2589
2589
  :host {
2590
2590
  --mdc-popover-arrow-border-radius: 0.1875rem;
2591
2591
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2709,7 +2709,7 @@
2709
2709
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2710
2710
  border-bottom-left-radius: 100%;
2711
2711
  }
2712
- `,Cg=[ZA];var Sd=z.constructTagName("popoverportal"),Ad=class extends Z{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.onDisconnect)==null||i.call(this)}};var Id=class{constructor(i){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(e=>{let o=parseInt(e,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${e}`);return o});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){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 o=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=i.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(o.top-l.bottom,l.top-o.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-o.right,o.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var i,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(Sd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(i=this.popover.parentElement)==null?void 0:i.appendChild)==null||t.call(i,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var i,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.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 i,t,e;this.popover.disableAriaExpanded||((i=this.popover.triggerElement)==null||i.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(i,t){var F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=i,f=this.popover.arrowElement.getBoundingClientRect(),y=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let U=y!=null&&y[o]?12-Math.abs(f[o]-y[o]):0;Math.round(U)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var Ct=class extends Lt(Nt(ql(Kl(Gl(Z))))){constructor(){super();this.depthManager=new no(this);this.id="";this.triggerID="";this.trigger=bt.TRIGGER;this.placement=bt.PLACEMENT;this.color=bt.COLOR;this.visible=bt.VISIBLE;this.offset=bt.OFFSET;this.boundary=bt.BOUNDARY;this.boundaryRoot=bt.BOUNDARY_ROOT;this.focusTrap=bt.FOCUS_TRAP;this.preventScroll=bt.PREVENT_SCROLL;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.interactive=bt.INTERACTIVE;this.delay=bt.DELAY;this.hideOnEscape=bt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=bt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=bt.HIDE_ON_BLUR;this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=bt.FOCUS_BACK;this.backdrop=bt.BACKDROP;this.isBackdropInvisible=bt.IS_BACKDROP_INVISIBLE;this.disableFlip=bt.DISABLE_FLIP;this.size=bt.SIZE;this.closeButtonAriaLabel=null;this.strategy=bt.STRATEGY;this.role=bt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=bt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=bt.ANIMATION_FRAME;this.inline=bt.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new xd(this);this.parseTrigger=()=>{var l;let o=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(ke).includes(c)).length>0?this.trigger:bt.TRIGGER;o==="mouseenter"&&(this.interactive?o="mouseenter click":o="mouseenter focusin"),this.trigger=o};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),o=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!o||l)&&(this.hide(),Ri.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ri.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,o,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(o=this.triggerElement)==null?void 0:o.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Mi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Mi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Mi.HOVER),this.timers.clearTimeout(Mi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Mi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Mi.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)),o=this.boundaryRoot,l=[];if(this.inline&&l.push(Ig()),l.push(Tg({boundary:e,rootBoundary:o,padding:this.boundaryPadding})),this.disableFlip||l.push(xg({boundary:e,rootBoundary:o})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(Ag({boundary:e,rootBoundary:o,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Sg({element:this.arrowElement,padding:12}))}l.push(Eg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=yg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:U,placement:Q}=await _g(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),U.arrow&&this.arrowElement&&this.utils.updateArrowStyle(U.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Id(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),Ri.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(),Ri.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:bt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Zo).includes(this.color)?this.color:bt.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:o}=this;t===e||!o||(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(o)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(o.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,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Ri.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(o),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(o.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(o==null||o.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ri.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Mi.OPEN,t,this.openDelay):(this.timers.clearTimeout(Mi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(o=>(o==null?void 0:o.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2712
+ `,Cg=[ZA];var Sd=z.constructTagName("popoverportal"),Ad=class extends Z{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.onDisconnect)==null||i.call(this)}};var Id=class{constructor(i){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(e=>{let o=parseInt(e,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${e}`);return o});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){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 o=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=i.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(o.top-l.bottom,l.top-o.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-o.right,o.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var i,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(Sd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(i=this.popover.parentElement)==null?void 0:i.appendChild)==null||t.call(i,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var i,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.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 i,t,e;this.popover.disableAriaExpanded||((i=this.popover.triggerElement)==null||i.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(i,t){var F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=i,f=this.popover.arrowElement.getBoundingClientRect(),y=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let U=y!=null&&y[o]?12-Math.abs(f[o]-y[o]):0;Math.round(U)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var Ct=class extends Lt(Nt(ql(Kl(Gl(Z))))){constructor(){super();this.depthManager=new no(this);this.id="";this.triggerID="";this.trigger=bt.TRIGGER;this.placement=bt.PLACEMENT;this.color=bt.COLOR;this.visible=bt.VISIBLE;this.offset=bt.OFFSET;this.boundary=bt.BOUNDARY;this.boundaryRoot=bt.BOUNDARY_ROOT;this.focusTrap=bt.FOCUS_TRAP;this.preventScroll=bt.PREVENT_SCROLL;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.interactive=bt.INTERACTIVE;this.delay=bt.DELAY;this.hideOnEscape=bt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=bt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=bt.HIDE_ON_BLUR;this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=bt.FOCUS_BACK;this.backdrop=bt.BACKDROP;this.isBackdropInvisible=bt.IS_BACKDROP_INVISIBLE;this.disableFlip=bt.DISABLE_FLIP;this.size=bt.SIZE;this.closeButtonAriaLabel=null;this.strategy=bt.STRATEGY;this.role=bt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=bt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=bt.ANIMATION_FRAME;this.inline=bt.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new xd(this);this.parseTrigger=()=>{var l;let o=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(ke).includes(c)).length>0?this.trigger:bt.TRIGGER;o==="mouseenter"&&(this.interactive?o="mouseenter click":o="mouseenter focusin"),this.trigger=o};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),o=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!o||l)&&(this.hide(),Ri.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ri.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,o,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(o=this.triggerElement)==null?void 0:o.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Mi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Mi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Mi.HOVER),this.timers.clearTimeout(Mi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Mi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Mi.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)),o=this.boundaryRoot,l=[];if(this.inline&&l.push(Ig()),l.push(Tg({boundary:e,rootBoundary:o,padding:this.boundaryPadding})),this.disableFlip||l.push(xg({boundary:e,rootBoundary:o})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(Ag({boundary:e,rootBoundary:o,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Sg({element:this.arrowElement,padding:12}))}l.push(Eg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=yg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:U,placement:Q}=await _g(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),U.arrow&&this.arrowElement&&this.utils.updateArrowStyle(U.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Id(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),Ri.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(),Ri.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:bt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Qo).includes(this.color)?this.color:bt.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:o}=this;t===e||!o||(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(o)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(o.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,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Ri.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(o),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(o.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(o==null||o.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ri.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Mi.OPEN,t,this.openDelay):(this.timers.clearTimeout(Mi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(o=>(o==null?void 0:o.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2713
2713
  <div part="popover-hover-bridge"></div>
2714
2714
  ${this.closeButton?S` <mdc-button
2715
2715
  part="popover-close"
@@ -2723,7 +2723,7 @@
2723
2723
  <div part="popover-content">
2724
2724
  <slot></slot>
2725
2725
  </div>
2726
- `}};Ct.styles=[...Z.styles,...Cg],h([u({type:String,reflect:!0})],Ct.prototype,"id",2),h([u({type:String,reflect:!0})],Ct.prototype,"triggerID",2),h([u({type:String,reflect:!0})],Ct.prototype,"trigger",2),h([u({type:String,reflect:!0})],Ct.prototype,"placement",2),h([u({type:String,reflect:!0})],Ct.prototype,"color",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],Ct.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],Ct.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],Ct.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],Ct.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Ct.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],Ct.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],Ct.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],Ct.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"interactive",2),h([u({type:String,reflect:!0})],Ct.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],Ct.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],Ct.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],Ct.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],Ct.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],Ct.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ct.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],Ct.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Ct.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],Ct.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],Ct.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Ct.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],Ct.prototype,"strategy",2),h([u({type:String,reflect:!0})],Ct.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],Ct.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ct.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],Ct.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],Ct.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],Ct.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],Ct.prototype,"stackGroupName",2);var nr=Ct;var kg=z.constructTagName("toggletip"),is={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:ke.CLICK,SHOW_ARROW:!0};var QA=B`
2726
+ `}};Ct.styles=[...Z.styles,...Cg],h([u({type:String,reflect:!0})],Ct.prototype,"id",2),h([u({type:String,reflect:!0})],Ct.prototype,"triggerID",2),h([u({type:String,reflect:!0})],Ct.prototype,"trigger",2),h([u({type:String,reflect:!0})],Ct.prototype,"placement",2),h([u({type:String,reflect:!0})],Ct.prototype,"color",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],Ct.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],Ct.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],Ct.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],Ct.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Ct.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],Ct.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],Ct.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],Ct.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"interactive",2),h([u({type:String,reflect:!0})],Ct.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],Ct.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],Ct.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],Ct.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],Ct.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],Ct.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ct.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],Ct.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Ct.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],Ct.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],Ct.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Ct.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],Ct.prototype,"strategy",2),h([u({type:String,reflect:!0})],Ct.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],Ct.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ct.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],Ct.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],Ct.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],Ct.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],Ct.prototype,"stackGroupName",2);var nr=Ct;var kg=z.constructTagName("toggletip"),os={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:ke.CLICK,SHOW_ARROW:!0};var QA=B`
2727
2727
  :host {
2728
2728
  --mdc-toggletip-max-width: 400px;
2729
2729
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
@@ -2753,7 +2753,7 @@
2753
2753
  :host([close-button]:dir(rtl))::part(popover-content) {
2754
2754
  margin-left: 2rem;
2755
2755
  }
2756
- `,wg=[QA];var mo=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=is.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:is.CLOSE_BUTTON,this.closeButtonAriaLabel=is.CLOSE_BUTTON_ARIA_LABEL,this.trigger=is.CLICK,this.showArrow=is.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(o=>o.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=is.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
2756
+ `,wg=[QA];var mo=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=os.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:os.CLOSE_BUTTON,this.closeButtonAriaLabel=os.CLOSE_BUTTON_ARIA_LABEL,this.trigger=os.CLICK,this.showArrow=os.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(o=>o.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=os.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
2757
2757
  ${super.render()}
2758
2758
  <mdc-screenreaderannouncer
2759
2759
  identity="${J(this.screenreaderAnnouncerIdentity)}"
@@ -2761,12 +2761,12 @@
2761
2761
  delay="300"
2762
2762
  >
2763
2763
  </mdc-screenreaderannouncer>
2764
- `}};mo.styles=[...nr.styles,...wg],h([tf()],mo.prototype,"defaultSlotNodes",2),h([dt()],mo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],mo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],mo.prototype,"placement",2);var jh=mo;function _d(a,i=500){let t,e=(...o)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...o)},i)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Ng=z.constructTagName("screenreaderannouncer"),JA={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},os={ARIA_LIVE:JA.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var t0=[B`
2764
+ `}};mo.styles=[...nr.styles,...wg],h([tf()],mo.prototype,"defaultSlotNodes",2),h([dt()],mo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],mo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],mo.prototype,"placement",2);var jh=mo;function _d(a,i=500){let t,e=(...o)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...o)},i)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Ng=z.constructTagName("screenreaderannouncer"),JA={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},ss={ARIA_LIVE:JA.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var t0=[B`
2765
2765
  :host {
2766
2766
  display: none;
2767
2767
  visibility: hidden;
2768
2768
  }
2769
- `],Mg=t0;var li=class extends Z{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=os.ARIA_LIVE;this.delay=os.DELAY;this.timeout=os.TIMEOUT;this.debounceTime=os.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:o,ariaLive:l}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,y=document.createElement("div");y.setAttribute("id",f),y.setAttribute("aria-live",l!=null?l:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(y);let A=window.setTimeout(()=>{let F=document.createElement("p");F.textContent=t,y.appendChild(F),this.ariaLiveAnnouncementIds.push(f);let U=window.setTimeout(()=>{y.remove()},o!=null?o:this.timeout);this.timeOutIds.push(U)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var l;let e=document.getElementById(t);if(e)return e;let o=this.findModalAncestor();return((l=o==null?void 0:o.shadowRoot)==null?void 0:l.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2769
+ `],Mg=t0;var li=class extends Z{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ss.ARIA_LIVE;this.delay=ss.DELAY;this.timeout=ss.TIMEOUT;this.debounceTime=ss.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:o,ariaLive:l}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,y=document.createElement("div");y.setAttribute("id",f),y.setAttribute("aria-live",l!=null?l:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(y);let A=window.setTimeout(()=>{let F=document.createElement("p");F.textContent=t,y.appendChild(F),this.ariaLiveAnnouncementIds.push(f);let U=window.setTimeout(()=>{y.remove()},o!=null?o:this.timeout);this.timeOutIds.push(U)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var l;let e=document.getElementById(t);if(e)return e;let o=this.findModalAncestor();return((l=o==null?void 0:o.shadowRoot)==null?void 0:l.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2770
2770
  .mdc-screenreaderannouncer__visually-hidden {
2771
2771
  clip: rect(0 0 0 0);
2772
2772
  clip-path: inset(50%);
@@ -2776,7 +2776,7 @@
2776
2776
  white-space: nowrap;
2777
2777
  width: 1px;
2778
2778
  }
2779
- `,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let o=this.findModalAncestor();o!=null&&o.shadowRoot?o.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 o=t.getRootNode();if(o instanceof ShadowRoot&&o.host)t=o.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=_d(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=os.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=os.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};li.styles=[...Z.styles,...Mg],h([u({type:String,reflect:!0})],li.prototype,"announcement",2),h([u({type:String,reflect:!0})],li.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],li.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],li.prototype,"delay",2),h([u({type:Number,reflect:!0})],li.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],li.prototype,"debounceTime",2);var qh=li;qh.register(Ng);var e0=qh;jh.register(kg);var r0=jh;var pe=a=>{class i extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return i.formAssociated=!0,h([u({reflect:!0,type:String})],i.prototype,"name",2),h([u({reflect:!0,type:String})],i.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],i.prototype,"validationMessage",2),h([Kt("input")],i.prototype,"inputElement",2),i};var i0=B`
2779
+ `,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let o=this.findModalAncestor();o!=null&&o.shadowRoot?o.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 o=t.getRootNode();if(o instanceof ShadowRoot&&o.host)t=o.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=_d(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ss.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=ss.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};li.styles=[...Z.styles,...Mg],h([u({type:String,reflect:!0})],li.prototype,"announcement",2),h([u({type:String,reflect:!0})],li.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],li.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],li.prototype,"delay",2),h([u({type:Number,reflect:!0})],li.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],li.prototype,"debounceTime",2);var qh=li;qh.register(Ng);var e0=qh;jh.register(kg);var r0=jh;var pe=a=>{class i extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return i.formAssociated=!0,h([u({reflect:!0,type:String})],i.prototype,"name",2),h([u({reflect:!0,type:String})],i.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],i.prototype,"validationMessage",2),h([Kt("input")],i.prototype,"inputElement",2),i};var i0=B`
2780
2780
  :host {
2781
2781
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
2782
2782
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
@@ -3079,7 +3079,7 @@
3079
3079
  ${this.label?S`<mdc-text part="label" type="${Cd.TEXT_TYPE}" tagname="${Cd.TAG_NAME}"
3080
3080
  >${this.label}</mdc-text
3081
3081
  >`:W}
3082
- `}};ra.styles=[...Z.styles,...Pg],h([u({type:String,reflect:!0})],ra.prototype,"color",2),h([u({type:String})],ra.prototype,"label",2);var vn=ra;var Fg=z.constructTagName("chip"),ia={COLOR:Zh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Ho[24],ROLE:et.BUTTON};var n0=B`
3082
+ `}};ra.styles=[...Z.styles,...Pg],h([u({type:String,reflect:!0})],ra.prototype,"color",2),h([u({type:String})],ra.prototype,"label",2);var vn=ra;var Fg=z.constructTagName("chip"),ia={COLOR:Zh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Uo[24],ROLE:et.BUTTON};var n0=B`
3083
3083
  :host {
3084
3084
  cursor: pointer;
3085
3085
  height: 1.5rem;
@@ -3178,7 +3178,7 @@
3178
3178
  ${this.label?S`<mdc-text part="label" type="${ia.TEXT_TYPE}" tagname="${ia.TAG_NAME}"
3179
3179
  >${this.label}</mdc-text
3180
3180
  >`:W}
3181
- `}};oa.styles=[...vn.styles,...$g],h([u({type:String,reflect:!0})],oa.prototype,"color",2),h([u({type:String})],oa.prototype,"label",2);var sa=oa;sa.register(Fg);var l0=sa;var Vg=z.constructTagName("coachmark"),ss={COLOR:Zo.CONTRAST,TRIGGER:ke.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var as=class extends nr{constructor(){super(...arguments);this.trigger=ss.TRIGGER;this.showArrow=ss.ARROW;this.closeButton=ss.CLOSE_BUTTON;this.disableAriaExpanded=ss.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=ss.COLOR,this.showArrow=ss.ARROW}};h([u({type:String,reflect:!0})],as.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],as.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],as.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],as.prototype,"disableAriaExpanded",2);var Qh=as;Qh.register(Vg);var d0=Qh;var kd=z.constructTagName("controltypeprovider"),wd={CONTROL_TYPE:"uncontrolled"},Nd=["controlled","uncontrolled"];var c0=kd,Jh=c0;var Md=class extends Ie{constructor(){super({context:Jh});this.innerControlType=wd.CONTROL_TYPE}static get Context(){return Jh}set controlType(t){Nd.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})],Md.prototype,"controlType",1);var tp=Md;tp.register(kd);var ep=tp;var Wr=_i(class extends si{constructor(a){var i;if(super(a),a.type!==gr.ATTRIBUTE||a.name!=="class"||((i=a.strings)==null?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(i=>a[i]).join(" ")+" "}update(a,[i]){var e,o;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(let l in i)i[l]&&!((e=this.nt)!=null&&e.has(l))&&this.st.add(l);return this.render(i)}let t=a.element.classList;for(let l of this.st)l in i||(t.remove(l),this.st.delete(l));for(let l in i){let c=!!i[l];c===this.st.has(l)||(o=this.nt)!=null&&o.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return $e}});function yr(a){let i=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),e=String(a.getDate()).padStart(2,"0");return`${i}-${t}-${e}`}function zt(a){if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return null;let i=a.split("-"),t=parseInt(i[0],10),e=parseInt(i[1],10),o=parseInt(i[2],10),l=new Date(t,e-1,o);return l.getFullYear()!==t||l.getMonth()!==e-1||l.getDate()!==o?null:l}function di(a,i,t=1){return new Date(a,i-1,t)}function ns(){let a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function Er(a,i){let t=new Date(a);return t.setDate(t.getDate()+i),t}function Od(a,i){let t=a.getMonth()+i,e=new Date(a.getFullYear(),t,1),o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),o)),e}function rp(a,i){let t=a.getFullYear()+i,e=new Date(t,a.getMonth(),1),o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),o)),e}function Rd(a,i){return a.getFullYear()===i.getFullYear()&&a.getMonth()===i.getMonth()&&a.getDate()===i.getDate()}function Di(a,i){return a.getTime()<i.getTime()}function fo(a,i){return a.getTime()>i.getTime()}function Dd(a,i){return a.getTime()<=i.getTime()}function zg(a){return new Date(a.getFullYear(),a.getMonth(),1)}function ip(a){return new Date(a.getFullYear(),a.getMonth()+1,0)}function Pd(a,i){return new Date(a,i,0).getDate()}function Bg(a){let i=a.getDay();return i===0?7:i}function gn(a,i=1){let t=a.getDay(),l=((t===0?7:t)-(i===7?7:i)+7)%7;return Er(a,-l)}function Hg(a,i="narrow"){let t=new Intl.DateTimeFormat(a,{weekday:i}),e=new Date(2026,0,5),o=[];for(let l=0;l<7;l+=1)o.push(t.format(Er(e,l)));return o}function ls(a){var o,l;try{let c=new Intl.Locale(a),f=(l=c.weekInfo)!=null?l:(o=c.getWeekInfo)==null?void 0:o.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let i=["en","ja","ko","zh","pt-BR"],t=a.split("-")[0].toLowerCase(),e=a.toLowerCase();return i.includes(t)||i.includes(e)?7:1}function Ug(a,i,t){let e=di(a,i,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Gg(a,i){let t=zt(a);return t?new Intl.DateTimeFormat(i,{dateStyle:"full"}).format(t):""}function Ld(a,i){let t=zt(a);return t?new Intl.DateTimeFormat(i,{dateStyle:"medium"}).format(t):""}function Kg(a,i,t){let e=zt(a),o=zt(i);if(!e||!o)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,o)}catch{return`${Ld(a,t)} \u2013 ${Ld(i,t)}`}}function Fd(a){let t=new Intl.DateTimeFormat(a,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],o="/";for(let l of t)l.type==="month"&&!e.includes("month")&&e.push("month"),l.type==="day"&&!e.includes("day")&&e.push("day"),l.type==="year"&&!e.includes("year")&&e.push("year"),l.type==="literal"&&l.value.trim()&&(o=l.value.trim());return e.length!==3?{order:["month","day","year"],separator:o}:{order:e,separator:o}}var Wg=z.constructTagName("calendar"),se={SINGLE:"single",WEEK:"week",RANGE:"range"},op={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},Yg=6,sp=7,ap={SELECTION_MODE:se.SINGLE,LOCALE:"en-US"};var h0=B`
3181
+ `}};oa.styles=[...vn.styles,...$g],h([u({type:String,reflect:!0})],oa.prototype,"color",2),h([u({type:String})],oa.prototype,"label",2);var sa=oa;sa.register(Fg);var l0=sa;var Vg=z.constructTagName("coachmark"),as={COLOR:Qo.CONTRAST,TRIGGER:ke.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ns=class extends nr{constructor(){super(...arguments);this.trigger=as.TRIGGER;this.showArrow=as.ARROW;this.closeButton=as.CLOSE_BUTTON;this.disableAriaExpanded=as.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=as.COLOR,this.showArrow=as.ARROW}};h([u({type:String,reflect:!0})],ns.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],ns.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],ns.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ns.prototype,"disableAriaExpanded",2);var Qh=ns;Qh.register(Vg);var d0=Qh;var kd=z.constructTagName("controltypeprovider"),wd={CONTROL_TYPE:"uncontrolled"},Nd=["controlled","uncontrolled"];var c0=kd,Jh=c0;var Md=class extends Ie{constructor(){super({context:Jh});this.innerControlType=wd.CONTROL_TYPE}static get Context(){return Jh}set controlType(t){Nd.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})],Md.prototype,"controlType",1);var tp=Md;tp.register(kd);var ep=tp;var Wr=_i(class extends si{constructor(a){var i;if(super(a),a.type!==gr.ATTRIBUTE||a.name!=="class"||((i=a.strings)==null?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(i=>a[i]).join(" ")+" "}update(a,[i]){var e,o;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(let l in i)i[l]&&!((e=this.nt)!=null&&e.has(l))&&this.st.add(l);return this.render(i)}let t=a.element.classList;for(let l of this.st)l in i||(t.remove(l),this.st.delete(l));for(let l in i){let c=!!i[l];c===this.st.has(l)||(o=this.nt)!=null&&o.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return $e}});function yr(a){let i=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),e=String(a.getDate()).padStart(2,"0");return`${i}-${t}-${e}`}function zt(a){if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return null;let i=a.split("-"),t=parseInt(i[0],10),e=parseInt(i[1],10),o=parseInt(i[2],10),l=new Date(t,e-1,o);return l.getFullYear()!==t||l.getMonth()!==e-1||l.getDate()!==o?null:l}function di(a,i,t=1){return new Date(a,i-1,t)}function ls(){let a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function Er(a,i){let t=new Date(a);return t.setDate(t.getDate()+i),t}function Od(a,i){let t=a.getMonth()+i,e=new Date(a.getFullYear(),t,1),o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),o)),e}function rp(a,i){let t=a.getFullYear()+i,e=new Date(t,a.getMonth(),1),o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),o)),e}function Rd(a,i){return a.getFullYear()===i.getFullYear()&&a.getMonth()===i.getMonth()&&a.getDate()===i.getDate()}function Di(a,i){return a.getTime()<i.getTime()}function fo(a,i){return a.getTime()>i.getTime()}function Dd(a,i){return a.getTime()<=i.getTime()}function zg(a){return new Date(a.getFullYear(),a.getMonth(),1)}function ip(a){return new Date(a.getFullYear(),a.getMonth()+1,0)}function Pd(a,i){return new Date(a,i,0).getDate()}function Bg(a){let i=a.getDay();return i===0?7:i}function gn(a,i=1){let t=a.getDay(),l=((t===0?7:t)-(i===7?7:i)+7)%7;return Er(a,-l)}function Hg(a,i="narrow"){let t=new Intl.DateTimeFormat(a,{weekday:i}),e=new Date(2026,0,5),o=[];for(let l=0;l<7;l+=1)o.push(t.format(Er(e,l)));return o}function ds(a){var o,l;try{let c=new Intl.Locale(a),f=(l=c.weekInfo)!=null?l:(o=c.getWeekInfo)==null?void 0:o.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let i=["en","ja","ko","zh","pt-BR"],t=a.split("-")[0].toLowerCase(),e=a.toLowerCase();return i.includes(t)||i.includes(e)?7:1}function Ug(a,i,t){let e=di(a,i,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Gg(a,i){let t=zt(a);return t?new Intl.DateTimeFormat(i,{dateStyle:"full"}).format(t):""}function Ld(a,i){let t=zt(a);return t?new Intl.DateTimeFormat(i,{dateStyle:"medium"}).format(t):""}function Kg(a,i,t){let e=zt(a),o=zt(i);if(!e||!o)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,o)}catch{return`${Ld(a,t)} \u2013 ${Ld(i,t)}`}}function Fd(a){let t=new Intl.DateTimeFormat(a,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],o="/";for(let l of t)l.type==="month"&&!e.includes("month")&&e.push("month"),l.type==="day"&&!e.includes("day")&&e.push("day"),l.type==="year"&&!e.includes("year")&&e.push("year"),l.type==="literal"&&l.value.trim()&&(o=l.value.trim());return e.length!==3?{order:["month","day","year"],separator:o}:{order:e,separator:o}}var Wg=z.constructTagName("calendar"),se={SINGLE:"single",WEEK:"week",RANGE:"range"},op={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},Yg=6,sp=7,ap={SELECTION_MODE:se.SINGLE,LOCALE:"en-US"};var h0=B`
3182
3182
  :host {
3183
3183
  --mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
3184
3184
  --mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3354,7 +3354,7 @@
3354
3354
  .calendar-today-button mdc-button {
3355
3355
  width: auto;
3356
3356
  }
3357
- `,jg=[ei,h0];function qg(a){let i=Hg(a,"narrow"),t=ls(a),e=t===7?6:t-1;return e===0?i:[...i.slice(e),...i.slice(0,e)]}function Xg(a,i,t,e,o,l,c,f){let y=di(a,i,1),A=ns(),F=ls(t),U=Bg(y),Q;F===7?Q=U===7?0:U:(Q=U-F,Q<0&&(Q+=7));let X=Er(y,-Q),tt=c?zt(c):void 0,nt=f?zt(f):void 0,at=o?zt(o):void 0,ft=l?zt(l):void 0,It=new Set(e),_t=[];for(let Ht=0;Ht<Yg;Ht+=1){let $t=[];for(let Ut=0;Ut<sp;Ut+=1){let Ot=Er(X,Ht*sp+Ut),ae=yr(Ot),Ue=Ot.getMonth()+1===i&&Ot.getFullYear()===a,Yt=Rd(Ot,A),Te=It.has(ae),xe=!1;tt&&Di(Ot,tt)&&(xe=!0),nt&&fo(Ot,nt)&&(xe=!0);let Ae=!1,kt=!1,oe=!1;at&&ft&&(kt=Rd(Ot,at),oe=Rd(Ot,ft),Ae=Dd(at,Ot)&&Dd(Ot,ft)),$t.push({date:ae,day:Ot.getDate(),isCurrentMonth:Ue,isToday:Yt,isSelected:Te,isInRange:Ae,isRangeStart:kt,isRangeEnd:oe,isDisabled:xe})}_t.push({days:$t})}return _t}function $d(a,i){let t=zt(a);if(!t)return{start:"",end:""};let e=gn(t,ls(i)),o=Er(e,6);return{start:yr(e),end:yr(o)}}function np(a,i,t){return Ug(a,i,t)}function Zg(a,i){let t=zt(a),e=zt(i);if(!t||!e)return[];let o=[],l=t;for(;Dd(l,e);)o.push(yr(l)),l=Er(l,1);return o}function Qg(a,i){return Ld(a,i)}function bn(a,i,t){return Kg(a,i,t)}var ve=class extends Lt(Nt(Z)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=ap.SELECTION_MODE;this.locale=ap.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=zt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=zt(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ns(),e=this.min?zt(this.min):void 0,o=this.max?zt(this.max):void 0,l=t;e&&Di(t,e)?l=e:o&&fo(t,o)&&(l=o),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=yr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),o=this.getRangeEnd();return Xg(this.displayYear,this.displayMonth,this.locale,t,e,o,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?Zg(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=di(this.displayYear,this.displayMonth,1),e=zt(this.min);return e?fo(t,zg(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=ip(di(this.displayYear,this.displayMonth,1)),e=zt(this.max);return e?Di(t,ip(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Od(di(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=yr(di(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:o}=$d(t,this.locale);this.value=e,this.endValue=o,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:o},bubbles:!0,composed:!0}));break}case se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=zt(this.value),o=zt(t);e&&o&&Di(o,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?zt(this.focusedDate):ns();if(!e)return;let o=this.getActionForKeyEvent(t),l;switch(o){case q.LEFT:t.preventDefault(),l=Er(e,-1);break;case q.RIGHT:t.preventDefault(),l=Er(e,1);break;case q.UP:t.preventDefault(),l=Er(e,-7);break;case q.DOWN:t.preventDefault(),l=Er(e,7);break;case q.HOME:{t.preventDefault();let c=ls(this.locale);l=gn(e,c);break}case q.END:{t.preventDefault();let c=ls(this.locale);l=Er(gn(e,c),6);break}case q.ENTER:case q.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===wt.PAGE_UP){t.preventDefault(),l=t.shiftKey?rp(e,-1):Od(e,-1);break}if(t.key===wt.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?rp(e,1):Od(e,1);break}return}if(this.keyDownEventHandled(),l){let c=yr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var y;let f=(y=this.shadowRoot)==null?void 0:y.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${bn(this.value,this.endValue,this.locale)}`:`Calendar, ${np(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=np(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),o=!this.canNavigateNext();return S`
3357
+ `,jg=[ei,h0];function qg(a){let i=Hg(a,"narrow"),t=ds(a),e=t===7?6:t-1;return e===0?i:[...i.slice(e),...i.slice(0,e)]}function Xg(a,i,t,e,o,l,c,f){let y=di(a,i,1),A=ls(),F=ds(t),U=Bg(y),Q;F===7?Q=U===7?0:U:(Q=U-F,Q<0&&(Q+=7));let X=Er(y,-Q),tt=c?zt(c):void 0,nt=f?zt(f):void 0,at=o?zt(o):void 0,ft=l?zt(l):void 0,It=new Set(e),_t=[];for(let Ht=0;Ht<Yg;Ht+=1){let $t=[];for(let Ut=0;Ut<sp;Ut+=1){let Ot=Er(X,Ht*sp+Ut),ae=yr(Ot),Ue=Ot.getMonth()+1===i&&Ot.getFullYear()===a,Yt=Rd(Ot,A),Te=It.has(ae),xe=!1;tt&&Di(Ot,tt)&&(xe=!0),nt&&fo(Ot,nt)&&(xe=!0);let Ae=!1,kt=!1,oe=!1;at&&ft&&(kt=Rd(Ot,at),oe=Rd(Ot,ft),Ae=Dd(at,Ot)&&Dd(Ot,ft)),$t.push({date:ae,day:Ot.getDate(),isCurrentMonth:Ue,isToday:Yt,isSelected:Te,isInRange:Ae,isRangeStart:kt,isRangeEnd:oe,isDisabled:xe})}_t.push({days:$t})}return _t}function $d(a,i){let t=zt(a);if(!t)return{start:"",end:""};let e=gn(t,ds(i)),o=Er(e,6);return{start:yr(e),end:yr(o)}}function np(a,i,t){return Ug(a,i,t)}function Zg(a,i){let t=zt(a),e=zt(i);if(!t||!e)return[];let o=[],l=t;for(;Dd(l,e);)o.push(yr(l)),l=Er(l,1);return o}function Qg(a,i){return Ld(a,i)}function bn(a,i,t){return Kg(a,i,t)}var ve=class extends Lt(Nt(Z)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=ap.SELECTION_MODE;this.locale=ap.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=zt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=zt(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ls(),e=this.min?zt(this.min):void 0,o=this.max?zt(this.max):void 0,l=t;e&&Di(t,e)?l=e:o&&fo(t,o)&&(l=o),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=yr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),o=this.getRangeEnd();return Xg(this.displayYear,this.displayMonth,this.locale,t,e,o,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?Zg(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=di(this.displayYear,this.displayMonth,1),e=zt(this.min);return e?fo(t,zg(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=ip(di(this.displayYear,this.displayMonth,1)),e=zt(this.max);return e?Di(t,ip(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Od(di(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=yr(di(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:o}=$d(t,this.locale);this.value=e,this.endValue=o,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:o},bubbles:!0,composed:!0}));break}case se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=zt(this.value),o=zt(t);e&&o&&Di(o,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?zt(this.focusedDate):ls();if(!e)return;let o=this.getActionForKeyEvent(t),l;switch(o){case q.LEFT:t.preventDefault(),l=Er(e,-1);break;case q.RIGHT:t.preventDefault(),l=Er(e,1);break;case q.UP:t.preventDefault(),l=Er(e,-7);break;case q.DOWN:t.preventDefault(),l=Er(e,7);break;case q.HOME:{t.preventDefault();let c=ds(this.locale);l=gn(e,c);break}case q.END:{t.preventDefault();let c=ds(this.locale);l=Er(gn(e,c),6);break}case q.ENTER:case q.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===wt.PAGE_UP){t.preventDefault(),l=t.shiftKey?rp(e,-1):Od(e,-1);break}if(t.key===wt.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?rp(e,1):Od(e,1);break}return}if(this.keyDownEventHandled(),l){let c=yr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var y;let f=(y=this.shadowRoot)==null?void 0:y.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${bn(this.value,this.endValue,this.locale)}`:`Calendar, ${np(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=np(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),o=!this.canNavigateNext();return S`
3358
3358
  <div class="calendar-header">
3359
3359
  <mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
3360
3360
  <div class="calendar-header-nav">
@@ -3406,7 +3406,7 @@
3406
3406
  </div>
3407
3407
  ${t.map(o=>S` <div class="calendar-row" role="row">${o.days.map(l=>this.renderDay(l))}</div> `)}
3408
3408
  </div>
3409
- `}isDateDisabled(t){let e=zt(t);if(!e)return!0;let o=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;return!!(o&&Di(e,o)||l&&fo(e,l))}isTodayDisabled(){return this.isDateDisabled(yr(ns()))}handleTodayClick(){let t=ns(),e=yr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return W;let t=this.isTodayDisabled();return S`
3409
+ `}isDateDisabled(t){let e=zt(t);if(!e)return!0;let o=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;return!!(o&&Di(e,o)||l&&fo(e,l))}isTodayDisabled(){return this.isDateDisabled(yr(ls()))}handleTodayClick(){let t=ls(),e=yr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return W;let t=this.isTodayDisabled();return S`
3410
3410
  <div class="calendar-today-button">
3411
3411
  <mdc-button
3412
3412
  variant="${Vt.TERTIARY}"
@@ -3704,7 +3704,7 @@
3704
3704
  ${this.renderPopover()}
3705
3705
  </div>
3706
3706
  ${this.helpText?this.renderHelperText():W}
3707
- `}};Bt.styles=[...Qt.styles,...tb],h([u({type:String,reflect:!0})],Bt.prototype,"variant",2),h([u({type:String,reflect:!0})],Bt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Bt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Bt.prototype,"locale",2),h([u({type:String,reflect:!0})],Bt.prototype,"min",2),h([u({type:String,reflect:!0})],Bt.prototype,"max",2),h([u({type:String,reflect:!0})],Bt.prototype,"placement",2),h([u({type:String,reflect:!0})],Bt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Bt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Bt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Bt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Bt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Bt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Bt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Bt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Bt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Bt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Bt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Bt.prototype,"localeNextMonthLabel",2),h([Kt("#month-spinbutton")],Bt.prototype,"monthInput",2),h([Kt("#day-spinbutton")],Bt.prototype,"dayInput",2),h([Kt("#year-spinbutton")],Bt.prototype,"yearInput",2),h([dt()],Bt.prototype,"displayPopover",2),h([dt()],Bt.prototype,"internalMonth",2),h([dt()],Bt.prototype,"internalDay",2),h([dt()],Bt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Bt.prototype,"endValue",2);var pp=Bt;pp.register(Jg);var f0=pp;Ks.register(qf);var v0=Ks;var xn=z.constructTagName("divider"),ds={HORIZONTAL:"horizontal",VERTICAL:"vertical"},An={SOLID:"solid",GRADIENT:"gradient"},Nr={POSITIVE:"positive",NEGATIVE:"negative"},Sn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},cs={ORIENTATION:ds.HORIZONTAL,VARIANT:An.SOLID,ARROW_DIRECTION:Nr.NEGATIVE,BUTTON_DIRECTION:Nr.NEGATIVE};var g0=[yt,B`
3707
+ `}};Bt.styles=[...Qt.styles,...tb],h([u({type:String,reflect:!0})],Bt.prototype,"variant",2),h([u({type:String,reflect:!0})],Bt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Bt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Bt.prototype,"locale",2),h([u({type:String,reflect:!0})],Bt.prototype,"min",2),h([u({type:String,reflect:!0})],Bt.prototype,"max",2),h([u({type:String,reflect:!0})],Bt.prototype,"placement",2),h([u({type:String,reflect:!0})],Bt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Bt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Bt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Bt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Bt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Bt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Bt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Bt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Bt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Bt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Bt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Bt.prototype,"localeNextMonthLabel",2),h([Kt("#month-spinbutton")],Bt.prototype,"monthInput",2),h([Kt("#day-spinbutton")],Bt.prototype,"dayInput",2),h([Kt("#year-spinbutton")],Bt.prototype,"yearInput",2),h([dt()],Bt.prototype,"displayPopover",2),h([dt()],Bt.prototype,"internalMonth",2),h([dt()],Bt.prototype,"internalDay",2),h([dt()],Bt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Bt.prototype,"endValue",2);var pp=Bt;pp.register(Jg);var f0=pp;Ks.register(qf);var v0=Ks;var xn=z.constructTagName("divider"),cs={HORIZONTAL:"horizontal",VERTICAL:"vertical"},An={SOLID:"solid",GRADIENT:"gradient"},Nr={POSITIVE:"positive",NEGATIVE:"negative"},Sn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},hs={ORIENTATION:cs.HORIZONTAL,VARIANT:An.SOLID,ARROW_DIRECTION:Nr.NEGATIVE,BUTTON_DIRECTION:Nr.NEGATIVE};var g0=[yt,B`
3708
3708
  :host {
3709
3709
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
3710
3710
  --mdc-divider-width: 0.0625rem;
@@ -3905,7 +3905,7 @@
3905
3905
  :host([data-hidden]) {
3906
3906
  display: none;
3907
3907
  }
3908
- `],sb=g0;var vo=class extends Z{constructor(){super(...arguments);this.orientation=cs.ORIENTATION;this.variant=cs.VARIANT;this.arrowDirection=cs.ARROW_DIRECTION;this.buttonPosition=cs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(An).includes(t)?t:cs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(ds).includes(t)?t:cs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===ds.HORIZONTAL?Nr.NEGATIVE:Nr.POSITIVE;Object.values(Nr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Nr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===ds.HORIZONTAL,e=this.arrowDirection===Nr.POSITIVE;return t?e?Sn.UP:Sn.DOWN:e?Sn.RIGHT:Sn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let o=e.some(f=>f.tagName===Za.toUpperCase()),l=e.some(f=>f.tagName===xi.toUpperCase());o&&!l?this.setAttribute("data-type","mdc-text-divider"):!o&&l&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
3908
+ `],sb=g0;var vo=class extends Z{constructor(){super(...arguments);this.orientation=hs.ORIENTATION;this.variant=hs.VARIANT;this.arrowDirection=hs.ARROW_DIRECTION;this.buttonPosition=hs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(An).includes(t)?t:hs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(cs).includes(t)?t:hs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===cs.HORIZONTAL?Nr.NEGATIVE:Nr.POSITIVE;Object.values(Nr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Nr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===cs.HORIZONTAL,e=this.arrowDirection===Nr.POSITIVE;return t?e?Sn.UP:Sn.DOWN:e?Sn.RIGHT:Sn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let o=e.some(f=>f.tagName===Za.toUpperCase()),l=e.some(f=>f.tagName===xi.toUpperCase());o&&!l?this.setAttribute("data-type","mdc-text-divider"):!o&&l&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
3909
3909
  <div></div>
3910
3910
  <slot @slotchange=${this.inferDividerType}></slot>
3911
3911
  <div></div>
@@ -3946,7 +3946,7 @@
3946
3946
  `,lb=[T0];var zd=class extends Qt{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return S`
3947
3947
  <div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
3948
3948
  <slot></slot>
3949
- `}};zd.styles=[...Qt.styles,...lb];var vp=zd;var db=z.constructTagName("formfieldgroup");vp.register(db);var Bd=vp;qa.register(Ll);var x0=qa;sn.register(Jl);var A0=sn;var hs=_i(class extends si{constructor(a){if(super(a),a.type!==gr.PROPERTY&&a.type!==gr.ATTRIBUTE&&a.type!==gr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!$l(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[i]){if(i===$e||i===W)return i;let t=a.element,e=a.name;if(a.type===gr.PROPERTY){if(i===t[e])return $e}else if(a.type===gr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return $e}else if(a.type===gr.ATTRIBUTE&&t.getAttribute(e)===i+"")return $e;return Vl(a),i}});Qt.register(Vv);var dr=Qt;var cb=z.constructTagName("input"),Hd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},aa={OFF:"off",ON:"on"},go={PASSWORD:"password",TEXT:"text",SEARCH:"search"},hb={MAX_LENGTH:10,VALIDATION:qt.ERROR},Pi={VALIDATION:qt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Vt.TERTIARY,CLEAR_BUTTON_SIZE:Sr[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:aa.OFF,INPUT_TYPE:go.TEXT};var S0=[B`
3949
+ `}};zd.styles=[...Qt.styles,...lb];var vp=zd;var db=z.constructTagName("formfieldgroup");vp.register(db);var Bd=vp;qa.register(Ll);var x0=qa;sn.register(Jl);var A0=sn;var ps=_i(class extends si{constructor(a){if(super(a),a.type!==gr.PROPERTY&&a.type!==gr.ATTRIBUTE&&a.type!==gr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!$l(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[i]){if(i===$e||i===W)return i;let t=a.element,e=a.name;if(a.type===gr.PROPERTY){if(i===t[e])return $e}else if(a.type===gr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return $e}else if(a.type===gr.ATTRIBUTE&&t.getAttribute(e)===i+"")return $e;return Vl(a),i}});Qt.register(Vv);var dr=Qt;var cb=z.constructTagName("input"),Hd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},aa={OFF:"off",ON:"on"},go={PASSWORD:"password",TEXT:"text",SEARCH:"search"},hb={MAX_LENGTH:10,VALIDATION:qt.ERROR},Pi={VALIDATION:qt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Vt.TERTIARY,CLEAR_BUTTON_SIZE:Sr[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:aa.OFF,INPUT_TYPE:go.TEXT};var S0=[B`
3950
3950
  :host {
3951
3951
  --mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
3952
3952
  --mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
@@ -4100,7 +4100,7 @@
4100
4100
  part="input-text"
4101
4101
  id="${this.inputId}"
4102
4102
  name="${this.name}"
4103
- .value="${hs(this.value)}"
4103
+ .value="${ps(this.value)}"
4104
4104
  ?disabled="${this.disabled}"
4105
4105
  ?readonly="${this.readonly}"
4106
4106
  ?required="${this.required}"
@@ -4166,7 +4166,7 @@
4166
4166
  width: 1.25rem;
4167
4167
  height: 1.25rem;
4168
4168
  }
4169
- `,mb=[yt,_0];var Ud=z.constructTagName("inputchip"),Gd={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var ps=class extends ce(te(Z)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
4169
+ `,mb=[yt,_0];var Ud=z.constructTagName("inputchip"),Gd={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var ms=class extends ce(te(Z)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
4170
4170
  <slot name="prefix">
4171
4171
  ${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:W}
4172
4172
  </slot>
@@ -4184,7 +4184,7 @@
4184
4184
  size="20"
4185
4185
  @click="${this.handleClose}"
4186
4186
  ></mdc-button>
4187
- `}};ps.styles=[...Z.styles,...mb],h([u({type:String})],ps.prototype,"label",2),h([u({type:Boolean})],ps.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],ps.prototype,"clearAriaLabel",2);var gp=ps;gp.register(Ud);var C0=gp;var k0=B`
4187
+ `}};ms.styles=[...Z.styles,...mb],h([u({type:String})],ms.prototype,"label",2),h([u({type:Boolean})],ms.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],ms.prototype,"clearAriaLabel",2);var gp=ms;gp.register(Ud);var C0=gp;var k0=B`
4188
4188
  :host([icon-name])::part(text) {
4189
4189
  margin-inline-end: 0.25rem;
4190
4190
  }
@@ -4354,10 +4354,10 @@
4354
4354
  color: var(--mdc-link-color-disabled);
4355
4355
  pointer-events: none;
4356
4356
  }
4357
- `,gb=[N0,...Et()];var ms=class extends ce(fe){constructor(){super(...arguments);this.size=la.SIZE;this.inline=la.INLINE;this.inverted=la.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=la.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(na).includes(t)?`${t}`:la.SIZE.toString())}render(){return S`
4357
+ `,gb=[N0,...Et()];var us=class extends ce(fe){constructor(){super(...arguments);this.size=la.SIZE;this.inline=la.INLINE;this.inverted=la.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=la.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(na).includes(t)?`${t}`:la.SIZE.toString())}render(){return S`
4358
4358
  <slot></slot>
4359
4359
  ${this.iconName?S` <mdc-icon name=${this.iconName} size=${vb(this.size)} length-unit="rem"></mdc-icon> `:W}
4360
- `}};ms.styles=[...ni.styles,...gb],h([u({type:Number,reflect:!0})],ms.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ms.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],ms.prototype,"inverted",2);var yp=ms;yp.register(fb);var M0=yp;ni.register(kv);var L0=ni;var Jt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var bo=a=>{class i extends Lt(Nt(a)){constructor(...o){super(...o);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=o=>{var f;let{target:l}=o,c=o instanceof CustomEvent&&((f=o.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof Z&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=o=>{let l=o.target,c=this.getCurrentIndex(l);if(c!==-1){let f=!(this.navItems.at(c)!==l&&document.activeElement===o.target);this.resetTabIndexAndSetFocus(c,void 0,f,!1)}};this.handleNavBeforeFocus=o=>{let l=Jc(o.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){o.preventDefault();let c=this.navItems.find(y=>y.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Jt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(o){super.firstUpdated(o),this.setInitialFocus()}setInitialFocus(){let o=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(o,void 0,!1)}handleNavigationKeyDown(o){let l=this.getActionForKeyEvent(o,!0),c=this.orientation==="vertical",f=new Set(c?[q.DOWN,q.UP,q.HOME,q.END]:[q.LEFT,q.RIGHT,q.HOME,q.END]);if(!l||!f.has(l))return;let y=o.target,A=this.getCurrentIndex(y);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case q.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case q.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case q.DOWN:case q.RIGHT:{let U=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?U:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case q.UP:case q.LEFT:{let U=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?U:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(o.stopPropagation(),o.preventDefault()))}getCurrentIndex(o){return o?this.navItems.findIndex(l=>l===o||!!(l.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(o,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(o)?o:0,y=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);y&&(y.setAttribute("tabindex","0"),l&&y.focus())}}resetTabIndexAndSetFocus(o,l,c=!0,f=!0){var F;let{navItems:y}=this;if(y.length===0)return!1;let A=(F=y.at(o))!=null?F:y.find(Boolean);return o===0&&l===0&&y.length===1?!0:o===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?y.forEach(U=>U.setAttribute("tabindex","-1")):y.at(l)&&y.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===ee.SPATIAL?!1:this.loop!=="false"}}return i};var Kd=z.constructTagName("listitem"),Cn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},bb={VARIANT:Cn.FULL_WIDTH};var O0=a=>!!a,Mr=class{constructor(i,t){this.cache=[];this.itemCreationHandler=i=>{i.stopPropagation(),this.addItem(i.target,void 0)};this.itemDestroyHandler=i=>{i.stopPropagation(),this.delete(i.detail.originalTarget)};this.host=i,i.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||O0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Jt.CREATED,this.itemCreationHandler),this.host.addEventListener(Jt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Jt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Jt.DESTROYED,this.itemDestroyHandler),this.reset()}add(i){this.addItem(i,void 0)}addAt(i,t){this.addItem(i,t)}getIndexToInsertInCache(i){if(!this.cache.length||!nf(this.cache.at(-1),i))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let o=Math.floor((t+e)/2);lf(this.cache[o],i)?t=o+1:e=o-1}return t}addItem(i,t=void 0){var o;let e=i;if(this.isValidItem(e)&&!this.cache.includes(e)){let l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((o=this.onStoreUpdate)==null||o.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,0,e)}}delete(i){var e;let t=this.cache.indexOf(i);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,i,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(i){this.cache.length=0,i&&this.cache.push(...i)}};var ci=a=>{class i extends a{constructor(...o){super(...o);this.handleItemCreation=o=>{let l=o.target;l&&l.addEventListener(Jt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=o=>{o.stopImmediatePropagation(),o.target&&o.type===Jt.DESTROYED&&(o.target.removeEventListener(Jt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(o.type,{bubbles:o.bubbles,composed:o.composed,detail:{originalTarget:o.target}})))};this.addEventListener(Jt.CREATED,this.handleItemCreation)}}return i};var R0=B`
4360
+ `}};us.styles=[...ni.styles,...gb],h([u({type:Number,reflect:!0})],us.prototype,"size",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inverted",2);var yp=us;yp.register(fb);var M0=yp;ni.register(kv);var L0=ni;var Jt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var bo=a=>{class i extends Lt(Nt(a)){constructor(...o){super(...o);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=o=>{var f;let{target:l}=o,c=o instanceof CustomEvent&&((f=o.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof Z&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=o=>{let l=o.target,c=this.getCurrentIndex(l);if(c!==-1){let f=!(this.navItems.at(c)!==l&&document.activeElement===o.target);this.resetTabIndexAndSetFocus(c,void 0,f,!1)}};this.handleNavBeforeFocus=o=>{let l=Jc(o.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){o.preventDefault();let c=this.navItems.find(y=>y.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Jt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(o){super.firstUpdated(o),this.setInitialFocus()}setInitialFocus(){let o=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(o,void 0,!1)}handleNavigationKeyDown(o){let l=this.getActionForKeyEvent(o,!0),c=this.orientation==="vertical",f=new Set(c?[q.DOWN,q.UP,q.HOME,q.END]:[q.LEFT,q.RIGHT,q.HOME,q.END]);if(!l||!f.has(l))return;let y=o.target,A=this.getCurrentIndex(y);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case q.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case q.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case q.DOWN:case q.RIGHT:{let U=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?U:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case q.UP:case q.LEFT:{let U=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?U:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(o.stopPropagation(),o.preventDefault()))}getCurrentIndex(o){return o?this.navItems.findIndex(l=>l===o||!!(l.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(o,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(o)?o:0,y=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);y&&(y.setAttribute("tabindex","0"),l&&y.focus())}}resetTabIndexAndSetFocus(o,l,c=!0,f=!0){var F;let{navItems:y}=this;if(y.length===0)return!1;let A=(F=y.at(o))!=null?F:y.find(Boolean);return o===0&&l===0&&y.length===1?!0:o===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?y.forEach(U=>U.setAttribute("tabindex","-1")):y.at(l)&&y.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===ee.SPATIAL?!1:this.loop!=="false"}}return i};var Kd=z.constructTagName("listitem"),Cn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},bb={VARIANT:Cn.FULL_WIDTH};var O0=a=>!!a,Mr=class{constructor(i,t){this.cache=[];this.itemCreationHandler=i=>{i.stopPropagation(),this.addItem(i.target,void 0)};this.itemDestroyHandler=i=>{i.stopPropagation(),this.delete(i.detail.originalTarget)};this.host=i,i.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||O0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Jt.CREATED,this.itemCreationHandler),this.host.addEventListener(Jt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Jt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Jt.DESTROYED,this.itemDestroyHandler),this.reset()}add(i){this.addItem(i,void 0)}addAt(i,t){this.addItem(i,t)}getIndexToInsertInCache(i){if(!this.cache.length||!nf(this.cache.at(-1),i))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let o=Math.floor((t+e)/2);lf(this.cache[o],i)?t=o+1:e=o-1}return t}addItem(i,t=void 0){var o;let e=i;if(this.isValidItem(e)&&!this.cache.includes(e)){let l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((o=this.onStoreUpdate)==null||o.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,0,e)}}delete(i){var e;let t=this.cache.indexOf(i);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,i,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(i){this.cache.length=0,i&&this.cache.push(...i)}};var ci=a=>{class i extends a{constructor(...o){super(...o);this.handleItemCreation=o=>{let l=o.target;l&&l.addEventListener(Jt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=o=>{o.stopImmediatePropagation(),o.target&&o.type===Jt.DESTROYED&&(o.target.removeEventListener(Jt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(o.type,{bubbles:o.bubbles,composed:o.composed,detail:{originalTarget:o.target}})))};this.addEventListener(Jt.CREATED,this.handleItemCreation)}}return i};var R0=B`
4361
4361
  :host {
4362
4362
  display: flex;
4363
4363
  flex-direction: column;
@@ -4383,11 +4383,11 @@
4383
4383
  scroll-padding-left: 0.25rem;
4384
4384
  scroll-padding-right: 0.25rem;
4385
4385
  }
4386
- `,yb=[R0];var Eb=z.constructTagName("list");var kn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Wd={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:kn.VERTICAL};var us=class extends bo(ci(Z)){constructor(){super();this.loop=Wd.LOOP;this.initialFocus=Wd.INITIAL_FOCUS;this.orientation=Wd.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,o){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=o+1;l>=this.navItems.length&&(l=o-1),this.resetTabIndexes(l,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${Kd}:not([disabled])`)}render(){return S`
4386
+ `,yb=[R0];var Eb=z.constructTagName("list");var kn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Wd={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:kn.VERTICAL};var fs=class extends bo(ci(Z)){constructor(){super();this.loop=Wd.LOOP;this.initialFocus=Wd.INITIAL_FOCUS;this.orientation=Wd.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,o){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=o+1;l>=this.navItems.length&&(l=o-1),this.resetTabIndexes(l,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${Kd}:not([disabled])`)}render(){return S`
4387
4387
  <slot name="list-header"></slot>
4388
4388
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
4389
4389
  <slot part="container" role="presentation"></slot>
4390
- `}};us.styles=[...Z.styles,...yb],h([u({type:String,reflect:!0})],us.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],us.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],us.prototype,"orientation",2);var Fi=us;Fi.register(Eb);var Ep=Fi;var D0=B`
4390
+ `}};fs.styles=[...Z.styles,...yb],h([u({type:String,reflect:!0})],fs.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],fs.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],fs.prototype,"orientation",2);var Fi=fs;Fi.register(Eb);var Ep=Fi;var D0=B`
4391
4391
  :host {
4392
4392
  --mdc-listheader-padding: 0.5rem 0.75rem;
4393
4393
  --mdc-listheader-gap: 0.5rem;
@@ -4859,7 +4859,7 @@
4859
4859
  ${this.renderCheckmarkIcon()}
4860
4860
  </div>
4861
4861
  </slot>
4862
- `}};ha.styles=[...Lr.styles,...zb],h([u({type:Boolean,reflect:!0})],ha.prototype,"checked",2),h([u({type:String,reflect:!0})],ha.prototype,"indicator",2);var Lp=ha;Lp.register(Xd);var J0=Lp;var So=z.constructTagName("navmenuitem"),Bb={DOT:Cr.DOT,COUNTER:Cr.COUNTER},Hb={RIGHT_ARROW:"arrow-right-bold"},Op={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Ho[24],VARIANT:cr.FLEXIBLE,CANNOT_ACTIVATE:!1};var tS=B`
4862
+ `}};ha.styles=[...Lr.styles,...zb],h([u({type:Boolean,reflect:!0})],ha.prototype,"checked",2),h([u({type:String,reflect:!0})],ha.prototype,"indicator",2);var Lp=ha;Lp.register(Xd);var J0=Lp;var So=z.constructTagName("navmenuitem"),Bb={DOT:Cr.DOT,COUNTER:Cr.COUNTER},Hb={RIGHT_ARROW:"arrow-right-bold"},Op={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Uo[24],VARIANT:cr.FLEXIBLE,CANNOT_ACTIVATE:!1};var tS=B`
4863
4863
  :host::part(popover-content) {
4864
4864
  padding: 0.75rem 0.5rem;
4865
4865
  }
@@ -4867,7 +4867,7 @@
4867
4867
  ::slotted(mdc-divider) {
4868
4868
  margin-block: 0.25rem;
4869
4869
  }
4870
- `,Ub=[tS];var $n=a=>{var t;if(!a)return!1;let i=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return i===et.MENUITEM||i===et.MENUITEMCHECKBOX||i===et.MENUITEMRADIO},Rp=a=>{var i;return((i=a==null?void 0:a.tagName)==null?void 0:i.toLowerCase())===be};var Vn=class extends nr{constructor(){super();this.placement=Ap.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),o=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!o||l)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(t.composedPath().find(o=>o.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;$n(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 o=t.target,l=this.getCurrentIndex(o);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case q.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case q.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case q.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case q.RIGHT:{let f=this.getSubMenuPopoverOfTarget(o);f&&(f.show(),e=!0);break}case q.LEFT:{Rp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case q.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case q.ENTER:{!this.getSubMenuPopoverOfTarget(o)&&!o.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(o),e=!0);break}case q.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,o=t.target;switch(this.getActionForKeyEvent(t)){case q.SPACE:{!o.matches(`${Xd}, ${qd}`)&&!o.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(o)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(o),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 o,l;let e=t.getAttribute("id");return e?(l=(o=this.parentElement)==null?void 0:o.querySelector)==null?void 0:l.call(o,`${be}[triggerid="${e}"]`):null}collectMenuItems(){var o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(l=>l.tagName.toLowerCase()===Vi?Array.from(l.children).filter(c=>$n(c)):$n(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(o=>{let l=this.getSubMenuPopoverOfTarget(o);l&&l.visible&&e.push(l)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Ap.ORIENTATION,this.backdrop=!1,this.color=Zo.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=![On,So].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(o=>{let l=this.getSubMenuPopoverOfTarget(o);l&&l.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}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())}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&Rp(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(e).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(On)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!$n(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};Vn.styles=[...nr.styles,...Ub],h([u({type:String,reflect:!0})],Vn.prototype,"placement",2);var Dp=Vn;Dp.register(be);var eS=Dp;var Qd=class{constructor(i,t){this.variant=i,this.expanded=t}hasSiblingWithTriggerId(i){var o,l;let t=i==null?void 0:i.getAttribute("id");return t?Array.from((l=(o=i==null?void 0:i.parentElement)==null?void 0:o.children)!=null?l:[]).some(c=>c!==i&&c.tagName.toLowerCase()===be&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(i){if(!i)return[];let t=[],e=i;for(;e;){let o=e==null?void 0:e.closest(be);if(!o)break;let l=o.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===So)t.push(c),e=c;else break}return t}setCurrentActiveNavMenuItem(i){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(i==null?void 0:i.navId),e=(i==null?void 0:i.cannotActivate)||this.hasSiblingWithTriggerId(i)||(i==null?void 0:i.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")})),!i))return;this.currentActiveNavMenuItem=i,i!=null&&i.disableAriaCurrent||i.setAttribute("aria-current","page"),i.setAttribute("active",""),this.getParentNavMenuItems(i).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};Qd.context=Eo;var Jd=Qd;var rS=B`
4870
+ `,Ub=[tS];var $n=a=>{var t;if(!a)return!1;let i=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return i===et.MENUITEM||i===et.MENUITEMCHECKBOX||i===et.MENUITEMRADIO},Rp=a=>{var i;return((i=a==null?void 0:a.tagName)==null?void 0:i.toLowerCase())===be};var Vn=class extends nr{constructor(){super();this.placement=Ap.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),o=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!o||l)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(t.composedPath().find(o=>o.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;$n(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 o=t.target,l=this.getCurrentIndex(o);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case q.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case q.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case q.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case q.RIGHT:{let f=this.getSubMenuPopoverOfTarget(o);f&&(f.show(),e=!0);break}case q.LEFT:{Rp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case q.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case q.ENTER:{!this.getSubMenuPopoverOfTarget(o)&&!o.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(o),e=!0);break}case q.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,o=t.target;switch(this.getActionForKeyEvent(t)){case q.SPACE:{!o.matches(`${Xd}, ${qd}`)&&!o.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(o)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(o),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 o,l;let e=t.getAttribute("id");return e?(l=(o=this.parentElement)==null?void 0:o.querySelector)==null?void 0:l.call(o,`${be}[triggerid="${e}"]`):null}collectMenuItems(){var o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(l=>l.tagName.toLowerCase()===Vi?Array.from(l.children).filter(c=>$n(c)):$n(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(o=>{let l=this.getSubMenuPopoverOfTarget(o);l&&l.visible&&e.push(l)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Ap.ORIENTATION,this.backdrop=!1,this.color=Qo.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![On,So].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(o=>{let l=this.getSubMenuPopoverOfTarget(o);l&&l.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}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())}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&Rp(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(e).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(On)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!$n(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};Vn.styles=[...nr.styles,...Ub],h([u({type:String,reflect:!0})],Vn.prototype,"placement",2);var Dp=Vn;Dp.register(be);var eS=Dp;var Qd=class{constructor(i,t){this.variant=i,this.expanded=t}hasSiblingWithTriggerId(i){var o,l;let t=i==null?void 0:i.getAttribute("id");return t?Array.from((l=(o=i==null?void 0:i.parentElement)==null?void 0:o.children)!=null?l:[]).some(c=>c!==i&&c.tagName.toLowerCase()===be&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(i){if(!i)return[];let t=[],e=i;for(;e;){let o=e==null?void 0:e.closest(be);if(!o)break;let l=o.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===So)t.push(c),e=c;else break}return t}setCurrentActiveNavMenuItem(i){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(i==null?void 0:i.navId),e=(i==null?void 0:i.cannotActivate)||this.hasSiblingWithTriggerId(i)||(i==null?void 0:i.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")})),!i))return;this.currentActiveNavMenuItem=i,i!=null&&i.disableAriaCurrent||i.setAttribute("aria-current","page"),i.setAttribute("active",""),this.getParentNavMenuItems(i).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};Qd.context=Eo;var Jd=Qd;var rS=B`
4871
4871
  :host {
4872
4872
  --mdc-sidenavigation-expanded-width: 14.5rem;
4873
4873
  --mdc-sidenavigation-expanded-left-padding: 1rem;
@@ -5036,7 +5036,7 @@
5036
5036
  </div>
5037
5037
  ${this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER?S`<mdc-divider
5038
5038
  part="vertical-divider"
5039
- orientation=${ds.VERTICAL}
5039
+ orientation=${cs.VERTICAL}
5040
5040
  variant=${An.GRADIENT}
5041
5041
  arrow-direction=${this.expanded?Nr.NEGATIVE:Nr.POSITIVE}
5042
5042
  button-position=${Nr.POSITIVE}
@@ -5049,7 +5049,7 @@
5049
5049
  aria-controls="side-nav-container"
5050
5050
  ></mdc-button>
5051
5051
  </mdc-divider>`:W}
5052
- `}};zi.styles=[...Z.styles,...Gb],h([u({type:String,reflect:!0})],zi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],zi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],zi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],zi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],zi.prototype,"hideFixedSectionDivider",2);var fs=zi;var iS=B`
5052
+ `}};zi.styles=[...Z.styles,...Gb],h([u({type:String,reflect:!0})],zi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],zi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],zi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],zi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],zi.prototype,"hideFixedSectionDivider",2);var vs=zi;var iS=B`
5053
5053
  :host {
5054
5054
  --mdc-menusection-divider-margin-block: 0.25rem;
5055
5055
  --mdc-menusection-gap: 0rem;
@@ -5070,7 +5070,7 @@
5070
5070
  :host::part(align-header) {
5071
5071
  --mdc-listheader-padding: var(--mdc-menusection-header-padding);
5072
5072
  }
5073
- `,Kb=[iS];var hi=class extends Z{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Cb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=_e.consume({host:this,context:fs.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(l=this.sideNavigationContext)==null?void 0:l.value;if(!e)return;let{expanded:o}=e;this.hideHeaderText=!o}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
5073
+ `,Kb=[iS];var hi=class extends Z{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Cb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=_e.consume({host:this,context:vs.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(l=this.sideNavigationContext)==null?void 0:l.value;if(!e)return;let{expanded:o}=e;this.hideHeaderText=!o}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
5074
5074
  part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
5075
5075
  header-text="${this.headerText}"
5076
5076
  prefix-icon="${J(this.prefixIcon)}"
@@ -5270,7 +5270,7 @@
5270
5270
  background-color: ButtonText;
5271
5271
  }
5272
5272
  }
5273
- `,...Et()],Wb=sS;var le=class extends Lr{constructor(){super();this.cannotActivate=Op.CANNOT_ACTIVATE;this.maxCounter=Op.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=_e.consume({host:this,context:fs.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var o;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(o=this.sideNavigationContext)==null?void 0:o.value;e&&(this.showLabel=this.isNested()?!0:e.expanded)}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(Dn);t.id=`mdc-navmenuitem-tooltip-${ze()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${Dn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===be)return!0;t=t.parentElement}return!1}handleClickEvent(){this.disabled||this.cannotActivate||this.emitNavMenuItemActiveChange(this.active)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Ko(this.iconName)}-filled`}renderBadge(t){return Object.values(Bb).includes(this.badgeType)?S`
5273
+ `,...Et()],Wb=sS;var le=class extends Lr{constructor(){super();this.cannotActivate=Op.CANNOT_ACTIVATE;this.maxCounter=Op.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=_e.consume({host:this,context:vs.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var o;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(o=this.sideNavigationContext)==null?void 0:o.value;e&&(this.showLabel=this.isNested()?!0:e.expanded)}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(Dn);t.id=`mdc-navmenuitem-tooltip-${ze()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${Dn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===be)return!0;t=t.parentElement}return!1}handleClickEvent(){this.disabled||this.cannotActivate||this.emitNavMenuItemActiveChange(this.active)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Wo(this.iconName)}-filled`}renderBadge(t){return Object.values(Bb).includes(this.badgeType)?S`
5274
5274
  <mdc-badge
5275
5275
  part="${t?"":"badge"}"
5276
5276
  type="${J(this.badgeType)}"
@@ -5363,7 +5363,7 @@
5363
5363
  :host([data-hidden]) {
5364
5364
  display: none;
5365
5365
  }
5366
- `],qb=dS;var vs=class extends pe($i){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=Cn.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Yb):W;return S`
5366
+ `],qb=dS;var gs=class extends pe($i){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=Cn.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Yb):W;return S`
5367
5367
  <div part="leading">
5368
5368
  <slot name="leading-controls">
5369
5369
  ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):W}
@@ -5374,11 +5374,11 @@
5374
5374
  </div>
5375
5375
  </div>
5376
5376
  <div part="trailing">${t}</div>
5377
- `}};vs.styles=[...$i.styles,...qb],h([u({type:Boolean,reflect:!0})],vs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],vs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],vs.prototype,"ariaLabel",2);var zp=vs;zp.register(Rr);var cS=zp;var Bp={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Xb=z.constructTagName("password");var hS=[B`
5377
+ `}};gs.styles=[...$i.styles,...qb],h([u({type:Boolean,reflect:!0})],gs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],gs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],gs.prototype,"ariaLabel",2);var zp=gs;zp.register(Rr);var cS=zp;var Bp={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Xb=z.constructTagName("password");var hS=[B`
5378
5378
  input::-ms-reveal {
5379
5379
  display: none;
5380
5380
  }
5381
- `],Zb=hS;var gs=class extends Yr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?S`
5381
+ `],Zb=hS;var bs=class extends Yr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?S`
5382
5382
  <mdc-button
5383
5383
  part="trailing-button"
5384
5384
  class="own-focus-ring ${e?"":"hidden"}"
@@ -5389,7 +5389,7 @@
5389
5389
  aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
5390
5390
  prefix-icon=${this.showPassword?Bp.HIDE_BOLD:Bp.SHOW_BOLD}
5391
5391
  ></mdc-button>
5392
- `:W}renderInputElement(t,e){let o=this.showPassword?go.TEXT:go.PASSWORD;return super.renderInputElement(o,e)}};gs.styles=[...Yr.styles,...Zb],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],gs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],gs.prototype,"hideButtonAriaLabel",2),h([dt()],gs.prototype,"showPassword",2);var Hp=gs;Hp.register(Xb);var pS=Hp;var ec=z.constructTagName("progressbar"),rc={DEFAULT:"default",INLINE:"inline"},Qb={VARIANT:rc.DEFAULT,VALIDATION:qt.DEFAULT};var mS=[yt,B`
5392
+ `:W}renderInputElement(t,e){let o=this.showPassword?go.TEXT:go.PASSWORD;return super.renderInputElement(o,e)}};bs.styles=[...Yr.styles,...Zb],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],bs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],bs.prototype,"hideButtonAriaLabel",2),h([dt()],bs.prototype,"showPassword",2);var Hp=bs;Hp.register(Xb);var pS=Hp;var ec=z.constructTagName("progressbar"),rc={DEFAULT:"default",INLINE:"inline"},Qb={VARIANT:rc.DEFAULT,VALIDATION:qt.DEFAULT};var mS=[yt,B`
5393
5393
  :host {
5394
5394
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
5395
5395
  --mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
@@ -5462,7 +5462,7 @@
5462
5462
  border: var(--mdc-progressbar-border);
5463
5463
  }
5464
5464
  }
5465
- `],Jb=mS;var bs=class extends ie(dr){constructor(){super(...arguments);this.variant=Qb.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var l;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return S`
5465
+ `],Jb=mS;var ys=class extends ie(dr){constructor(){super(...arguments);this.variant=Qb.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var l;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return S`
5466
5466
  <div
5467
5467
  part="progress-container ${e?"gap":""}"
5468
5468
  role="${et.PROGRESSBAR}"
@@ -5482,7 +5482,7 @@
5482
5482
  </div>
5483
5483
  ${this.renderProgressbar()} ${this.renderHelperText()}
5484
5484
  `}
5485
- `}};bs.styles=[...dr.styles,...Jb],h([u({type:String,reflect:!0})],bs.prototype,"variant",2),h([u({type:String,reflect:!0})],bs.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],bs.prototype,"error",2);var zn=bs;zn.register(ec);var uS=zn;var ty=z.constructTagName("progressspinner"),ye={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Up={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Gp=a=>{if(a===0)return 0;let i=a/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(i,.1*a)},ey=a=>{let i=ye.CIRCUMFERENCE-Gp(a)-2*ye.GAP_SIZE;return a===0?ye.CIRCUMFERENCE:i<0?0:i},ry=a=>a===0?0:ye.GAP_SIZE*.5,iy=(a,i)=>{let t=i+ye.GAP_SIZE*1.5;return a===0?0:t};var fS=B`
5485
+ `}};ys.styles=[...dr.styles,...Jb],h([u({type:String,reflect:!0})],ys.prototype,"variant",2),h([u({type:String,reflect:!0})],ys.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],ys.prototype,"error",2);var zn=ys;zn.register(ec);var uS=zn;var ty=z.constructTagName("progressspinner"),ye={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Up={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Gp=a=>{if(a===0)return 0;let i=a/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(i,.1*a)},ey=a=>{let i=ye.CIRCUMFERENCE-Gp(a)-2*ye.GAP_SIZE;return a===0?ye.CIRCUMFERENCE:i<0?0:i},ry=a=>a===0?0:ye.GAP_SIZE*.5,iy=(a,i)=>{let t=i+ye.GAP_SIZE*1.5;return a===0?0:t};var fS=B`
5486
5486
  :host {
5487
5487
  --mdc-spinner-size: 3rem;
5488
5488
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -5693,7 +5693,7 @@
5693
5693
  position: relative;
5694
5694
  scrollbar-width: none;
5695
5695
  }
5696
- `,ny=[TS];var ly=z.constructTagName("searchfield"),Un={TYPE:go.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:Ud};var ys=class extends Lt(Yr){constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===q.ENTER&&(this.handleFilterContainerClick(),this.keyDownEventHandled())};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===q.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===q.ESCAPE&&(this.clearInputText(),this.keyDownEventHandled())}connectedCallback(){super.connectedCallback(),this.leadingIcon=Un.ICON,this.trailingButton=Un.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(e=>{e.matches(Un.INPUT_CHIP_TAG)||e.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(e=>{e.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return S`
5696
+ `,ny=[TS];var ly=z.constructTagName("searchfield"),Un={TYPE:go.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:Ud};var Es=class extends Lt(Yr){constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===q.ENTER&&(this.handleFilterContainerClick(),this.keyDownEventHandled())};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===q.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===q.ESCAPE&&(this.clearInputText(),this.keyDownEventHandled())}connectedCallback(){super.connectedCallback(),this.leadingIcon=Un.ICON,this.trailingButton=Un.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(e=>{e.matches(Un.INPUT_CHIP_TAG)||e.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(e=>{e.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return S`
5697
5697
  ${this.renderLabelElement()}
5698
5698
  <div
5699
5699
  class="${Wr({"mdc-focus-ring":this.isInputFocused})}"
@@ -5713,7 +5713,7 @@
5713
5713
  </div>
5714
5714
  ${this.renderTrailingButton(this.hasInputChips)}
5715
5715
  </div>
5716
- `}};ys.styles=[...Yr.styles,...ny],h([jt({slot:"filters"})],ys.prototype,"inputChips",2),h([dt()],ys.prototype,"isInputFocused",2),h([dt()],ys.prototype,"hasInputChips",2);var ma=ys;ma.register(ly);var xS=ma;var AS=B`
5716
+ `}};Es.styles=[...Yr.styles,...ny],h([jt({slot:"filters"})],Es.prototype,"inputChips",2),h([dt()],Es.prototype,"isInputFocused",2),h([dt()],Es.prototype,"hasInputChips",2);var ma=Es;ma.register(ly);var xS=ma;var AS=B`
5717
5717
  :host {
5718
5718
  --mdc-searchpopover-width: 100%;
5719
5719
  --mdc-searchpopover-popover-width: var(--mdc-searchpopover-width);
@@ -5738,7 +5738,7 @@
5738
5738
  part="input-text"
5739
5739
  id="${this.inputId}"
5740
5740
  name="${this.name}"
5741
- .value="${hs(this.value)}"
5741
+ .value="${ps(this.value)}"
5742
5742
  ?disabled="${this.disabled}"
5743
5743
  ?readonly="${this.readonly}"
5744
5744
  ?required="${this.required}"
@@ -5995,7 +5995,7 @@
5995
5995
  </mdc-popover>
5996
5996
  </div>
5997
5997
  ${this.renderHelperText()}
5998
- `}};hr.styles=[...Qt.styles,...uy],h([u({type:String})],hr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],hr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],hr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],hr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],hr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],hr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],hr.prototype,"backdropAppendTo",2),h([Kt(`[id="${ac}"]`)],hr.prototype,"visualCombobox",2),h([dt()],hr.prototype,"selectedOption",2),h([dt()],hr.prototype,"displayPopover",2);var Qp=hr;Qp.register(hy);var _S=Qp;var Jp=class extends Z{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},tm=Jp;var nc=z.constructTagName("selectlistbox");tm.register(nc);var CS=tm;fs.register(Eo);var kS=fs;var fy=z.constructTagName("skeleton"),vy={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},gy={VARIANT:vy.RECTANGULAR};var wS=B`
5998
+ `}};hr.styles=[...Qt.styles,...uy],h([u({type:String})],hr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],hr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],hr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],hr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],hr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],hr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],hr.prototype,"backdropAppendTo",2),h([Kt(`[id="${ac}"]`)],hr.prototype,"visualCombobox",2),h([dt()],hr.prototype,"selectedOption",2),h([dt()],hr.prototype,"displayPopover",2);var Qp=hr;Qp.register(hy);var _S=Qp;var Jp=class extends Z{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},tm=Jp;var nc=z.constructTagName("selectlistbox");tm.register(nc);var CS=tm;vs.register(Eo);var kS=vs;var fy=z.constructTagName("skeleton"),vy={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},gy={VARIANT:vy.RECTANGULAR};var wS=B`
5999
5999
  :host {
6000
6000
  --mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
6001
6001
  --mdc-skeleton-height: 100%;
@@ -6137,7 +6137,7 @@
6137
6137
  padding-top: 0.9375rem;
6138
6138
  margin: 0 -3rem;
6139
6139
  }
6140
- `,Ay=[yt,FS];var ua=class extends Ie{constructor(){super({context:pc.context,initialValue:new pc(Kn.ORIENTATION,Kn.VARIANT)});this.orientation=Kn.ORIENTATION;this.variant=Kn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return pc.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return S` <slot></slot> `}};ua.styles=[...Z.styles,...Ay],h([u({type:String,reflect:!0})],ua.prototype,"orientation",2),h([u({type:String,reflect:!0})],ua.prototype,"variant",2);var Es=ua;Es.register(cc);var $S=Es;var VS=B`
6140
+ `,Ay=[yt,FS];var ua=class extends Ie{constructor(){super({context:pc.context,initialValue:new pc(Kn.ORIENTATION,Kn.VARIANT)});this.orientation=Kn.ORIENTATION;this.variant=Kn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return pc.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return S` <slot></slot> `}};ua.styles=[...Z.styles,...Ay],h([u({type:String,reflect:!0})],ua.prototype,"orientation",2),h([u({type:String,reflect:!0})],ua.prototype,"variant",2);var Ts=ua;Ts.register(cc);var $S=Ts;var VS=B`
6141
6141
  :host {
6142
6142
  --mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
6143
6143
  --mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
@@ -6172,7 +6172,7 @@
6172
6172
  border-left: 1px solid var(--mdc-stepperconnector-complete-background);
6173
6173
  }
6174
6174
  }
6175
- `,Sy=[VS];var fa=class extends Z{constructor(){super(...arguments);this.status=om.STATUS;this.orientation=om.ORIENTATION;this.stepperContext=_e.consume({host:this,context:Es.Context})}updated(t){var o;super.updated(t);let e=(o=this.stepperContext)==null?void 0:o.value;!e||!e.orientation||(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};fa.styles=[...Z.styles,...Sy],h([u({type:String,reflect:!0})],fa.prototype,"status",2),h([u({type:String,reflect:!0})],fa.prototype,"orientation",2);var nm=fa;nm.register(Ty);var zS=nm;var BS=B`
6175
+ `,Sy=[VS];var fa=class extends Z{constructor(){super(...arguments);this.status=om.STATUS;this.orientation=om.ORIENTATION;this.stepperContext=_e.consume({host:this,context:Ts.Context})}updated(t){var o;super.updated(t);let e=(o=this.stepperContext)==null?void 0:o.value;!e||!e.orientation||(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};fa.styles=[...Z.styles,...Sy],h([u({type:String,reflect:!0})],fa.prototype,"status",2),h([u({type:String,reflect:!0})],fa.prototype,"orientation",2);var nm=fa;nm.register(Ty);var zS=nm;var BS=B`
6176
6176
  :host {
6177
6177
  gap: 0.5rem;
6178
6178
  border-radius: 0.25rem;
@@ -6328,7 +6328,7 @@
6328
6328
  :host([status='error-incomplete']:active) {
6329
6329
  --mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
6330
6330
  }
6331
- `,Iy=[yt,BS,...Et()];var Hi=class extends Lt(Nt(ti(Z))){constructor(){super();this.variant=am.VARIANT;this.status=am.STATUS;this.label="";this.stepperContext=_e.consume({host:this,context:Es.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var o;super.updated(t);let e=(o=this.stepperContext)==null?void 0:o.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===q.ENTER||e===q.SPACE)&&(this.classList.add("pressed"),e===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===q.ENTER||e===q.SPACE)&&(this.classList.remove("pressed"),e===q.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Bi.COMPLETED?S`<mdc-icon part="status-icon" name=${dc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Bi.ERROR_CURRENT||this.status===Bi.CURRENT?S`<mdc-icon part="status-icon" name=${dc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Bi.NOT_STARTED||this.status===Bi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${mt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
6331
+ `,Iy=[yt,BS,...Et()];var Hi=class extends Lt(Nt(ti(Z))){constructor(){super();this.variant=am.VARIANT;this.status=am.STATUS;this.label="";this.stepperContext=_e.consume({host:this,context:Ts.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var o;super.updated(t);let e=(o=this.stepperContext)==null?void 0:o.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===q.ENTER||e===q.SPACE)&&(this.classList.add("pressed"),e===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===q.ENTER||e===q.SPACE)&&(this.classList.remove("pressed"),e===q.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Bi.COMPLETED?S`<mdc-icon part="status-icon" name=${dc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Bi.ERROR_CURRENT||this.status===Bi.CURRENT?S`<mdc-icon part="status-icon" name=${dc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Bi.NOT_STARTED||this.status===Bi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${mt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
6332
6332
  >${this.stepNumber}</mdc-text
6333
6333
  >`:W}renderHelpText(){if(!this.helpText)return W;let t=S`<mdc-text
6334
6334
  part="help-text"
@@ -6574,7 +6574,7 @@
6574
6574
  --mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
6575
6575
  --mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
6576
6576
  }
6577
- `,...Et()],_y=US;var Co=class extends ce(Yd(fe)){constructor(){super(...arguments);this.active=mc.ACTIVE;this.variant=mc.VARIANT;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(dm).includes(t)?t:mc.VARIANT)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Ko(this.iconName)}-filled`}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
6577
+ `,...Et()],_y=US;var Co=class extends ce(Yd(fe)){constructor(){super(...arguments);this.active=mc.ACTIVE;this.variant=mc.VARIANT;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(dm).includes(t)?t:mc.VARIANT)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Wo(this.iconName)}-filled`}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
6578
6578
  <div part="container">
6579
6579
  <div part="leading">
6580
6580
  <slot name="prefix">
@@ -6636,7 +6636,7 @@
6636
6636
  :host mdc-button[prefix-icon='arrow-right-regular'] {
6637
6637
  margin-left: var(--mdc-tablist-arrow-button-margin);
6638
6638
  }
6639
- `],wy=[...GS];var Ny=z.constructTagName("tablist"),ga={FORWARD:"forward",BACKWARD:"backward"};var Gi=class extends bo(ci(Lt(Nt(fc(Z))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${va}:not([disabled])`)}onElementStoreUpdate(t,e,o){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=o+1;l>=this.navItems.length&&(l=o-1);let c=this.navItems.at(l);c instanceof Ui&&c.focus(),this.resetTabIndexes(l,!1)}}resetTabIndexAndSetFocus(t,e){var c;let o=super.resetTabIndexAndSetFocus(t,e,!1,!1),l=(c=this.navItems)==null?void 0:c.at(t);return l instanceof Ui&&l.focus(),this.handleArrowButtonVisibility(),o}async firstUpdated(){var o,l;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(c=>c.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=cm(this.navItems))==null?void 0:o.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}async handleFocus(t){if(t.relatedTarget instanceof Ui||!(t.target instanceof Ui))return;let e=hm(this.navItems||[]);if(!(e instanceof Ui))return;let o=this.navItems.findIndex(l=>l===e);this.resetTabIndexAndSetFocus(o,void 0)}shouldShowArrowButton(t){return t===ga.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=hm(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var U,Q,X;if(!this.navItems||!this.tabsContainer)return;let t=!1;((U=this.shadowRoot)==null?void 0:U.activeElement)instanceof Wo&&(t=!0);let e=cm(this.navItems),o=Cy(this.navItems);if(!e||!o)return;let l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=o.getBoundingClientRect().right,y=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,A=e.getBoundingClientRect().right,F=o.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>y?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>y?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,F<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===ga.FORWARD?e:o),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",o=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
6639
+ `],wy=[...GS];var Ny=z.constructTagName("tablist"),ga={FORWARD:"forward",BACKWARD:"backward"};var Gi=class extends bo(ci(Lt(Nt(fc(Z))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${va}:not([disabled])`)}onElementStoreUpdate(t,e,o){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=o+1;l>=this.navItems.length&&(l=o-1);let c=this.navItems.at(l);c instanceof Ui&&c.focus(),this.resetTabIndexes(l,!1)}}resetTabIndexAndSetFocus(t,e){var c;let o=super.resetTabIndexAndSetFocus(t,e,!1,!1),l=(c=this.navItems)==null?void 0:c.at(t);return l instanceof Ui&&l.focus(),this.handleArrowButtonVisibility(),o}async firstUpdated(){var o,l;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(c=>c.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=cm(this.navItems))==null?void 0:o.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}async handleFocus(t){if(t.relatedTarget instanceof Ui||!(t.target instanceof Ui))return;let e=hm(this.navItems||[]);if(!(e instanceof Ui))return;let o=this.navItems.findIndex(l=>l===e);this.resetTabIndexAndSetFocus(o,void 0)}shouldShowArrowButton(t){return t===ga.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=hm(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var U,Q,X;if(!this.navItems||!this.tabsContainer)return;let t=!1;((U=this.shadowRoot)==null?void 0:U.activeElement)instanceof Yo&&(t=!0);let e=cm(this.navItems),o=Cy(this.navItems);if(!e||!o)return;let l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=o.getBoundingClientRect().right,y=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,A=e.getBoundingClientRect().right,F=o.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>y?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>y?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,F<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===ga.FORWARD?e:o),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",o=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
6640
6640
  variant="tertiary"
6641
6641
  prefix-icon="arrow-${l===ga.FORWARD?t:e}-regular"
6642
6642
  aria-label="Scroll tabs ${l===ga.FORWARD?t:e}"
@@ -7146,7 +7146,7 @@
7146
7146
  :host::part(typewriter-hidden) {
7147
7147
  display: none;
7148
7148
  }
7149
- `],Py=XS;var Fy=z.constructTagName("typewriter"),Ts={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},pi={TYPE:Oe.TYPE,TEXT_ELEMENT_TAGNAME:Oe.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 Z{constructor(){super(...arguments);this.type=pi.TYPE;this.tagname=pi.TEXT_ELEMENT_TAGNAME;this.speed=pi.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 o=window.setTimeout(()=>{this.pendingTimeouts.delete(o),t()},e);return this.pendingTimeouts.add(o),o}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,o){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:o}),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(pi.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(pi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return Ts.SLOW;case"fast":return Ts.FAST;case"very-slow":return Ts.VERY_SLOW;case"very-fast":return Ts.VERY_FAST;case"normal":return Ts.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?Ts.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(l=>l.nodeType===Node.TEXT_NODE||l.nodeType===Node.ELEMENT_NODE).map(l=>l.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let e=()=>{if(this.currentIndex<this.originalText.length){let o=this.originalText[this.currentIndex],l=this.displayedText+o;l!==this.displayedText&&(this.displayedText=l,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(pi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return S`
7149
+ `],Py=XS;var Fy=z.constructTagName("typewriter"),xs={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},pi={TYPE:Oe.TYPE,TEXT_ELEMENT_TAGNAME:Oe.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 Z{constructor(){super(...arguments);this.type=pi.TYPE;this.tagname=pi.TEXT_ELEMENT_TAGNAME;this.speed=pi.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 o=window.setTimeout(()=>{this.pendingTimeouts.delete(o),t()},e);return this.pendingTimeouts.add(o),o}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,o){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:o}),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(pi.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(pi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return xs.SLOW;case"fast":return xs.FAST;case"very-slow":return xs.VERY_SLOW;case"very-fast":return xs.VERY_FAST;case"normal":return xs.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?xs.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(l=>l.nodeType===Node.TEXT_NODE||l.nodeType===Node.ELEMENT_NODE).map(l=>l.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let e=()=>{if(this.currentIndex<this.originalText.length){let o=this.originalText[this.currentIndex],l=this.displayedText+o;l!==this.displayedText&&(this.displayedText=l,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(pi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return S`
7150
7150
  <div part="${pi.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
7151
7151
  <mdc-text
7152
7152
  part="${pi.CSS_PART_TEXT}"
@@ -7391,7 +7391,7 @@
7391
7391
  :host([soft-disabled]) {
7392
7392
  pointer-events: none;
7393
7393
  }
7394
- `,...Et(!0)],Hy=rI;var xs=class extends Nt(Ao(Ve(pe(ie(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=Np.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var o;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===q.SPACE&&t.preventDefault(),e===q.ENTER&&this.getKeyboardNavMode()===ee.DEFAULT&&((o=this.form)==null||o.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Pn).includes(t)?t:Np.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
7394
+ `,...Et(!0)],Hy=rI;var As=class extends Nt(Ao(Ve(pe(ie(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=Np.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var o;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===q.SPACE&&t.preventDefault(),e===q.ENTER&&this.getKeyboardNavMode()===ee.DEFAULT&&((o=this.form)==null||o.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Pn).includes(t)?t:Np.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
7395
7395
  <mdc-statictoggle
7396
7396
  ?checked="${this.checked}"
7397
7397
  ?disabled="${this.disabled}"
@@ -7421,10 +7421,10 @@
7421
7421
  />
7422
7422
  </mdc-statictoggle>
7423
7423
  ${this.renderLabelAndHelperText()}
7424
- `}};xs.styles=[...dr.styles,...Hy],xs.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],xs.prototype,"checked",2),h([u({type:String,reflect:!0})],xs.prototype,"size",2);var Am=xs;Am.register(Pb);var iI=Am;function As(a,i,t){var c;let e=(c=t.initialDeps)!=null?c:[],o;function l(){var f,y,A,F;let U;t.key&&((f=t.debug)!=null&&f.call(t))&&(U=Date.now());let Q=a();if(!(Q.length!==e.length||Q.some((nt,at)=>e[at]!==nt)))return o;e=Q;let tt;if(t.key&&((y=t.debug)!=null&&y.call(t))&&(tt=Date.now()),o=i(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let nt=Math.round((Date.now()-U)*100)/100,at=Math.round((Date.now()-tt)*100)/100,ft=at/16,It=(_t,Ht)=>{for(_t=String(_t);_t.length<Ht;)_t=" "+_t;return _t};console.info(`%c\u23F1 ${It(at,5)} /${It(nt,5)} ms`,`
7424
+ `}};As.styles=[...dr.styles,...Hy],As.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],As.prototype,"checked",2),h([u({type:String,reflect:!0})],As.prototype,"size",2);var Am=As;Am.register(Pb);var iI=Am;function Ss(a,i,t){var c;let e=(c=t.initialDeps)!=null?c:[],o;function l(){var f,y,A,F;let U;t.key&&((f=t.debug)!=null&&f.call(t))&&(U=Date.now());let Q=a();if(!(Q.length!==e.length||Q.some((nt,at)=>e[at]!==nt)))return o;e=Q;let tt;if(t.key&&((y=t.debug)!=null&&y.call(t))&&(tt=Date.now()),o=i(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let nt=Math.round((Date.now()-U)*100)/100,at=Math.round((Date.now()-tt)*100)/100,ft=at/16,It=(_t,Ht)=>{for(_t=String(_t);_t.length<Ht;)_t=" "+_t;return _t};console.info(`%c\u23F1 ${It(at,5)} /${It(nt,5)} ms`,`
7425
7425
  font-size: .6rem;
7426
7426
  font-weight: bold;
7427
- color: hsl(${Math.max(0,Math.min(120-120*ft,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,o),o}return l.updateDeps=f=>{e=f},l}function Sm(a,i){if(a===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return a}var Uy=(a,i)=>Math.abs(a-i)<1.01,Gy=(a,i,t)=>{let e;return function(...o){a.clearTimeout(e),e=a.setTimeout(()=>i.apply(this,o),t)}};var Ky=a=>{let{offsetWidth:i,offsetHeight:t}=a;return{width:i,height:t}},oI=a=>a,Im=a=>{let i=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),e=[];for(let o=i;o<=t;o++)e.push(o);return e},jy=(a,i)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let o=c=>{let{width:f,height:y}=c;i({width:Math.round(f),height:Math.round(y)})};if(o(Ky(t)),!e.ResizeObserver)return()=>{};let l=new e.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let A=y.borderBoxSize[0];if(A){o({width:A.inlineSize,height:A.blockSize});return}}o(Ky(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},Wy={passive:!0};var Yy=typeof window>"u"?!0:"onscrollend"in window,qy=(a,i)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let o=0,l=a.options.useScrollendEvent&&Yy?()=>{}:Gy(e,()=>{i(o,!1)},a.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:U,isRtl:Q}=a.options;o=U?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),i(o,F)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,Wy);let A=a.options.useScrollendEvent&&Yy;return A&&t.addEventListener("scrollend",y,Wy),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",y)}};var sI=(a,i,t)=>{if(i!=null&&i.borderBoxSize){let e=i.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Xy=(a,{adjustments:i=0,behavior:t},e)=>{var o,l;let c=a+i;(l=(o=e.scrollElement)==null?void 0:o.scrollTo)==null||l.call(o,{[e.options.horizontal?"left":"top"]:c,behavior:t})},Ec=class{constructor(i){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(o=>{o.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var o;(o=e())==null||o.disconnect(),t=null},observe:o=>{var l;return(l=e())==null?void 0:l.observe(o,{box:"border-box"})},unobserve:o=>{var l;return(l=e())==null?void 0:l.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,o])=>{typeof o>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:oI,rangeExtractor:Im,onChange:()=>{},measureElement:sI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,o;(o=(e=this.options).onChange)==null||o.call(e,this,t)},this.maybeNotify=As(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(o=(t=this.scrollElement)==null?void 0:t.window)!=null?o:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let o=new Map,l=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(o.has(f.lane))continue;let y=l.get(f.lane);if(y==null||f.end>y.end?l.set(f.lane,f):f.end<y.end&&o.set(f.lane,!0),o.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=As(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,o,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:o,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=As(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:o,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,y);for(let F=y;F<t;F++){let U=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),X=Q?Q.end+this.options.gap:e+o,tt=f.get(U),nt=typeof tt=="number"?tt:this.options.estimateSize(F),at=X+nt,ft=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:X,size:nt,end:at,key:U,lane:ft}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=As(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,o,l)=>this.range=t.length>0&&e>0?aI({measurements:t,outerSize:e,scrollOffset:o,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=As(()=>{let t=null,e=null,o=this.calculateRange();return o&&(t=o.startIndex,e=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,o,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:e,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,o=t.getAttribute(e);return o?parseInt(o,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let o=this.indexFromElement(t),l=this.measurementsCache[o];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(o,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let o=this.measurementsCache[t];if(!o)return;let l=(f=this.itemSizeCache.get(o.key))!=null?f:o.size,c=e-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,c,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,o)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(o))});return}this._measureElement(t,void 0)},this.getVirtualItems=As(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let o=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],y=e[f];o.push(y)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return Sm(e[Zy(0,e.length-1,o=>Sm(e[o]).start,t)])},this.getOffsetForAlignment=(t,e,o=0)=>{let l=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+l?"end":"start"),e==="center"?t+=(o-l)/2:e==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let o=this.measurementsCache[t];if(!o)return;let l=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(o.end>=c+l-this.options.scrollPaddingEnd)e="end";else if(o.start<=c+this.options.scrollPaddingStart)e="start";else return[c,e];let f=e==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,o.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:o})},this.scrollToIndex=(t,{align:e="auto",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[U,Q]=F;this._scrollToOffset(U,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{let X=this.getScrollOffset(),tt=this.getOffsetForIndex(t,Q);if(!tt){console.warn("Failed to get offset for index:",t);return}Uy(tt[0],X)||y(Q)})},y=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var l;var t;let e=this.getMeasurements(),o;if(e.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=(l=(t=e[e.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(y=>y===null);){let y=e[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}o=Math.max(...c.filter(y=>y!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Zy=(a,i,t,e)=>{for(;a<=i;){let o=(a+i)/2|0,l=t(o);if(l<e)a=o+1;else if(l>e)i=o-1;else return o}return a>0?a-1:0};function aI({measurements:a,outerSize:i,scrollOffset:t,lanes:e}){let o=a.length-1,l=y=>a[y].start;if(a.length<=e)return{startIndex:0,endIndex:o};let c=Zy(0,o,l,t),f=c;if(e===1)for(;f<o&&a[f].end<t+i;)f++;else if(e>1){let y=Array(e).fill(0);for(;f<o&&y.some(F=>F<t+i);){let F=a[f];y[F.lane]=F.end,f++}let A=Array(e).fill(t+i);for(;c>=0&&A.some(F=>F>=t);){let F=a[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%e),f=Math.min(o,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var _m=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let e={...t,onChange:(o,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,o,l)}};this.virtualizer=new Ec(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Tc=class extends _m{constructor(i,t){super(i,{observeElementRect:jy,observeElementOffset:qy,scrollToFn:Xy,...t})}};var nI={includeEnd:!1},xc=class{constructor(i,t,e={}){let o={...nI,...e};this.start=i,this.end=t,this.includeEnd=o.includeEnd}includes(i){let{start:t,end:e,includeEnd:o}=this,l=Math.min(t,e),c=Math.max(t,e);return o?i>=l&&i<=c:i>=l&&i<c}iter(i=1){if(i<=0)throw new Error("Step must be a positive non-zero number");let t=i*(this.start<=this.end?1:-1),{includeEnd:e,end:o}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(e?f>o:f>=o)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Ac=class{constructor(i,t,e){this.getIndex=()=>0;this.items=i,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(i){return this.items.find(t=>this.getIndex(t)===i)}map(i,t){return this.items.map((e,o,l)=>i.call(t,e,this.getIndex(e),l))}forEach(i,t){this.items.forEach((e,o,l)=>{i.call(t,e,this.getIndex(e),l)})}findIndex(i,t){let e=this.items.find((o,l,c)=>i.call(t,o,this.getIndex(o),c));return e?this.getIndex(e):-1}find(i,t){return this.items.find((e,o,l)=>i.call(t,e,this.getIndex(e),l))}};var lI=[B`
7427
+ color: hsl(${Math.max(0,Math.min(120-120*ft,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,o),o}return l.updateDeps=f=>{e=f},l}function Sm(a,i){if(a===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return a}var Uy=(a,i)=>Math.abs(a-i)<1.01,Gy=(a,i,t)=>{let e;return function(...o){a.clearTimeout(e),e=a.setTimeout(()=>i.apply(this,o),t)}};var Ky=a=>{let{offsetWidth:i,offsetHeight:t}=a;return{width:i,height:t}},oI=a=>a,Im=a=>{let i=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),e=[];for(let o=i;o<=t;o++)e.push(o);return e},jy=(a,i)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let o=c=>{let{width:f,height:y}=c;i({width:Math.round(f),height:Math.round(y)})};if(o(Ky(t)),!e.ResizeObserver)return()=>{};let l=new e.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let A=y.borderBoxSize[0];if(A){o({width:A.inlineSize,height:A.blockSize});return}}o(Ky(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},Wy={passive:!0};var Yy=typeof window>"u"?!0:"onscrollend"in window,qy=(a,i)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let o=0,l=a.options.useScrollendEvent&&Yy?()=>{}:Gy(e,()=>{i(o,!1)},a.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:U,isRtl:Q}=a.options;o=U?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),i(o,F)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,Wy);let A=a.options.useScrollendEvent&&Yy;return A&&t.addEventListener("scrollend",y,Wy),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",y)}};var sI=(a,i,t)=>{if(i!=null&&i.borderBoxSize){let e=i.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Xy=(a,{adjustments:i=0,behavior:t},e)=>{var o,l;let c=a+i;(l=(o=e.scrollElement)==null?void 0:o.scrollTo)==null||l.call(o,{[e.options.horizontal?"left":"top"]:c,behavior:t})},Ec=class{constructor(i){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(o=>{o.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var o;(o=e())==null||o.disconnect(),t=null},observe:o=>{var l;return(l=e())==null?void 0:l.observe(o,{box:"border-box"})},unobserve:o=>{var l;return(l=e())==null?void 0:l.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,o])=>{typeof o>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:oI,rangeExtractor:Im,onChange:()=>{},measureElement:sI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,o;(o=(e=this.options).onChange)==null||o.call(e,this,t)},this.maybeNotify=Ss(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(o=(t=this.scrollElement)==null?void 0:t.window)!=null?o:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let o=new Map,l=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(o.has(f.lane))continue;let y=l.get(f.lane);if(y==null||f.end>y.end?l.set(f.lane,f):f.end<y.end&&o.set(f.lane,!0),o.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=Ss(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,o,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:o,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=Ss(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:o,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,y);for(let F=y;F<t;F++){let U=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),X=Q?Q.end+this.options.gap:e+o,tt=f.get(U),nt=typeof tt=="number"?tt:this.options.estimateSize(F),at=X+nt,ft=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:X,size:nt,end:at,key:U,lane:ft}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ss(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,o,l)=>this.range=t.length>0&&e>0?aI({measurements:t,outerSize:e,scrollOffset:o,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ss(()=>{let t=null,e=null,o=this.calculateRange();return o&&(t=o.startIndex,e=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,o,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:e,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,o=t.getAttribute(e);return o?parseInt(o,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let o=this.indexFromElement(t),l=this.measurementsCache[o];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(o,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let o=this.measurementsCache[t];if(!o)return;let l=(f=this.itemSizeCache.get(o.key))!=null?f:o.size,c=e-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,c,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,o)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(o))});return}this._measureElement(t,void 0)},this.getVirtualItems=Ss(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let o=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],y=e[f];o.push(y)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return Sm(e[Zy(0,e.length-1,o=>Sm(e[o]).start,t)])},this.getOffsetForAlignment=(t,e,o=0)=>{let l=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+l?"end":"start"),e==="center"?t+=(o-l)/2:e==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let o=this.measurementsCache[t];if(!o)return;let l=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(o.end>=c+l-this.options.scrollPaddingEnd)e="end";else if(o.start<=c+this.options.scrollPaddingStart)e="start";else return[c,e];let f=e==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,o.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:o})},this.scrollToIndex=(t,{align:e="auto",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[U,Q]=F;this._scrollToOffset(U,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{let X=this.getScrollOffset(),tt=this.getOffsetForIndex(t,Q);if(!tt){console.warn("Failed to get offset for index:",t);return}Uy(tt[0],X)||y(Q)})},y=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var l;var t;let e=this.getMeasurements(),o;if(e.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=(l=(t=e[e.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(y=>y===null);){let y=e[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}o=Math.max(...c.filter(y=>y!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Zy=(a,i,t,e)=>{for(;a<=i;){let o=(a+i)/2|0,l=t(o);if(l<e)a=o+1;else if(l>e)i=o-1;else return o}return a>0?a-1:0};function aI({measurements:a,outerSize:i,scrollOffset:t,lanes:e}){let o=a.length-1,l=y=>a[y].start;if(a.length<=e)return{startIndex:0,endIndex:o};let c=Zy(0,o,l,t),f=c;if(e===1)for(;f<o&&a[f].end<t+i;)f++;else if(e>1){let y=Array(e).fill(0);for(;f<o&&y.some(F=>F<t+i);){let F=a[f];y[F.lane]=F.end,f++}let A=Array(e).fill(t+i);for(;c>=0&&A.some(F=>F>=t);){let F=a[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%e),f=Math.min(o,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var _m=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let e={...t,onChange:(o,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,o,l)}};this.virtualizer=new Ec(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Tc=class extends _m{constructor(i,t){super(i,{observeElementRect:jy,observeElementOffset:qy,scrollToFn:Xy,...t})}};var nI={includeEnd:!1},xc=class{constructor(i,t,e={}){let o={...nI,...e};this.start=i,this.end=t,this.includeEnd=o.includeEnd}includes(i){let{start:t,end:e,includeEnd:o}=this,l=Math.min(t,e),c=Math.max(t,e);return o?i>=l&&i<=c:i>=l&&i<c}iter(i=1){if(i<=0)throw new Error("Step must be a positive non-zero number");let t=i*(this.start<=this.end?1:-1),{includeEnd:e,end:o}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(e?f>o:f>=o)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Ac=class{constructor(i,t,e){this.getIndex=()=>0;this.items=i,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(i){return this.items.find(t=>this.getIndex(t)===i)}map(i,t){return this.items.map((e,o,l)=>i.call(t,e,this.getIndex(e),l))}forEach(i,t){this.items.forEach((e,o,l)=>{i.call(t,e,this.getIndex(e),l)})}findIndex(i,t){let e=this.items.find((o,l,c)=>i.call(t,o,this.getIndex(o),c));return e?this.getIndex(e):-1}find(i,t){return this.items.find((e,o,l)=>i.call(t,e,this.getIndex(e),l))}};var lI=[B`
7428
7428
  :host {
7429
7429
  height: 100%;
7430
7430
  }
@@ -7577,7 +7577,7 @@
7577
7577
  id="${this.inputId}"
7578
7578
  name="${this.name}"
7579
7579
  type="text"
7580
- .value="${hs(this.value)}"
7580
+ .value="${ps(this.value)}"
7581
7581
  aria-hidden="true"
7582
7582
  part="internal-native-input"
7583
7583
  tabindex="-1"
@@ -7594,7 +7594,7 @@
7594
7594
  slot="input"
7595
7595
  ?disabled="${this.disabled}"
7596
7596
  tabindex="${this.disabled?-1:0}"
7597
- .value="${hs(this.filteredValue)}"
7597
+ .value="${ps(this.filteredValue)}"
7598
7598
  autocomplete="${aa.OFF}"
7599
7599
  part="input-text"
7600
7600
  placeholder="${J(this.placeholder)}"
@@ -8014,7 +8014,7 @@
8014
8014
  ::slotted(mdc-option) {
8015
8015
  width: 100%;
8016
8016
  }
8017
- `,nE=[vI];var Ss=class extends bo(ci(Z)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.setSelectedOption(e,!1,!1);break;case"unselected":this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Rr}:not([disabled])`)}handleClick(t){let e=t.target;this.isValidItem(e)&&this.setSelectedOption(e)}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}updated(t){if(t.has("value")){let e=this.itemsStore.items.find(o=>o.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,o=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(o&&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.selectedOption&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Ss.styles=[...Ep.styles,...nE],h([u({type:String,reflect:!0})],Ss.prototype,"name",2),h([u({type:String,reflect:!0})],Ss.prototype,"value",2),h([dt()],Ss.prototype,"selectedOption",2);var Om=Ss;var lE=z.constructTagName("listbox");Om.register(lE);var gI=Om;var dE=z.constructTagName("banner"),ya={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},qn={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Sc={VARIANT:ya.CUSTOM,PREFIX_ICON_SIZE:1.25};var bI=B`
8017
+ `,nE=[vI];var Mo=class extends bo(ci(Z)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Rr}:not([disabled])`)}handleClick(t){let e=t.target;if(!this.isValidItem(e))return;let o=e;this.multiple?this.toggleOptionSelection(o):this.setSelectedOption(o)}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:o}=e;return e.hasAttribute("selected")&&o!==void 0&&t.push(o),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(o=>o.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,o=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(o&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Mo.styles=[...Ep.styles,...nE],h([u({type:String,reflect:!0})],Mo.prototype,"name",2),h([u({type:String,reflect:!0})],Mo.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Mo.prototype,"multiple",2),h([dt()],Mo.prototype,"selectedOption",2);var Om=Mo;var lE=z.constructTagName("listbox");Om.register(lE);var gI=Om;var dE=z.constructTagName("banner"),ya={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},qn={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Sc={VARIANT:ya.CUSTOM,PREFIX_ICON_SIZE:1.25};var bI=B`
8018
8018
  :host {
8019
8019
  --mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
8020
8020
  --mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);