@momentum-design/components 0.73.3 → 0.73.4
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.
package/dist/browser/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var hf=Object.create;var ca=Object.defineProperty;var Cd=Object.getOwnPropertyDescriptor;var mf=Object.getOwnPropertyNames;var pf=Object.getPrototypeOf,uf=Object.prototype.hasOwnProperty;var ff=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports),vf=(l,o)=>{for(var e in o)ca(l,e,{get:o[e],enumerable:!0})},gf=(l,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of mf(o))!uf.call(l,n)&&n!==e&&ca(l,n,{get:()=>o[n],enumerable:!(s=Cd(o,n))||s.enumerable});return l};var bf=(l,o,e)=>(e=l!=null?hf(pf(l)):{},gf(o||!l||!l.__esModule?ca(e,"default",{value:l,enumerable:!0}):e,l));var y=(l,o,e,s)=>{for(var n=s>1?void 0:s?Cd(o,e):o,h=l.length-1,f;h>=0;h--)(f=l[h])&&(n=(s?f(o,e,n):f(n))||n);return s&&n&&ca(o,e,n),n};var au=ff((Us,Mn)=>{typeof navigator<"u"&&function(l,o){typeof Us=="object"&&typeof Mn<"u"?Mn.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(Us,function(){"use strict";var l="http://www.w3.org/2000/svg",o="",e=!1,s=-999999,n=function(r){e=!!r},h=function(){return e},f=function(r){o=r},S=function(){return o};function M(t){return document.createElement(t)}function B(t,r){var i,a=t.length,d;for(i=0;i<a;i+=1){d=t[i].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function G(t,r){return Object.getOwnPropertyDescriptor(t,r)}function q(t){function r(){}return r.prototype=t,r}var ot=function(){function t(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].pause()},resume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].resume()},setRate:function(i){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),Q=function(){function t(i,a){var d=0,c=[],p;switch(i){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(d=0;d<a;d+=1)c.push(p);return c}function r(i,a){return i==="float32"?new Float32Array(a):i==="int16"?new Int16Array(a):i==="uint8c"?new Uint8ClampedArray(a):t(i,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:t}();function et(t){return Array.apply(null,{length:t})}function ct(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ct=function(i){return typeof i}:ct=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ct(t)}var bt=!0,gt=null,yt=null,St="",Bt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Nt=!1,Pt=Math.pow,ve=Math.sqrt,Qt=Math.floor,He=Math.max,we=Math.min,Oe={};(function(){var t=["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"],r,i=t.length;for(r=0;r<i;r+=1)Oe[t[r]]=Math[t[r]]})();function Ge(){return{}}Oe.random=Math.random,Oe.abs=function(t){var r=ct(t);if(r==="object"&&t.length){var i=et(t.length),a,d=t.length;for(a=0;a<d;a+=1)i[a]=Math.abs(t[a]);return i}return Math.abs(t)};var je=150,Tt=Math.PI/180,de=.5519;function Pe(t){Nt=!!t}function We(t){return Nt?Math.round(t):t}function hr(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function De(t,r,i,a){this.type=t,this.currentTime=r,this.totalTime=i,this.direction=a<0?-1:1}function Hs(t,r){this.type=t,this.direction=r<0?-1:1}function Oc(t,r,i,a){this.type=t,this.currentLoop=i,this.totalLoops=r,this.direction=a<0?-1:1}function Pc(t,r,i){this.type=t,this.firstFrame=r,this.totalFrames=i}function Dc(t,r){this.type=t,this.target=r}function du(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function hu(t){this.type="configError",this.nativeError=t}function u0(t,r){this.type=t,this.nativeError=r}var ge=function(){var t=0;return function(){return t+=1,St+"__lottie_element_"+t}}();function On(t,r,i){var a,d,c,p,E,u,k,I;switch(p=Math.floor(t*6),E=t*6-p,u=i*(1-r),k=i*(1-E*r),I=i*(1-(1-E)*r),p%6){case 0:a=i,d=I,c=u;break;case 1:a=k,d=i,c=u;break;case 2:a=u,d=i,c=I;break;case 3:a=u,d=k,c=i;break;case 4:a=I,d=u,c=i;break;case 5:a=i,d=u,c=k;break;default:break}return[a,d,c]}function Pn(t,r,i){var a=Math.max(t,r,i),d=Math.min(t,r,i),c=a-d,p,E=a===0?0:c/a,u=a/255;switch(a){case d:p=0;break;case t:p=r-i+c*(r<i?6:0),p/=6*c;break;case r:p=i-t+c*2,p/=6*c;break;case i:p=t-r+c*4,p/=6*c;break;default:break}return[p,E,u]}function Fc(t,r){var i=Pn(t[0]*255,t[1]*255,t[2]*255);return i[1]+=r,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),On(i[0],i[1],i[2])}function zc(t,r){var i=Pn(t[0]*255,t[1]*255,t[2]*255);return i[2]+=r,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),On(i[0],i[1],i[2])}function $c(t,r){var i=Pn(t[0]*255,t[1]*255,t[2]*255);return i[0]+=r/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),On(i[0],i[1],i[2])}var f0=function(){var t=[],r,i;for(r=0;r<256;r+=1)i=r.toString(16),t[r]=i.length===1?"0"+i:i;return function(a,d,c){return a<0&&(a=0),d<0&&(d=0),c<0&&(c=0),"#"+t[a]+t[d]+t[c]}}(),mu=function(r){bt=!!r},pu=function(){return bt},uu=function(r){gt=r},Gs=function(){return gt},v0=function(r){yt=r},Vc=function(){return yt},js=function(r){je=r},Po=function(){return je},fu=function(r){St=r},g0=function(){return St};function ft(t){return document.createElementNS(l,t)}function Ws(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ws=function(i){return typeof i}:Ws=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ws(t)}var Do=function(){var t=1,r=[],i,a,d={onmessage:function(){},postMessage:function(L){i({data:L})}},c={postMessage:function(L){d.onmessage({data:L})}};function p(b){if(window.Worker&&window.Blob&&h()){var L=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),O=URL.createObjectURL(L);return new Worker(O)}return i=b,d}function E(){a||(a=p(function(L){function O(){function z(Y,T){var R,m,v=Y.length,U,D,it,ht;for(m=0;m<v;m+=1)if(R=Y[m],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var ut=R.masksProperties;for(D=ut.length,U=0;U<D;U+=1)if(ut[U].pt.k.i)C(ut[U].pt.k);else for(ht=ut[U].pt.k.length,it=0;it<ht;it+=1)ut[U].pt.k[it].s&&C(ut[U].pt.k[it].s[0]),ut[U].pt.k[it].e&&C(ut[U].pt.k[it].e[0])}R.ty===0?(R.layers=g(R.refId,T),z(R.layers,T)):R.ty===4?x(R.shapes):R.ty===5&&vt(R)}}function w(Y,T){if(Y){var R=0,m=Y.length;for(R=0;R<m;R+=1)Y[R].t===1&&(Y[R].data.layers=g(Y[R].data.refId,T),z(Y[R].data.layers,T))}}function _(Y,T){for(var R=0,m=T.length;R<m;){if(T[R].id===Y)return T[R];R+=1}return null}function g(Y,T){var R=_(Y,T);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function x(Y){var T,R=Y.length,m,v;for(T=R-1;T>=0;T-=1)if(Y[T].ty==="sh")if(Y[T].ks.k.i)C(Y[T].ks.k);else for(v=Y[T].ks.k.length,m=0;m<v;m+=1)Y[T].ks.k[m].s&&C(Y[T].ks.k[m].s[0]),Y[T].ks.k[m].e&&C(Y[T].ks.k[m].e[0]);else Y[T].ty==="gr"&&x(Y[T].it)}function C(Y){var T,R=Y.i.length;for(T=0;T<R;T+=1)Y.i[T][0]+=Y.v[T][0],Y.i[T][1]+=Y.v[T][1],Y.o[T][0]+=Y.v[T][0],Y.o[T][1]+=Y.v[T][1]}function P(Y,T){var R=T?T.split("."):[100,100,100];return Y[0]>R[0]?!0:R[0]>Y[0]?!1:Y[1]>R[1]?!0:R[1]>Y[1]?!1:Y[2]>R[2]?!0:R[2]>Y[2]?!1:null}var $=function(){var Y=[4,4,14];function T(m){var v=m.t.d;m.t.d={k:[{s:v,t:0}]}}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===5&&T(m[v])}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),H=function(){var Y=[4,7,99];return function(T){if(T.chars&&!P(Y,T.v)){var R,m=T.chars.length;for(R=0;R<m;R+=1){var v=T.chars[R];v.data&&v.data.shapes&&(x(v.data.shapes),v.data.ip=0,v.data.op=99999,v.data.st=0,v.data.sr=1,v.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}},T.chars[R].t||(v.data.shapes.push({ty:"no"}),v.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"})))}}}}(),K=function(){var Y=[5,7,15];function T(m){var v=m.t.p;typeof v.a=="number"&&(v.a={a:0,k:v.a}),typeof v.p=="number"&&(v.p={a:0,k:v.p}),typeof v.r=="number"&&(v.r={a:0,k:v.r})}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===5&&T(m[v])}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),pt=function(){var Y=[4,1,9];function T(m){var v,U=m.length,D,it;for(v=0;v<U;v+=1)if(m[v].ty==="gr")T(m[v].it);else if(m[v].ty==="fl"||m[v].ty==="st")if(m[v].c.k&&m[v].c.k[0].i)for(it=m[v].c.k.length,D=0;D<it;D+=1)m[v].c.k[D].s&&(m[v].c.k[D].s[0]/=255,m[v].c.k[D].s[1]/=255,m[v].c.k[D].s[2]/=255,m[v].c.k[D].s[3]/=255),m[v].c.k[D].e&&(m[v].c.k[D].e[0]/=255,m[v].c.k[D].e[1]/=255,m[v].c.k[D].e[2]/=255,m[v].c.k[D].e[3]/=255);else m[v].c.k[0]/=255,m[v].c.k[1]/=255,m[v].c.k[2]/=255,m[v].c.k[3]/=255}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===4&&T(m[v].shapes)}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),nt=function(){var Y=[4,4,18];function T(m){var v,U=m.length,D,it;for(v=U-1;v>=0;v-=1)if(m[v].ty==="sh")if(m[v].ks.k.i)m[v].ks.k.c=m[v].closed;else for(it=m[v].ks.k.length,D=0;D<it;D+=1)m[v].ks.k[D].s&&(m[v].ks.k[D].s[0].c=m[v].closed),m[v].ks.k[D].e&&(m[v].ks.k[D].e[0].c=m[v].closed);else m[v].ty==="gr"&&T(m[v].it)}function R(m){var v,U,D=m.length,it,ht,ut,kt;for(U=0;U<D;U+=1){if(v=m[U],v.hasMask){var Ct=v.masksProperties;for(ht=Ct.length,it=0;it<ht;it+=1)if(Ct[it].pt.k.i)Ct[it].pt.k.c=Ct[it].cl;else for(kt=Ct[it].pt.k.length,ut=0;ut<kt;ut+=1)Ct[it].pt.k[ut].s&&(Ct[it].pt.k[ut].s[0].c=Ct[it].cl),Ct[it].pt.k[ut].e&&(Ct[it].pt.k[ut].e[0].c=Ct[it].cl)}v.ty===4&&T(v.shapes)}}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}();function tt(Y){Y.__complete||(pt(Y),$(Y),H(Y),K(Y),nt(Y),z(Y.layers,Y.assets),w(Y.chars,Y.assets),Y.__complete=!0)}function vt(Y){Y.t.a.length===0&&"m"in Y.t.p}var st={};return st.completeData=tt,st.checkColors=pt,st.checkChars=H,st.checkPathProperties=K,st.checkShapes=nt,st.completeLayers=z,st}if(c.dataManager||(c.dataManager=O()),c.assetLoader||(c.assetLoader=function(){function z(_){var g=_.getResponseHeader("content-type");return g&&_.responseType==="json"&&g.indexOf("json")!==-1||_.response&&Ws(_.response)==="object"?_.response:_.response&&typeof _.response=="string"?JSON.parse(_.response):_.responseText?JSON.parse(_.responseText):null}function w(_,g,x,C){var P,$=new XMLHttpRequest;try{$.responseType="json"}catch{}$.onreadystatechange=function(){if($.readyState===4)if($.status===200)P=z($),x(P);else try{P=z($),x(P)}catch(H){C&&C(H)}};try{$.open(["G","E","T"].join(""),_,!0)}catch{$.open(["G","E","T"].join(""),g+"/"+_,!0)}$.send()}return{load:w}}()),L.data.type==="loadAnimation")c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})});else if(L.data.type==="complete"){var N=L.data.animation;c.dataManager.completeData(N),c.postMessage({id:L.data.id,payload:N,status:"success"})}else L.data.type==="loadData"&&c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})})}),a.onmessage=function(b){var L=b.data,O=L.id,N=r[O];r[O]=null,L.status==="success"?N.onComplete(L.payload):N.onError&&N.onError()})}function u(b,L){t+=1;var O="processId_"+t;return r[O]={onComplete:b,onError:L},O}function k(b,L,O){E();var N=u(L,O);a.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:N})}function I(b,L,O){E();var N=u(L,O);a.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:N})}function V(b,L,O){E();var N=u(L,O);a.postMessage({type:"complete",animation:b,id:N})}return{loadAnimation:k,loadData:I,completeAnimation:V}}(),vu=function(){var t=function(){var w=M("canvas");w.width=1,w.height=1;var _=w.getContext("2d");return _.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1),w}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(w,_,g){var x="";if(w.e)x=w.p;else if(_){var C=w.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),x=_+C}else x=g,x+=w.u?w.u:"",x+=w.p;return x}function d(w){var _=0,g=setInterval((function(){var x=w.getBBox();(x.width||_>500)&&(this._imageLoaded(),clearInterval(g)),_+=1}).bind(this),50)}function c(w){var _=a(w,this.assetsPath,this.path),g=ft("image");Bt?this.testImageLoaded(g):g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){x.img=t,this._imageLoaded()}).bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",_),this._elementHelper.append?this._elementHelper.append(g):this._elementHelper.appendChild(g);var x={img:g,assetData:w};return x}function p(w){var _=a(w,this.assetsPath,this.path),g=M("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){x.img=t,this._imageLoaded()}).bind(this),!1),g.src=_;var x={img:g,assetData:w};return x}function E(w){var _={assetData:w},g=a(w,this.assetsPath,this.path);return Do.loadData(g,(function(x){_.img=x,this._footageLoaded()}).bind(this),(function(){_.img={},this._footageLoaded()}).bind(this)),_}function u(w,_){this.imagesLoadedCb=_;var g,x=w.length;for(g=0;g<x;g+=1)w[g].layers||(!w[g].t||w[g].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(w[g]))):w[g].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(w[g]))))}function k(w){this.path=w||""}function I(w){this.assetsPath=w||""}function V(w){for(var _=0,g=this.images.length;_<g;){if(this.images[_].assetData===w)return this.images[_].img;_+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function L(){return this.totalImages===this.loadedAssets}function O(){return this.totalFootages===this.loadedFootagesCount}function N(w,_){w==="svg"?(this._elementHelper=_,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function z(){this._imageLoaded=r.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=E.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return z.prototype={loadAssets:u,setAssetsPath:I,setPath:k,loadedImages:L,loadedFootages:O,destroy:b,getAsset:V,createImgData:p,createImageData:c,imageLoaded:r,footageLoaded:i,setCacheType:N},z}();function Bc(){}Bc.prototype={triggerEvent:function(r,i){if(this._cbs[r])for(var a=this._cbs[r],d=0;d<a.length;d+=1)a[d](i)},addEventListener:function(r,i){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(i),(function(){this.removeEventListener(r,i)}).bind(this)},removeEventListener:function(r,i){if(!i)this._cbs[r]=null;else if(this._cbs[r]){for(var a=0,d=this._cbs[r].length;a<d;)this._cbs[r][a]===i&&(this._cbs[r].splice(a,1),a-=1,d-=1),a+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var gu=function(){function t(r){for(var i=r.split(`\r
|
2
|
-
`),a={},d,c=0,p=0;p<i.length;p+=1)d=i[p].split(":"),d.length===2&&(a[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return a}return function(r){for(var i=[],a=0;a<r.length;a+=1){var d=r[a],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[a].cm)}catch{try{c.payload=t(r[a].cm)}catch{c.payload={name:r[a].cm}}}i.push(c)}return i}}(),bu=function(){function t(r){this.compositions.push(r)}return function(){function r(i){for(var a=0,d=this.compositions.length;a<d;){if(this.compositions[a].data&&this.compositions[a].data.nm===i)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=t,r}}(),Fo={},yu=function(r,i){Fo[r]=i};function Eu(t){return Fo[t]}function xu(){if(Fo.canvas)return"canvas";for(var t in Fo)if(Fo[t])return t;return""}function zo(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zo=function(i){return typeof i}:zo=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},zo(t)}var dt=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=ge(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=pu(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=bu(),this.imagePreloader=new vu,this.audioController=ot(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new De("drawnFrame",0,0,0),this.expressionsPlugin=Gs()};B([Bc],dt),dt.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var r="svg";t.animType?r=t.animType:t.renderer&&(r=t.renderer);var i=Eu(r);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Do.loadAnimation(t.path,this.configAnimation,this.onSetupError))},dt.prototype.onSetupError=function(){this.trigger("data_failed")},dt.prototype.setupAnimation=function(t){Do.completeAnimation(t,this.configAnimation)},dt.prototype.setData=function(t,r){r&&zo(r)!=="object"&&(r=JSON.parse(r));var i={wrapper:t,animationData:r},a=t.attributes;i.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",i.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:xu()||"canvas";var d=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";d==="false"?i.loop=!1:d==="true"?i.loop=!0:d!==""&&(i.loop=parseInt(d,10));var c=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var p=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";p==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},dt.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var r=this.animationData.layers,i,a=r.length,d=t.layers,c,p=d.length;for(c=0;c<p;c+=1)for(i=0;i<a;){if(r[i].id===d[c].id){r[i]=d[c];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(a=t.assets.length,i=0;i<a;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,Do.completeAnimation(this.animationData,this.onSegmentComplete)},dt.prototype.onSegmentComplete=function(t){this.animationData=t;var r=Gs();r&&r.initExpressions(this),this.loadNextSegment()},dt.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=t.shift();this.timeCompleted=r.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Do.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},dt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},dt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},dt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},dt.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=gu(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},dt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},dt.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 t=Gs();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},dt.prototype.resize=function(t,r){var i=typeof t=="number"?t:void 0,a=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(i,a)},dt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},dt.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")},dt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},dt.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},dt.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},dt.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},dt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},dt.prototype.getMarkerData=function(t){for(var r,i=0;i<this.markers.length;i+=1)if(r=this.markers[i],r.payload&&r.payload.name===t)return r;return null},dt.prototype.goToAndStop=function(t,r,i){if(!(i&&this.name!==i)){var a=Number(t);if(isNaN(a)){var d=this.getMarkerData(t);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},dt.prototype.goToAndPlay=function(t,r,i){if(!(i&&this.name!==i)){var a=Number(t);if(isNaN(a)){var d=this.getMarkerData(t);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(a,r,i);this.play()}},dt.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+t*this.frameModifier,i=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(i=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,r=0)):this.setCurrentRawFrameValue(r),i&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},dt.prototype.adjustSegment=function(t,r){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},dt.prototype.setSegment=function(t,r){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>r&&(i=r-t)),this.firstFrame=t,this.totalFrames=r-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},dt.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),zo(t[0])==="object"){var i,a=t.length;for(i=0;i<a;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},dt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},dt.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},dt.prototype.destroy=function(t){t&&this.name!==t||!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)},dt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},dt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},dt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},dt.prototype.setLoop=function(t){this.loop=t},dt.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},dt.prototype.getVolume=function(){return this.audioController.getVolume()},dt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},dt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},dt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},dt.prototype.getPath=function(){return this.path},dt.prototype.getAssetsPath=function(t){var r="";if(t.e)r=t.p;else if(this.assetsPath){var i=t.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),r=this.assetsPath+i}else r=this.path,r+=t.u?t.u:"",r+=t.p;return r},dt.prototype.getAssetData=function(t){for(var r=0,i=this.assets.length;r<i;){if(t===this.assets[r].id)return this.assets[r];r+=1}return null},dt.prototype.hide=function(){this.renderer.hide()},dt.prototype.show=function(){this.renderer.show()},dt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},dt.prototype.updateDocumentData=function(t,r,i){try{var a=this.renderer.getElementByPath(t);a.updateDocumentData(r,i)}catch{}},dt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new De(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new Oc(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new Hs(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new Pc(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new Dc(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new De(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Oc(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new Hs(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Pc(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Dc(t,this))},dt.prototype.triggerRenderFrameError=function(t){var r=new du(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},dt.prototype.triggerConfigError=function(t){var r=new hu(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Gt=function(){var t={},r=[],i=0,a=0,d=0,c=!0,p=!1;function E(T){for(var R=0,m=T.target;R<a;)r[R].animation===m&&(r.splice(R,1),R-=1,a-=1,m.isPaused||V()),R+=1}function u(T,R){if(!T)return null;for(var m=0;m<a;){if(r[m].elem===T&&r[m].elem!==null)return r[m].animation;m+=1}var v=new dt;return b(v,T),v.setData(T,R),v}function k(){var T,R=r.length,m=[];for(T=0;T<R;T+=1)m.push(r[T].animation);return m}function I(){d+=1,pt()}function V(){d-=1}function b(T,R){T.addEventListener("destroy",E),T.addEventListener("_active",I),T.addEventListener("_idle",V),r.push({elem:R,animation:T}),a+=1}function L(T){var R=new dt;return b(R,null),R.setParams(T),R}function O(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setSpeed(T,R)}function N(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setDirection(T,R)}function z(T){var R;for(R=0;R<a;R+=1)r[R].animation.play(T)}function w(T){var R=T-i,m;for(m=0;m<a;m+=1)r[m].animation.advanceTime(R);i=T,d&&!p?window.requestAnimationFrame(w):c=!0}function _(T){i=T,window.requestAnimationFrame(w)}function g(T){var R;for(R=0;R<a;R+=1)r[R].animation.pause(T)}function x(T,R,m){var v;for(v=0;v<a;v+=1)r[v].animation.goToAndStop(T,R,m)}function C(T){var R;for(R=0;R<a;R+=1)r[R].animation.stop(T)}function P(T){var R;for(R=0;R<a;R+=1)r[R].animation.togglePause(T)}function $(T){var R;for(R=a-1;R>=0;R-=1)r[R].animation.destroy(T)}function H(T,R,m){var v=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,D=v.length;for(U=0;U<D;U+=1)m&&v[U].setAttribute("data-bm-type",m),u(v[U],T);if(R&&D===0){m||(m="svg");var it=document.getElementsByTagName("body")[0];it.innerText="";var ht=M("div");ht.style.width="100%",ht.style.height="100%",ht.setAttribute("data-bm-type",m),it.appendChild(ht),u(ht,T)}}function K(){var T;for(T=0;T<a;T+=1)r[T].animation.resize()}function pt(){!p&&d&&c&&(window.requestAnimationFrame(_),c=!1)}function nt(){p=!0}function tt(){p=!1,pt()}function vt(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setVolume(T,R)}function st(T){var R;for(R=0;R<a;R+=1)r[R].animation.mute(T)}function Y(T){var R;for(R=0;R<a;R+=1)r[R].animation.unmute(T)}return t.registerAnimation=u,t.loadAnimation=L,t.setSpeed=O,t.setDirection=N,t.play=z,t.pause=g,t.stop=C,t.togglePause=P,t.searchAnimations=H,t.resize=K,t.goToAndStop=x,t.destroy=$,t.freeze=nt,t.unfreeze=tt,t.setVolume=vt,t.mute=st,t.unmute=Y,t.getRegisteredAnimations=k,t}(),$o=function(){var t={};t.getBezierEasing=i;var r={};function i(_,g,x,C,P){var $=P||("bez_"+_+"_"+g+"_"+x+"_"+C).replace(/\./g,"p");if(r[$])return r[$];var H=new w([_,g,x,C]);return r[$]=H,H}var a=4,d=.001,c=1e-7,p=10,E=11,u=1/(E-1),k=typeof Float32Array=="function";function I(_,g){return 1-3*g+3*_}function V(_,g){return 3*g-6*_}function b(_){return 3*_}function L(_,g,x){return((I(g,x)*_+V(g,x))*_+b(g))*_}function O(_,g,x){return 3*I(g,x)*_*_+2*V(g,x)*_+b(g)}function N(_,g,x,C,P){var $,H,K=0;do H=g+(x-g)/2,$=L(H,C,P)-_,$>0?x=H:g=H;while(Math.abs($)>c&&++K<p);return H}function z(_,g,x,C){for(var P=0;P<a;++P){var $=O(g,x,C);if($===0)return g;var H=L(g,x,C)-_;g-=H/$}return g}function w(_){this._p=_,this._mSampleValues=k?new Float32Array(E):new Array(E),this._precomputed=!1,this.get=this.get.bind(this)}return w.prototype={get:function(g){var x=this._p[0],C=this._p[1],P=this._p[2],$=this._p[3];return this._precomputed||this._precompute(),x===C&&P===$?g:g===0?0:g===1?1:L(this._getTForX(g),C,$)},_precompute:function(){var g=this._p[0],x=this._p[1],C=this._p[2],P=this._p[3];this._precomputed=!0,(g!==x||C!==P)&&this._calcSampleValues()},_calcSampleValues:function(){for(var g=this._p[0],x=this._p[2],C=0;C<E;++C)this._mSampleValues[C]=L(C*u,g,x)},_getTForX:function(g){for(var x=this._p[0],C=this._p[2],P=this._mSampleValues,$=0,H=1,K=E-1;H!==K&&P[H]<=g;++H)$+=u;--H;var pt=(g-P[H])/(P[H+1]-P[H]),nt=$+pt*u,tt=O(nt,x,C);return tt>=d?z(g,nt,x,C):tt===0?nt:N(g,$,$+u,x,C)}},t}(),Uc=function(){function t(r){return r.concat(et(r.length))}return{double:t}}(),qs=function(){return function(t,r,i){var a=0,d=t,c=et(d),p={newElement:E,release:u};function E(){var k;return a?(a-=1,k=c[a]):k=r(),k}function u(k){a===d&&(c=Uc.double(c),d*=2),i&&i(k),c[a]=k,a+=1}return p}}(),Hc=function(){function t(){return{addedLength:0,percents:Q("float32",Po()),lengths:Q("float32",Po())}}return qs(8,t)}(),Gc=function(){function t(){return{lengths:[],totalLength:0}}function r(i){var a,d=i.lengths.length;for(a=0;a<d;a+=1)Hc.release(i.lengths[a]);i.lengths.length=0}return qs(8,t,r)}();function Tu(){var t=Math;function r(b,L,O,N,z,w){var _=b*N+L*z+O*w-z*N-w*b-O*L;return _>-.001&&_<.001}function i(b,L,O,N,z,w,_,g,x){if(O===0&&w===0&&x===0)return r(b,L,N,z,_,g);var C=t.sqrt(t.pow(N-b,2)+t.pow(z-L,2)+t.pow(w-O,2)),P=t.sqrt(t.pow(_-b,2)+t.pow(g-L,2)+t.pow(x-O,2)),$=t.sqrt(t.pow(_-N,2)+t.pow(g-z,2)+t.pow(x-w,2)),H;return C>P?C>$?H=C-P-$:H=$-P-C:$>P?H=$-P-C:H=P-C-$,H>-1e-4&&H<1e-4}var a=function(){return function(b,L,O,N){var z=Po(),w,_,g,x,C,P=0,$,H=[],K=[],pt=Hc.newElement();for(g=O.length,w=0;w<z;w+=1){for(C=w/(z-1),$=0,_=0;_<g;_+=1)x=Pt(1-C,3)*b[_]+3*Pt(1-C,2)*C*O[_]+3*(1-C)*Pt(C,2)*N[_]+Pt(C,3)*L[_],H[_]=x,K[_]!==null&&($+=Pt(H[_]-K[_],2)),K[_]=H[_];$&&($=ve($),P+=$),pt.percents[w]=C,pt.lengths[w]=P}return pt.addedLength=P,pt}}();function d(b){var L=Gc.newElement(),O=b.c,N=b.v,z=b.o,w=b.i,_,g=b._length,x=L.lengths,C=0;for(_=0;_<g-1;_+=1)x[_]=a(N[_],N[_+1],z[_],w[_+1]),C+=x[_].addedLength;return O&&g&&(x[_]=a(N[_],N[0],z[_],w[0]),C+=x[_].addedLength),L.totalLength=C,L}function c(b){this.segmentLength=0,this.points=new Array(b)}function p(b,L){this.partialLength=b,this.point=L}var E=function(){var b={};return function(L,O,N,z){var w=(L[0]+"_"+L[1]+"_"+O[0]+"_"+O[1]+"_"+N[0]+"_"+N[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!b[w]){var _=Po(),g,x,C,P,$,H=0,K,pt,nt=null;L.length===2&&(L[0]!==O[0]||L[1]!==O[1])&&r(L[0],L[1],O[0],O[1],L[0]+N[0],L[1]+N[1])&&r(L[0],L[1],O[0],O[1],O[0]+z[0],O[1]+z[1])&&(_=2);var tt=new c(_);for(C=N.length,g=0;g<_;g+=1){for(pt=et(C),$=g/(_-1),K=0,x=0;x<C;x+=1)P=Pt(1-$,3)*L[x]+3*Pt(1-$,2)*$*(L[x]+N[x])+3*(1-$)*Pt($,2)*(O[x]+z[x])+Pt($,3)*O[x],pt[x]=P,nt!==null&&(K+=Pt(pt[x]-nt[x],2));K=ve(K),H+=K,tt.points[g]=new p(K,pt),nt=pt}tt.segmentLength=H,b[w]=tt}return b[w]}}();function u(b,L){var O=L.percents,N=L.lengths,z=O.length,w=Qt((z-1)*b),_=b*L.addedLength,g=0;if(w===z-1||w===0||_===N[w])return O[w];for(var x=N[w]>_?-1:1,C=!0;C;)if(N[w]<=_&&N[w+1]>_?(g=(_-N[w])/(N[w+1]-N[w]),C=!1):w+=x,w<0||w>=z-1){if(w===z-1)return O[w];C=!1}return O[w]+(O[w+1]-O[w])*g}function k(b,L,O,N,z,w){var _=u(z,w),g=1-_,x=t.round((g*g*g*b[0]+(_*g*g+g*_*g+g*g*_)*O[0]+(_*_*g+g*_*_+_*g*_)*N[0]+_*_*_*L[0])*1e3)/1e3,C=t.round((g*g*g*b[1]+(_*g*g+g*_*g+g*g*_)*O[1]+(_*_*g+g*_*_+_*g*_)*N[1]+_*_*_*L[1])*1e3)/1e3;return[x,C]}var I=Q("float32",8);function V(b,L,O,N,z,w,_){z<0?z=0:z>1&&(z=1);var g=u(z,_);w=w>1?1:w;var x=u(w,_),C,P=b.length,$=1-g,H=1-x,K=$*$*$,pt=g*$*$*3,nt=g*g*$*3,tt=g*g*g,vt=$*$*H,st=g*$*H+$*g*H+$*$*x,Y=g*g*H+$*g*x+g*$*x,T=g*g*x,R=$*H*H,m=g*H*H+$*x*H+$*H*x,v=g*x*H+$*x*x+g*H*x,U=g*x*x,D=H*H*H,it=x*H*H+H*x*H+H*H*x,ht=x*x*H+H*x*x+x*H*x,ut=x*x*x;for(C=0;C<P;C+=1)I[C*4]=t.round((K*b[C]+pt*O[C]+nt*N[C]+tt*L[C])*1e3)/1e3,I[C*4+1]=t.round((vt*b[C]+st*O[C]+Y*N[C]+T*L[C])*1e3)/1e3,I[C*4+2]=t.round((R*b[C]+m*O[C]+v*N[C]+U*L[C])*1e3)/1e3,I[C*4+3]=t.round((D*b[C]+it*O[C]+ht*N[C]+ut*L[C])*1e3)/1e3;return I}return{getSegmentsLength:d,getNewSegment:V,getPointInSegment:k,buildBezierData:E,pointOnLine2D:r,pointOnLine3D:i}}var ir=Tu(),ni=s,jc=Math.abs;function Wc(t,r){var i=this.offsetTime,a;this.propType==="multidimensional"&&(a=Q("float32",this.pv.length));for(var d=r.lastIndex,c=d,p=this.keyframes.length-1,E=!0,u,k,I;E;){if(u=this.keyframes[c],k=this.keyframes[c+1],c===p-1&&t>=k.t-i){u.h&&(u=k),d=0;break}if(k.t-i>t){d=c;break}c<p-1?c+=1:(d=0,E=!1)}I=this.keyframesMetadata[c]||{};var V,b,L,O,N,z,w=k.t-i,_=u.t-i,g;if(u.to){I.bezierData||(I.bezierData=ir.buildBezierData(u.s,k.s||u.e,u.to,u.ti));var x=I.bezierData;if(t>=w||t<_){var C=t>=w?x.points.length-1:0;for(b=x.points[C].point.length,V=0;V<b;V+=1)a[V]=x.points[C].point[V]}else{I.__fnct?z=I.__fnct:(z=$o.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y,u.n).get,I.__fnct=z),L=z((t-_)/(w-_));var P=x.segmentLength*L,$,H=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(N=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,E=!0,O=x.points.length;E;){if(H+=x.points[N].partialLength,P===0||L===0||N===x.points.length-1){for(b=x.points[N].point.length,V=0;V<b;V+=1)a[V]=x.points[N].point[V];break}else if(P>=H&&P<H+x.points[N+1].partialLength){for($=(P-H)/x.points[N+1].partialLength,b=x.points[N].point.length,V=0;V<b;V+=1)a[V]=x.points[N].point[V]+(x.points[N+1].point[V]-x.points[N].point[V])*$;break}N<O-1?N+=1:E=!1}r._lastPoint=N,r._lastAddedLength=H-x.points[N].partialLength,r._lastKeyframeIndex=c}}else{var K,pt,nt,tt,vt;if(p=u.s.length,g=k.s||u.e,this.sh&&u.h!==1)if(t>=w)a[0]=g[0],a[1]=g[1],a[2]=g[2];else if(t<=_)a[0]=u.s[0],a[1]=u.s[1],a[2]=u.s[2];else{var st=qc(u.s),Y=qc(g),T=(t-_)/(w-_);_u(a,Au(st,Y,T))}else for(c=0;c<p;c+=1)u.h!==1&&(t>=w?L=1:t<_?L=0:(u.o.x.constructor===Array?(I.__fnct||(I.__fnct=[]),I.__fnct[c]?z=I.__fnct[c]:(K=u.o.x[c]===void 0?u.o.x[0]:u.o.x[c],pt=u.o.y[c]===void 0?u.o.y[0]:u.o.y[c],nt=u.i.x[c]===void 0?u.i.x[0]:u.i.x[c],tt=u.i.y[c]===void 0?u.i.y[0]:u.i.y[c],z=$o.getBezierEasing(K,pt,nt,tt).get,I.__fnct[c]=z)):I.__fnct?z=I.__fnct:(K=u.o.x,pt=u.o.y,nt=u.i.x,tt=u.i.y,z=$o.getBezierEasing(K,pt,nt,tt).get,u.keyframeMetadata=z),L=z((t-_)/(w-_)))),g=k.s||u.e,vt=u.h===1?u.s[c]:u.s[c]+(g[c]-u.s[c])*L,this.propType==="multidimensional"?a[c]=vt:a=vt}return r.lastIndex=d,a}function Au(t,r,i){var a=[],d=t[0],c=t[1],p=t[2],E=t[3],u=r[0],k=r[1],I=r[2],V=r[3],b,L,O,N,z;return L=d*u+c*k+p*I+E*V,L<0&&(L=-L,u=-u,k=-k,I=-I,V=-V),1-L>1e-6?(b=Math.acos(L),O=Math.sin(b),N=Math.sin((1-i)*b)/O,z=Math.sin(i*b)/O):(N=1-i,z=i),a[0]=N*d+z*u,a[1]=N*c+z*k,a[2]=N*p+z*I,a[3]=N*E+z*V,a}function _u(t,r){var i=r[0],a=r[1],d=r[2],c=r[3],p=Math.atan2(2*a*c-2*i*d,1-2*a*a-2*d*d),E=Math.asin(2*i*a+2*d*c),u=Math.atan2(2*i*c-2*a*d,1-2*i*i-2*d*d);t[0]=p/Tt,t[1]=E/Tt,t[2]=u/Tt}function qc(t){var r=t[0]*Tt,i=t[1]*Tt,a=t[2]*Tt,d=Math.cos(r/2),c=Math.cos(i/2),p=Math.cos(a/2),E=Math.sin(r/2),u=Math.sin(i/2),k=Math.sin(a/2),I=d*c*p-E*u*k,V=E*u*p+d*c*k,b=E*c*p+d*u*k,L=d*u*p-E*c*k;return[V,b,L,I]}function Yc(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==ni&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(t,this._caching);this.pv=a}return this._caching.lastFrame=t,this.pv}function Ys(t){var r;if(this.propType==="unidimensional")r=t*this.mult,jc(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,a=this.v.length;i<a;)r=t[i]*this.mult,jc(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function Ks(){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 t,r=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<r;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Xs(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function Su(t,r,i,a){this.propType="unidimensional",this.mult=i||1,this.data=r,this.v=i?r.k*i:r.k,this.pv=r.k,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Ks,this.setVValue=Ys,this.addEffect=Xs}function ku(t,r,i,a){this.propType="multidimensional",this.mult=i||1,this.data=r,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,c=r.k.length;for(this.v=Q("float32",c),this.pv=Q("float32",c),this.vel=Q("float32",c),d=0;d<c;d+=1)this.v[d]=r.k[d]*this.mult,this.pv[d]=r.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Ks,this.setVValue=Ys,this.addEffect=Xs}function Cu(t,r,i,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:ni,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=ni,this.pv=ni,this._isFirstFrame=!0,this.getValue=Ks,this.setVValue=Ys,this.interpolateValue=Wc,this.effectsSequence=[Yc.bind(this)],this.addEffect=Xs}function wu(t,r,i,a){this.propType="multidimensional";var d,c=r.k.length,p,E,u,k;for(d=0;d<c-1;d+=1)r.k[d].to&&r.k[d].s&&r.k[d+1]&&r.k[d+1].s&&(p=r.k[d].s,E=r.k[d+1].s,u=r.k[d].to,k=r.k[d].ti,(p.length===2&&!(p[0]===E[0]&&p[1]===E[1])&&ir.pointOnLine2D(p[0],p[1],E[0],E[1],p[0]+u[0],p[1]+u[1])&&ir.pointOnLine2D(p[0],p[1],E[0],E[1],E[0]+k[0],E[1]+k[1])||p.length===3&&!(p[0]===E[0]&&p[1]===E[1]&&p[2]===E[2])&&ir.pointOnLine3D(p[0],p[1],p[2],E[0],E[1],E[2],p[0]+u[0],p[1]+u[1],p[2]+u[2])&&ir.pointOnLine3D(p[0],p[1],p[2],E[0],E[1],E[2],E[0]+k[0],E[1]+k[1],E[2]+k[2]))&&(r.k[d].to=null,r.k[d].ti=null),p[0]===E[0]&&p[1]===E[1]&&u[0]===0&&u[1]===0&&k[0]===0&&k[1]===0&&(p.length===2||p[2]===E[2]&&u[2]===0&&k[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[Yc.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=Ks,this.setVValue=Ys,this.interpolateValue=Wc,this.frameId=-1;var I=r.k[0].s.length;for(this.v=Q("float32",I),this.pv=Q("float32",I),d=0;d<I;d+=1)this.v[d]=ni,this.pv[d]=ni;this._caching={lastFrame:ni,lastIndex:0,value:Q("float32",I)},this.addEffect=Xs}var rt=function(){function t(i,a,d,c,p){a.sid&&(a=i.globalData.slotManager.getProp(a));var E;if(!a.k.length)E=new Su(i,a,c,p);else if(typeof a.k[0]=="number")E=new ku(i,a,c,p);else switch(d){case 0:E=new Cu(i,a,c,p);break;case 1:E=new wu(i,a,c,p);break;default:break}return E.effectsSequence.length&&p.addDynamicProperty(E),E}var r={getProp:t};return r}();function te(){}te.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var li=function(){function t(){return Q("float32",2)}return qs(8,t)}();function mr(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}mr.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var i=0;i<r;)this.v[i]=li.newElement(),this.o[i]=li.newElement(),this.i[i]=li.newElement(),i+=1},mr.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},mr.prototype.doubleArrayLength=function(){this.v=this.v.concat(et(this._maxLength)),this.i=this.i.concat(et(this._maxLength)),this.o=this.o.concat(et(this._maxLength)),this._maxLength*=2},mr.prototype.setXYAt=function(t,r,i,a,d){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!d)&&(c[a]=li.newElement()),c[a][0]=t,c[a][1]=r},mr.prototype.setTripleAt=function(t,r,i,a,d,c,p,E){this.setXYAt(t,r,"v",p,E),this.setXYAt(i,a,"o",p,E),this.setXYAt(d,c,"i",p,E)},mr.prototype.reverse=function(){var t=new mr;t.setPathData(this.c,this._length);var r=this.v,i=this.o,a=this.i,d=0;this.c&&(t.setTripleAt(r[0][0],r[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),d=1);var c=this._length-1,p=this._length,E;for(E=d;E<p;E+=1)t.setTripleAt(r[c][0],r[c][1],a[c][0],a[c][1],i[c][0],i[c][1],E,!1),c-=1;return t},mr.prototype.length=function(){return this._length};var se=function(){function t(){return new mr}function r(d){var c=d._length,p;for(p=0;p<c;p+=1)li.release(d.v[p]),li.release(d.i[p]),li.release(d.o[p]),d.v[p]=null,d.i[p]=null,d.o[p]=null;d._length=0,d.c=!1}function i(d){var c=a.newElement(),p,E=d._length===void 0?d.v.length:d._length;for(c.setLength(E),c.c=d.c,p=0;p<E;p+=1)c.setTripleAt(d.v[p][0],d.v[p][1],d.o[p][0],d.o[p][1],d.i[p][0],d.i[p][1],p);return c}var a=qs(4,t,r);return a.clone=i,a}();function Dn(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Dn.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},Dn.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)se.release(this.shapes[t]);this._length=0};var qi=function(){var t={newShapeCollection:d,release:c},r=0,i=4,a=et(i);function d(){var p;return r?(r-=1,p=a[r]):p=new Dn,p}function c(p){var E,u=p._length;for(E=0;E<u;E+=1)se.release(p.shapes[E]);p._length=0,r===i&&(a=Uc.double(a),i*=2),a[r]=p,r+=1}return t}(),Zs=function(){var t=-999999;function r(w,_,g){var x=g.lastIndex,C,P,$,H,K,pt,nt,tt,vt,st=this.keyframes;if(w<st[0].t-this.offsetTime)C=st[0].s[0],$=!0,x=0;else if(w>=st[st.length-1].t-this.offsetTime)C=st[st.length-1].s?st[st.length-1].s[0]:st[st.length-2].e[0],$=!0;else{for(var Y=x,T=st.length-1,R=!0,m,v,U;R&&(m=st[Y],v=st[Y+1],!(v.t-this.offsetTime>w));)Y<T-1?Y+=1:R=!1;if(U=this.keyframesMetadata[Y]||{},$=m.h===1,x=Y,!$){if(w>=v.t-this.offsetTime)tt=1;else if(w<m.t-this.offsetTime)tt=0;else{var D;U.__fnct?D=U.__fnct:(D=$o.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,U.__fnct=D),tt=D((w-(m.t-this.offsetTime))/(v.t-this.offsetTime-(m.t-this.offsetTime)))}P=v.s?v.s[0]:m.e[0]}C=m.s[0]}for(pt=_._length,nt=C.i[0].length,g.lastIndex=x,H=0;H<pt;H+=1)for(K=0;K<nt;K+=1)vt=$?C.i[H][K]:C.i[H][K]+(P.i[H][K]-C.i[H][K])*tt,_.i[H][K]=vt,vt=$?C.o[H][K]:C.o[H][K]+(P.o[H][K]-C.o[H][K])*tt,_.o[H][K]=vt,vt=$?C.v[H][K]:C.v[H][K]+(P.v[H][K]-C.v[H][K])*tt,_.v[H][K]=vt}function i(){var w=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,g=this.keyframes[this.keyframes.length-1].t-this.offsetTime,x=this._caching.lastFrame;return x!==t&&(x<_&&w<_||x>g&&w>g)||(this._caching.lastIndex=x<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function a(){this.paths=this.localShapeCollection}function d(w,_){if(w._length!==_._length||w.c!==_.c)return!1;var g,x=w._length;for(g=0;g<x;g+=1)if(w.v[g][0]!==_.v[g][0]||w.v[g][1]!==_.v[g][1]||w.o[g][0]!==_.o[g][0]||w.o[g][1]!==_.o[g][1]||w.i[g][0]!==_.i[g][0]||w.i[g][1]!==_.i[g][1])return!1;return!0}function c(w){d(this.v,w)||(this.v=se.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function p(){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 w;this.kf?w=this.pv:this.data.ks?w=this.data.ks.k:w=this.data.pt.k;var _,g=this.effectsSequence.length;for(_=0;_<g;_+=1)w=this.effectsSequence[_](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function E(w,_,g){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=_,this.k=!1,this.kf=!1,this._mdf=!1;var x=g===3?_.pt.k:_.ks.k;this.v=se.clone(x),this.pv=se.clone(this.v),this.localShapeCollection=qi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function u(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}E.prototype.interpolateShape=r,E.prototype.getValue=p,E.prototype.setVValue=c,E.prototype.addEffect=u;function k(w,_,g){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=g===3?_.pt.k:_.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var x=this.keyframes[0].s[0].i.length;this.v=se.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,x),this.pv=se.clone(this.v),this.localShapeCollection=qi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=a,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}k.prototype.getValue=p,k.prototype.interpolateShape=r,k.prototype.setVValue=c,k.prototype.addEffect=u;var I=function(){var w=de;function _(g,x){this.v=se.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=qi.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=x.d,this.elem=g,this.comp=g.comp,this.frameId=-1,this.initDynamicPropertyContainer(g),this.p=rt.getProp(g,x.p,1,0,this),this.s=rt.getProp(g,x.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return _.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var x=this.p.v[0],C=this.p.v[1],P=this.s.v[0]/2,$=this.s.v[1]/2,H=this.d!==3,K=this.v;K.v[0][0]=x,K.v[0][1]=C-$,K.v[1][0]=H?x+P:x-P,K.v[1][1]=C,K.v[2][0]=x,K.v[2][1]=C+$,K.v[3][0]=H?x-P:x+P,K.v[3][1]=C,K.i[0][0]=H?x-P*w:x+P*w,K.i[0][1]=C-$,K.i[1][0]=H?x+P:x-P,K.i[1][1]=C-$*w,K.i[2][0]=H?x+P*w:x-P*w,K.i[2][1]=C+$,K.i[3][0]=H?x-P:x+P,K.i[3][1]=C+$*w,K.o[0][0]=H?x+P*w:x-P*w,K.o[0][1]=C-$,K.o[1][0]=H?x+P:x-P,K.o[1][1]=C+$*w,K.o[2][0]=H?x-P*w:x+P*w,K.o[2][1]=C+$,K.o[3][0]=H?x-P:x+P,K.o[3][1]=C-$*w}},B([te],_),_}(),V=function(){function w(_,g){this.v=se.newElement(),this.v.setPathData(!0,0),this.elem=_,this.comp=_.comp,this.data=g,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(_),g.sy===1?(this.ir=rt.getProp(_,g.ir,0,0,this),this.is=rt.getProp(_,g.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=rt.getProp(_,g.pt,0,0,this),this.p=rt.getProp(_,g.p,1,0,this),this.r=rt.getProp(_,g.r,0,Tt,this),this.or=rt.getProp(_,g.or,0,0,this),this.os=rt.getProp(_,g.os,0,.01,this),this.localShapeCollection=qi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return w.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var g=Math.floor(this.pt.v)*2,x=Math.PI*2/g,C=!0,P=this.or.v,$=this.ir.v,H=this.os.v,K=this.is.v,pt=2*Math.PI*P/(g*2),nt=2*Math.PI*$/(g*2),tt,vt,st,Y,T=-Math.PI/2;T+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,tt=0;tt<g;tt+=1){vt=C?P:$,st=C?H:K,Y=C?pt:nt;var m=vt*Math.cos(T),v=vt*Math.sin(T),U=m===0&&v===0?0:v/Math.sqrt(m*m+v*v),D=m===0&&v===0?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-U*Y*st*R,v-D*Y*st*R,m+U*Y*st*R,v+D*Y*st*R,tt,!0),C=!C,T+=x*R}},convertPolygonToPath:function(){var g=Math.floor(this.pt.v),x=Math.PI*2/g,C=this.or.v,P=this.os.v,$=2*Math.PI*C/(g*4),H,K=-Math.PI*.5,pt=this.data.d===3?-1:1;for(K+=this.r.v,this.v._length=0,H=0;H<g;H+=1){var nt=C*Math.cos(K),tt=C*Math.sin(K),vt=nt===0&&tt===0?0:tt/Math.sqrt(nt*nt+tt*tt),st=nt===0&&tt===0?0:-nt/Math.sqrt(nt*nt+tt*tt);nt+=+this.p.v[0],tt+=+this.p.v[1],this.v.setTripleAt(nt,tt,nt-vt*$*P*pt,tt-st*$*P*pt,nt+vt*$*P*pt,tt+st*$*P*pt,H,!0),K+=x*pt}this.paths.length=0,this.paths[0]=this.v}},B([te],w),w}(),b=function(){function w(_,g){this.v=se.newElement(),this.v.c=!0,this.localShapeCollection=qi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=_,this.comp=_.comp,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(_),this.p=rt.getProp(_,g.p,1,0,this),this.s=rt.getProp(_,g.s,1,0,this),this.r=rt.getProp(_,g.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return w.prototype={convertRectToPath:function(){var g=this.p.v[0],x=this.p.v[1],C=this.s.v[0]/2,P=this.s.v[1]/2,$=we(C,P,this.r.v),H=$*(1-de);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(g+C,x-P+$,g+C,x-P+$,g+C,x-P+H,0,!0),this.v.setTripleAt(g+C,x+P-$,g+C,x+P-H,g+C,x+P-$,1,!0),$!==0?(this.v.setTripleAt(g+C-$,x+P,g+C-$,x+P,g+C-H,x+P,2,!0),this.v.setTripleAt(g-C+$,x+P,g-C+H,x+P,g-C+$,x+P,3,!0),this.v.setTripleAt(g-C,x+P-$,g-C,x+P-$,g-C,x+P-H,4,!0),this.v.setTripleAt(g-C,x-P+$,g-C,x-P+H,g-C,x-P+$,5,!0),this.v.setTripleAt(g-C+$,x-P,g-C+$,x-P,g-C+H,x-P,6,!0),this.v.setTripleAt(g+C-$,x-P,g+C-H,x-P,g+C-$,x-P,7,!0)):(this.v.setTripleAt(g-C,x+P,g-C+H,x+P,g-C,x+P,2),this.v.setTripleAt(g-C,x-P,g-C,x-P+H,g-C,x-P,3))):(this.v.setTripleAt(g+C,x-P+$,g+C,x-P+H,g+C,x-P+$,0,!0),$!==0?(this.v.setTripleAt(g+C-$,x-P,g+C-$,x-P,g+C-H,x-P,1,!0),this.v.setTripleAt(g-C+$,x-P,g-C+H,x-P,g-C+$,x-P,2,!0),this.v.setTripleAt(g-C,x-P+$,g-C,x-P+$,g-C,x-P+H,3,!0),this.v.setTripleAt(g-C,x+P-$,g-C,x+P-H,g-C,x+P-$,4,!0),this.v.setTripleAt(g-C+$,x+P,g-C+$,x+P,g-C+H,x+P,5,!0),this.v.setTripleAt(g+C-$,x+P,g+C-H,x+P,g+C-$,x+P,6,!0),this.v.setTripleAt(g+C,x+P-$,g+C,x+P-$,g+C,x+P-H,7,!0)):(this.v.setTripleAt(g-C,x-P,g-C+H,x-P,g-C,x-P,1,!0),this.v.setTripleAt(g-C,x+P,g-C,x+P-H,g-C,x+P,2,!0),this.v.setTripleAt(g+C,x+P,g+C-H,x+P,g+C,x+P,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},B([te],w),w}();function L(w,_,g){var x;if(g===3||g===4){var C=g===3?_.pt:_.ks,P=C.k;P.length?x=new k(w,_,g):x=new E(w,_,g)}else g===5?x=new b(w,_):g===6?x=new I(w,_):g===7&&(x=new V(w,_));return x.k&&w.addDynamicProperty(x),x}function O(){return E}function N(){return k}var z={};return z.getShapeProp=L,z.getConstructorFunction=O,z.getKeyframedConstructorFunction=N,z}();var ae=function(){var t=Math.cos,r=Math.sin,i=Math.tan,a=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,-U,0,0,U,v,0,0,0,0,1,0,0,0,0,1)}function p(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(1,0,0,0,0,v,-U,0,0,U,v,0,0,0,0,1)}function E(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,0,U,0,0,1,0,0,-U,0,v,0,0,0,0,1)}function u(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,-U,0,0,U,v,0,0,0,0,1,0,0,0,0,1)}function k(m,v){return this._t(1,v,m,1,0,0)}function I(m,v){return this.shear(i(m),i(v))}function V(m,v){var U=t(v),D=r(v);return this._t(U,D,0,0,-D,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(m),1,0,0,0,0,1,0,0,0,0,1)._t(U,-D,0,0,D,U,0,0,0,0,1,0,0,0,0,1)}function b(m,v,U){return!U&&U!==0&&(U=1),m===1&&v===1&&U===1?this:this._t(m,0,0,0,0,v,0,0,0,0,U,0,0,0,0,1)}function L(m,v,U,D,it,ht,ut,kt,Ct,jt,ye,sr,Ee,ee,Ie,Mt){return this.props[0]=m,this.props[1]=v,this.props[2]=U,this.props[3]=D,this.props[4]=it,this.props[5]=ht,this.props[6]=ut,this.props[7]=kt,this.props[8]=Ct,this.props[9]=jt,this.props[10]=ye,this.props[11]=sr,this.props[12]=Ee,this.props[13]=ee,this.props[14]=Ie,this.props[15]=Mt,this}function O(m,v,U){return U=U||0,m!==0||v!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,m,v,U,1):this}function N(m,v,U,D,it,ht,ut,kt,Ct,jt,ye,sr,Ee,ee,Ie,Mt){var at=this.props;if(m===1&&v===0&&U===0&&D===0&&it===0&&ht===1&&ut===0&&kt===0&&Ct===0&&jt===0&&ye===1&&sr===0)return at[12]=at[12]*m+at[15]*Ee,at[13]=at[13]*ht+at[15]*ee,at[14]=at[14]*ye+at[15]*Ie,at[15]*=Mt,this._identityCalculated=!1,this;var fr=at[0],Gr=at[1],vr=at[2],ar=at[3],gr=at[4],br=at[5],xe=at[6],jr=at[7],Wr=at[8],Ye=at[9],qr=at[10],Ke=at[11],mi=at[12],aa=at[13],na=at[14],la=at[15];return at[0]=fr*m+Gr*it+vr*Ct+ar*Ee,at[1]=fr*v+Gr*ht+vr*jt+ar*ee,at[2]=fr*U+Gr*ut+vr*ye+ar*Ie,at[3]=fr*D+Gr*kt+vr*sr+ar*Mt,at[4]=gr*m+br*it+xe*Ct+jr*Ee,at[5]=gr*v+br*ht+xe*jt+jr*ee,at[6]=gr*U+br*ut+xe*ye+jr*Ie,at[7]=gr*D+br*kt+xe*sr+jr*Mt,at[8]=Wr*m+Ye*it+qr*Ct+Ke*Ee,at[9]=Wr*v+Ye*ht+qr*jt+Ke*ee,at[10]=Wr*U+Ye*ut+qr*ye+Ke*Ie,at[11]=Wr*D+Ye*kt+qr*sr+Ke*Mt,at[12]=mi*m+aa*it+na*Ct+la*Ee,at[13]=mi*v+aa*ht+na*jt+la*ee,at[14]=mi*U+aa*ut+na*ye+la*Ie,at[15]=mi*D+aa*kt+na*sr+la*Mt,this._identityCalculated=!1,this}function z(m){var v=m.props;return this.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15])}function w(){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 _(m){for(var v=0;v<16;){if(m.props[v]!==this.props[v])return!1;v+=1}return!0}function g(m){var v;for(v=0;v<16;v+=1)m.props[v]=this.props[v];return m}function x(m){var v;for(v=0;v<16;v+=1)this.props[v]=m[v]}function C(m,v,U){return{x:m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12],y:m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13],z:m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]}}function P(m,v,U){return m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12]}function $(m,v,U){return m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13]}function H(m,v,U){return m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]}function K(){var m=this.props[0]*this.props[5]-this.props[1]*this.props[4],v=this.props[5]/m,U=-this.props[1]/m,D=-this.props[4]/m,it=this.props[0]/m,ht=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/m,ut=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/m,kt=new ae;return kt.props[0]=v,kt.props[1]=U,kt.props[4]=D,kt.props[5]=it,kt.props[12]=ht,kt.props[13]=ut,kt}function pt(m){var v=this.getInverseMatrix();return v.applyToPointArray(m[0],m[1],m[2]||0)}function nt(m){var v,U=m.length,D=[];for(v=0;v<U;v+=1)D[v]=pt(m[v]);return D}function tt(m,v,U){var D=Q("float32",6);if(this.isIdentity())D[0]=m[0],D[1]=m[1],D[2]=v[0],D[3]=v[1],D[4]=U[0],D[5]=U[1];else{var it=this.props[0],ht=this.props[1],ut=this.props[4],kt=this.props[5],Ct=this.props[12],jt=this.props[13];D[0]=m[0]*it+m[1]*ut+Ct,D[1]=m[0]*ht+m[1]*kt+jt,D[2]=v[0]*it+v[1]*ut+Ct,D[3]=v[0]*ht+v[1]*kt+jt,D[4]=U[0]*it+U[1]*ut+Ct,D[5]=U[0]*ht+U[1]*kt+jt}return D}function vt(m,v,U){var D;return this.isIdentity()?D=[m,v,U]:D=[m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12],m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13],m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]],D}function st(m,v){if(this.isIdentity())return m+","+v;var U=this.props;return Math.round((m*U[0]+v*U[4]+U[12])*100)/100+","+Math.round((m*U[1]+v*U[5]+U[13])*100)/100}function Y(){for(var m=0,v=this.props,U="matrix3d(",D=1e4;m<16;)U+=a(v[m]*D)/D,U+=m===15?")":",",m+=1;return U}function T(m){var v=1e4;return m<1e-6&&m>0||m>-1e-6&&m<0?a(m*v)/v:m}function R(){var m=this.props,v=T(m[0]),U=T(m[1]),D=T(m[4]),it=T(m[5]),ht=T(m[12]),ut=T(m[13]);return"matrix("+v+","+U+","+D+","+it+","+ht+","+ut+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=p,this.rotateY=E,this.rotateZ=u,this.skew=I,this.skewFromAxis=V,this.shear=k,this.scale=b,this.setTransform=L,this.translate=O,this.transform=N,this.multiply=z,this.applyToPoint=C,this.applyToX=P,this.applyToY=$,this.applyToZ=H,this.applyToPointArray=vt,this.applyToTriplePoints=tt,this.applyToPointStringified=st,this.toCSS=Y,this.to2dCSS=R,this.clone=g,this.cloneFromProps=x,this.equals=_,this.inversePoints=nt,this.inversePoint=pt,this.getInverseMatrix=K,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=Q("float32",16),this.reset()}}();function Js(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Js=function(i){return typeof i}:Js=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Js(t)}var It={},Qs="__[STANDALONE]__",Kc="__[ANIMATIONDATA]__",Xc="";function Iu(t){f(t)}function Zc(){Qs===!0?Gt.searchAnimations(Kc,Qs,Xc):Gt.searchAnimations()}function Lu(t){mu(t)}function Mu(t){fu(t)}function Nu(t){return Qs===!0&&(t.animationData=JSON.parse(Kc)),Gt.loadAnimation(t)}function Ru(t){if(typeof t=="string")switch(t){case"high":js(200);break;default:case"medium":js(50);break;case"low":js(10);break}else!isNaN(t)&&t>1&&js(t);Po()>=50?Pe(!1):Pe(!0)}function Ou(){return typeof navigator<"u"}function Pu(t,r){t==="expressions"&&uu(r)}function Du(t){switch(t){case"propertyFactory":return rt;case"shapePropertyFactory":return Zs;case"matrix":return ae;default:return null}}It.play=Gt.play,It.pause=Gt.pause,It.setLocationHref=Iu,It.togglePause=Gt.togglePause,It.setSpeed=Gt.setSpeed,It.setDirection=Gt.setDirection,It.stop=Gt.stop,It.searchAnimations=Zc,It.registerAnimation=Gt.registerAnimation,It.loadAnimation=Nu,It.setSubframeRendering=Lu,It.resize=Gt.resize,It.goToAndStop=Gt.goToAndStop,It.destroy=Gt.destroy,It.setQuality=Ru,It.inBrowser=Ou,It.installPlugin=Pu,It.freeze=Gt.freeze,It.unfreeze=Gt.unfreeze,It.setVolume=Gt.setVolume,It.mute=Gt.mute,It.unmute=Gt.unmute,It.getRegisteredAnimations=Gt.getRegisteredAnimations,It.useWebWorker=n,It.setIDPrefix=Mu,It.__getFactory=Du,It.version="5.12.2";function Fu(){document.readyState==="complete"&&(clearInterval(Vu),Zc())}function zu(t){for(var r=Jc.split("&"),i=0;i<r.length;i+=1){var a=r[i].split("=");if(decodeURIComponent(a[0])==t)return decodeURIComponent(a[1])}return null}var Jc="";if(Qs){var Qc=document.getElementsByTagName("script"),$u=Qc.length-1,td=Qc[$u]||{src:""};Jc=td.src?td.src.replace(/^[^\?]+\??/,""):"",Xc=zu("renderer")}var Vu=setInterval(Fu,100);try{!((typeof Us>"u"?"undefined":Js(Us))==="object"&&typeof Mn<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=It)}catch{}var zr=function(){var t={},r={};t.registerModifier=i,t.getModifier=a;function i(d,c){r[d]||(r[d]=c)}function a(d,c,p){return new r[d](c,p)}return t}();function Fe(){}Fe.prototype.initModifierProperties=function(){},Fe.prototype.addShapeToModifier=function(){},Fe.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:qi.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},Fe.prototype.init=function(t,r){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r),this.frameId=s,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Fe.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},B([te],Fe);function qe(){}B([Fe],qe),qe.prototype.initModifierProperties=function(t,r){this.s=rt.getProp(t,r.s,0,.01,this),this.e=rt.getProp(t,r.e,0,.01,this),this.o=rt.getProp(t,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},qe.prototype.addShapeToModifier=function(t){t.pathsData=[]},qe.prototype.calculateShapeEdges=function(t,r,i,a,d){var c=[];r<=1?c.push({s:t,e:r}):t>=1?c.push({s:t-1,e:r-1}):(c.push({s:t,e:1}),c.push({s:0,e:r-1}));var p=[],E,u=c.length,k;for(E=0;E<u;E+=1)if(k=c[E],!(k.e*d<a||k.s*d>a+i)){var I,V;k.s*d<=a?I=0:I=(k.s*d-a)/i,k.e*d>=a+i?V=1:V=(k.e*d-a)/i,p.push([I,V])}return p.length||p.push([0,0]),p},qe.prototype.releasePathsData=function(t){var r,i=t.length;for(r=0;r<i;r+=1)Gc.release(t[r]);return t.length=0,t},qe.prototype.processShapes=function(t){var r,i;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?r=1+a:this.s.v<0?r=0+a:r=this.s.v+a,this.e.v>1?i=1+a:this.e.v<0?i=0+a:i=this.e.v+a,r>i){var d=r;r=i,i=d}r=Math.round(r*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=r,this.eValue=i}else r=this.sValue,i=this.eValue;var c,p,E=this.shapes.length,u,k,I,V,b,L=0;if(i===r)for(p=0;p<E;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(i===1&&r===0||i===0&&r===1){if(this._mdf)for(p=0;p<E;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var O=[],N,z;for(p=0;p<E;p+=1)if(N=this.shapes[p],!N.shape._mdf&&!this._mdf&&!t&&this.m!==2)N.shape.paths=N.localShapeCollection;else{if(c=N.shape.paths,k=c._length,b=0,!N.shape._mdf&&N.pathsData.length)b=N.totalShapeLength;else{for(I=this.releasePathsData(N.pathsData),u=0;u<k;u+=1)V=ir.getSegmentsLength(c.shapes[u]),I.push(V),b+=V.totalLength;N.totalShapeLength=b,N.pathsData=I}L+=b,N.shape._mdf=!0}var w=r,_=i,g=0,x;for(p=E-1;p>=0;p-=1)if(N=this.shapes[p],N.shape._mdf){for(z=N.localShapeCollection,z.releaseShapes(),this.m===2&&E>1?(x=this.calculateShapeEdges(r,i,N.totalShapeLength,g,L),g+=N.totalShapeLength):x=[[w,_]],k=x.length,u=0;u<k;u+=1){w=x[u][0],_=x[u][1],O.length=0,_<=1?O.push({s:N.totalShapeLength*w,e:N.totalShapeLength*_}):w>=1?O.push({s:N.totalShapeLength*(w-1),e:N.totalShapeLength*(_-1)}):(O.push({s:N.totalShapeLength*w,e:N.totalShapeLength}),O.push({s:0,e:N.totalShapeLength*(_-1)}));var C=this.addShapes(N,O[0]);if(O[0].s!==O[0].e){if(O.length>1){var P=N.shape.paths.shapes[N.shape.paths._length-1];if(P.c){var $=C.pop();this.addPaths(C,z),C=this.addShapes(N,O[1],$)}else this.addPaths(C,z),C=this.addShapes(N,O[1])}this.addPaths(C,z)}}N.shape.paths=z}}},qe.prototype.addPaths=function(t,r){var i,a=t.length;for(i=0;i<a;i+=1)r.addShape(t[i])},qe.prototype.addSegment=function(t,r,i,a,d,c,p){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(i[0],i[1],"i",c+1),p&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},qe.prototype.addSegmentFromArray=function(t,r,i,a){r.setXYAt(t[1],t[5],"o",i),r.setXYAt(t[2],t[6],"i",i+1),a&&r.setXYAt(t[0],t[4],"v",i),r.setXYAt(t[3],t[7],"v",i+1)},qe.prototype.addShapes=function(t,r,i){var a=t.pathsData,d=t.shape.paths.shapes,c,p=t.shape.paths._length,E,u,k=0,I,V,b,L,O=[],N,z=!0;for(i?(V=i._length,N=i._length):(i=se.newElement(),V=0,N=0),O.push(i),c=0;c<p;c+=1){for(b=a[c].lengths,i.c=d[c].c,u=d[c].c?b.length:b.length+1,E=1;E<u;E+=1)if(I=b[E-1],k+I.addedLength<r.s)k+=I.addedLength,i.c=!1;else if(k>r.e){i.c=!1;break}else r.s<=k&&r.e>=k+I.addedLength?(this.addSegment(d[c].v[E-1],d[c].o[E-1],d[c].i[E],d[c].v[E],i,V,z),z=!1):(L=ir.getNewSegment(d[c].v[E-1],d[c].v[E],d[c].o[E-1],d[c].i[E],(r.s-k)/I.addedLength,(r.e-k)/I.addedLength,b[E-1]),this.addSegmentFromArray(L,i,V,z),z=!1,i.c=!1),k+=I.addedLength,V+=1;if(d[c].c&&b.length){if(I=b[E-1],k<=r.e){var w=b[E-1].addedLength;r.s<=k&&r.e>=k+w?(this.addSegment(d[c].v[E-1],d[c].o[E-1],d[c].i[0],d[c].v[0],i,V,z),z=!1):(L=ir.getNewSegment(d[c].v[E-1],d[c].v[0],d[c].o[E-1],d[c].i[0],(r.s-k)/w,(r.e-k)/w,b[E-1]),this.addSegmentFromArray(L,i,V,z),z=!1,i.c=!1)}else i.c=!1;k+=I.addedLength,V+=1}if(i._length&&(i.setXYAt(i.v[N][0],i.v[N][1],"i",N),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),k>r.e)break;c<p-1&&(i=se.newElement(),z=!0,O.push(i),V=0)}return O};function Vo(){}B([Fe],Vo),Vo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=rt.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Vo.prototype.processPath=function(t,r){var i=r/100,a=[0,0],d=t._length,c=0;for(c=0;c<d;c+=1)a[0]+=t.v[c][0],a[1]+=t.v[c][1];a[0]/=d,a[1]/=d;var p=se.newElement();p.c=t.c;var E,u,k,I,V,b;for(c=0;c<d;c+=1)E=t.v[c][0]+(a[0]-t.v[c][0])*i,u=t.v[c][1]+(a[1]-t.v[c][1])*i,k=t.o[c][0]+(a[0]-t.o[c][0])*-i,I=t.o[c][1]+(a[1]-t.o[c][1])*-i,V=t.i[c][0]+(a[0]-t.i[c][0])*-i,b=t.i[c][1]+(a[1]-t.i[c][1])*-i,p.setTripleAt(E,u,k,I,V,b,c);return p},Vo.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amount.v;if(p!==0){var E,u;for(i=0;i<a;i+=1){if(E=this.shapes[i],u=E.localShapeCollection,!(!E.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),E.shape._mdf=!0,r=E.shape.paths.shapes,c=E.shape.paths._length,d=0;d<c;d+=1)u.addShape(this.processPath(r[d],p));E.shape.paths=E.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Fn=function(){var t=[0,0];function r(u){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&u.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&u.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&u.skewFromAxis(-this.sk.v,this.sa.v),this.r?u.rotate(-this.r.v):u.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?u.translate(this.px.v,this.py.v,-this.pz.v):u.translate(this.px.v,this.py.v,0):u.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(u){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||u){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var I,V;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(I=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),V=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(I=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),V=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(I=this.p.pv,V=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){I=[],V=[];var b=this.px,L=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(I[0]=b.getValueAtTime((b.keyframes[0].t+.01)/k,0),I[1]=L.getValueAtTime((L.keyframes[0].t+.01)/k,0),V[0]=b.getValueAtTime(b.keyframes[0].t/k,0),V[1]=L.getValueAtTime(L.keyframes[0].t/k,0)):b._caching.lastFrame+b.offsetTime>=b.keyframes[b.keyframes.length-1].t?(I[0]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/k,0),I[1]=L.getValueAtTime(L.keyframes[L.keyframes.length-1].t/k,0),V[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/k,0),V[1]=L.getValueAtTime((L.keyframes[L.keyframes.length-1].t-.01)/k,0)):(I=[b.pv,L.pv],V[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/k,b.offsetTime),V[1]=L.getValueAtTime((L._caching.lastFrame+L.offsetTime-.01)/k,L.offsetTime))}else V=t,I=V;this.v.rotate(-Math.atan2(I[1]-V[1],I[0]-V[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 a(){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 d(){}function c(u){this._addDynamicProperty(u),this.elem.addDynamicProperty(u),this._isDirty=!0}function p(u,k,I){if(this.elem=u,this.frameId=-1,this.propType="transform",this.data=k,this.v=new ae,this.pre=new ae,this.appliedTransformations=0,this.initDynamicPropertyContainer(I||u),k.p&&k.p.s?(this.px=rt.getProp(u,k.p.x,0,0,this),this.py=rt.getProp(u,k.p.y,0,0,this),k.p.z&&(this.pz=rt.getProp(u,k.p.z,0,0,this))):this.p=rt.getProp(u,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=rt.getProp(u,k.rx,0,Tt,this),this.ry=rt.getProp(u,k.ry,0,Tt,this),this.rz=rt.getProp(u,k.rz,0,Tt,this),k.or.k[0].ti){var V,b=k.or.k.length;for(V=0;V<b;V+=1)k.or.k[V].to=null,k.or.k[V].ti=null}this.or=rt.getProp(u,k.or,1,Tt,this),this.or.sh=!0}else this.r=rt.getProp(u,k.r||{k:0},0,Tt,this);k.sk&&(this.sk=rt.getProp(u,k.sk,0,Tt,this),this.sa=rt.getProp(u,k.sa,0,Tt,this)),this.a=rt.getProp(u,k.a||{k:[0,0,0]},1,0,this),this.s=rt.getProp(u,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=rt.getProp(u,k.o,0,.01,u):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:r,getValue:i,precalculateMatrix:a,autoOrient:d},B([te],p),p.prototype.addDynamicProperty=c,p.prototype._addDynamicProperty=te.prototype.addDynamicProperty;function E(u,k,I){return new p(u,k,I)}return{getTransformProperty:E}}();function or(){}B([Fe],or),or.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=rt.getProp(t,r.c,0,null,this),this.o=rt.getProp(t,r.o,0,null,this),this.tr=Fn.getTransformProperty(t,r.tr,this),this.so=rt.getProp(t,r.tr.so,0,.01,this),this.eo=rt.getProp(t,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ae,this.rMatrix=new ae,this.sMatrix=new ae,this.tMatrix=new ae,this.matrix=new ae},or.prototype.applyTransforms=function(t,r,i,a,d,c){var p=c?-1:1,E=a.s.v[0]+(1-a.s.v[0])*(1-d),u=a.s.v[1]+(1-a.s.v[1])*(1-d);t.translate(a.p.v[0]*p*d,a.p.v[1]*p*d,a.p.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.rotate(-a.r.v*p*d),r.translate(a.a.v[0],a.a.v[1],a.a.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.scale(c?1/E:E,c?1/u:u),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},or.prototype.init=function(t,r,i,a){for(this.elem=t,this.arr=r,this.pos=i,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r[i]);i>0;)i-=1,this._elements.unshift(r[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},or.prototype.resetElements=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._processed=!1,t[r].ty==="gr"&&this.resetElements(t[r].it)},or.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},or.prototype.changeGroupRender=function(t,r){var i,a=t.length;for(i=0;i<a;i+=1)t[i]._render=r,t[i].ty==="gr"&&this.changeGroupRender(t[i].it,r)},or.prototype.processShapes=function(t){var r,i,a,d,c,p=!1;if(this._mdf||t){var E=Math.ceil(this.c.v);if(this._groups.length<E){for(;this._groups.length<E;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.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,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}c=0;var k;for(a=0;a<=this._groups.length-1;a+=1){if(k=c<E,this._groups[a]._render=k,this.changeGroupRender(this._groups[a].it,k),!k){var I=this.elemsData[a].it,V=I[I.length-1];V.transform.op.v!==0?(V.transform.op._mdf=!0,V.transform.op.v=0):V.transform.op._mdf=!1}c+=1}this._currentCopies=E;var b=this.o.v,L=b%1,O=b>0?Math.floor(b):Math.ceil(b),N=this.pMatrix.props,z=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(b>0){for(;_<O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,L,!1),_+=L)}else if(b<0){for(;_>O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-L,!0),_-=L)}a=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var g,x;c;){if(r=this.elemsData[a].it,i=r[r.length-1].transform.mProps.v.props,x=i.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),_!==0){for((a!==0&&d===1||a!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),g=0;g<x;g+=1)i[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<x;g+=1)i[g]=this.matrix.props[g];_+=1,c-=1,a+=d}}else for(c=this._currentCopies,a=0,d=1;c;)r=this.elemsData[a].it,i=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,a+=d;return p},or.prototype.addShape=function(){};function Bo(){}B([Fe],Bo),Bo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=rt.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Bo.prototype.processPath=function(t,r){var i=se.newElement();i.c=t.c;var a,d=t._length,c,p,E,u,k,I,V=0,b,L,O,N,z,w;for(a=0;a<d;a+=1)c=t.v[a],E=t.o[a],p=t.i[a],c[0]===E[0]&&c[1]===E[1]&&c[0]===p[0]&&c[1]===p[1]?(a===0||a===d-1)&&!t.c?(i.setTripleAt(c[0],c[1],E[0],E[1],p[0],p[1],V),V+=1):(a===0?u=t.v[d-1]:u=t.v[a-1],k=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),I=k?Math.min(k/2,r)/k:0,z=c[0]+(u[0]-c[0])*I,b=z,w=c[1]-(c[1]-u[1])*I,L=w,O=b-(b-c[0])*de,N=L-(L-c[1])*de,i.setTripleAt(b,L,O,N,z,w,V),V+=1,a===d-1?u=t.v[0]:u=t.v[a+1],k=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),I=k?Math.min(k/2,r)/k:0,O=c[0]+(u[0]-c[0])*I,b=O,N=c[1]+(u[1]-c[1])*I,L=N,z=b-(b-c[0])*de,w=L-(L-c[1])*de,i.setTripleAt(b,L,O,N,z,w,V),V+=1):(i.setTripleAt(t.v[a][0],t.v[a][1],t.o[a][0],t.o[a][1],t.i[a][0],t.i[a][1],V),V+=1);return i},Bo.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.rd.v;if(p!==0){var E,u;for(i=0;i<a;i+=1){if(E=this.shapes[i],u=E.localShapeCollection,!(!E.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),E.shape._mdf=!0,r=E.shape.paths.shapes,c=E.shape.paths._length,d=0;d<c;d+=1)u.addShape(this.processPath(r[d],p));E.shape.paths=E.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ta(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function zn(t){return Math.abs(t)<=1e-5}function ed(t,r,i){return t*(1-i)+r*i}function $r(t,r,i){return[ed(t[0],r[0],i),ed(t[1],r[1],i)]}function Bu(t,r,i){if(t===0)return[];var a=r*r-4*t*i;if(a<0)return[];var d=-r/(2*t);if(a===0)return[d];var c=Math.sqrt(a)/(2*t);return[d-c,d+c]}function rd(t,r,i,a){return[-t+3*r-3*i+a,3*t-6*r+3*i,-3*t+3*r,t]}function id(t){return new Ft(t,t,t,t,!1)}function Ft(t,r,i,a,d){d&&Ki(t,r)&&(r=$r(t,a,1/3)),d&&Ki(i,a)&&(i=$r(t,a,2/3));var c=rd(t[0],r[0],i[0],a[0]),p=rd(t[1],r[1],i[1],a[1]);this.a=[c[0],p[0]],this.b=[c[1],p[1]],this.c=[c[2],p[2]],this.d=[c[3],p[3]],this.points=[t,r,i,a]}Ft.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Ft.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Ft.prototype.tangentAngle=function(t){var r=this.derivative(t);return Math.atan2(r[1],r[0])},Ft.prototype.normalAngle=function(t){var r=this.derivative(t);return Math.atan2(r[0],r[1])},Ft.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(zn(t))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var a=Math.sqrt(i);return zn(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Ft.prototype.split=function(t){if(t<=0)return[id(this.points[0]),this];if(t>=1)return[this,id(this.points[this.points.length-1])];var r=$r(this.points[0],this.points[1],t),i=$r(this.points[1],this.points[2],t),a=$r(this.points[2],this.points[3],t),d=$r(r,i,t),c=$r(i,a,t),p=$r(d,c,t);return[new Ft(this.points[0],r,d,p,!0),new Ft(p,c,a,this.points[3],!0)]};function od(t,r){var i=t.points[0][r],a=t.points[t.points.length-1][r];if(i>a){var d=a;a=i,i=d}for(var c=Bu(3*t.a[r],2*t.b[r],t.c[r]),p=0;p<c.length;p+=1)if(c[p]>0&&c[p]<1){var E=t.point(c[p])[r];E<i?i=E:E>a&&(a=E)}return{min:i,max:a}}Ft.prototype.bounds=function(){return{x:od(this,0),y:od(this,1)}},Ft.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function ea(t,r,i){var a=t.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:t,t:(r+i)/2,t1:r,t2:i}}function sd(t){var r=t.bez.split(.5);return[ea(r[0],t.t1,t.t),ea(r[1],t.t,t.t2)]}function Uu(t,r){return Math.abs(t.cx-r.cx)*2<t.width+r.width&&Math.abs(t.cy-r.cy)*2<t.height+r.height}function Uo(t,r,i,a,d,c){if(Uu(t,r)){if(i>=c||t.width<=a&&t.height<=a&&r.width<=a&&r.height<=a){d.push([t.t,r.t]);return}var p=sd(t),E=sd(r);Uo(p[0],E[0],i+1,a,d,c),Uo(p[0],E[1],i+1,a,d,c),Uo(p[1],E[0],i+1,a,d,c),Uo(p[1],E[1],i+1,a,d,c)}}Ft.prototype.intersections=function(t,r,i){r===void 0&&(r=2),i===void 0&&(i=7);var a=[];return Uo(ea(this,0,1),ea(t,0,1),0,r,a,i),a},Ft.shapeSegment=function(t,r){var i=(r+1)%t.length();return new Ft(t.v[r],t.o[r],t.i[i],t.v[i],!0)},Ft.shapeSegmentInverted=function(t,r){var i=(r+1)%t.length();return new Ft(t.v[i],t.i[i],t.o[r],t.v[r],!0)};function $n(t,r){return[t[1]*r[2]-t[2]*r[1],t[2]*r[0]-t[0]*r[2],t[0]*r[1]-t[1]*r[0]]}function ra(t,r,i,a){var d=[t[0],t[1],1],c=[r[0],r[1],1],p=[i[0],i[1],1],E=[a[0],a[1],1],u=$n($n(d,c),$n(p,E));return zn(u[2])?null:[u[0]/u[2],u[1]/u[2]]}function Yi(t,r,i){return[t[0]+Math.cos(r)*i,t[1]-Math.sin(r)*i]}function Vn(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function Ki(t,r){return ta(t[0],r[0])&&ta(t[1],r[1])}function Ho(){}B([Fe],Ho),Ho.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=rt.getProp(t,r.s,0,null,this),this.frequency=rt.getProp(t,r.r,0,null,this),this.pointsType=rt.getProp(t,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function ad(t,r,i,a,d,c,p){var E=i-Math.PI/2,u=i+Math.PI/2,k=r[0]+Math.cos(i)*a*d,I=r[1]-Math.sin(i)*a*d;t.setTripleAt(k,I,k+Math.cos(E)*c,I-Math.sin(E)*c,k+Math.cos(u)*p,I-Math.sin(u)*p,t.length())}function Hu(t,r){var i=[r[0]-t[0],r[1]-t[1]],a=-Math.PI*.5,d=[Math.cos(a)*i[0]-Math.sin(a)*i[1],Math.sin(a)*i[0]+Math.cos(a)*i[1]];return d}function Gu(t,r){var i=r===0?t.length()-1:r-1,a=(r+1)%t.length(),d=t.v[i],c=t.v[a],p=Hu(d,c);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function nd(t,r,i,a,d,c,p){var E=Gu(r,i),u=r.v[i%r._length],k=r.v[i===0?r._length-1:i-1],I=r.v[(i+1)%r._length],V=c===2?Math.sqrt(Math.pow(u[0]-k[0],2)+Math.pow(u[1]-k[1],2)):0,b=c===2?Math.sqrt(Math.pow(u[0]-I[0],2)+Math.pow(u[1]-I[1],2)):0;ad(t,r.v[i%r._length],E,p,a,b/((d+1)*2),V/((d+1)*2),c)}function ju(t,r,i,a,d,c){for(var p=0;p<a;p+=1){var E=(p+1)/(a+1),u=d===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,k=r.normalAngle(E),I=r.point(E);ad(t,I,k,c,i,u/((a+1)*2),u/((a+1)*2),d),c=-c}return c}Ho.prototype.processPath=function(t,r,i,a){var d=t._length,c=se.newElement();if(c.c=t.c,t.c||(d-=1),d===0)return c;var p=-1,E=Ft.shapeSegment(t,0);nd(c,t,0,r,i,a,p);for(var u=0;u<d;u+=1)p=ju(c,E,r,i,a,-p),u===d-1&&!t.c?E=null:E=Ft.shapeSegment(t,(u+1)%d),nd(c,t,u+1,r,i,a,p);return c},Ho.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amplitude.v,E=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(p!==0){var k,I;for(i=0;i<a;i+=1){if(k=this.shapes[i],I=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!t))for(I.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,d=0;d<c;d+=1)I.addShape(this.processPath(r[d],p,E,u));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Bn(t,r,i){var a=Math.atan2(r[0]-t[0],r[1]-t[1]);return[Yi(t,a,i),Yi(r,a,i)]}function Xi(t,r){var i,a,d,c,p,E,u;u=Bn(t.points[0],t.points[1],r),i=u[0],a=u[1],u=Bn(t.points[1],t.points[2],r),d=u[0],c=u[1],u=Bn(t.points[2],t.points[3],r),p=u[0],E=u[1];var k=ra(i,a,d,c);k===null&&(k=a);var I=ra(p,E,d,c);return I===null&&(I=p),new Ft(i,k,I,E)}function ld(t,r,i,a,d){var c=r.points[3],p=i.points[0];if(a===3||Ki(c,p))return c;if(a===2){var E=-r.tangentAngle(1),u=-i.tangentAngle(0)+Math.PI,k=ra(c,Yi(c,E+Math.PI/2,100),p,Yi(p,E+Math.PI/2,100)),I=k?Vn(k,c):Vn(c,p)/2,V=Yi(c,E,2*I*de);return t.setXYAt(V[0],V[1],"o",t.length()-1),V=Yi(p,u,2*I*de),t.setTripleAt(p[0],p[1],p[0],p[1],V[0],V[1],t.length()),p}var b=Ki(c,r.points[2])?r.points[0]:r.points[2],L=Ki(p,i.points[1])?i.points[3]:i.points[1],O=ra(b,c,p,L);return O&&Vn(O,c)<d?(t.setTripleAt(O[0],O[1],O[0],O[1],O[0],O[1],t.length()),O):c}function cd(t,r){var i=t.intersections(r);return i.length&&ta(i[0][0],1)&&i.shift(),i.length?i[0]:null}function dd(t,r){var i=t.slice(),a=r.slice(),d=cd(t[t.length-1],r[0]);return d&&(i[t.length-1]=t[t.length-1].split(d[0])[0],a[0]=r[0].split(d[1])[1]),t.length>1&&r.length>1&&(d=cd(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[i,a]}function Wu(t){for(var r,i=1;i<t.length;i+=1)r=dd(t[i-1],t[i]),t[i-1]=r[0],t[i]=r[1];return t.length>1&&(r=dd(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function hd(t,r){var i=t.inflectionPoints(),a,d,c,p;if(i.length===0)return[Xi(t,r)];if(i.length===1||ta(i[1],1))return c=t.split(i[0]),a=c[0],d=c[1],[Xi(a,r),Xi(d,r)];c=t.split(i[0]),a=c[0];var E=(i[1]-i[0])/(1-i[0]);return c=c[1].split(E),p=c[0],d=c[1],[Xi(a,r),Xi(p,r),Xi(d,r)]}function Go(){}B([Fe],Go),Go.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=rt.getProp(t,r.a,0,null,this),this.miterLimit=rt.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Go.prototype.processPath=function(t,r,i,a){var d=se.newElement();d.c=t.c;var c=t.length();t.c||(c-=1);var p,E,u,k=[];for(p=0;p<c;p+=1)u=Ft.shapeSegment(t,p),k.push(hd(u,r));if(!t.c)for(p=c-1;p>=0;p-=1)u=Ft.shapeSegmentInverted(t,p),k.push(hd(u,r));k=Wu(k);var I=null,V=null;for(p=0;p<k.length;p+=1){var b=k[p];for(V&&(I=ld(d,V,b[0],i,a)),V=b[b.length-1],E=0;E<b.length;E+=1)u=b[E],I&&Ki(u.points[0],I)?d.setXYAt(u.points[1][0],u.points[1][1],"o",d.length()-1):d.setTripleAt(u.points[0][0],u.points[0][1],u.points[1][0],u.points[1][1],u.points[0][0],u.points[0][1],d.length()),d.setTripleAt(u.points[3][0],u.points[3][1],u.points[3][0],u.points[3][1],u.points[2][0],u.points[2][1],d.length()),I=u.points[3]}return k.length&&ld(d,V,k[0][0],i,a),d},Go.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amount.v,E=this.miterLimit.v,u=this.lineJoin;if(p!==0){var k,I;for(i=0;i<a;i+=1){if(k=this.shapes[i],I=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!t))for(I.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,d=0;d<c;d+=1)I.addShape(this.processPath(r[d],p,u,E));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function md(t){for(var r=t.fStyle?t.fStyle.split(" "):[],i="normal",a="normal",d=r.length,c,p=0;p<d;p+=1)switch(c=r[p].toLowerCase(),c){case"italic":a="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break;default:break}return{style:a,weight:t.fWeight||i}}var ci=function(){var t=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.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 a=127988,d=917631,c=917601,p=917626,E=65039,u=8205,k=127462,I=127487,V=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(T){var R=T.split(","),m,v=R.length,U=[];for(m=0;m<v;m+=1)R[m]!=="sans-serif"&&R[m]!=="monospace"&&U.push(R[m]);return U.join(",")}function L(T,R){var m=M("span");m.setAttribute("aria-hidden",!0),m.style.fontFamily=R;var v=M("span");v.innerText="giItT1WQy@!-/#",m.style.position="absolute",m.style.left="-10000px",m.style.top="-10000px",m.style.fontSize="300px",m.style.fontVariant="normal",m.style.fontStyle="normal",m.style.fontWeight="normal",m.style.letterSpacing="0",m.appendChild(v),document.body.appendChild(m);var U=v.offsetWidth;return v.style.fontFamily=b(T)+", "+R,{node:v,w:U,parent:m}}function O(){var T,R=this.fonts.length,m,v,U=R;for(T=0;T<R;T+=1)this.fonts[T].loaded?U-=1:this.fonts[T].fOrigin==="n"||this.fonts[T].origin===0?this.fonts[T].loaded=!0:(m=this.fonts[T].monoCase.node,v=this.fonts[T].monoCase.w,m.offsetWidth!==v?(U-=1,this.fonts[T].loaded=!0):(m=this.fonts[T].sansCase.node,v=this.fonts[T].sansCase.w,m.offsetWidth!==v&&(U-=1,this.fonts[T].loaded=!0)),this.fonts[T].loaded&&(this.fonts[T].sansCase.parent.parentNode.removeChild(this.fonts[T].sansCase.parent),this.fonts[T].monoCase.parent.parentNode.removeChild(this.fonts[T].monoCase.parent)));U!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function N(T,R){var m=document.body&&R?"svg":"canvas",v,U=md(T);if(m==="svg"){var D=ft("text");D.style.fontSize="100px",D.setAttribute("font-family",T.fFamily),D.setAttribute("font-style",U.style),D.setAttribute("font-weight",U.weight),D.textContent="1",T.fClass?(D.style.fontFamily="inherit",D.setAttribute("class",T.fClass)):D.style.fontFamily=T.fFamily,R.appendChild(D),v=D}else{var it=new OffscreenCanvas(500,500).getContext("2d");it.font=U.style+" "+U.weight+" 100px "+T.fFamily,v=it}function ht(ut){return m==="svg"?(v.textContent=ut,v.getComputedTextLength()):v.measureText(ut).width}return{measureText:ht}}function z(T,R){if(!T){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=T.list;return}if(!document.body){this.isLoaded=!0,T.list.forEach(function(ye){ye.helper=N(ye),ye.cache={}}),this.fonts=T.list;return}var m=T.list,v,U=m.length,D=U;for(v=0;v<U;v+=1){var it=!0,ht,ut;if(m[v].loaded=!1,m[v].monoCase=L(m[v].fFamily,"monospace"),m[v].sansCase=L(m[v].fFamily,"sans-serif"),!m[v].fPath)m[v].loaded=!0,D-=1;else if(m[v].fOrigin==="p"||m[v].origin===3){if(ht=document.querySelectorAll('style[f-forigin="p"][f-family="'+m[v].fFamily+'"], style[f-origin="3"][f-family="'+m[v].fFamily+'"]'),ht.length>0&&(it=!1),it){var kt=M("style");kt.setAttribute("f-forigin",m[v].fOrigin),kt.setAttribute("f-origin",m[v].origin),kt.setAttribute("f-family",m[v].fFamily),kt.type="text/css",kt.innerText="@font-face {font-family: "+m[v].fFamily+"; font-style: normal; src: url('"+m[v].fPath+"');}",R.appendChild(kt)}}else if(m[v].fOrigin==="g"||m[v].origin===1){for(ht=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ut=0;ut<ht.length;ut+=1)ht[ut].href.indexOf(m[v].fPath)!==-1&&(it=!1);if(it){var Ct=M("link");Ct.setAttribute("f-forigin",m[v].fOrigin),Ct.setAttribute("f-origin",m[v].origin),Ct.type="text/css",Ct.rel="stylesheet",Ct.href=m[v].fPath,document.body.appendChild(Ct)}}else if(m[v].fOrigin==="t"||m[v].origin===2){for(ht=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ut=0;ut<ht.length;ut+=1)m[v].fPath===ht[ut].src&&(it=!1);if(it){var jt=M("link");jt.setAttribute("f-forigin",m[v].fOrigin),jt.setAttribute("f-origin",m[v].origin),jt.setAttribute("rel","stylesheet"),jt.setAttribute("href",m[v].fPath),R.appendChild(jt)}}m[v].helper=N(m[v],R),m[v].cache={},this.fonts.push(m[v])}D===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function w(T){if(T){this.chars||(this.chars=[]);var R,m=T.length,v,U=this.chars.length,D;for(R=0;R<m;R+=1){for(v=0,D=!1;v<U;)this.chars[v].style===T[R].style&&this.chars[v].fFamily===T[R].fFamily&&this.chars[v].ch===T[R].ch&&(D=!0),v+=1;D||(this.chars.push(T[R]),U+=1)}}}function _(T,R,m){for(var v=0,U=this.chars.length;v<U;){if(this.chars[v].ch===T&&this.chars[v].style===R&&this.chars[v].fFamily===m)return this.chars[v];v+=1}return(typeof T=="string"&&T.charCodeAt(0)!==13||!T)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",T,R,m)),r}function g(T,R,m){var v=this.getFontByName(R),U=T;if(!v.cache[U]){var D=v.helper;if(T===" "){var it=D.measureText("|"+T+"|"),ht=D.measureText("||");v.cache[U]=(it-ht)/100}else v.cache[U]=D.measureText(T)/100}return v.cache[U]*m}function x(T){for(var R=0,m=this.fonts.length;R<m;){if(this.fonts[R].fName===T)return this.fonts[R];R+=1}return this.fonts[0]}function C(T){var R=0,m=T.charCodeAt(0);if(m>=55296&&m<=56319){var v=T.charCodeAt(1);v>=56320&&v<=57343&&(R=(m-55296)*1024+v-56320+65536)}return R}function P(T,R){var m=T.toString(16)+R.toString(16);return V.indexOf(m)!==-1}function $(T){return T===u}function H(T){return T===E}function K(T){var R=C(T);return R>=k&&R<=I}function pt(T){return K(T.substr(0,2))&&K(T.substr(2,2))}function nt(T){return i.indexOf(T)!==-1}function tt(T,R){var m=C(T.substr(R,2));if(m!==a)return!1;var v=0;for(R+=2;v<5;){if(m=C(T.substr(R,2)),m<c||m>p)return!1;v+=1,R+=2}return C(T.substr(R,2))===d}function vt(){this.isLoaded=!0}var st=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)};st.isModifier=P,st.isZeroWidthJoiner=$,st.isFlagEmoji=pt,st.isRegionalCode=K,st.isCombinedCharacter=nt,st.isRegionalFlag=tt,st.isVariationSelector=H,st.BLACK_FLAG_CODE_POINT=a;var Y={addChars:w,addFonts:z,getCharData:_,getFontByName:x,measureText:g,checkLoadedFonts:O,setIsLoaded:vt};return st.prototype=Y,st}();function pd(t){this.animationData=t}pd.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function qu(t){return new pd(t)}function ia(){}ia.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,i=this.renderableComponents.length;for(r=0;r<i;r+=1)this.renderableComponents[r].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 Un=function(){var t={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(r){return t[r]||""}}();function Yu(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function Ku(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function Xu(t,r,i){this.p=rt.getProp(r,t.v,1,0,i)}function Zu(t,r,i){this.p=rt.getProp(r,t.v,1,0,i)}function Ju(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function Qu(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function tf(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function ef(){this.p={}}function ud(t,r){var i=t.ef||[];this.effectElements=[];var a,d=i.length,c;for(a=0;a<d;a+=1)c=new jo(i[a],r),this.effectElements.push(c)}function jo(t,r){this.init(t,r)}B([te],jo),jo.prototype.getValue=jo.prototype.iterateDynamicProperties,jo.prototype.init=function(t,r){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(r);var i,a=this.data.ef.length,d,c=this.data.ef;for(i=0;i<a;i+=1){switch(d=null,c[i].ty){case 0:d=new Yu(c[i],r,this);break;case 1:d=new Ku(c[i],r,this);break;case 2:d=new Xu(c[i],r,this);break;case 3:d=new Zu(c[i],r,this);break;case 4:case 7:d=new tf(c[i],r,this);break;case 10:d=new Ju(c[i],r,this);break;case 11:d=new Qu(c[i],r,this);break;case 5:d=new ud(c[i],r,this);break;default:d=new ef(c[i],r,this);break}d&&this.effectElements.push(d)}};function Vr(){}Vr.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,i=this.data.masksProperties.length;r<i;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=Vc();if(r){var i=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),p=r("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var E=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(E),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=Un(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=r},initBaseData:function(r,i,a){this.globalData=i,this.comp=a,this.data=r,this.layerId=ge(),this.data.sr||(this.data.sr=1),this.effectsManager=new ud(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Br(){}Br.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,i){var a,d=this.dynamicProperties.length;for(a=0;a<d;a+=1)(i||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function Ur(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(t,r,i)}Ur.prototype.prepareFrame=function(){},B([ia,Vr,Br],Ur),Ur.prototype.getBaseElement=function(){return null},Ur.prototype.renderFrame=function(){},Ur.prototype.destroy=function(){},Ur.prototype.initExpressions=function(){var t=Vc();if(t){var r=t("footage");this.layerInterface=r(this)}},Ur.prototype.getFootageData=function(){return this.footageData};function be(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.initBaseData(t,r,i),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?rt.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=rt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}be.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},B([ia,Vr,Br],be),be.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))},be.prototype.show=function(){},be.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},be.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},be.prototype.resume=function(){this._canPlay=!0},be.prototype.setRate=function(t){this.audio.rate(t)},be.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},be.prototype.getBaseElement=function(){return null},be.prototype.destroy=function(){},be.prototype.sourceRectAtTime=function(){},be.prototype.initExpressions=function(){};function ne(){}ne.prototype.checkLayers=function(t){var r,i=this.layers.length,a;for(this.completeLayers=!0,r=i-1;r>=0;r-=1)this.elements[r]||(a=this.layers[r],a.ip-a.st<=t-this.layers[r].st&&a.op-a.st>t-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ne.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},ne.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ne.prototype.createAudio=function(t){return new be(t,this.globalData,this)},ne.prototype.createFootage=function(t){return new Ur(t,this.globalData,this)},ne.prototype.buildAllItems=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.buildItem(t);this.checkPendingElements()},ne.prototype.includeLayers=function(t){this.completeLayers=!1;var r,i=t.length,a,d=this.layers.length;for(r=0;r<i;r+=1)for(a=0;a<d;){if(this.layers[a].id===t[r].id){this.layers[a]=t[r];break}a+=1}},ne.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},ne.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ne.prototype.buildElementParenting=function(t,r,i){for(var a=this.elements,d=this.layers,c=0,p=d.length;c<p;)d[c].ind==r&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(t)):(i.push(a[c]),a[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(t,d[c].parent,i):t.setHierarchy(i))),c+=1},ne.prototype.addPendingElement=function(t){this.pendingElements.push(t)},ne.prototype.searchExtraCompositions=function(t){var r,i=t.length;for(r=0;r<i;r+=1)if(t[r].xt){var a=this.createComp(t[r]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},ne.prototype.getElementById=function(t){var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.ind===t)return this.elements[r];return null},ne.prototype.getElementByPath=function(t){var r=t.shift(),i;if(typeof r=="number")i=this.elements[r];else{var a,d=this.elements.length;for(a=0;a<d;a+=1)if(this.elements[a].data.nm===r){i=this.elements[a];break}}return t.length===0?i:i.getElementByPath(t)},ne.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new ci,this.globalData.slotManager=qu(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,r),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var rf={TRANSFORM_EFFECT:"transformEFfect"};function Zi(){}Zi.prototype={initTransform:function(){var r=new ae;this.finalTransform={mProp:this.data.ks?Fn.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,i=this.finalTransform.mat,a=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<d;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,i.cloneFromProps(r),a=0;a<d;a+=1)i.multiply(this.hierarchy[a].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 r=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<i;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),r=1;r<i;r+=1){var d=this.localTransforms[r].matrix;a.multiply(d)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<i;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(rf.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new ae;var i=0,a=r.length;for(i=0;i<a;i+=1)this.localTransforms.push(r[i])}}},globalToLocal:function(r){var i=[];i.push(this.finalTransform);for(var a=!0,d=this.comp;a;)d.finalTransform?(d.data.hasMask&&i.splice(0,0,d.finalTransform),d=d.comp):a=!1;var c,p=i.length,E;for(c=0;c<p;c+=1)E=i[c].mat.applyToPointArray(0,0,0),r=[r[0]-E[0],r[1]-E[1],0];return r},mHelper:new ae};function di(t,r,i){this.data=t,this.element=r,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=et(c),this.solidPath="";var p,E=this.masksProperties,u=0,k=[],I,V,b=ge(),L,O,N,z,w="clipPath",_="clip-path";for(d=0;d<c;d+=1)if((E[d].mode!=="a"&&E[d].mode!=="n"||E[d].inv||E[d].o.k!==100||E[d].o.x)&&(w="mask",_="mask"),(E[d].mode==="s"||E[d].mode==="i")&&u===0?(L=ft("rect"),L.setAttribute("fill","#ffffff"),L.setAttribute("width",this.element.comp.data.w||0),L.setAttribute("height",this.element.comp.data.h||0),k.push(L)):L=null,p=ft("path"),E[d].mode==="n")this.viewData[d]={op:rt.getProp(this.element,E[d].o,0,.01,this.element),prop:Zs.getShapeProp(this.element,E[d],3),elem:p,lastPath:""},a.appendChild(p);else{u+=1,p.setAttribute("fill",E[d].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var g;if(E[d].x.k!==0?(w="mask",_="mask",z=rt.getProp(this.element,E[d].x,0,null,this.element),g=ge(),O=ft("filter"),O.setAttribute("id",g),N=ft("feMorphology"),N.setAttribute("operator","erode"),N.setAttribute("in","SourceGraphic"),N.setAttribute("radius","0"),O.appendChild(N),a.appendChild(O),p.setAttribute("stroke",E[d].mode==="s"?"#000000":"#ffffff")):(N=null,z=null),this.storedData[d]={elem:p,x:z,expan:N,lastPath:"",lastOperator:"",filterId:g,lastRadius:0},E[d].mode==="i"){V=k.length;var x=ft("g");for(I=0;I<V;I+=1)x.appendChild(k[I]);var C=ft("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",b+"_"+u),C.appendChild(p),a.appendChild(C),x.setAttribute("mask","url("+S()+"#"+b+"_"+u+")"),k.length=0,k.push(x)}else k.push(p);E[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:p,lastPath:"",op:rt.getProp(this.element,E[d].o,0,.01,this.element),prop:Zs.getShapeProp(this.element,E[d],3),invRect:L},this.viewData[d].prop.k||this.drawPath(E[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=ft(w),c=k.length,d=0;d<c;d+=1)this.maskElement.appendChild(k[d]);u>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(_,"url("+S()+"#"+b+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}di.prototype.getMaskProperty=function(t){return this.viewData[t].prop},di.prototype.renderFrame=function(t){var r=this.element.finalTransform.mat,i,a=this.masksProperties.length;for(i=0;i<a;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var d=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+S()+"#"+this.storedData[i].filterId+")")),d.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},di.prototype.getMaskelement=function(){return this.maskElement},di.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},di.prototype.drawPath=function(t,r,i){var a=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)a+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[d][0]+","+r.i[d][1]+" "+r.v[d][0]+","+r.v[d][1];if(r.c&&c>1&&(a+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),i.lastPath!==a){var p="";i.elem&&(r.c&&(p=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",p)),i.lastPath=a}},di.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Wo=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=i;function r(a,d){var c=ft("filter");return c.setAttribute("id",a),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var a=ft("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return t}(),fd=function(){var t={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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),oa={},vd="filter_result_";function Hn(t){var r,i="SourceGraphic",a=t.data.ef?t.data.ef.length:0,d=ge(),c=Wo.createFilter(d,!0),p=0;this.filters=[];var E;for(r=0;r<a;r+=1){E=null;var u=t.data.ef[r].ty;if(oa[u]){var k=oa[u].effect;E=new k(c,t.effectsManager.effectElements[r],t,vd+p,i),i=vd+p,oa[u].countsAsEffect&&(p+=1)}E&&this.filters.push(E)}p&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+S()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}Hn.prototype.renderFrame=function(t){var r,i=this.filters.length;for(r=0;r<i;r+=1)this.filters[r].renderFrame(t)},Hn.prototype.getEffects=function(t){var r,i=this.filters.length,a=[];for(r=0;r<i;r+=1)this.filters[r].type===t&&a.push(this.filters[r]);return a};function b0(t,r,i){oa[t]={effect:r,countsAsEffect:i}}function qo(){}qo.prototype={initRendererElement:function(){this.layerElement=ft("g")},createContainerElements:function(){this.matteElement=ft("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var i=ft("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),r=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=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 a=ft("clipPath"),d=ft("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=ge();if(a.setAttribute("id",c),a.appendChild(d),this.globalData.defs.appendChild(a),this.checkMasks()){var p=ft("g");p.setAttribute("clip-path","url("+S()+"#"+c+")"),p.appendChild(this.layerElement),this.transformedElement=p,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+S()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new di(this.data,this,this.globalData),this.renderableEffectsManager=new Hn(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var i=this.layerId+"_"+r,a,d,c,p;if(r===1||r===3){var E=ft("mask");E.setAttribute("id",i),E.setAttribute("mask-type",r===3?"luminance":"alpha"),c=ft("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),E.appendChild(c),this.globalData.defs.appendChild(E),!fd.maskType&&r===1&&(E.setAttribute("mask-type","luminance"),a=ge(),d=Wo.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(Wo.createAlphaToLuminanceFilter()),p=ft("g"),p.appendChild(c),E.appendChild(p),p.setAttribute("filter","url("+S()+"#"+a+")"))}else if(r===2){var u=ft("mask");u.setAttribute("id",i),u.setAttribute("mask-type","alpha");var k=ft("g");u.appendChild(k),a=ge(),d=Wo.createFilter(a);var I=ft("feComponentTransfer");I.setAttribute("in","SourceGraphic"),d.appendChild(I);var V=ft("feFuncA");V.setAttribute("type","table"),V.setAttribute("tableValues","1.0 0.0"),I.appendChild(V),this.globalData.defs.appendChild(d);var b=ft("rect");b.setAttribute("width",this.comp.data.w),b.setAttribute("height",this.comp.data.h),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("fill","#ffffff"),b.setAttribute("opacity","0"),k.setAttribute("filter","url("+S()+"#"+a+")"),k.appendChild(b),c=ft("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(c),fd.maskType||(u.setAttribute("mask-type","luminance"),d.appendChild(Wo.createAlphaToLuminanceFilter()),p=ft("g"),k.appendChild(b),p.appendChild(this.layerElement),k.appendChild(p)),this.globalData.defs.appendChild(u)}this.matteMasks[r]=i}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+S()+"#"+r+")")}};function Ji(){}Ji.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Yo(){}(function(){var t={initElement:function(i,a,d){this.initFrame(),this.initBaseData(i,a,d),this.initTransform(i,a,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.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(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};B([ia,q(t)],Yo)})();function Ko(t,r,i){this.assetData=r.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(t,r,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}B([Vr,Zi,qo,Ji,Br,Yo],Ko),Ko.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=ft("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",t),this.layerElement.appendChild(this.innerElem)},Ko.prototype.sourceRectAtTime=function(){return this.sourceRect};function of(t,r){this.elem=t,this.pos=r}function gd(){}gd.prototype={addShapeToModifiers:function(r){var i,a=this.shapeModifiers.length;for(i=0;i<a;i+=1)this.shapeModifiers[i].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var i=0,a=this.shapeModifiers.length;i<a;)if(this.shapeModifiers[i].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,i=this.shapes.length;for(r=0;r<i;r+=1)this.shapes[r].sh.reset();i=this.shapeModifiers.length;var a;for(r=i-1;r>=0&&(a=this.shapeModifiers[r].processShapes(this._isFirstFrame),!a);r-=1);}},searchProcessedElement:function(r){for(var i=this.processedElements,a=0,d=i.length;a<d;){if(i[a].elem===r)return i[a].pos;a+=1}return 0},addProcessedElement:function(r,i){for(var a=this.processedElements,d=a.length;d;)if(d-=1,a[d].elem===r){a[d].pos=i;return}a.push(new of(r,i))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var bd={1:"butt",2:"round",3:"square"},yd={1:"miter",2:"round",3:"bevel"};function Ed(t,r,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=r,this._isAnimated=!!i.k;for(var a=0,d=t.length;a<d;){if(t[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}Ed.prototype.setAsAnimated=function(){this._isAnimated=!0};function xd(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=ft("path"),this.msElem=null}xd.prototype.reset=function(){this.d="",this._mdf=!1};function sa(t,r,i,a){this.elem=t,this.frameId=-1,this.dataProps=et(r.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=Q("float32",r.length?r.length-1:0),this.dashoffset=Q("float32",1),this.initDynamicPropertyContainer(a);var d,c=r.length||0,p;for(d=0;d<c;d+=1)p=rt.getProp(t,r[d].v,0,0,this),this.k=p.k||this.k,this.dataProps[d]={n:r[d].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}sa.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var r=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<i;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},B([te],sa);function Td(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=rt.getProp(t,r.o,0,.01,this),this.w=rt.getProp(t,r.w,0,null,this),this.d=new sa(t,r.d||{},"svg",this),this.c=rt.getProp(t,r.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}B([te],Td);function Ad(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=rt.getProp(t,r.o,0,.01,this),this.c=rt.getProp(t,r.c,1,255,this),this.style=i}B([te],Ad);function _d(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}B([te],_d);function Xo(t,r,i){this.data=r,this.c=Q("uint8c",r.p*4);var a=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=Q("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=rt.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Xo.prototype.comparePoints=function(t,r){for(var i=0,a=this.o.length/2,d;i<a;){if(d=Math.abs(t[i*4]-t[r*4+i*2]),d>.01)return!1;i+=1}return!0},Xo.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,r=this.data.k.k.length;t<r;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Xo.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var r,i=this.data.p*4,a,d;for(r=0;r<i;r+=1)a=r%4===0?100:255,d=Math.round(this.prop.v[r]*a),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,r=this.data.p*4;r<i;r+=1)a=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!t);this._mdf=!t}},B([te],Xo);function Qi(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,i)}Qi.prototype.initGradientData=function(t,r,i){this.o=rt.getProp(t,r.o,0,.01,this),this.s=rt.getProp(t,r.s,1,null,this),this.e=rt.getProp(t,r.e,1,null,this),this.h=rt.getProp(t,r.h||{k:0},0,.01,this),this.a=rt.getProp(t,r.a||{k:0},0,Tt,this),this.g=new Xo(t,r.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,r),this.setGradientOpacity(r,i),this._isAnimated=!!this._isAnimated},Qi.prototype.setGradientData=function(t,r){var i=ge(),a=ft(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,p,E;for(E=r.g.p*4,p=0;p<E;p+=4)c=ft("stop"),a.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+S()+"#"+i+")"),this.gf=a,this.cst=d},Qi.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,d,c=ft("mask"),p=ft("path");c.appendChild(p);var E=ge(),u=ge();c.setAttribute("id",u);var k=ft(t.t===1?"linearGradient":"radialGradient");k.setAttribute("id",E),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),d=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var I=this.stops;for(a=t.g.p*4;a<d;a+=2)i=ft("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(i),I.push(i);p.setAttribute(t.ty==="gf"?"fill":"stroke","url("+S()+"#"+E+")"),t.ty==="gs"&&(p.setAttribute("stroke-linecap",bd[t.lc||2]),p.setAttribute("stroke-linejoin",yd[t.lj||2]),t.lj===1&&p.setAttribute("stroke-miterlimit",t.ml)),this.of=k,this.ms=c,this.ost=I,this.maskId=u,r.msElem=p}},B([te],Qi);function Sd(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=rt.getProp(t,r.w,0,null,this),this.d=new sa(t,r.d||{},"svg",this),this.initGradientData(t,r,i),this._isAnimated=!!this._isAnimated}B([Qi,te],Sd);function sf(){this.it=[],this.prevViewData=[],this.gr=ft("g")}function af(t,r,i){this.transform={mProps:t,op:r,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var kd=function(r,i,a,d){if(i===0)return"";var c=r.o,p=r.i,E=r.v,u,k=" M"+d.applyToPointStringified(E[0][0],E[0][1]);for(u=1;u<i;u+=1)k+=" C"+d.applyToPointStringified(c[u-1][0],c[u-1][1])+" "+d.applyToPointStringified(p[u][0],p[u][1])+" "+d.applyToPointStringified(E[u][0],E[u][1]);return a&&i&&(k+=" C"+d.applyToPointStringified(c[u-1][0],c[u-1][1])+" "+d.applyToPointStringified(p[0][0],p[0][1])+" "+d.applyToPointStringified(E[0][0],E[0][1]),k+="z"),k},nf=function(){var t=new ae,r=new ae,i={createRenderFunction:a};function a(V){switch(V.ty){case"fl":return E;case"gf":return k;case"gs":return u;case"st":return I;case"sh":case"el":case"rc":case"sr":return p;case"tr":return d;case"no":return c;default:return null}}function d(V,b,L){(L||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(L||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function c(){}function p(V,b,L){var O,N,z,w,_,g,x=b.styles.length,C=b.lvl,P,$,H,K;for(g=0;g<x;g+=1){if(w=b.sh._mdf||L,b.styles[g].lvl<C){for($=r.reset(),H=C-b.styles[g].lvl,K=b.transformers.length-1;!w&&H>0;)w=b.transformers[K].mProps._mdf||w,H-=1,K-=1;if(w)for(H=C-b.styles[g].lvl,K=b.transformers.length-1;H>0;)$.multiply(b.transformers[K].mProps.v),H-=1,K-=1}else $=t;if(P=b.sh.paths,N=P._length,w){for(z="",O=0;O<N;O+=1)_=P.shapes[O],_&&_._length&&(z+=kd(_,_._length,_.c,$));b.caches[g]=z}else z=b.caches[g];b.styles[g].d+=V.hd===!0?"":z,b.styles[g]._mdf=w||b.styles[g]._mdf}}function E(V,b,L){var O=b.style;(b.c._mdf||L)&&O.pElem.setAttribute("fill","rgb("+Qt(b.c.v[0])+","+Qt(b.c.v[1])+","+Qt(b.c.v[2])+")"),(b.o._mdf||L)&&O.pElem.setAttribute("fill-opacity",b.o.v)}function u(V,b,L){k(V,b,L),I(V,b,L)}function k(V,b,L){var O=b.gf,N=b.g._hasOpacity,z=b.s.v,w=b.e.v;if(b.o._mdf||L){var _=V.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(_,b.o.v)}if(b.s._mdf||L){var g=V.t===1?"x1":"cx",x=g==="x1"?"y1":"cy";O.setAttribute(g,z[0]),O.setAttribute(x,z[1]),N&&!b.g._collapsable&&(b.of.setAttribute(g,z[0]),b.of.setAttribute(x,z[1]))}var C,P,$,H;if(b.g._cmdf||L){C=b.cst;var K=b.g.c;for($=C.length,P=0;P<$;P+=1)H=C[P],H.setAttribute("offset",K[P*4]+"%"),H.setAttribute("stop-color","rgb("+K[P*4+1]+","+K[P*4+2]+","+K[P*4+3]+")")}if(N&&(b.g._omdf||L)){var pt=b.g.o;for(b.g._collapsable?C=b.cst:C=b.ost,$=C.length,P=0;P<$;P+=1)H=C[P],b.g._collapsable||H.setAttribute("offset",pt[P*2]+"%"),H.setAttribute("stop-opacity",pt[P*2+1])}if(V.t===1)(b.e._mdf||L)&&(O.setAttribute("x2",w[0]),O.setAttribute("y2",w[1]),N&&!b.g._collapsable&&(b.of.setAttribute("x2",w[0]),b.of.setAttribute("y2",w[1])));else{var nt;if((b.s._mdf||b.e._mdf||L)&&(nt=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),O.setAttribute("r",nt),N&&!b.g._collapsable&&b.of.setAttribute("r",nt)),b.e._mdf||b.h._mdf||b.a._mdf||L){nt||(nt=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var tt=Math.atan2(w[1]-z[1],w[0]-z[0]),vt=b.h.v;vt>=1?vt=.99:vt<=-1&&(vt=-.99);var st=nt*vt,Y=Math.cos(tt+b.a.v)*st+z[0],T=Math.sin(tt+b.a.v)*st+z[1];O.setAttribute("fx",Y),O.setAttribute("fy",T),N&&!b.g._collapsable&&(b.of.setAttribute("fx",Y),b.of.setAttribute("fy",T))}}}function I(V,b,L){var O=b.style,N=b.d;N&&(N._mdf||L)&&N.dashStr&&(O.pElem.setAttribute("stroke-dasharray",N.dashStr),O.pElem.setAttribute("stroke-dashoffset",N.dashoffset[0])),b.c&&(b.c._mdf||L)&&O.pElem.setAttribute("stroke","rgb("+Qt(b.c.v[0])+","+Qt(b.c.v[1])+","+Qt(b.c.v[2])+")"),(b.o._mdf||L)&&O.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||L)&&(O.pElem.setAttribute("stroke-width",b.w.v),O.msElem&&O.msElem.setAttribute("stroke-width",b.w.v))}return i}();function Ut(t,r,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,r,i),this.prevViewData=[]}B([Vr,Zi,qo,gd,Ji,Br,Yo],Ut),Ut.prototype.initSecondaryElement=function(){},Ut.prototype.identityMatrix=new ae,Ut.prototype.buildExpressionInterface=function(){},Ut.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Ut.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,i,a,d=this.stylesList.length,c,p=[],E=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],E=!1,p.length=0,t=0;t<r;t+=1)i=this.shapes[t],i.styles.indexOf(c)!==-1&&(p.push(i),E=i._isAnimated||E);p.length>1&&E&&this.setShapesAsAnimated(p)}},Ut.prototype.setShapesAsAnimated=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r].setAsAnimated()},Ut.prototype.createStyleElement=function(t,r){var i,a=new xd(t,r),d=a.pElem;if(t.ty==="st")i=new Td(this,t,a);else if(t.ty==="fl")i=new Ad(this,t,a);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?Qi:Sd;i=new c(this,t,a),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),d.setAttribute("mask","url("+S()+"#"+i.maskId+")"))}else t.ty==="no"&&(i=new _d(this,t,a));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",bd[t.lc||2]),d.setAttribute("stroke-linejoin",yd[t.lj||2]),d.setAttribute("fill-opacity","0"),t.lj===1&&d.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&d.setAttribute("fill-rule","evenodd"),t.ln&&d.setAttribute("id",t.ln),t.cl&&d.setAttribute("class",t.cl),t.bm&&(d.style["mix-blend-mode"]=Un(t.bm)),this.stylesList.push(a),this.addToAnimatedContents(t,i),i},Ut.prototype.createGroupElement=function(t){var r=new sf;return t.ln&&r.gr.setAttribute("id",t.ln),t.cl&&r.gr.setAttribute("class",t.cl),t.bm&&(r.gr.style["mix-blend-mode"]=Un(t.bm)),r},Ut.prototype.createTransformElement=function(t,r){var i=Fn.getTransformProperty(this,t,this),a=new af(i,i.o,r);return this.addToAnimatedContents(t,a),a},Ut.prototype.createShapeElement=function(t,r,i){var a=4;t.ty==="rc"?a=5:t.ty==="el"?a=6:t.ty==="sr"&&(a=7);var d=Zs.getShapeProp(this,t,a,this),c=new Ed(r,i,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Ut.prototype.addToAnimatedContents=function(t,r){for(var i=0,a=this.animatedContents.length;i<a;){if(this.animatedContents[i].element===r)return;i+=1}this.animatedContents.push({fn:nf.createRenderFunction(t),element:r,data:t})},Ut.prototype.setElementStyles=function(t){var r=t.styles,i,a=this.stylesList.length;for(i=0;i<a;i+=1)this.stylesList[i].closed||r.push(this.stylesList[i])},Ut.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,r=this.itemsData.length;for(t=0;t<r;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,t=0;t<r;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},Ut.prototype.searchShapes=function(t,r,i,a,d,c,p){var E=[].concat(c),u,k=t.length-1,I,V,b=[],L=[],O,N,z;for(u=k;u>=0;u-=1){if(z=this.searchProcessedElement(t[u]),z?r[u]=i[z-1]:t[u]._render=p,t[u].ty==="fl"||t[u].ty==="st"||t[u].ty==="gf"||t[u].ty==="gs"||t[u].ty==="no")z?r[u].style.closed=!1:r[u]=this.createStyleElement(t[u],d),t[u]._render&&r[u].style.pElem.parentNode!==a&&a.appendChild(r[u].style.pElem),b.push(r[u].style);else if(t[u].ty==="gr"){if(!z)r[u]=this.createGroupElement(t[u]);else for(V=r[u].it.length,I=0;I<V;I+=1)r[u].prevViewData[I]=r[u].it[I];this.searchShapes(t[u].it,r[u].it,r[u].prevViewData,r[u].gr,d+1,E,p),t[u]._render&&r[u].gr.parentNode!==a&&a.appendChild(r[u].gr)}else t[u].ty==="tr"?(z||(r[u]=this.createTransformElement(t[u],a)),O=r[u].transform,E.push(O)):t[u].ty==="sh"||t[u].ty==="rc"||t[u].ty==="el"||t[u].ty==="sr"?(z||(r[u]=this.createShapeElement(t[u],E,d)),this.setElementStyles(r[u])):t[u].ty==="tm"||t[u].ty==="rd"||t[u].ty==="ms"||t[u].ty==="pb"||t[u].ty==="zz"||t[u].ty==="op"?(z?(N=r[u],N.closed=!1):(N=zr.getModifier(t[u].ty),N.init(this,t[u]),r[u]=N,this.shapeModifiers.push(N)),L.push(N)):t[u].ty==="rp"&&(z?(N=r[u],N.closed=!0):(N=zr.getModifier(t[u].ty),r[u]=N,N.init(this,t,u,r),this.shapeModifiers.push(N),p=!1),L.push(N));this.addProcessedElement(t[u],u+1)}for(k=b.length,u=0;u<k;u+=1)b[u].closed=!0;for(k=L.length,u=0;u<k;u+=1)L[u].closed=!0},Ut.prototype.renderInnerContent=function(){this.renderModifiers();var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<r;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},Ut.prototype.renderShape=function(){var t,r=this.animatedContents.length,i;for(t=0;t<r;t+=1)i=this.animatedContents[t],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},Ut.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Gn(t,r,i,a,d,c){this.o=t,this.sw=r,this.sc=i,this.fc=a,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!i,fc:!!a,m:!0,p:!0}}Gn.prototype.update=function(t,r,i,a,d,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,p=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,p=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,p=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,p=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,p=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,p=!0),p};function he(t,r){this._frameId=s,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=t.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=t,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)}he.prototype.defaultBoxWidth=[0,0],he.prototype.copyData=function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},he.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},he.prototype.searchProperty=function(){return this.searchKeyframes()},he.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},he.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},he.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,d=this.effectsSequence.length,c=t||this.data.d.k[this.keysIndex].s;for(a=0;a<d;a+=1)i!==this.keysIndex?c=this.effectsSequence[a](c,c.t):c=this.effectsSequence[a](this.currentData,c.t);r!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},he.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,r=this.elem.comp.renderedFrame,i=0,a=t.length;i<=a-1&&!(i===a-1||t[i+1].t>r);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},he.prototype.buildFinalText=function(t){for(var r=[],i=0,a=t.length,d,c,p=!1,E=!1,u="";i<a;)p=E,E=!1,d=t.charCodeAt(i),u=t.charAt(i),ci.isCombinedCharacter(d)?p=!0:d>=55296&&d<=56319?ci.isRegionalFlag(t,i)?u=t.substr(i,14):(c=t.charCodeAt(i+1),c>=56320&&c<=57343&&(ci.isModifier(d,c)?(u=t.substr(i,2),p=!0):ci.isFlagEmoji(t.substr(i,4))?u=t.substr(i,4):u=t.substr(i,2))):d>56319?(c=t.charCodeAt(i+1),ci.isVariationSelector(d)&&(p=!0)):ci.isZeroWidthJoiner(d)&&(p=!0,E=!0),p?(r[r.length-1]+=u,p=!1):r.push(u),i+=u.length;return r},he.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,i=this.data,a=[],d,c,p,E=0,u,k=i.m.g,I=0,V=0,b=0,L=[],O=0,N=0,z,w,_=r.getFontByName(t.f),g,x=0,C=md(_);t.fWeight=C.weight,t.fStyle=C.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),c=t.finalText.length,t.finalLineHeight=t.lh;var P=t.tr/1e3*t.finalSize,$;if(t.sz)for(var H=!0,K=t.sz[0],pt=t.sz[1],nt,tt;H;){tt=this.buildFinalText(t.t),nt=0,O=0,c=tt.length,P=t.tr/1e3*t.finalSize;var vt=-1;for(d=0;d<c;d+=1)$=tt[d].charCodeAt(0),p=!1,tt[d]===" "?vt=d:($===13||$===3)&&(O=0,p=!0,nt+=t.finalLineHeight||t.finalSize*1.2),r.chars?(g=r.getCharData(tt[d],_.fStyle,_.fFamily),x=p?0:g.w*t.finalSize/100):x=r.measureText(tt[d],t.f,t.finalSize),O+x>K&&tt[d]!==" "?(vt===-1?c+=1:d=vt,nt+=t.finalLineHeight||t.finalSize*1.2,tt.splice(d,vt===d?1:0,"\r"),vt=-1,O=0):(O+=x,O+=P);nt+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&pt<nt?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=tt,c=t.finalText.length,H=!1)}O=-P,x=0;var st=0,Y;for(d=0;d<c;d+=1)if(p=!1,Y=t.finalText[d],$=Y.charCodeAt(0),$===13||$===3?(st=0,L.push(O),N=O>N?O:N,O=-2*P,u="",p=!0,b+=1):u=Y,r.chars?(g=r.getCharData(Y,_.fStyle,r.getFontByName(t.f).fFamily),x=p?0:g.w*t.finalSize/100):x=r.measureText(u,t.f,t.finalSize),Y===" "?st+=x+P:(O+=x+P+st,st=0),a.push({l:x,an:x,add:I,n:p,anIndexes:[],val:u,line:b,animatorJustifyOffset:0}),k==2){if(I+=x,u===""||u===" "||d===c-1){for((u===""||u===" ")&&(I-=x);V<=d;)a[V].an=I,a[V].ind=E,a[V].extra=x,V+=1;E+=1,I=0}}else if(k==3){if(I+=x,u===""||d===c-1){for(u===""&&(I-=x);V<=d;)a[V].an=I,a[V].ind=E,a[V].extra=x,V+=1;I=0,E+=1}}else a[E].ind=E,a[E].extra=0,E+=1;if(t.l=a,N=O>N?O:N,L.push(O),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=N,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=L;var T=i.a,R,m;w=T.length;var v,U,D=[];for(z=0;z<w;z+=1){for(R=T[z],R.a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),U=0,v=R.s.b,d=0;d<c;d+=1)m=a[d],m.anIndexes[z]=U,(v==1&&m.val!==""||v==2&&m.val!==""&&m.val!==" "||v==3&&(m.n||m.val==" "||d==c-1)||v==4&&(m.n||d==c-1))&&(R.s.rn===1&&D.push(U),U+=1);i.a[z].s.totalChars=U;var it=-1,ht;if(R.s.rn===1)for(d=0;d<c;d+=1)m=a[d],it!=m.anIndexes[z]&&(it=m.anIndexes[z],ht=D.splice(Math.floor(Math.random()*D.length),1)[0]),m.anIndexes[z]=ht}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100},he.prototype.updateDocumentData=function(t,r){r=r===void 0?this.keysIndex:r;var i=this.copyData({},this.data.d.k[r].s);i=this.copyData(i,t),this.data.d.k[r].s=i,this.recalculate(r),this.setCurrentData(i),this.elem.addDynamicProperty(this)},he.prototype.recalculate=function(t){var r=this.data.d.k[t].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},he.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},he.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var lf=function(){var t=Math.max,r=Math.min,i=Math.floor;function a(c,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=rt.getProp(c,p.s||{k:0},0,0,this),"e"in p?this.e=rt.getProp(c,p.e,0,0,this):this.e={v:100},this.o=rt.getProp(c,p.o||{k:0},0,0,this),this.xe=rt.getProp(c,p.xe||{k:0},0,0,this),this.ne=rt.getProp(c,p.ne||{k:0},0,0,this),this.sm=rt.getProp(c,p.sm||{k:100},0,0,this),this.a=rt.getProp(c,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var E=0,u=0,k=1,I=1;this.ne.v>0?E=this.ne.v/100:u=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:I=1+this.xe.v/100;var V=$o.getBezierEasing(E,u,k,I).get,b=0,L=this.finalS,O=this.finalE,N=this.data.sh;if(N===2)O===L?b=p>=O?1:0:b=t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b=V(b);else if(N===3)O===L?b=p>=O?0:1:b=1-t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b=V(b);else if(N===4)O===L?b=0:(b=t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b<.5?b*=2:b=1-2*(b-.5)),b=V(b);else if(N===5){if(O===L)b=0;else{var z=O-L;p=r(t(0,p+.5-L),O-L);var w=-z/2+p,_=z/2;b=Math.sqrt(1-w*w/(_*_))}b=V(b)}else N===6?(O===L?b=0:(p=r(t(0,p+.5-L),O-L),b=(1+Math.cos(Math.PI+Math.PI*2*p/(O-L)))/2),b=V(b)):(p>=i(L)&&(p-L<0?b=t(0,r(r(O,1)-(L-p),1)):b=t(0,r(O-p,1))),b=V(b));if(this.sm.v!==100){var g=this.sm.v*.01;g===0&&(g=1e-8);var x=.5-g*.5;b<x?b=0:(b=(b-x)/g,b>1&&(b=1))}return b*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var E=this.data.r===2?1:100/this.data.totalChars,u=this.o.v/E,k=this.s.v/E+u,I=this.e.v/E+u;if(k>I){var V=k;k=I,I=V}this.finalS=k,this.finalE=I}},B([te],a);function d(c,p,E){return new a(c,p,E)}return{getTextSelectorProp:d}}();function cf(t,r,i){var a={propType:!1},d=rt.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,Tt,i):a,rx:c.rx?d(t,c.rx,0,Tt,i):a,ry:c.ry?d(t,c.ry,0,Tt,i):a,sk:c.sk?d(t,c.sk,0,Tt,i):a,sa:c.sa?d(t,c.sa,0,Tt,i):a,s:c.s?d(t,c.s,1,.01,i):a,a:c.a?d(t,c.a,1,0,i):a,o:c.o?d(t,c.o,0,.01,i):a,p:c.p?d(t,c.p,1,0,i):a,sw:c.sw?d(t,c.sw,0,0,i):a,sc:c.sc?d(t,c.sc,1,0,i):a,fc:c.fc?d(t,c.fc,1,0,i):a,fh:c.fh?d(t,c.fh,0,0,i):a,fs:c.fs?d(t,c.fs,0,.01,i):a,fb:c.fb?d(t,c.fb,0,.01,i):a,t:c.t?d(t,c.t,0,0,i):a},this.s=lf.getTextSelectorProp(t,r.s,i),this.s.t=r.s.t}function hi(t,r,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=i,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}hi.prototype.searchProperties=function(){var t,r=this._textData.a.length,i,a=rt.getProp;for(t=0;t<r;t+=1)i=this._textData.a[t],this._animatorsData[t]=new cf(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(this._elem,this._textData.m.a,1,0,this)},hi.prototype.getMeasures=function(t,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,a=this._animatorsData,d=this._textData,c=this.mHelper,p=this._renderType,E=this.renderedLetters.length,u,k,I,V,b=t.l,L,O,N,z,w,_,g,x,C,P,$,H,K,pt,nt;if(this._hasMaskedPath){if(nt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var tt=nt.v;this._pathData.r.v&&(tt=tt.reverse()),L={tLength:0,segments:[]},V=tt._length-1;var vt;for(H=0,I=0;I<V;I+=1)vt=ir.buildBezierData(tt.v[I],tt.v[I+1],[tt.o[I][0]-tt.v[I][0],tt.o[I][1]-tt.v[I][1]],[tt.i[I+1][0]-tt.v[I+1][0],tt.i[I+1][1]-tt.v[I+1][1]]),L.tLength+=vt.segmentLength,L.segments.push(vt),H+=vt.segmentLength;I=V,nt.v.c&&(vt=ir.buildBezierData(tt.v[I],tt.v[0],[tt.o[I][0]-tt.v[I][0],tt.o[I][1]-tt.v[I][1]],[tt.i[0][0]-tt.v[0][0],tt.i[0][1]-tt.v[0][1]]),L.tLength+=vt.segmentLength,L.segments.push(vt),H+=vt.segmentLength),this._pathData.pi=L}if(L=this._pathData.pi,O=this._pathData.f.v,g=0,_=1,z=0,w=!0,P=L.segments,O<0&&nt.v.c)for(L.tLength<Math.abs(O)&&(O=-Math.abs(O)%L.tLength),g=P.length-1,C=P[g].points,_=C.length-1;O<0;)O+=C[_].partialLength,_-=1,_<0&&(g-=1,C=P[g].points,_=C.length-1);C=P[g].points,x=C[_-1],N=C[_],$=N.partialLength}V=b.length,u=0,k=0;var st=t.finalSize*1.2*.714,Y=!0,T,R,m,v,U;v=a.length;var D,it=-1,ht,ut,kt,Ct=O,jt=g,ye=_,sr=-1,Ee,ee,Ie,Mt,at,fr,Gr,vr,ar="",gr=this.defaultPropsArray,br;if(t.j===2||t.j===1){var xe=0,jr=0,Wr=t.j===2?-.5:-1,Ye=0,qr=!0;for(I=0;I<V;I+=1)if(b[I].n){for(xe&&(xe+=jr);Ye<I;)b[Ye].animatorJustifyOffset=xe,Ye+=1;xe=0,qr=!0}else{for(m=0;m<v;m+=1)T=a[m].a,T.t.propType&&(qr&&t.j===2&&(jr+=T.t.v*Wr),R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?xe+=T.t.v*D[0]*Wr:xe+=T.t.v*D*Wr);qr=!1}for(xe&&(xe+=jr);Ye<I;)b[Ye].animatorJustifyOffset=xe,Ye+=1}for(I=0;I<V;I+=1){if(c.reset(),Ee=1,b[I].n)u=0,k+=t.yOffset,k+=Y?1:0,O=Ct,Y=!1,this._hasMaskedPath&&(g=jt,_=ye,C=P[g].points,x=C[_-1],N=C[_],$=N.partialLength,z=0),ar="",vr="",fr="",br="",gr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(sr!==b[I].line){switch(t.j){case 1:O+=H-t.lineWidths[b[I].line];break;case 2:O+=(H-t.lineWidths[b[I].line])/2;break;default:break}sr=b[I].line}it!==b[I].ind&&(b[it]&&(O+=b[it].extra),O+=b[I].an/2,it=b[I].ind),O+=i[0]*b[I].an*.005;var Ke=0;for(m=0;m<v;m+=1)T=a[m].a,T.p.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?Ke+=T.p.v[0]*D[0]:Ke+=T.p.v[0]*D),T.a.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?Ke+=T.a.v[0]*D[0]:Ke+=T.a.v[0]*D);for(w=!0,this._pathData.a.v&&(O=b[0].an*.5+(H-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*it/(V-1),O+=this._pathData.f.v);w;)z+$>=O+Ke||!C?(K=(O+Ke-z)/N.partialLength,ut=x.point[0]+(N.point[0]-x.point[0])*K,kt=x.point[1]+(N.point[1]-x.point[1])*K,c.translate(-i[0]*b[I].an*.005,-(i[1]*st)*.01),w=!1):C&&(z+=N.partialLength,_+=1,_>=C.length&&(_=0,g+=1,P[g]?C=P[g].points:nt.v.c?(_=0,g=0,C=P[g].points):(z-=N.partialLength,C=null)),C&&(x=N,N=C[_],$=N.partialLength));ht=b[I].an/2-b[I].add,c.translate(-ht,0,0)}else ht=b[I].an/2-b[I].add,c.translate(-ht,0,0),c.translate(-i[0]*b[I].an*.005,-i[1]*st*.01,0);for(m=0;m<v;m+=1)T=a[m].a,T.t.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),(u!==0||t.j!==0)&&(this._hasMaskedPath?D.length?O+=T.t.v*D[0]:O+=T.t.v*D:D.length?u+=T.t.v*D[0]:u+=T.t.v*D));for(t.strokeWidthAnim&&(Ie=t.sw||0),t.strokeColorAnim&&(t.sc?ee=[t.sc[0],t.sc[1],t.sc[2]]:ee=[0,0,0]),t.fillColorAnim&&t.fc&&(Mt=[t.fc[0],t.fc[1],t.fc[2]]),m=0;m<v;m+=1)T=a[m].a,T.a.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?c.translate(-T.a.v[0]*D[0],-T.a.v[1]*D[1],T.a.v[2]*D[2]):c.translate(-T.a.v[0]*D,-T.a.v[1]*D,T.a.v[2]*D));for(m=0;m<v;m+=1)T=a[m].a,T.s.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?c.scale(1+(T.s.v[0]-1)*D[0],1+(T.s.v[1]-1)*D[1],1):c.scale(1+(T.s.v[0]-1)*D,1+(T.s.v[1]-1)*D,1));for(m=0;m<v;m+=1){if(T=a[m].a,R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),T.sk.propType&&(D.length?c.skewFromAxis(-T.sk.v*D[0],T.sa.v*D[1]):c.skewFromAxis(-T.sk.v*D,T.sa.v*D)),T.r.propType&&(D.length?c.rotateZ(-T.r.v*D[2]):c.rotateZ(-T.r.v*D)),T.ry.propType&&(D.length?c.rotateY(T.ry.v*D[1]):c.rotateY(T.ry.v*D)),T.rx.propType&&(D.length?c.rotateX(T.rx.v*D[0]):c.rotateX(T.rx.v*D)),T.o.propType&&(D.length?Ee+=(T.o.v*D[0]-Ee)*D[0]:Ee+=(T.o.v*D-Ee)*D),t.strokeWidthAnim&&T.sw.propType&&(D.length?Ie+=T.sw.v*D[0]:Ie+=T.sw.v*D),t.strokeColorAnim&&T.sc.propType)for(at=0;at<3;at+=1)D.length?ee[at]+=(T.sc.v[at]-ee[at])*D[0]:ee[at]+=(T.sc.v[at]-ee[at])*D;if(t.fillColorAnim&&t.fc){if(T.fc.propType)for(at=0;at<3;at+=1)D.length?Mt[at]+=(T.fc.v[at]-Mt[at])*D[0]:Mt[at]+=(T.fc.v[at]-Mt[at])*D;T.fh.propType&&(D.length?Mt=$c(Mt,T.fh.v*D[0]):Mt=$c(Mt,T.fh.v*D)),T.fs.propType&&(D.length?Mt=Fc(Mt,T.fs.v*D[0]):Mt=Fc(Mt,T.fs.v*D)),T.fb.propType&&(D.length?Mt=zc(Mt,T.fb.v*D[0]):Mt=zc(Mt,T.fb.v*D))}}for(m=0;m<v;m+=1)T=a[m].a,T.p.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),this._hasMaskedPath?D.length?c.translate(0,T.p.v[1]*D[0],-T.p.v[2]*D[1]):c.translate(0,T.p.v[1]*D,-T.p.v[2]*D):D.length?c.translate(T.p.v[0]*D[0],T.p.v[1]*D[1],-T.p.v[2]*D[2]):c.translate(T.p.v[0]*D,T.p.v[1]*D,-T.p.v[2]*D));if(t.strokeWidthAnim&&(fr=Ie<0?0:Ie),t.strokeColorAnim&&(Gr="rgb("+Math.round(ee[0]*255)+","+Math.round(ee[1]*255)+","+Math.round(ee[2]*255)+")"),t.fillColorAnim&&t.fc&&(vr="rgb("+Math.round(Mt[0]*255)+","+Math.round(Mt[1]*255)+","+Math.round(Mt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,i[1]*st*.01+k,0),this._pathData.p.v){pt=(N.point[1]-x.point[1])/(N.point[0]-x.point[0]);var mi=Math.atan(pt)*180/Math.PI;N.point[0]<x.point[0]&&(mi+=180),c.rotate(-mi*Math.PI/180)}c.translate(ut,kt,0),O-=i[0]*b[I].an*.005,b[I+1]&&it!==b[I+1].ind&&(O+=b[I].an/2,O+=t.tr*.001*t.finalSize)}else{switch(c.translate(u,k,0),t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(b[I].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[b[I].line]),0,0);break;case 2:c.translate(b[I].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[b[I].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(ht,0,0),c.translate(i[0]*b[I].an*.005,i[1]*st*.01,0),u+=b[I].l+t.tr*.001*t.finalSize}p==="html"?ar=c.toCSS():p==="svg"?ar=c.to2dCSS():gr=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],br=Ee}E<=I?(U=new Gn(br,fr,Gr,vr,ar,gr),this.renderedLetters.push(U),E+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[I],this.lettersChangedFlag=U.update(br,fr,Gr,vr,ar,gr)||this.lettersChangedFlag)}}},hi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},hi.prototype.mHelper=new ae,hi.prototype.defaultPropsArray=[],B([te],hi);function ze(){}ze.prototype.initElement=function(t,r,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,i),this.textProperty=new he(this,t.t,this.dynamicProperties),this.textAnimator=new hi(t.t,this.renderType,this),this.initTransform(t,r,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ze.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ze.prototype.createPathShape=function(t,r){var i,a=r.length,d,c="";for(i=0;i<a;i+=1)r[i].ty==="sh"&&(d=r[i].ks.k,c+=kd(d,d.i.length,!0,t));return c},ze.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},ze.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ze.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ze.prototype.applyTextPropertiesToMatrix=function(t,r,i,a,d){switch(t.ps&&r.translate(t.ps[0],t.ps[1]+t.ascent,0),r.translate(0,-t.ls,0),t.j){case 1:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0);break;default:break}r.translate(a,d,0)},ze.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},ze.prototype.emptyProp=new Gn,ze.prototype.destroy=function(){},ze.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var df={shapes:[]};function pr(t,r,i){this.textSpans=[],this.renderType="svg",this.initElement(t,r,i)}B([Vr,Zi,qo,Ji,Br,Yo,ze],pr),pr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=ft("text"))},pr.prototype.buildTextContents=function(t){for(var r=0,i=t.length,a=[],d="";r<i;)t[r]==="\r"||t[r]===""?(a.push(d),d=""):d+=t[r],r+=1;return a.push(d),a},pr.prototype.buildShapeData=function(t,r){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var a=i.it[i.it.length-1];a.s&&(a.s.k[0]=r,a.s.k[1]=r)}}return t},pr.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,i=this.textProperty.currentData;this.renderedLetters=et(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var a=this.globalData.fontManager.getFontByName(i.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var d=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",i.t);var p=i.l||[],E=!!this.globalData.fontManager.chars;r=p.length;var u,k=this.mHelper,I="",V=this.data.singleShape,b=0,L=0,O=!0,N=i.tr*.001*i.finalSize;if(V&&!E&&!i.sz){var z=this.textContainer,w="start";switch(i.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}z.setAttribute("text-anchor",w),z.setAttribute("letter-spacing",N);var _=this.buildTextContents(i.finalText);for(r=_.length,L=i.ps?i.ps[1]+i.ascent:0,t=0;t<r;t+=1)u=this.textSpans[t].span||ft("tspan"),u.textContent=_[t],u.setAttribute("x",0),u.setAttribute("y",L),u.style.display="inherit",z.appendChild(u),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=u,L+=i.finalLineHeight;this.layerElement.appendChild(z)}else{var g=this.textSpans.length,x;for(t=0;t<r;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!E||!V||t===0){if(u=g>t?this.textSpans[t].span:ft(E?"g":"text"),g<=t){if(u.setAttribute("stroke-linecap","butt"),u.setAttribute("stroke-linejoin","round"),u.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=u,E){var C=ft("g");u.appendChild(C),this.textSpans[t].childSpan=C}this.textSpans[t].span=u,this.layerElement.appendChild(u)}u.style.display="inherit"}if(k.reset(),V&&(p[t].n&&(b=-N,L+=i.yOffset,L+=O?1:0,O=!1),this.applyTextPropertiesToMatrix(i,k,p[t].line,b,L),b+=p[t].l||0,b+=N),E){x=this.globalData.fontManager.getCharData(i.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var P;if(x.t===1)P=new Zo(x.data,this.globalData,this);else{var $=df;x.data&&x.data.shapes&&($=this.buildShapeData(x.data,i.finalSize)),P=new Ut($,this.globalData,this)}if(this.textSpans[t].glyph){var H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[t].glyph=P,P._debug=!0,P.prepareFrame(0),P.renderFrame(),this.textSpans[t].childSpan.appendChild(P.layerElement),x.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else V&&u.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),u.textContent=p[t].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}V&&u&&u.setAttribute("d",I)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},pr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},pr.prototype.getValue=function(){var t,r=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)i=this.textSpans[t].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},pr.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 t,r,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;r=a.length;var d,c,p;for(t=0;t<r;t+=1)a[t].n||(d=i[t],c=this.textSpans[t].span,p=this.textSpans[t].glyph,p&&p.renderFrame(),d._mdf.m&&c.setAttribute("transform",d.m),d._mdf.o&&c.setAttribute("opacity",d.o),d._mdf.sw&&c.setAttribute("stroke-width",d.sw),d._mdf.sc&&c.setAttribute("stroke",d.sc),d._mdf.fc&&c.setAttribute("fill",d.fc))}};function jn(t,r,i){this.initElement(t,r,i)}B([Ko],jn),jn.prototype.createContent=function(){var t=ft("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function Hr(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initFrame(),this.initTransform(t,r,i),this.initHierarchy()}Hr.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Hr.prototype.renderFrame=function(){},Hr.prototype.getBaseElement=function(){return null},Hr.prototype.destroy=function(){},Hr.prototype.sourceRectAtTime=function(){},Hr.prototype.hide=function(){},B([Vr,Zi,Ji,Br],Hr);function Yt(){}B([ne],Yt),Yt.prototype.createNull=function(t){return new Hr(t,this.globalData,this)},Yt.prototype.createShape=function(t){return new Ut(t,this.globalData,this)},Yt.prototype.createText=function(t){return new pr(t,this.globalData,this)},Yt.prototype.createImage=function(t){return new Ko(t,this.globalData,this)},Yt.prototype.createSolid=function(t){return new jn(t,this.globalData,this)},Yt.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.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 r=this.globalData.defs;this.setupGlobalData(t,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=ft("clipPath"),a=ft("rect");a.setAttribute("width",t.w),a.setAttribute("height",t.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=ge();i.setAttribute("id",d),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+S()+"#"+d+")"),r.appendChild(i),this.layers=t.layers,this.elements=et(t.layers.length)},Yt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,r=this.layers?this.layers.length:0;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Yt.prototype.updateContainerSize=function(){},Yt.prototype.findIndexByInd=function(t){var r=0,i=this.layers.length;for(r=0;r<i;r+=1)if(this.layers[r].ind===t)return r;return-1},Yt.prototype.buildItem=function(t){var r=this.elements;if(!(r[t]||this.layers[t].ty===99)){r[t]=!0;var i=this.createItem(this.layers[t]);if(r[t]=i,Gs()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var a="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(i);else{var d=r[a],c=d.getMatte(this.layers[t].tt);i.setMatte(c)}}}},Yt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var r=0,i=this.elements.length;r<i;){if(this.elements[r]===t){var a="tp"in t.data?this.findIndexByInd(t.data.tp):r-1,d=this.elements[a],c=d.getMatte(this.layers[r].tt);t.setMatte(c);break}r+=1}}},Yt.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Yt.prototype.appendElementInPos=function(t,r){var i=t.getBaseElement();if(i){for(var a=0,d;a<r;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(d=this.elements[a].getBaseElement()),a+=1;d?this.layerElement.insertBefore(i,d):this.layerElement.appendChild(i)}},Yt.prototype.hide=function(){this.layerElement.style.display="none"},Yt.prototype.show=function(){this.layerElement.style.display="block"};function ur(){}B([Vr,Zi,Ji,Br,Yo],ur),ur.prototype.initElement=function(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initTransform(t,r,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},ur.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var i,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ur.prototype.renderInnerContent=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ur.prototype.setElements=function(t){this.elements=t},ur.prototype.getElements=function(){return this.elements},ur.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},ur.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Zo(t,r,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(t,r,i),this.tm=t.tm?rt.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}B([Yt,ur,qo],Zo),Zo.prototype.createComp=function(t){return new Zo(t,this.globalData,this)};function Wn(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=ft("svg");var i="";if(r&&r.title){var a=ft("title"),d=ge();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),i+=d}if(r&&r.description){var c=ft("desc"),p=ge();c.setAttribute("id",p),c.textContent=r.description,this.svgElement.appendChild(c),i+=" "+p}i&&this.svgElement.setAttribute("aria-labelledby",i);var E=ft("defs");this.svgElement.appendChild(E);var u=ft("g");this.svgElement.appendChild(u),this.layerElement=u,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:E,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return B([Yt],Wn),Wn.prototype.createComp=function(t){return new Zo(t,this.globalData,this)},yu("svg",Wn),zr.registerModifier("tm",qe),zr.registerModifier("pb",Vo),zr.registerModifier("rp",or),zr.registerModifier("rd",Bo),zr.registerModifier("zz",Ho),zr.registerModifier("op",Go),It})});var da=globalThis,ha=da.ShadowRoot&&(da.ShadyCSS===void 0||da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qn=Symbol(),wd=new WeakMap,Jo=class{constructor(o,e,s){if(this._$cssResult$=!0,s!==qn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o,e=this.t;if(ha&&o===void 0){let s=e!==void 0&&e.length===1;s&&(o=wd.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),s&&wd.set(e,o))}return o}toString(){return this.cssText}},Id=l=>new Jo(typeof l=="string"?l:l+"",void 0,qn),W=(l,...o)=>{let e=l.length===1?l[0]:o.reduce((s,n,h)=>s+(f=>{if(f._$cssResult$===!0)return f.cssText;if(typeof f=="number")return f;throw Error("Value passed to 'css' function must be a 'css' function result: "+f+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+l[h+1],l[0]);return new Jo(e,l,qn)},Yn=(l,o)=>{if(ha)l.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of o){let s=document.createElement("style"),n=da.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,l.appendChild(s)}},ma=ha?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let e="";for(let s of o.cssRules)e+=s.cssText;return Id(e)})(l):l;var{is:yf,defineProperty:Ef,getOwnPropertyDescriptor:xf,getOwnPropertyNames:Tf,getOwnPropertySymbols:Af,getPrototypeOf:_f}=Object,Yr=globalThis,Ld=Yr.trustedTypes,Sf=Ld?Ld.emptyScript:"",Kn=Yr.reactiveElementPolyfillSupport,Qo=(l,o)=>l,ts={toAttribute(l,o){switch(o){case Boolean:l=l?Sf:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,o){let e=l;switch(o){case Boolean:e=l!==null;break;case Number:e=l===null?null:Number(l);break;case Object:case Array:try{e=JSON.parse(l)}catch{e=null}}return e}},pa=(l,o)=>!yf(l,o),Md={attribute:!0,type:String,converter:ts,reflect:!1,hasChanged:pa},Nd,Rd;(Nd=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Rd=Yr.litPropertyMetadata)!=null||(Yr.litPropertyMetadata=new WeakMap);var yr=class extends HTMLElement{static addInitializer(o){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=Md){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(o,s,e);n!==void 0&&Ef(this.prototype,o,n)}}static getPropertyDescriptor(o,e,s){var f;let{get:n,set:h}=(f=xf(this.prototype,o))!=null?f:{get(){return this[e]},set(S){this[e]=S}};return{get(){return n==null?void 0:n.call(this)},set(S){let M=n==null?void 0:n.call(this);h.call(this,S),this.requestUpdate(o,M,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var e;return(e=this.elementProperties.get(o))!=null?e:Md}static _$Ei(){if(this.hasOwnProperty(Qo("elementProperties")))return;let o=_f(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Qo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qo("properties"))){let e=this.properties,s=[...Tf(e),...Af(e)];for(let n of s)this.createProperty(n,e[n])}let o=this[Symbol.metadata];if(o!==null){let e=litPropertyMetadata.get(o);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let e=[];if(Array.isArray(o)){let s=new Set(o.flat(1/0).reverse());for(let n of s)e.unshift(ma(n))}else o!==void 0&&e.push(ma(o));return e}static _$Eu(o,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(e=>e(this))}addController(o){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((s=o.hostConnected)==null||s.call(o))}removeController(o){var e;(e=this._$EO)==null||e.delete(o)}_$E_(){let o=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(o.set(s,this[s]),delete this[s]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var e;let o=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Yn(o,this.constructor.elementStyles),o}connectedCallback(){var o,e;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostConnected)==null?void 0:n.call(s)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(o,e,s){this._$AK(o,s)}_$EC(o,e){var h;let s=this.constructor.elementProperties.get(o),n=this.constructor._$Eu(o,s);if(n!==void 0&&s.reflect===!0){let f=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:ts).toAttribute(e,s.type);this._$Em=o,f==null?this.removeAttribute(n):this.setAttribute(n,f),this._$Em=null}}_$AK(o,e){var h;let s=this.constructor,n=s._$Eh.get(o);if(n!==void 0&&this._$Em!==n){let f=s.getPropertyOptions(n),S=typeof f.converter=="function"?{fromAttribute:f.converter}:((h=f.converter)==null?void 0:h.fromAttribute)!==void 0?f.converter:ts;this._$Em=n,this[n]=S.fromAttribute(e,f.type),this._$Em=null}}requestUpdate(o,e,s){var n;if(o!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(o)),!((n=s.hasChanged)!=null?n:pa)(this[o],e))return;this.P(o,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,e,s){var n;this._$AL.has(o)||this._$AL.set(o,e),s.reflect===!0&&this._$Em!==o&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[f,S]of this._$Ep)this[f]=S;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[f,S]of h)S.wrapped!==!0||this._$AL.has(f)||this[f]===void 0||this.P(f,this[f],S)}let o=!1,e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(h=>{var f;return(f=h.hostUpdate)==null?void 0:f.call(h)}),this.update(e)):this._$EU()}catch(h){throw o=!1,this._$EU(),h}o&&this._$AE(e)}willUpdate(o){}_$AE(o){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(o){}firstUpdated(o){}},Od;yr.elementStyles=[],yr.shadowRootOptions={mode:"open"},yr[Qo("elementProperties")]=new Map,yr[Qo("finalized")]=new Map,Kn==null||Kn({ReactiveElement:yr}),((Od=Yr.reactiveElementVersions)!=null?Od:Yr.reactiveElementVersions=[]).push("2.0.4");var rs=globalThis,ua=rs.trustedTypes,Pd=ua?ua.createPolicy("lit-html",{createHTML:l=>l}):void 0,Jn="$lit$",Er=`lit$${Math.random().toFixed(9).slice(2)}$`,Qn="?"+Er,kf=`<${Qn}>`,fi=document,is=()=>fi.createComment(""),os=l=>l===null||typeof l!="object"&&typeof l!="function",tl=Array.isArray,Ud=l=>tl(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Xn=`[
|
3
|
-
\f\r]`,
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
1
|
+
"use strict";(()=>{var df=Object.create;var Gn=Object.defineProperty;var kd=Object.getOwnPropertyDescriptor;var hf=Object.getOwnPropertyNames;var mf=Object.getPrototypeOf,pf=Object.prototype.hasOwnProperty;var uf=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports);var ff=(l,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of hf(o))!pf.call(l,n)&&n!==e&&Gn(l,n,{get:()=>o[n],enumerable:!(s=kd(o,n))||s.enumerable});return l};var vf=(l,o,e)=>(e=l!=null?df(mf(l)):{},ff(o||!l||!l.__esModule?Gn(e,"default",{value:l,enumerable:!0}):e,l));var y=(l,o,e,s)=>{for(var n=s>1?void 0:s?kd(o,e):o,h=l.length-1,f;h>=0;h--)(f=l[h])&&(n=(s?f(o,e,n):f(n))||n);return s&&n&&Gn(o,e,n),n};var su=uf((Bs,In)=>{typeof navigator<"u"&&function(l,o){typeof Bs=="object"&&typeof In<"u"?In.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(Bs,function(){"use strict";var l="http://www.w3.org/2000/svg",o="",e=!1,s=-999999,n=function(r){e=!!r},h=function(){return e},f=function(r){o=r},S=function(){return o};function M(t){return document.createElement(t)}function B(t,r){var i,a=t.length,d;for(i=0;i<a;i+=1){d=t[i].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function G(t,r){return Object.getOwnPropertyDescriptor(t,r)}function q(t){function r(){}return r.prototype=t,r}var it=function(){function t(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].pause()},resume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].resume()},setRate:function(i){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),J=function(){function t(i,a){var d=0,c=[],p;switch(i){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(d=0;d<a;d+=1)c.push(p);return c}function r(i,a){return i==="float32"?new Float32Array(a):i==="int16"?new Int16Array(a):i==="uint8c"?new Uint8ClampedArray(a):t(i,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:t}();function tt(t){return Array.apply(null,{length:t})}function lt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(i){return typeof i}:lt=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},lt(t)}var gt=!0,vt=null,bt=null,_t="",Vt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Mt=!1,Ot=Math.pow,fe=Math.sqrt,Jt=Math.floor,Ue=Math.max,Ce=Math.min,Re={};(function(){var t=["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"],r,i=t.length;for(r=0;r<i;r+=1)Re[t[r]]=Math[t[r]]})();function He(){return{}}Re.random=Math.random,Re.abs=function(t){var r=lt(t);if(r==="object"&&t.length){var i=tt(t.length),a,d=t.length;for(a=0;a<d;a+=1)i[a]=Math.abs(t[a]);return i}return Math.abs(t)};var Ge=150,xt=Math.PI/180,ce=.5519;function Oe(t){Mt=!!t}function je(t){return Mt?Math.round(t):t}function dr(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function Pe(t,r,i,a){this.type=t,this.currentTime=r,this.totalTime=i,this.direction=a<0?-1:1}function Us(t,r){this.type=t,this.direction=r<0?-1:1}function Rc(t,r,i,a){this.type=t,this.currentLoop=i,this.totalLoops=r,this.direction=a<0?-1:1}function Oc(t,r,i){this.type=t,this.firstFrame=r,this.totalFrames=i}function Pc(t,r){this.type=t,this.target=r}function cu(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function du(t){this.type="configError",this.nativeError=t}function xb(t,r){this.type=t,this.nativeError=r}var ve=function(){var t=0;return function(){return t+=1,_t+"__lottie_element_"+t}}();function Mn(t,r,i){var a,d,c,p,E,u,k,I;switch(p=Math.floor(t*6),E=t*6-p,u=i*(1-r),k=i*(1-E*r),I=i*(1-(1-E)*r),p%6){case 0:a=i,d=I,c=u;break;case 1:a=k,d=i,c=u;break;case 2:a=u,d=i,c=I;break;case 3:a=u,d=k,c=i;break;case 4:a=I,d=u,c=i;break;case 5:a=i,d=u,c=k;break;default:break}return[a,d,c]}function Nn(t,r,i){var a=Math.max(t,r,i),d=Math.min(t,r,i),c=a-d,p,E=a===0?0:c/a,u=a/255;switch(a){case d:p=0;break;case t:p=r-i+c*(r<i?6:0),p/=6*c;break;case r:p=i-t+c*2,p/=6*c;break;case i:p=t-r+c*4,p/=6*c;break;default:break}return[p,E,u]}function Dc(t,r){var i=Nn(t[0]*255,t[1]*255,t[2]*255);return i[1]+=r,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),Mn(i[0],i[1],i[2])}function Fc(t,r){var i=Nn(t[0]*255,t[1]*255,t[2]*255);return i[2]+=r,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),Mn(i[0],i[1],i[2])}function zc(t,r){var i=Nn(t[0]*255,t[1]*255,t[2]*255);return i[0]+=r/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),Mn(i[0],i[1],i[2])}var Tb=function(){var t=[],r,i;for(r=0;r<256;r+=1)i=r.toString(16),t[r]=i.length===1?"0"+i:i;return function(a,d,c){return a<0&&(a=0),d<0&&(d=0),c<0&&(c=0),"#"+t[a]+t[d]+t[c]}}(),hu=function(r){gt=!!r},mu=function(){return gt},pu=function(r){vt=r},Hs=function(){return vt},Ab=function(r){bt=r},$c=function(){return bt},Gs=function(r){Ge=r},Oo=function(){return Ge},uu=function(r){_t=r},_b=function(){return _t};function ut(t){return document.createElementNS(l,t)}function js(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?js=function(i){return typeof i}:js=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},js(t)}var Po=function(){var t=1,r=[],i,a,d={onmessage:function(){},postMessage:function(L){i({data:L})}},c={postMessage:function(L){d.onmessage({data:L})}};function p(b){if(window.Worker&&window.Blob&&h()){var L=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),O=URL.createObjectURL(L);return new Worker(O)}return i=b,d}function E(){a||(a=p(function(L){function O(){function z(Y,T){var R,m,v=Y.length,U,D,rt,dt;for(m=0;m<v;m+=1)if(R=Y[m],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var pt=R.masksProperties;for(D=pt.length,U=0;U<D;U+=1)if(pt[U].pt.k.i)C(pt[U].pt.k);else for(dt=pt[U].pt.k.length,rt=0;rt<dt;rt+=1)pt[U].pt.k[rt].s&&C(pt[U].pt.k[rt].s[0]),pt[U].pt.k[rt].e&&C(pt[U].pt.k[rt].e[0])}R.ty===0?(R.layers=g(R.refId,T),z(R.layers,T)):R.ty===4?x(R.shapes):R.ty===5&&ft(R)}}function w(Y,T){if(Y){var R=0,m=Y.length;for(R=0;R<m;R+=1)Y[R].t===1&&(Y[R].data.layers=g(Y[R].data.refId,T),z(Y[R].data.layers,T))}}function _(Y,T){for(var R=0,m=T.length;R<m;){if(T[R].id===Y)return T[R];R+=1}return null}function g(Y,T){var R=_(Y,T);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function x(Y){var T,R=Y.length,m,v;for(T=R-1;T>=0;T-=1)if(Y[T].ty==="sh")if(Y[T].ks.k.i)C(Y[T].ks.k);else for(v=Y[T].ks.k.length,m=0;m<v;m+=1)Y[T].ks.k[m].s&&C(Y[T].ks.k[m].s[0]),Y[T].ks.k[m].e&&C(Y[T].ks.k[m].e[0]);else Y[T].ty==="gr"&&x(Y[T].it)}function C(Y){var T,R=Y.i.length;for(T=0;T<R;T+=1)Y.i[T][0]+=Y.v[T][0],Y.i[T][1]+=Y.v[T][1],Y.o[T][0]+=Y.v[T][0],Y.o[T][1]+=Y.v[T][1]}function P(Y,T){var R=T?T.split("."):[100,100,100];return Y[0]>R[0]?!0:R[0]>Y[0]?!1:Y[1]>R[1]?!0:R[1]>Y[1]?!1:Y[2]>R[2]?!0:R[2]>Y[2]?!1:null}var $=function(){var Y=[4,4,14];function T(m){var v=m.t.d;m.t.d={k:[{s:v,t:0}]}}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===5&&T(m[v])}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),H=function(){var Y=[4,7,99];return function(T){if(T.chars&&!P(Y,T.v)){var R,m=T.chars.length;for(R=0;R<m;R+=1){var v=T.chars[R];v.data&&v.data.shapes&&(x(v.data.shapes),v.data.ip=0,v.data.op=99999,v.data.st=0,v.data.sr=1,v.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}},T.chars[R].t||(v.data.shapes.push({ty:"no"}),v.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"})))}}}}(),K=function(){var Y=[5,7,15];function T(m){var v=m.t.p;typeof v.a=="number"&&(v.a={a:0,k:v.a}),typeof v.p=="number"&&(v.p={a:0,k:v.p}),typeof v.r=="number"&&(v.r={a:0,k:v.r})}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===5&&T(m[v])}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),mt=function(){var Y=[4,1,9];function T(m){var v,U=m.length,D,rt;for(v=0;v<U;v+=1)if(m[v].ty==="gr")T(m[v].it);else if(m[v].ty==="fl"||m[v].ty==="st")if(m[v].c.k&&m[v].c.k[0].i)for(rt=m[v].c.k.length,D=0;D<rt;D+=1)m[v].c.k[D].s&&(m[v].c.k[D].s[0]/=255,m[v].c.k[D].s[1]/=255,m[v].c.k[D].s[2]/=255,m[v].c.k[D].s[3]/=255),m[v].c.k[D].e&&(m[v].c.k[D].e[0]/=255,m[v].c.k[D].e[1]/=255,m[v].c.k[D].e[2]/=255,m[v].c.k[D].e[3]/=255);else m[v].c.k[0]/=255,m[v].c.k[1]/=255,m[v].c.k[2]/=255,m[v].c.k[3]/=255}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===4&&T(m[v].shapes)}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),at=function(){var Y=[4,4,18];function T(m){var v,U=m.length,D,rt;for(v=U-1;v>=0;v-=1)if(m[v].ty==="sh")if(m[v].ks.k.i)m[v].ks.k.c=m[v].closed;else for(rt=m[v].ks.k.length,D=0;D<rt;D+=1)m[v].ks.k[D].s&&(m[v].ks.k[D].s[0].c=m[v].closed),m[v].ks.k[D].e&&(m[v].ks.k[D].e[0].c=m[v].closed);else m[v].ty==="gr"&&T(m[v].it)}function R(m){var v,U,D=m.length,rt,dt,pt,St;for(U=0;U<D;U+=1){if(v=m[U],v.hasMask){var kt=v.masksProperties;for(dt=kt.length,rt=0;rt<dt;rt+=1)if(kt[rt].pt.k.i)kt[rt].pt.k.c=kt[rt].cl;else for(St=kt[rt].pt.k.length,pt=0;pt<St;pt+=1)kt[rt].pt.k[pt].s&&(kt[rt].pt.k[pt].s[0].c=kt[rt].cl),kt[rt].pt.k[pt].e&&(kt[rt].pt.k[pt].e[0].c=kt[rt].cl)}v.ty===4&&T(v.shapes)}}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}();function Q(Y){Y.__complete||(mt(Y),$(Y),H(Y),K(Y),at(Y),z(Y.layers,Y.assets),w(Y.chars,Y.assets),Y.__complete=!0)}function ft(Y){Y.t.a.length===0&&"m"in Y.t.p}var ot={};return ot.completeData=Q,ot.checkColors=mt,ot.checkChars=H,ot.checkPathProperties=K,ot.checkShapes=at,ot.completeLayers=z,ot}if(c.dataManager||(c.dataManager=O()),c.assetLoader||(c.assetLoader=function(){function z(_){var g=_.getResponseHeader("content-type");return g&&_.responseType==="json"&&g.indexOf("json")!==-1||_.response&&js(_.response)==="object"?_.response:_.response&&typeof _.response=="string"?JSON.parse(_.response):_.responseText?JSON.parse(_.responseText):null}function w(_,g,x,C){var P,$=new XMLHttpRequest;try{$.responseType="json"}catch{}$.onreadystatechange=function(){if($.readyState===4)if($.status===200)P=z($),x(P);else try{P=z($),x(P)}catch(H){C&&C(H)}};try{$.open(["G","E","T"].join(""),_,!0)}catch{$.open(["G","E","T"].join(""),g+"/"+_,!0)}$.send()}return{load:w}}()),L.data.type==="loadAnimation")c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})});else if(L.data.type==="complete"){var N=L.data.animation;c.dataManager.completeData(N),c.postMessage({id:L.data.id,payload:N,status:"success"})}else L.data.type==="loadData"&&c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})})}),a.onmessage=function(b){var L=b.data,O=L.id,N=r[O];r[O]=null,L.status==="success"?N.onComplete(L.payload):N.onError&&N.onError()})}function u(b,L){t+=1;var O="processId_"+t;return r[O]={onComplete:b,onError:L},O}function k(b,L,O){E();var N=u(L,O);a.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:N})}function I(b,L,O){E();var N=u(L,O);a.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:N})}function V(b,L,O){E();var N=u(L,O);a.postMessage({type:"complete",animation:b,id:N})}return{loadAnimation:k,loadData:I,completeAnimation:V}}(),fu=function(){var t=function(){var w=M("canvas");w.width=1,w.height=1;var _=w.getContext("2d");return _.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1),w}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(w,_,g){var x="";if(w.e)x=w.p;else if(_){var C=w.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),x=_+C}else x=g,x+=w.u?w.u:"",x+=w.p;return x}function d(w){var _=0,g=setInterval((function(){var x=w.getBBox();(x.width||_>500)&&(this._imageLoaded(),clearInterval(g)),_+=1}).bind(this),50)}function c(w){var _=a(w,this.assetsPath,this.path),g=ut("image");Vt?this.testImageLoaded(g):g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){x.img=t,this._imageLoaded()}).bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",_),this._elementHelper.append?this._elementHelper.append(g):this._elementHelper.appendChild(g);var x={img:g,assetData:w};return x}function p(w){var _=a(w,this.assetsPath,this.path),g=M("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){x.img=t,this._imageLoaded()}).bind(this),!1),g.src=_;var x={img:g,assetData:w};return x}function E(w){var _={assetData:w},g=a(w,this.assetsPath,this.path);return Po.loadData(g,(function(x){_.img=x,this._footageLoaded()}).bind(this),(function(){_.img={},this._footageLoaded()}).bind(this)),_}function u(w,_){this.imagesLoadedCb=_;var g,x=w.length;for(g=0;g<x;g+=1)w[g].layers||(!w[g].t||w[g].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(w[g]))):w[g].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(w[g]))))}function k(w){this.path=w||""}function I(w){this.assetsPath=w||""}function V(w){for(var _=0,g=this.images.length;_<g;){if(this.images[_].assetData===w)return this.images[_].img;_+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function L(){return this.totalImages===this.loadedAssets}function O(){return this.totalFootages===this.loadedFootagesCount}function N(w,_){w==="svg"?(this._elementHelper=_,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function z(){this._imageLoaded=r.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=E.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return z.prototype={loadAssets:u,setAssetsPath:I,setPath:k,loadedImages:L,loadedFootages:O,destroy:b,getAsset:V,createImgData:p,createImageData:c,imageLoaded:r,footageLoaded:i,setCacheType:N},z}();function Vc(){}Vc.prototype={triggerEvent:function(r,i){if(this._cbs[r])for(var a=this._cbs[r],d=0;d<a.length;d+=1)a[d](i)},addEventListener:function(r,i){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(i),(function(){this.removeEventListener(r,i)}).bind(this)},removeEventListener:function(r,i){if(!i)this._cbs[r]=null;else if(this._cbs[r]){for(var a=0,d=this._cbs[r].length;a<d;)this._cbs[r][a]===i&&(this._cbs[r].splice(a,1),a-=1,d-=1),a+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var vu=function(){function t(r){for(var i=r.split(`\r
|
2
|
+
`),a={},d,c=0,p=0;p<i.length;p+=1)d=i[p].split(":"),d.length===2&&(a[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return a}return function(r){for(var i=[],a=0;a<r.length;a+=1){var d=r[a],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[a].cm)}catch{try{c.payload=t(r[a].cm)}catch{c.payload={name:r[a].cm}}}i.push(c)}return i}}(),gu=function(){function t(r){this.compositions.push(r)}return function(){function r(i){for(var a=0,d=this.compositions.length;a<d;){if(this.compositions[a].data&&this.compositions[a].data.nm===i)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=t,r}}(),Do={},bu=function(r,i){Do[r]=i};function yu(t){return Do[t]}function Eu(){if(Do.canvas)return"canvas";for(var t in Do)if(Do[t])return t;return""}function Fo(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fo=function(i){return typeof i}:Fo=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fo(t)}var ct=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=ve(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=mu(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=gu(),this.imagePreloader=new fu,this.audioController=it(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Pe("drawnFrame",0,0,0),this.expressionsPlugin=Hs()};B([Vc],ct),ct.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var r="svg";t.animType?r=t.animType:t.renderer&&(r=t.renderer);var i=yu(r);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Po.loadAnimation(t.path,this.configAnimation,this.onSetupError))},ct.prototype.onSetupError=function(){this.trigger("data_failed")},ct.prototype.setupAnimation=function(t){Po.completeAnimation(t,this.configAnimation)},ct.prototype.setData=function(t,r){r&&Fo(r)!=="object"&&(r=JSON.parse(r));var i={wrapper:t,animationData:r},a=t.attributes;i.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",i.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:Eu()||"canvas";var d=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";d==="false"?i.loop=!1:d==="true"?i.loop=!0:d!==""&&(i.loop=parseInt(d,10));var c=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var p=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";p==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},ct.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var r=this.animationData.layers,i,a=r.length,d=t.layers,c,p=d.length;for(c=0;c<p;c+=1)for(i=0;i<a;){if(r[i].id===d[c].id){r[i]=d[c];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(a=t.assets.length,i=0;i<a;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,Po.completeAnimation(this.animationData,this.onSegmentComplete)},ct.prototype.onSegmentComplete=function(t){this.animationData=t;var r=Hs();r&&r.initExpressions(this),this.loadNextSegment()},ct.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=t.shift();this.timeCompleted=r.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Po.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ct.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ct.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ct.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ct.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=vu(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},ct.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ct.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 t=Hs();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ct.prototype.resize=function(t,r){var i=typeof t=="number"?t:void 0,a=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(i,a)},ct.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},ct.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")},ct.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},ct.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ct.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ct.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},ct.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ct.prototype.getMarkerData=function(t){for(var r,i=0;i<this.markers.length;i+=1)if(r=this.markers[i],r.payload&&r.payload.name===t)return r;return null},ct.prototype.goToAndStop=function(t,r,i){if(!(i&&this.name!==i)){var a=Number(t);if(isNaN(a)){var d=this.getMarkerData(t);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},ct.prototype.goToAndPlay=function(t,r,i){if(!(i&&this.name!==i)){var a=Number(t);if(isNaN(a)){var d=this.getMarkerData(t);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(a,r,i);this.play()}},ct.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+t*this.frameModifier,i=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(i=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,r=0)):this.setCurrentRawFrameValue(r),i&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},ct.prototype.adjustSegment=function(t,r){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},ct.prototype.setSegment=function(t,r){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>r&&(i=r-t)),this.firstFrame=t,this.totalFrames=r-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},ct.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),Fo(t[0])==="object"){var i,a=t.length;for(i=0;i<a;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ct.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},ct.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},ct.prototype.destroy=function(t){t&&this.name!==t||!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)},ct.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},ct.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},ct.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},ct.prototype.setLoop=function(t){this.loop=t},ct.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},ct.prototype.getVolume=function(){return this.audioController.getVolume()},ct.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},ct.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},ct.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ct.prototype.getPath=function(){return this.path},ct.prototype.getAssetsPath=function(t){var r="";if(t.e)r=t.p;else if(this.assetsPath){var i=t.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),r=this.assetsPath+i}else r=this.path,r+=t.u?t.u:"",r+=t.p;return r},ct.prototype.getAssetData=function(t){for(var r=0,i=this.assets.length;r<i;){if(t===this.assets[r].id)return this.assets[r];r+=1}return null},ct.prototype.hide=function(){this.renderer.hide()},ct.prototype.show=function(){this.renderer.show()},ct.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},ct.prototype.updateDocumentData=function(t,r,i){try{var a=this.renderer.getElementByPath(t);a.updateDocumentData(r,i)}catch{}},ct.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new Pe(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new Rc(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new Us(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new Oc(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new Pc(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Pe(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Rc(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new Us(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Oc(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Pc(t,this))},ct.prototype.triggerRenderFrameError=function(t){var r=new cu(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},ct.prototype.triggerConfigError=function(t){var r=new du(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Ht=function(){var t={},r=[],i=0,a=0,d=0,c=!0,p=!1;function E(T){for(var R=0,m=T.target;R<a;)r[R].animation===m&&(r.splice(R,1),R-=1,a-=1,m.isPaused||V()),R+=1}function u(T,R){if(!T)return null;for(var m=0;m<a;){if(r[m].elem===T&&r[m].elem!==null)return r[m].animation;m+=1}var v=new ct;return b(v,T),v.setData(T,R),v}function k(){var T,R=r.length,m=[];for(T=0;T<R;T+=1)m.push(r[T].animation);return m}function I(){d+=1,mt()}function V(){d-=1}function b(T,R){T.addEventListener("destroy",E),T.addEventListener("_active",I),T.addEventListener("_idle",V),r.push({elem:R,animation:T}),a+=1}function L(T){var R=new ct;return b(R,null),R.setParams(T),R}function O(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setSpeed(T,R)}function N(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setDirection(T,R)}function z(T){var R;for(R=0;R<a;R+=1)r[R].animation.play(T)}function w(T){var R=T-i,m;for(m=0;m<a;m+=1)r[m].animation.advanceTime(R);i=T,d&&!p?window.requestAnimationFrame(w):c=!0}function _(T){i=T,window.requestAnimationFrame(w)}function g(T){var R;for(R=0;R<a;R+=1)r[R].animation.pause(T)}function x(T,R,m){var v;for(v=0;v<a;v+=1)r[v].animation.goToAndStop(T,R,m)}function C(T){var R;for(R=0;R<a;R+=1)r[R].animation.stop(T)}function P(T){var R;for(R=0;R<a;R+=1)r[R].animation.togglePause(T)}function $(T){var R;for(R=a-1;R>=0;R-=1)r[R].animation.destroy(T)}function H(T,R,m){var v=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,D=v.length;for(U=0;U<D;U+=1)m&&v[U].setAttribute("data-bm-type",m),u(v[U],T);if(R&&D===0){m||(m="svg");var rt=document.getElementsByTagName("body")[0];rt.innerText="";var dt=M("div");dt.style.width="100%",dt.style.height="100%",dt.setAttribute("data-bm-type",m),rt.appendChild(dt),u(dt,T)}}function K(){var T;for(T=0;T<a;T+=1)r[T].animation.resize()}function mt(){!p&&d&&c&&(window.requestAnimationFrame(_),c=!1)}function at(){p=!0}function Q(){p=!1,mt()}function ft(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setVolume(T,R)}function ot(T){var R;for(R=0;R<a;R+=1)r[R].animation.mute(T)}function Y(T){var R;for(R=0;R<a;R+=1)r[R].animation.unmute(T)}return t.registerAnimation=u,t.loadAnimation=L,t.setSpeed=O,t.setDirection=N,t.play=z,t.pause=g,t.stop=C,t.togglePause=P,t.searchAnimations=H,t.resize=K,t.goToAndStop=x,t.destroy=$,t.freeze=at,t.unfreeze=Q,t.setVolume=ft,t.mute=ot,t.unmute=Y,t.getRegisteredAnimations=k,t}(),zo=function(){var t={};t.getBezierEasing=i;var r={};function i(_,g,x,C,P){var $=P||("bez_"+_+"_"+g+"_"+x+"_"+C).replace(/\./g,"p");if(r[$])return r[$];var H=new w([_,g,x,C]);return r[$]=H,H}var a=4,d=.001,c=1e-7,p=10,E=11,u=1/(E-1),k=typeof Float32Array=="function";function I(_,g){return 1-3*g+3*_}function V(_,g){return 3*g-6*_}function b(_){return 3*_}function L(_,g,x){return((I(g,x)*_+V(g,x))*_+b(g))*_}function O(_,g,x){return 3*I(g,x)*_*_+2*V(g,x)*_+b(g)}function N(_,g,x,C,P){var $,H,K=0;do H=g+(x-g)/2,$=L(H,C,P)-_,$>0?x=H:g=H;while(Math.abs($)>c&&++K<p);return H}function z(_,g,x,C){for(var P=0;P<a;++P){var $=O(g,x,C);if($===0)return g;var H=L(g,x,C)-_;g-=H/$}return g}function w(_){this._p=_,this._mSampleValues=k?new Float32Array(E):new Array(E),this._precomputed=!1,this.get=this.get.bind(this)}return w.prototype={get:function(g){var x=this._p[0],C=this._p[1],P=this._p[2],$=this._p[3];return this._precomputed||this._precompute(),x===C&&P===$?g:g===0?0:g===1?1:L(this._getTForX(g),C,$)},_precompute:function(){var g=this._p[0],x=this._p[1],C=this._p[2],P=this._p[3];this._precomputed=!0,(g!==x||C!==P)&&this._calcSampleValues()},_calcSampleValues:function(){for(var g=this._p[0],x=this._p[2],C=0;C<E;++C)this._mSampleValues[C]=L(C*u,g,x)},_getTForX:function(g){for(var x=this._p[0],C=this._p[2],P=this._mSampleValues,$=0,H=1,K=E-1;H!==K&&P[H]<=g;++H)$+=u;--H;var mt=(g-P[H])/(P[H+1]-P[H]),at=$+mt*u,Q=O(at,x,C);return Q>=d?z(g,at,x,C):Q===0?at:N(g,$,$+u,x,C)}},t}(),Bc=function(){function t(r){return r.concat(tt(r.length))}return{double:t}}(),Ws=function(){return function(t,r,i){var a=0,d=t,c=tt(d),p={newElement:E,release:u};function E(){var k;return a?(a-=1,k=c[a]):k=r(),k}function u(k){a===d&&(c=Bc.double(c),d*=2),i&&i(k),c[a]=k,a+=1}return p}}(),Uc=function(){function t(){return{addedLength:0,percents:J("float32",Oo()),lengths:J("float32",Oo())}}return Ws(8,t)}(),Hc=function(){function t(){return{lengths:[],totalLength:0}}function r(i){var a,d=i.lengths.length;for(a=0;a<d;a+=1)Uc.release(i.lengths[a]);i.lengths.length=0}return Ws(8,t,r)}();function xu(){var t=Math;function r(b,L,O,N,z,w){var _=b*N+L*z+O*w-z*N-w*b-O*L;return _>-.001&&_<.001}function i(b,L,O,N,z,w,_,g,x){if(O===0&&w===0&&x===0)return r(b,L,N,z,_,g);var C=t.sqrt(t.pow(N-b,2)+t.pow(z-L,2)+t.pow(w-O,2)),P=t.sqrt(t.pow(_-b,2)+t.pow(g-L,2)+t.pow(x-O,2)),$=t.sqrt(t.pow(_-N,2)+t.pow(g-z,2)+t.pow(x-w,2)),H;return C>P?C>$?H=C-P-$:H=$-P-C:$>P?H=$-P-C:H=P-C-$,H>-1e-4&&H<1e-4}var a=function(){return function(b,L,O,N){var z=Oo(),w,_,g,x,C,P=0,$,H=[],K=[],mt=Uc.newElement();for(g=O.length,w=0;w<z;w+=1){for(C=w/(z-1),$=0,_=0;_<g;_+=1)x=Ot(1-C,3)*b[_]+3*Ot(1-C,2)*C*O[_]+3*(1-C)*Ot(C,2)*N[_]+Ot(C,3)*L[_],H[_]=x,K[_]!==null&&($+=Ot(H[_]-K[_],2)),K[_]=H[_];$&&($=fe($),P+=$),mt.percents[w]=C,mt.lengths[w]=P}return mt.addedLength=P,mt}}();function d(b){var L=Hc.newElement(),O=b.c,N=b.v,z=b.o,w=b.i,_,g=b._length,x=L.lengths,C=0;for(_=0;_<g-1;_+=1)x[_]=a(N[_],N[_+1],z[_],w[_+1]),C+=x[_].addedLength;return O&&g&&(x[_]=a(N[_],N[0],z[_],w[0]),C+=x[_].addedLength),L.totalLength=C,L}function c(b){this.segmentLength=0,this.points=new Array(b)}function p(b,L){this.partialLength=b,this.point=L}var E=function(){var b={};return function(L,O,N,z){var w=(L[0]+"_"+L[1]+"_"+O[0]+"_"+O[1]+"_"+N[0]+"_"+N[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!b[w]){var _=Oo(),g,x,C,P,$,H=0,K,mt,at=null;L.length===2&&(L[0]!==O[0]||L[1]!==O[1])&&r(L[0],L[1],O[0],O[1],L[0]+N[0],L[1]+N[1])&&r(L[0],L[1],O[0],O[1],O[0]+z[0],O[1]+z[1])&&(_=2);var Q=new c(_);for(C=N.length,g=0;g<_;g+=1){for(mt=tt(C),$=g/(_-1),K=0,x=0;x<C;x+=1)P=Ot(1-$,3)*L[x]+3*Ot(1-$,2)*$*(L[x]+N[x])+3*(1-$)*Ot($,2)*(O[x]+z[x])+Ot($,3)*O[x],mt[x]=P,at!==null&&(K+=Ot(mt[x]-at[x],2));K=fe(K),H+=K,Q.points[g]=new p(K,mt),at=mt}Q.segmentLength=H,b[w]=Q}return b[w]}}();function u(b,L){var O=L.percents,N=L.lengths,z=O.length,w=Jt((z-1)*b),_=b*L.addedLength,g=0;if(w===z-1||w===0||_===N[w])return O[w];for(var x=N[w]>_?-1:1,C=!0;C;)if(N[w]<=_&&N[w+1]>_?(g=(_-N[w])/(N[w+1]-N[w]),C=!1):w+=x,w<0||w>=z-1){if(w===z-1)return O[w];C=!1}return O[w]+(O[w+1]-O[w])*g}function k(b,L,O,N,z,w){var _=u(z,w),g=1-_,x=t.round((g*g*g*b[0]+(_*g*g+g*_*g+g*g*_)*O[0]+(_*_*g+g*_*_+_*g*_)*N[0]+_*_*_*L[0])*1e3)/1e3,C=t.round((g*g*g*b[1]+(_*g*g+g*_*g+g*g*_)*O[1]+(_*_*g+g*_*_+_*g*_)*N[1]+_*_*_*L[1])*1e3)/1e3;return[x,C]}var I=J("float32",8);function V(b,L,O,N,z,w,_){z<0?z=0:z>1&&(z=1);var g=u(z,_);w=w>1?1:w;var x=u(w,_),C,P=b.length,$=1-g,H=1-x,K=$*$*$,mt=g*$*$*3,at=g*g*$*3,Q=g*g*g,ft=$*$*H,ot=g*$*H+$*g*H+$*$*x,Y=g*g*H+$*g*x+g*$*x,T=g*g*x,R=$*H*H,m=g*H*H+$*x*H+$*H*x,v=g*x*H+$*x*x+g*H*x,U=g*x*x,D=H*H*H,rt=x*H*H+H*x*H+H*H*x,dt=x*x*H+H*x*x+x*H*x,pt=x*x*x;for(C=0;C<P;C+=1)I[C*4]=t.round((K*b[C]+mt*O[C]+at*N[C]+Q*L[C])*1e3)/1e3,I[C*4+1]=t.round((ft*b[C]+ot*O[C]+Y*N[C]+T*L[C])*1e3)/1e3,I[C*4+2]=t.round((R*b[C]+m*O[C]+v*N[C]+U*L[C])*1e3)/1e3,I[C*4+3]=t.round((D*b[C]+rt*O[C]+dt*N[C]+pt*L[C])*1e3)/1e3;return I}return{getSegmentsLength:d,getNewSegment:V,getPointInSegment:k,buildBezierData:E,pointOnLine2D:r,pointOnLine3D:i}}var rr=xu(),ai=s,Gc=Math.abs;function jc(t,r){var i=this.offsetTime,a;this.propType==="multidimensional"&&(a=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,p=this.keyframes.length-1,E=!0,u,k,I;E;){if(u=this.keyframes[c],k=this.keyframes[c+1],c===p-1&&t>=k.t-i){u.h&&(u=k),d=0;break}if(k.t-i>t){d=c;break}c<p-1?c+=1:(d=0,E=!1)}I=this.keyframesMetadata[c]||{};var V,b,L,O,N,z,w=k.t-i,_=u.t-i,g;if(u.to){I.bezierData||(I.bezierData=rr.buildBezierData(u.s,k.s||u.e,u.to,u.ti));var x=I.bezierData;if(t>=w||t<_){var C=t>=w?x.points.length-1:0;for(b=x.points[C].point.length,V=0;V<b;V+=1)a[V]=x.points[C].point[V]}else{I.__fnct?z=I.__fnct:(z=zo.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y,u.n).get,I.__fnct=z),L=z((t-_)/(w-_));var P=x.segmentLength*L,$,H=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(N=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,E=!0,O=x.points.length;E;){if(H+=x.points[N].partialLength,P===0||L===0||N===x.points.length-1){for(b=x.points[N].point.length,V=0;V<b;V+=1)a[V]=x.points[N].point[V];break}else if(P>=H&&P<H+x.points[N+1].partialLength){for($=(P-H)/x.points[N+1].partialLength,b=x.points[N].point.length,V=0;V<b;V+=1)a[V]=x.points[N].point[V]+(x.points[N+1].point[V]-x.points[N].point[V])*$;break}N<O-1?N+=1:E=!1}r._lastPoint=N,r._lastAddedLength=H-x.points[N].partialLength,r._lastKeyframeIndex=c}}else{var K,mt,at,Q,ft;if(p=u.s.length,g=k.s||u.e,this.sh&&u.h!==1)if(t>=w)a[0]=g[0],a[1]=g[1],a[2]=g[2];else if(t<=_)a[0]=u.s[0],a[1]=u.s[1],a[2]=u.s[2];else{var ot=Wc(u.s),Y=Wc(g),T=(t-_)/(w-_);Au(a,Tu(ot,Y,T))}else for(c=0;c<p;c+=1)u.h!==1&&(t>=w?L=1:t<_?L=0:(u.o.x.constructor===Array?(I.__fnct||(I.__fnct=[]),I.__fnct[c]?z=I.__fnct[c]:(K=u.o.x[c]===void 0?u.o.x[0]:u.o.x[c],mt=u.o.y[c]===void 0?u.o.y[0]:u.o.y[c],at=u.i.x[c]===void 0?u.i.x[0]:u.i.x[c],Q=u.i.y[c]===void 0?u.i.y[0]:u.i.y[c],z=zo.getBezierEasing(K,mt,at,Q).get,I.__fnct[c]=z)):I.__fnct?z=I.__fnct:(K=u.o.x,mt=u.o.y,at=u.i.x,Q=u.i.y,z=zo.getBezierEasing(K,mt,at,Q).get,u.keyframeMetadata=z),L=z((t-_)/(w-_)))),g=k.s||u.e,ft=u.h===1?u.s[c]:u.s[c]+(g[c]-u.s[c])*L,this.propType==="multidimensional"?a[c]=ft:a=ft}return r.lastIndex=d,a}function Tu(t,r,i){var a=[],d=t[0],c=t[1],p=t[2],E=t[3],u=r[0],k=r[1],I=r[2],V=r[3],b,L,O,N,z;return L=d*u+c*k+p*I+E*V,L<0&&(L=-L,u=-u,k=-k,I=-I,V=-V),1-L>1e-6?(b=Math.acos(L),O=Math.sin(b),N=Math.sin((1-i)*b)/O,z=Math.sin(i*b)/O):(N=1-i,z=i),a[0]=N*d+z*u,a[1]=N*c+z*k,a[2]=N*p+z*I,a[3]=N*E+z*V,a}function Au(t,r){var i=r[0],a=r[1],d=r[2],c=r[3],p=Math.atan2(2*a*c-2*i*d,1-2*a*a-2*d*d),E=Math.asin(2*i*a+2*d*c),u=Math.atan2(2*i*c-2*a*d,1-2*i*i-2*d*d);t[0]=p/xt,t[1]=E/xt,t[2]=u/xt}function Wc(t){var r=t[0]*xt,i=t[1]*xt,a=t[2]*xt,d=Math.cos(r/2),c=Math.cos(i/2),p=Math.cos(a/2),E=Math.sin(r/2),u=Math.sin(i/2),k=Math.sin(a/2),I=d*c*p-E*u*k,V=E*u*p+d*c*k,b=E*c*p+d*u*k,L=d*u*p-E*c*k;return[V,b,L,I]}function qc(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==ai&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(t,this._caching);this.pv=a}return this._caching.lastFrame=t,this.pv}function qs(t){var r;if(this.propType==="unidimensional")r=t*this.mult,Gc(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,a=this.v.length;i<a;)r=t[i]*this.mult,Gc(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function Ys(){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 t,r=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<r;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Ks(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function _u(t,r,i,a){this.propType="unidimensional",this.mult=i||1,this.data=r,this.v=i?r.k*i:r.k,this.pv=r.k,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Ys,this.setVValue=qs,this.addEffect=Ks}function Su(t,r,i,a){this.propType="multidimensional",this.mult=i||1,this.data=r,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,c=r.k.length;for(this.v=J("float32",c),this.pv=J("float32",c),this.vel=J("float32",c),d=0;d<c;d+=1)this.v[d]=r.k[d]*this.mult,this.pv[d]=r.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Ys,this.setVValue=qs,this.addEffect=Ks}function ku(t,r,i,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:ai,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=ai,this.pv=ai,this._isFirstFrame=!0,this.getValue=Ys,this.setVValue=qs,this.interpolateValue=jc,this.effectsSequence=[qc.bind(this)],this.addEffect=Ks}function Cu(t,r,i,a){this.propType="multidimensional";var d,c=r.k.length,p,E,u,k;for(d=0;d<c-1;d+=1)r.k[d].to&&r.k[d].s&&r.k[d+1]&&r.k[d+1].s&&(p=r.k[d].s,E=r.k[d+1].s,u=r.k[d].to,k=r.k[d].ti,(p.length===2&&!(p[0]===E[0]&&p[1]===E[1])&&rr.pointOnLine2D(p[0],p[1],E[0],E[1],p[0]+u[0],p[1]+u[1])&&rr.pointOnLine2D(p[0],p[1],E[0],E[1],E[0]+k[0],E[1]+k[1])||p.length===3&&!(p[0]===E[0]&&p[1]===E[1]&&p[2]===E[2])&&rr.pointOnLine3D(p[0],p[1],p[2],E[0],E[1],E[2],p[0]+u[0],p[1]+u[1],p[2]+u[2])&&rr.pointOnLine3D(p[0],p[1],p[2],E[0],E[1],E[2],E[0]+k[0],E[1]+k[1],E[2]+k[2]))&&(r.k[d].to=null,r.k[d].ti=null),p[0]===E[0]&&p[1]===E[1]&&u[0]===0&&u[1]===0&&k[0]===0&&k[1]===0&&(p.length===2||p[2]===E[2]&&u[2]===0&&k[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[qc.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=Ys,this.setVValue=qs,this.interpolateValue=jc,this.frameId=-1;var I=r.k[0].s.length;for(this.v=J("float32",I),this.pv=J("float32",I),d=0;d<I;d+=1)this.v[d]=ai,this.pv[d]=ai;this._caching={lastFrame:ai,lastIndex:0,value:J("float32",I)},this.addEffect=Ks}var et=function(){function t(i,a,d,c,p){a.sid&&(a=i.globalData.slotManager.getProp(a));var E;if(!a.k.length)E=new _u(i,a,c,p);else if(typeof a.k[0]=="number")E=new Su(i,a,c,p);else switch(d){case 0:E=new ku(i,a,c,p);break;case 1:E=new Cu(i,a,c,p);break;default:break}return E.effectsSequence.length&&p.addDynamicProperty(E),E}var r={getProp:t};return r}();function Qt(){}Qt.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var ni=function(){function t(){return J("float32",2)}return Ws(8,t)}();function hr(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}hr.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var i=0;i<r;)this.v[i]=ni.newElement(),this.o[i]=ni.newElement(),this.i[i]=ni.newElement(),i+=1},hr.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},hr.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},hr.prototype.setXYAt=function(t,r,i,a,d){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!d)&&(c[a]=ni.newElement()),c[a][0]=t,c[a][1]=r},hr.prototype.setTripleAt=function(t,r,i,a,d,c,p,E){this.setXYAt(t,r,"v",p,E),this.setXYAt(i,a,"o",p,E),this.setXYAt(d,c,"i",p,E)},hr.prototype.reverse=function(){var t=new hr;t.setPathData(this.c,this._length);var r=this.v,i=this.o,a=this.i,d=0;this.c&&(t.setTripleAt(r[0][0],r[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),d=1);var c=this._length-1,p=this._length,E;for(E=d;E<p;E+=1)t.setTripleAt(r[c][0],r[c][1],a[c][0],a[c][1],i[c][0],i[c][1],E,!1),c-=1;return t},hr.prototype.length=function(){return this._length};var oe=function(){function t(){return new hr}function r(d){var c=d._length,p;for(p=0;p<c;p+=1)ni.release(d.v[p]),ni.release(d.i[p]),ni.release(d.o[p]),d.v[p]=null,d.i[p]=null,d.o[p]=null;d._length=0,d.c=!1}function i(d){var c=a.newElement(),p,E=d._length===void 0?d.v.length:d._length;for(c.setLength(E),c.c=d.c,p=0;p<E;p+=1)c.setTripleAt(d.v[p][0],d.v[p][1],d.o[p][0],d.o[p][1],d.i[p][0],d.i[p][1],p);return c}var a=Ws(4,t,r);return a.clone=i,a}();function Rn(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}Rn.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},Rn.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)oe.release(this.shapes[t]);this._length=0};var Wi=function(){var t={newShapeCollection:d,release:c},r=0,i=4,a=tt(i);function d(){var p;return r?(r-=1,p=a[r]):p=new Rn,p}function c(p){var E,u=p._length;for(E=0;E<u;E+=1)oe.release(p.shapes[E]);p._length=0,r===i&&(a=Bc.double(a),i*=2),a[r]=p,r+=1}return t}(),Xs=function(){var t=-999999;function r(w,_,g){var x=g.lastIndex,C,P,$,H,K,mt,at,Q,ft,ot=this.keyframes;if(w<ot[0].t-this.offsetTime)C=ot[0].s[0],$=!0,x=0;else if(w>=ot[ot.length-1].t-this.offsetTime)C=ot[ot.length-1].s?ot[ot.length-1].s[0]:ot[ot.length-2].e[0],$=!0;else{for(var Y=x,T=ot.length-1,R=!0,m,v,U;R&&(m=ot[Y],v=ot[Y+1],!(v.t-this.offsetTime>w));)Y<T-1?Y+=1:R=!1;if(U=this.keyframesMetadata[Y]||{},$=m.h===1,x=Y,!$){if(w>=v.t-this.offsetTime)Q=1;else if(w<m.t-this.offsetTime)Q=0;else{var D;U.__fnct?D=U.__fnct:(D=zo.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,U.__fnct=D),Q=D((w-(m.t-this.offsetTime))/(v.t-this.offsetTime-(m.t-this.offsetTime)))}P=v.s?v.s[0]:m.e[0]}C=m.s[0]}for(mt=_._length,at=C.i[0].length,g.lastIndex=x,H=0;H<mt;H+=1)for(K=0;K<at;K+=1)ft=$?C.i[H][K]:C.i[H][K]+(P.i[H][K]-C.i[H][K])*Q,_.i[H][K]=ft,ft=$?C.o[H][K]:C.o[H][K]+(P.o[H][K]-C.o[H][K])*Q,_.o[H][K]=ft,ft=$?C.v[H][K]:C.v[H][K]+(P.v[H][K]-C.v[H][K])*Q,_.v[H][K]=ft}function i(){var w=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,g=this.keyframes[this.keyframes.length-1].t-this.offsetTime,x=this._caching.lastFrame;return x!==t&&(x<_&&w<_||x>g&&w>g)||(this._caching.lastIndex=x<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function a(){this.paths=this.localShapeCollection}function d(w,_){if(w._length!==_._length||w.c!==_.c)return!1;var g,x=w._length;for(g=0;g<x;g+=1)if(w.v[g][0]!==_.v[g][0]||w.v[g][1]!==_.v[g][1]||w.o[g][0]!==_.o[g][0]||w.o[g][1]!==_.o[g][1]||w.i[g][0]!==_.i[g][0]||w.i[g][1]!==_.i[g][1])return!1;return!0}function c(w){d(this.v,w)||(this.v=oe.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function p(){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 w;this.kf?w=this.pv:this.data.ks?w=this.data.ks.k:w=this.data.pt.k;var _,g=this.effectsSequence.length;for(_=0;_<g;_+=1)w=this.effectsSequence[_](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function E(w,_,g){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=_,this.k=!1,this.kf=!1,this._mdf=!1;var x=g===3?_.pt.k:_.ks.k;this.v=oe.clone(x),this.pv=oe.clone(this.v),this.localShapeCollection=Wi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function u(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}E.prototype.interpolateShape=r,E.prototype.getValue=p,E.prototype.setVValue=c,E.prototype.addEffect=u;function k(w,_,g){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=g===3?_.pt.k:_.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var x=this.keyframes[0].s[0].i.length;this.v=oe.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,x),this.pv=oe.clone(this.v),this.localShapeCollection=Wi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=a,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}k.prototype.getValue=p,k.prototype.interpolateShape=r,k.prototype.setVValue=c,k.prototype.addEffect=u;var I=function(){var w=ce;function _(g,x){this.v=oe.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Wi.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=x.d,this.elem=g,this.comp=g.comp,this.frameId=-1,this.initDynamicPropertyContainer(g),this.p=et.getProp(g,x.p,1,0,this),this.s=et.getProp(g,x.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return _.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var x=this.p.v[0],C=this.p.v[1],P=this.s.v[0]/2,$=this.s.v[1]/2,H=this.d!==3,K=this.v;K.v[0][0]=x,K.v[0][1]=C-$,K.v[1][0]=H?x+P:x-P,K.v[1][1]=C,K.v[2][0]=x,K.v[2][1]=C+$,K.v[3][0]=H?x-P:x+P,K.v[3][1]=C,K.i[0][0]=H?x-P*w:x+P*w,K.i[0][1]=C-$,K.i[1][0]=H?x+P:x-P,K.i[1][1]=C-$*w,K.i[2][0]=H?x+P*w:x-P*w,K.i[2][1]=C+$,K.i[3][0]=H?x-P:x+P,K.i[3][1]=C+$*w,K.o[0][0]=H?x+P*w:x-P*w,K.o[0][1]=C-$,K.o[1][0]=H?x+P:x-P,K.o[1][1]=C+$*w,K.o[2][0]=H?x-P*w:x+P*w,K.o[2][1]=C+$,K.o[3][0]=H?x-P:x+P,K.o[3][1]=C-$*w}},B([Qt],_),_}(),V=function(){function w(_,g){this.v=oe.newElement(),this.v.setPathData(!0,0),this.elem=_,this.comp=_.comp,this.data=g,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(_),g.sy===1?(this.ir=et.getProp(_,g.ir,0,0,this),this.is=et.getProp(_,g.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=et.getProp(_,g.pt,0,0,this),this.p=et.getProp(_,g.p,1,0,this),this.r=et.getProp(_,g.r,0,xt,this),this.or=et.getProp(_,g.or,0,0,this),this.os=et.getProp(_,g.os,0,.01,this),this.localShapeCollection=Wi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return w.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var g=Math.floor(this.pt.v)*2,x=Math.PI*2/g,C=!0,P=this.or.v,$=this.ir.v,H=this.os.v,K=this.is.v,mt=2*Math.PI*P/(g*2),at=2*Math.PI*$/(g*2),Q,ft,ot,Y,T=-Math.PI/2;T+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,Q=0;Q<g;Q+=1){ft=C?P:$,ot=C?H:K,Y=C?mt:at;var m=ft*Math.cos(T),v=ft*Math.sin(T),U=m===0&&v===0?0:v/Math.sqrt(m*m+v*v),D=m===0&&v===0?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-U*Y*ot*R,v-D*Y*ot*R,m+U*Y*ot*R,v+D*Y*ot*R,Q,!0),C=!C,T+=x*R}},convertPolygonToPath:function(){var g=Math.floor(this.pt.v),x=Math.PI*2/g,C=this.or.v,P=this.os.v,$=2*Math.PI*C/(g*4),H,K=-Math.PI*.5,mt=this.data.d===3?-1:1;for(K+=this.r.v,this.v._length=0,H=0;H<g;H+=1){var at=C*Math.cos(K),Q=C*Math.sin(K),ft=at===0&&Q===0?0:Q/Math.sqrt(at*at+Q*Q),ot=at===0&&Q===0?0:-at/Math.sqrt(at*at+Q*Q);at+=+this.p.v[0],Q+=+this.p.v[1],this.v.setTripleAt(at,Q,at-ft*$*P*mt,Q-ot*$*P*mt,at+ft*$*P*mt,Q+ot*$*P*mt,H,!0),K+=x*mt}this.paths.length=0,this.paths[0]=this.v}},B([Qt],w),w}(),b=function(){function w(_,g){this.v=oe.newElement(),this.v.c=!0,this.localShapeCollection=Wi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=_,this.comp=_.comp,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(_),this.p=et.getProp(_,g.p,1,0,this),this.s=et.getProp(_,g.s,1,0,this),this.r=et.getProp(_,g.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return w.prototype={convertRectToPath:function(){var g=this.p.v[0],x=this.p.v[1],C=this.s.v[0]/2,P=this.s.v[1]/2,$=Ce(C,P,this.r.v),H=$*(1-ce);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(g+C,x-P+$,g+C,x-P+$,g+C,x-P+H,0,!0),this.v.setTripleAt(g+C,x+P-$,g+C,x+P-H,g+C,x+P-$,1,!0),$!==0?(this.v.setTripleAt(g+C-$,x+P,g+C-$,x+P,g+C-H,x+P,2,!0),this.v.setTripleAt(g-C+$,x+P,g-C+H,x+P,g-C+$,x+P,3,!0),this.v.setTripleAt(g-C,x+P-$,g-C,x+P-$,g-C,x+P-H,4,!0),this.v.setTripleAt(g-C,x-P+$,g-C,x-P+H,g-C,x-P+$,5,!0),this.v.setTripleAt(g-C+$,x-P,g-C+$,x-P,g-C+H,x-P,6,!0),this.v.setTripleAt(g+C-$,x-P,g+C-H,x-P,g+C-$,x-P,7,!0)):(this.v.setTripleAt(g-C,x+P,g-C+H,x+P,g-C,x+P,2),this.v.setTripleAt(g-C,x-P,g-C,x-P+H,g-C,x-P,3))):(this.v.setTripleAt(g+C,x-P+$,g+C,x-P+H,g+C,x-P+$,0,!0),$!==0?(this.v.setTripleAt(g+C-$,x-P,g+C-$,x-P,g+C-H,x-P,1,!0),this.v.setTripleAt(g-C+$,x-P,g-C+H,x-P,g-C+$,x-P,2,!0),this.v.setTripleAt(g-C,x-P+$,g-C,x-P+$,g-C,x-P+H,3,!0),this.v.setTripleAt(g-C,x+P-$,g-C,x+P-H,g-C,x+P-$,4,!0),this.v.setTripleAt(g-C+$,x+P,g-C+$,x+P,g-C+H,x+P,5,!0),this.v.setTripleAt(g+C-$,x+P,g+C-H,x+P,g+C-$,x+P,6,!0),this.v.setTripleAt(g+C,x+P-$,g+C,x+P-$,g+C,x+P-H,7,!0)):(this.v.setTripleAt(g-C,x-P,g-C+H,x-P,g-C,x-P,1,!0),this.v.setTripleAt(g-C,x+P,g-C,x+P-H,g-C,x+P,2,!0),this.v.setTripleAt(g+C,x+P,g+C-H,x+P,g+C,x+P,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},B([Qt],w),w}();function L(w,_,g){var x;if(g===3||g===4){var C=g===3?_.pt:_.ks,P=C.k;P.length?x=new k(w,_,g):x=new E(w,_,g)}else g===5?x=new b(w,_):g===6?x=new I(w,_):g===7&&(x=new V(w,_));return x.k&&w.addDynamicProperty(x),x}function O(){return E}function N(){return k}var z={};return z.getShapeProp=L,z.getConstructorFunction=O,z.getKeyframedConstructorFunction=N,z}();var se=function(){var t=Math.cos,r=Math.sin,i=Math.tan,a=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,-U,0,0,U,v,0,0,0,0,1,0,0,0,0,1)}function p(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(1,0,0,0,0,v,-U,0,0,U,v,0,0,0,0,1)}function E(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,0,U,0,0,1,0,0,-U,0,v,0,0,0,0,1)}function u(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,-U,0,0,U,v,0,0,0,0,1,0,0,0,0,1)}function k(m,v){return this._t(1,v,m,1,0,0)}function I(m,v){return this.shear(i(m),i(v))}function V(m,v){var U=t(v),D=r(v);return this._t(U,D,0,0,-D,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(m),1,0,0,0,0,1,0,0,0,0,1)._t(U,-D,0,0,D,U,0,0,0,0,1,0,0,0,0,1)}function b(m,v,U){return!U&&U!==0&&(U=1),m===1&&v===1&&U===1?this:this._t(m,0,0,0,0,v,0,0,0,0,U,0,0,0,0,1)}function L(m,v,U,D,rt,dt,pt,St,kt,Gt,be,or,ye,te,we,Lt){return this.props[0]=m,this.props[1]=v,this.props[2]=U,this.props[3]=D,this.props[4]=rt,this.props[5]=dt,this.props[6]=pt,this.props[7]=St,this.props[8]=kt,this.props[9]=Gt,this.props[10]=be,this.props[11]=or,this.props[12]=ye,this.props[13]=te,this.props[14]=we,this.props[15]=Lt,this}function O(m,v,U){return U=U||0,m!==0||v!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,m,v,U,1):this}function N(m,v,U,D,rt,dt,pt,St,kt,Gt,be,or,ye,te,we,Lt){var st=this.props;if(m===1&&v===0&&U===0&&D===0&&rt===0&&dt===1&&pt===0&&St===0&&kt===0&&Gt===0&&be===1&&or===0)return st[12]=st[12]*m+st[15]*ye,st[13]=st[13]*dt+st[15]*te,st[14]=st[14]*be+st[15]*we,st[15]*=Lt,this._identityCalculated=!1,this;var ur=st[0],Hr=st[1],fr=st[2],sr=st[3],vr=st[4],gr=st[5],Ee=st[6],Gr=st[7],jr=st[8],qe=st[9],Wr=st[10],Ye=st[11],hi=st[12],sa=st[13],aa=st[14],na=st[15];return st[0]=ur*m+Hr*rt+fr*kt+sr*ye,st[1]=ur*v+Hr*dt+fr*Gt+sr*te,st[2]=ur*U+Hr*pt+fr*be+sr*we,st[3]=ur*D+Hr*St+fr*or+sr*Lt,st[4]=vr*m+gr*rt+Ee*kt+Gr*ye,st[5]=vr*v+gr*dt+Ee*Gt+Gr*te,st[6]=vr*U+gr*pt+Ee*be+Gr*we,st[7]=vr*D+gr*St+Ee*or+Gr*Lt,st[8]=jr*m+qe*rt+Wr*kt+Ye*ye,st[9]=jr*v+qe*dt+Wr*Gt+Ye*te,st[10]=jr*U+qe*pt+Wr*be+Ye*we,st[11]=jr*D+qe*St+Wr*or+Ye*Lt,st[12]=hi*m+sa*rt+aa*kt+na*ye,st[13]=hi*v+sa*dt+aa*Gt+na*te,st[14]=hi*U+sa*pt+aa*be+na*we,st[15]=hi*D+sa*St+aa*or+na*Lt,this._identityCalculated=!1,this}function z(m){var v=m.props;return this.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15])}function w(){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 _(m){for(var v=0;v<16;){if(m.props[v]!==this.props[v])return!1;v+=1}return!0}function g(m){var v;for(v=0;v<16;v+=1)m.props[v]=this.props[v];return m}function x(m){var v;for(v=0;v<16;v+=1)this.props[v]=m[v]}function C(m,v,U){return{x:m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12],y:m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13],z:m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]}}function P(m,v,U){return m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12]}function $(m,v,U){return m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13]}function H(m,v,U){return m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]}function K(){var m=this.props[0]*this.props[5]-this.props[1]*this.props[4],v=this.props[5]/m,U=-this.props[1]/m,D=-this.props[4]/m,rt=this.props[0]/m,dt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/m,pt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/m,St=new se;return St.props[0]=v,St.props[1]=U,St.props[4]=D,St.props[5]=rt,St.props[12]=dt,St.props[13]=pt,St}function mt(m){var v=this.getInverseMatrix();return v.applyToPointArray(m[0],m[1],m[2]||0)}function at(m){var v,U=m.length,D=[];for(v=0;v<U;v+=1)D[v]=mt(m[v]);return D}function Q(m,v,U){var D=J("float32",6);if(this.isIdentity())D[0]=m[0],D[1]=m[1],D[2]=v[0],D[3]=v[1],D[4]=U[0],D[5]=U[1];else{var rt=this.props[0],dt=this.props[1],pt=this.props[4],St=this.props[5],kt=this.props[12],Gt=this.props[13];D[0]=m[0]*rt+m[1]*pt+kt,D[1]=m[0]*dt+m[1]*St+Gt,D[2]=v[0]*rt+v[1]*pt+kt,D[3]=v[0]*dt+v[1]*St+Gt,D[4]=U[0]*rt+U[1]*pt+kt,D[5]=U[0]*dt+U[1]*St+Gt}return D}function ft(m,v,U){var D;return this.isIdentity()?D=[m,v,U]:D=[m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12],m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13],m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]],D}function ot(m,v){if(this.isIdentity())return m+","+v;var U=this.props;return Math.round((m*U[0]+v*U[4]+U[12])*100)/100+","+Math.round((m*U[1]+v*U[5]+U[13])*100)/100}function Y(){for(var m=0,v=this.props,U="matrix3d(",D=1e4;m<16;)U+=a(v[m]*D)/D,U+=m===15?")":",",m+=1;return U}function T(m){var v=1e4;return m<1e-6&&m>0||m>-1e-6&&m<0?a(m*v)/v:m}function R(){var m=this.props,v=T(m[0]),U=T(m[1]),D=T(m[4]),rt=T(m[5]),dt=T(m[12]),pt=T(m[13]);return"matrix("+v+","+U+","+D+","+rt+","+dt+","+pt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=p,this.rotateY=E,this.rotateZ=u,this.skew=I,this.skewFromAxis=V,this.shear=k,this.scale=b,this.setTransform=L,this.translate=O,this.transform=N,this.multiply=z,this.applyToPoint=C,this.applyToX=P,this.applyToY=$,this.applyToZ=H,this.applyToPointArray=ft,this.applyToTriplePoints=Q,this.applyToPointStringified=ot,this.toCSS=Y,this.to2dCSS=R,this.clone=g,this.cloneFromProps=x,this.equals=_,this.inversePoints=at,this.inversePoint=mt,this.getInverseMatrix=K,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=J("float32",16),this.reset()}}();function Zs(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zs=function(i){return typeof i}:Zs=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Zs(t)}var wt={},Js="__[STANDALONE]__",Yc="__[ANIMATIONDATA]__",Kc="";function wu(t){f(t)}function Xc(){Js===!0?Ht.searchAnimations(Yc,Js,Kc):Ht.searchAnimations()}function Iu(t){hu(t)}function Lu(t){uu(t)}function Mu(t){return Js===!0&&(t.animationData=JSON.parse(Yc)),Ht.loadAnimation(t)}function Nu(t){if(typeof t=="string")switch(t){case"high":Gs(200);break;default:case"medium":Gs(50);break;case"low":Gs(10);break}else!isNaN(t)&&t>1&&Gs(t);Oo()>=50?Oe(!1):Oe(!0)}function Ru(){return typeof navigator<"u"}function Ou(t,r){t==="expressions"&&pu(r)}function Pu(t){switch(t){case"propertyFactory":return et;case"shapePropertyFactory":return Xs;case"matrix":return se;default:return null}}wt.play=Ht.play,wt.pause=Ht.pause,wt.setLocationHref=wu,wt.togglePause=Ht.togglePause,wt.setSpeed=Ht.setSpeed,wt.setDirection=Ht.setDirection,wt.stop=Ht.stop,wt.searchAnimations=Xc,wt.registerAnimation=Ht.registerAnimation,wt.loadAnimation=Mu,wt.setSubframeRendering=Iu,wt.resize=Ht.resize,wt.goToAndStop=Ht.goToAndStop,wt.destroy=Ht.destroy,wt.setQuality=Nu,wt.inBrowser=Ru,wt.installPlugin=Ou,wt.freeze=Ht.freeze,wt.unfreeze=Ht.unfreeze,wt.setVolume=Ht.setVolume,wt.mute=Ht.mute,wt.unmute=Ht.unmute,wt.getRegisteredAnimations=Ht.getRegisteredAnimations,wt.useWebWorker=n,wt.setIDPrefix=Lu,wt.__getFactory=Pu,wt.version="5.12.2";function Du(){document.readyState==="complete"&&(clearInterval($u),Xc())}function Fu(t){for(var r=Zc.split("&"),i=0;i<r.length;i+=1){var a=r[i].split("=");if(decodeURIComponent(a[0])==t)return decodeURIComponent(a[1])}return null}var Zc="";if(Js){var Jc=document.getElementsByTagName("script"),zu=Jc.length-1,Qc=Jc[zu]||{src:""};Zc=Qc.src?Qc.src.replace(/^[^\?]+\??/,""):"",Kc=Fu("renderer")}var $u=setInterval(Du,100);try{!((typeof Bs>"u"?"undefined":Zs(Bs))==="object"&&typeof In<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=wt)}catch{}var Fr=function(){var t={},r={};t.registerModifier=i,t.getModifier=a;function i(d,c){r[d]||(r[d]=c)}function a(d,c,p){return new r[d](c,p)}return t}();function De(){}De.prototype.initModifierProperties=function(){},De.prototype.addShapeToModifier=function(){},De.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:Wi.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},De.prototype.init=function(t,r){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r),this.frameId=s,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},De.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},B([Qt],De);function We(){}B([De],We),We.prototype.initModifierProperties=function(t,r){this.s=et.getProp(t,r.s,0,.01,this),this.e=et.getProp(t,r.e,0,.01,this),this.o=et.getProp(t,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},We.prototype.addShapeToModifier=function(t){t.pathsData=[]},We.prototype.calculateShapeEdges=function(t,r,i,a,d){var c=[];r<=1?c.push({s:t,e:r}):t>=1?c.push({s:t-1,e:r-1}):(c.push({s:t,e:1}),c.push({s:0,e:r-1}));var p=[],E,u=c.length,k;for(E=0;E<u;E+=1)if(k=c[E],!(k.e*d<a||k.s*d>a+i)){var I,V;k.s*d<=a?I=0:I=(k.s*d-a)/i,k.e*d>=a+i?V=1:V=(k.e*d-a)/i,p.push([I,V])}return p.length||p.push([0,0]),p},We.prototype.releasePathsData=function(t){var r,i=t.length;for(r=0;r<i;r+=1)Hc.release(t[r]);return t.length=0,t},We.prototype.processShapes=function(t){var r,i;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?r=1+a:this.s.v<0?r=0+a:r=this.s.v+a,this.e.v>1?i=1+a:this.e.v<0?i=0+a:i=this.e.v+a,r>i){var d=r;r=i,i=d}r=Math.round(r*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=r,this.eValue=i}else r=this.sValue,i=this.eValue;var c,p,E=this.shapes.length,u,k,I,V,b,L=0;if(i===r)for(p=0;p<E;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(i===1&&r===0||i===0&&r===1){if(this._mdf)for(p=0;p<E;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var O=[],N,z;for(p=0;p<E;p+=1)if(N=this.shapes[p],!N.shape._mdf&&!this._mdf&&!t&&this.m!==2)N.shape.paths=N.localShapeCollection;else{if(c=N.shape.paths,k=c._length,b=0,!N.shape._mdf&&N.pathsData.length)b=N.totalShapeLength;else{for(I=this.releasePathsData(N.pathsData),u=0;u<k;u+=1)V=rr.getSegmentsLength(c.shapes[u]),I.push(V),b+=V.totalLength;N.totalShapeLength=b,N.pathsData=I}L+=b,N.shape._mdf=!0}var w=r,_=i,g=0,x;for(p=E-1;p>=0;p-=1)if(N=this.shapes[p],N.shape._mdf){for(z=N.localShapeCollection,z.releaseShapes(),this.m===2&&E>1?(x=this.calculateShapeEdges(r,i,N.totalShapeLength,g,L),g+=N.totalShapeLength):x=[[w,_]],k=x.length,u=0;u<k;u+=1){w=x[u][0],_=x[u][1],O.length=0,_<=1?O.push({s:N.totalShapeLength*w,e:N.totalShapeLength*_}):w>=1?O.push({s:N.totalShapeLength*(w-1),e:N.totalShapeLength*(_-1)}):(O.push({s:N.totalShapeLength*w,e:N.totalShapeLength}),O.push({s:0,e:N.totalShapeLength*(_-1)}));var C=this.addShapes(N,O[0]);if(O[0].s!==O[0].e){if(O.length>1){var P=N.shape.paths.shapes[N.shape.paths._length-1];if(P.c){var $=C.pop();this.addPaths(C,z),C=this.addShapes(N,O[1],$)}else this.addPaths(C,z),C=this.addShapes(N,O[1])}this.addPaths(C,z)}}N.shape.paths=z}}},We.prototype.addPaths=function(t,r){var i,a=t.length;for(i=0;i<a;i+=1)r.addShape(t[i])},We.prototype.addSegment=function(t,r,i,a,d,c,p){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(i[0],i[1],"i",c+1),p&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},We.prototype.addSegmentFromArray=function(t,r,i,a){r.setXYAt(t[1],t[5],"o",i),r.setXYAt(t[2],t[6],"i",i+1),a&&r.setXYAt(t[0],t[4],"v",i),r.setXYAt(t[3],t[7],"v",i+1)},We.prototype.addShapes=function(t,r,i){var a=t.pathsData,d=t.shape.paths.shapes,c,p=t.shape.paths._length,E,u,k=0,I,V,b,L,O=[],N,z=!0;for(i?(V=i._length,N=i._length):(i=oe.newElement(),V=0,N=0),O.push(i),c=0;c<p;c+=1){for(b=a[c].lengths,i.c=d[c].c,u=d[c].c?b.length:b.length+1,E=1;E<u;E+=1)if(I=b[E-1],k+I.addedLength<r.s)k+=I.addedLength,i.c=!1;else if(k>r.e){i.c=!1;break}else r.s<=k&&r.e>=k+I.addedLength?(this.addSegment(d[c].v[E-1],d[c].o[E-1],d[c].i[E],d[c].v[E],i,V,z),z=!1):(L=rr.getNewSegment(d[c].v[E-1],d[c].v[E],d[c].o[E-1],d[c].i[E],(r.s-k)/I.addedLength,(r.e-k)/I.addedLength,b[E-1]),this.addSegmentFromArray(L,i,V,z),z=!1,i.c=!1),k+=I.addedLength,V+=1;if(d[c].c&&b.length){if(I=b[E-1],k<=r.e){var w=b[E-1].addedLength;r.s<=k&&r.e>=k+w?(this.addSegment(d[c].v[E-1],d[c].o[E-1],d[c].i[0],d[c].v[0],i,V,z),z=!1):(L=rr.getNewSegment(d[c].v[E-1],d[c].v[0],d[c].o[E-1],d[c].i[0],(r.s-k)/w,(r.e-k)/w,b[E-1]),this.addSegmentFromArray(L,i,V,z),z=!1,i.c=!1)}else i.c=!1;k+=I.addedLength,V+=1}if(i._length&&(i.setXYAt(i.v[N][0],i.v[N][1],"i",N),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),k>r.e)break;c<p-1&&(i=oe.newElement(),z=!0,O.push(i),V=0)}return O};function $o(){}B([De],$o),$o.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},$o.prototype.processPath=function(t,r){var i=r/100,a=[0,0],d=t._length,c=0;for(c=0;c<d;c+=1)a[0]+=t.v[c][0],a[1]+=t.v[c][1];a[0]/=d,a[1]/=d;var p=oe.newElement();p.c=t.c;var E,u,k,I,V,b;for(c=0;c<d;c+=1)E=t.v[c][0]+(a[0]-t.v[c][0])*i,u=t.v[c][1]+(a[1]-t.v[c][1])*i,k=t.o[c][0]+(a[0]-t.o[c][0])*-i,I=t.o[c][1]+(a[1]-t.o[c][1])*-i,V=t.i[c][0]+(a[0]-t.i[c][0])*-i,b=t.i[c][1]+(a[1]-t.i[c][1])*-i,p.setTripleAt(E,u,k,I,V,b,c);return p},$o.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amount.v;if(p!==0){var E,u;for(i=0;i<a;i+=1){if(E=this.shapes[i],u=E.localShapeCollection,!(!E.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),E.shape._mdf=!0,r=E.shape.paths.shapes,c=E.shape.paths._length,d=0;d<c;d+=1)u.addShape(this.processPath(r[d],p));E.shape.paths=E.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var On=function(){var t=[0,0];function r(u){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&u.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&u.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&u.skewFromAxis(-this.sk.v,this.sa.v),this.r?u.rotate(-this.r.v):u.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?u.translate(this.px.v,this.py.v,-this.pz.v):u.translate(this.px.v,this.py.v,0):u.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(u){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||u){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var I,V;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(I=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),V=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(I=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),V=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(I=this.p.pv,V=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){I=[],V=[];var b=this.px,L=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(I[0]=b.getValueAtTime((b.keyframes[0].t+.01)/k,0),I[1]=L.getValueAtTime((L.keyframes[0].t+.01)/k,0),V[0]=b.getValueAtTime(b.keyframes[0].t/k,0),V[1]=L.getValueAtTime(L.keyframes[0].t/k,0)):b._caching.lastFrame+b.offsetTime>=b.keyframes[b.keyframes.length-1].t?(I[0]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/k,0),I[1]=L.getValueAtTime(L.keyframes[L.keyframes.length-1].t/k,0),V[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/k,0),V[1]=L.getValueAtTime((L.keyframes[L.keyframes.length-1].t-.01)/k,0)):(I=[b.pv,L.pv],V[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/k,b.offsetTime),V[1]=L.getValueAtTime((L._caching.lastFrame+L.offsetTime-.01)/k,L.offsetTime))}else V=t,I=V;this.v.rotate(-Math.atan2(I[1]-V[1],I[0]-V[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 a(){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 d(){}function c(u){this._addDynamicProperty(u),this.elem.addDynamicProperty(u),this._isDirty=!0}function p(u,k,I){if(this.elem=u,this.frameId=-1,this.propType="transform",this.data=k,this.v=new se,this.pre=new se,this.appliedTransformations=0,this.initDynamicPropertyContainer(I||u),k.p&&k.p.s?(this.px=et.getProp(u,k.p.x,0,0,this),this.py=et.getProp(u,k.p.y,0,0,this),k.p.z&&(this.pz=et.getProp(u,k.p.z,0,0,this))):this.p=et.getProp(u,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=et.getProp(u,k.rx,0,xt,this),this.ry=et.getProp(u,k.ry,0,xt,this),this.rz=et.getProp(u,k.rz,0,xt,this),k.or.k[0].ti){var V,b=k.or.k.length;for(V=0;V<b;V+=1)k.or.k[V].to=null,k.or.k[V].ti=null}this.or=et.getProp(u,k.or,1,xt,this),this.or.sh=!0}else this.r=et.getProp(u,k.r||{k:0},0,xt,this);k.sk&&(this.sk=et.getProp(u,k.sk,0,xt,this),this.sa=et.getProp(u,k.sa,0,xt,this)),this.a=et.getProp(u,k.a||{k:[0,0,0]},1,0,this),this.s=et.getProp(u,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=et.getProp(u,k.o,0,.01,u):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:r,getValue:i,precalculateMatrix:a,autoOrient:d},B([Qt],p),p.prototype.addDynamicProperty=c,p.prototype._addDynamicProperty=Qt.prototype.addDynamicProperty;function E(u,k,I){return new p(u,k,I)}return{getTransformProperty:E}}();function ir(){}B([De],ir),ir.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=et.getProp(t,r.c,0,null,this),this.o=et.getProp(t,r.o,0,null,this),this.tr=On.getTransformProperty(t,r.tr,this),this.so=et.getProp(t,r.tr.so,0,.01,this),this.eo=et.getProp(t,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new se,this.rMatrix=new se,this.sMatrix=new se,this.tMatrix=new se,this.matrix=new se},ir.prototype.applyTransforms=function(t,r,i,a,d,c){var p=c?-1:1,E=a.s.v[0]+(1-a.s.v[0])*(1-d),u=a.s.v[1]+(1-a.s.v[1])*(1-d);t.translate(a.p.v[0]*p*d,a.p.v[1]*p*d,a.p.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.rotate(-a.r.v*p*d),r.translate(a.a.v[0],a.a.v[1],a.a.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.scale(c?1/E:E,c?1/u:u),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},ir.prototype.init=function(t,r,i,a){for(this.elem=t,this.arr=r,this.pos=i,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r[i]);i>0;)i-=1,this._elements.unshift(r[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ir.prototype.resetElements=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._processed=!1,t[r].ty==="gr"&&this.resetElements(t[r].it)},ir.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},ir.prototype.changeGroupRender=function(t,r){var i,a=t.length;for(i=0;i<a;i+=1)t[i]._render=r,t[i].ty==="gr"&&this.changeGroupRender(t[i].it,r)},ir.prototype.processShapes=function(t){var r,i,a,d,c,p=!1;if(this._mdf||t){var E=Math.ceil(this.c.v);if(this._groups.length<E){for(;this._groups.length<E;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.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,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}c=0;var k;for(a=0;a<=this._groups.length-1;a+=1){if(k=c<E,this._groups[a]._render=k,this.changeGroupRender(this._groups[a].it,k),!k){var I=this.elemsData[a].it,V=I[I.length-1];V.transform.op.v!==0?(V.transform.op._mdf=!0,V.transform.op.v=0):V.transform.op._mdf=!1}c+=1}this._currentCopies=E;var b=this.o.v,L=b%1,O=b>0?Math.floor(b):Math.ceil(b),N=this.pMatrix.props,z=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(b>0){for(;_<O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,L,!1),_+=L)}else if(b<0){for(;_>O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-L,!0),_-=L)}a=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var g,x;c;){if(r=this.elemsData[a].it,i=r[r.length-1].transform.mProps.v.props,x=i.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),_!==0){for((a!==0&&d===1||a!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),g=0;g<x;g+=1)i[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<x;g+=1)i[g]=this.matrix.props[g];_+=1,c-=1,a+=d}}else for(c=this._currentCopies,a=0,d=1;c;)r=this.elemsData[a].it,i=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,a+=d;return p},ir.prototype.addShape=function(){};function Vo(){}B([De],Vo),Vo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=et.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Vo.prototype.processPath=function(t,r){var i=oe.newElement();i.c=t.c;var a,d=t._length,c,p,E,u,k,I,V=0,b,L,O,N,z,w;for(a=0;a<d;a+=1)c=t.v[a],E=t.o[a],p=t.i[a],c[0]===E[0]&&c[1]===E[1]&&c[0]===p[0]&&c[1]===p[1]?(a===0||a===d-1)&&!t.c?(i.setTripleAt(c[0],c[1],E[0],E[1],p[0],p[1],V),V+=1):(a===0?u=t.v[d-1]:u=t.v[a-1],k=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),I=k?Math.min(k/2,r)/k:0,z=c[0]+(u[0]-c[0])*I,b=z,w=c[1]-(c[1]-u[1])*I,L=w,O=b-(b-c[0])*ce,N=L-(L-c[1])*ce,i.setTripleAt(b,L,O,N,z,w,V),V+=1,a===d-1?u=t.v[0]:u=t.v[a+1],k=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),I=k?Math.min(k/2,r)/k:0,O=c[0]+(u[0]-c[0])*I,b=O,N=c[1]+(u[1]-c[1])*I,L=N,z=b-(b-c[0])*ce,w=L-(L-c[1])*ce,i.setTripleAt(b,L,O,N,z,w,V),V+=1):(i.setTripleAt(t.v[a][0],t.v[a][1],t.o[a][0],t.o[a][1],t.i[a][0],t.i[a][1],V),V+=1);return i},Vo.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.rd.v;if(p!==0){var E,u;for(i=0;i<a;i+=1){if(E=this.shapes[i],u=E.localShapeCollection,!(!E.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),E.shape._mdf=!0,r=E.shape.paths.shapes,c=E.shape.paths._length,d=0;d<c;d+=1)u.addShape(this.processPath(r[d],p));E.shape.paths=E.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Qs(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function Pn(t){return Math.abs(t)<=1e-5}function td(t,r,i){return t*(1-i)+r*i}function zr(t,r,i){return[td(t[0],r[0],i),td(t[1],r[1],i)]}function Vu(t,r,i){if(t===0)return[];var a=r*r-4*t*i;if(a<0)return[];var d=-r/(2*t);if(a===0)return[d];var c=Math.sqrt(a)/(2*t);return[d-c,d+c]}function ed(t,r,i,a){return[-t+3*r-3*i+a,3*t-6*r+3*i,-3*t+3*r,t]}function rd(t){return new Dt(t,t,t,t,!1)}function Dt(t,r,i,a,d){d&&Yi(t,r)&&(r=zr(t,a,1/3)),d&&Yi(i,a)&&(i=zr(t,a,2/3));var c=ed(t[0],r[0],i[0],a[0]),p=ed(t[1],r[1],i[1],a[1]);this.a=[c[0],p[0]],this.b=[c[1],p[1]],this.c=[c[2],p[2]],this.d=[c[3],p[3]],this.points=[t,r,i,a]}Dt.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Dt.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Dt.prototype.tangentAngle=function(t){var r=this.derivative(t);return Math.atan2(r[1],r[0])},Dt.prototype.normalAngle=function(t){var r=this.derivative(t);return Math.atan2(r[0],r[1])},Dt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Pn(t))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var a=Math.sqrt(i);return Pn(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Dt.prototype.split=function(t){if(t<=0)return[rd(this.points[0]),this];if(t>=1)return[this,rd(this.points[this.points.length-1])];var r=zr(this.points[0],this.points[1],t),i=zr(this.points[1],this.points[2],t),a=zr(this.points[2],this.points[3],t),d=zr(r,i,t),c=zr(i,a,t),p=zr(d,c,t);return[new Dt(this.points[0],r,d,p,!0),new Dt(p,c,a,this.points[3],!0)]};function id(t,r){var i=t.points[0][r],a=t.points[t.points.length-1][r];if(i>a){var d=a;a=i,i=d}for(var c=Vu(3*t.a[r],2*t.b[r],t.c[r]),p=0;p<c.length;p+=1)if(c[p]>0&&c[p]<1){var E=t.point(c[p])[r];E<i?i=E:E>a&&(a=E)}return{min:i,max:a}}Dt.prototype.bounds=function(){return{x:id(this,0),y:id(this,1)}},Dt.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function ta(t,r,i){var a=t.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:t,t:(r+i)/2,t1:r,t2:i}}function od(t){var r=t.bez.split(.5);return[ta(r[0],t.t1,t.t),ta(r[1],t.t,t.t2)]}function Bu(t,r){return Math.abs(t.cx-r.cx)*2<t.width+r.width&&Math.abs(t.cy-r.cy)*2<t.height+r.height}function Bo(t,r,i,a,d,c){if(Bu(t,r)){if(i>=c||t.width<=a&&t.height<=a&&r.width<=a&&r.height<=a){d.push([t.t,r.t]);return}var p=od(t),E=od(r);Bo(p[0],E[0],i+1,a,d,c),Bo(p[0],E[1],i+1,a,d,c),Bo(p[1],E[0],i+1,a,d,c),Bo(p[1],E[1],i+1,a,d,c)}}Dt.prototype.intersections=function(t,r,i){r===void 0&&(r=2),i===void 0&&(i=7);var a=[];return Bo(ta(this,0,1),ta(t,0,1),0,r,a,i),a},Dt.shapeSegment=function(t,r){var i=(r+1)%t.length();return new Dt(t.v[r],t.o[r],t.i[i],t.v[i],!0)},Dt.shapeSegmentInverted=function(t,r){var i=(r+1)%t.length();return new Dt(t.v[i],t.i[i],t.o[r],t.v[r],!0)};function Dn(t,r){return[t[1]*r[2]-t[2]*r[1],t[2]*r[0]-t[0]*r[2],t[0]*r[1]-t[1]*r[0]]}function ea(t,r,i,a){var d=[t[0],t[1],1],c=[r[0],r[1],1],p=[i[0],i[1],1],E=[a[0],a[1],1],u=Dn(Dn(d,c),Dn(p,E));return Pn(u[2])?null:[u[0]/u[2],u[1]/u[2]]}function qi(t,r,i){return[t[0]+Math.cos(r)*i,t[1]-Math.sin(r)*i]}function Fn(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function Yi(t,r){return Qs(t[0],r[0])&&Qs(t[1],r[1])}function Uo(){}B([De],Uo),Uo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=et.getProp(t,r.s,0,null,this),this.frequency=et.getProp(t,r.r,0,null,this),this.pointsType=et.getProp(t,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function sd(t,r,i,a,d,c,p){var E=i-Math.PI/2,u=i+Math.PI/2,k=r[0]+Math.cos(i)*a*d,I=r[1]-Math.sin(i)*a*d;t.setTripleAt(k,I,k+Math.cos(E)*c,I-Math.sin(E)*c,k+Math.cos(u)*p,I-Math.sin(u)*p,t.length())}function Uu(t,r){var i=[r[0]-t[0],r[1]-t[1]],a=-Math.PI*.5,d=[Math.cos(a)*i[0]-Math.sin(a)*i[1],Math.sin(a)*i[0]+Math.cos(a)*i[1]];return d}function Hu(t,r){var i=r===0?t.length()-1:r-1,a=(r+1)%t.length(),d=t.v[i],c=t.v[a],p=Uu(d,c);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function ad(t,r,i,a,d,c,p){var E=Hu(r,i),u=r.v[i%r._length],k=r.v[i===0?r._length-1:i-1],I=r.v[(i+1)%r._length],V=c===2?Math.sqrt(Math.pow(u[0]-k[0],2)+Math.pow(u[1]-k[1],2)):0,b=c===2?Math.sqrt(Math.pow(u[0]-I[0],2)+Math.pow(u[1]-I[1],2)):0;sd(t,r.v[i%r._length],E,p,a,b/((d+1)*2),V/((d+1)*2),c)}function Gu(t,r,i,a,d,c){for(var p=0;p<a;p+=1){var E=(p+1)/(a+1),u=d===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,k=r.normalAngle(E),I=r.point(E);sd(t,I,k,c,i,u/((a+1)*2),u/((a+1)*2),d),c=-c}return c}Uo.prototype.processPath=function(t,r,i,a){var d=t._length,c=oe.newElement();if(c.c=t.c,t.c||(d-=1),d===0)return c;var p=-1,E=Dt.shapeSegment(t,0);ad(c,t,0,r,i,a,p);for(var u=0;u<d;u+=1)p=Gu(c,E,r,i,a,-p),u===d-1&&!t.c?E=null:E=Dt.shapeSegment(t,(u+1)%d),ad(c,t,u+1,r,i,a,p);return c},Uo.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amplitude.v,E=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(p!==0){var k,I;for(i=0;i<a;i+=1){if(k=this.shapes[i],I=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!t))for(I.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,d=0;d<c;d+=1)I.addShape(this.processPath(r[d],p,E,u));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function zn(t,r,i){var a=Math.atan2(r[0]-t[0],r[1]-t[1]);return[qi(t,a,i),qi(r,a,i)]}function Ki(t,r){var i,a,d,c,p,E,u;u=zn(t.points[0],t.points[1],r),i=u[0],a=u[1],u=zn(t.points[1],t.points[2],r),d=u[0],c=u[1],u=zn(t.points[2],t.points[3],r),p=u[0],E=u[1];var k=ea(i,a,d,c);k===null&&(k=a);var I=ea(p,E,d,c);return I===null&&(I=p),new Dt(i,k,I,E)}function nd(t,r,i,a,d){var c=r.points[3],p=i.points[0];if(a===3||Yi(c,p))return c;if(a===2){var E=-r.tangentAngle(1),u=-i.tangentAngle(0)+Math.PI,k=ea(c,qi(c,E+Math.PI/2,100),p,qi(p,E+Math.PI/2,100)),I=k?Fn(k,c):Fn(c,p)/2,V=qi(c,E,2*I*ce);return t.setXYAt(V[0],V[1],"o",t.length()-1),V=qi(p,u,2*I*ce),t.setTripleAt(p[0],p[1],p[0],p[1],V[0],V[1],t.length()),p}var b=Yi(c,r.points[2])?r.points[0]:r.points[2],L=Yi(p,i.points[1])?i.points[3]:i.points[1],O=ea(b,c,p,L);return O&&Fn(O,c)<d?(t.setTripleAt(O[0],O[1],O[0],O[1],O[0],O[1],t.length()),O):c}function ld(t,r){var i=t.intersections(r);return i.length&&Qs(i[0][0],1)&&i.shift(),i.length?i[0]:null}function cd(t,r){var i=t.slice(),a=r.slice(),d=ld(t[t.length-1],r[0]);return d&&(i[t.length-1]=t[t.length-1].split(d[0])[0],a[0]=r[0].split(d[1])[1]),t.length>1&&r.length>1&&(d=ld(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[i,a]}function ju(t){for(var r,i=1;i<t.length;i+=1)r=cd(t[i-1],t[i]),t[i-1]=r[0],t[i]=r[1];return t.length>1&&(r=cd(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function dd(t,r){var i=t.inflectionPoints(),a,d,c,p;if(i.length===0)return[Ki(t,r)];if(i.length===1||Qs(i[1],1))return c=t.split(i[0]),a=c[0],d=c[1],[Ki(a,r),Ki(d,r)];c=t.split(i[0]),a=c[0];var E=(i[1]-i[0])/(1-i[0]);return c=c[1].split(E),p=c[0],d=c[1],[Ki(a,r),Ki(p,r),Ki(d,r)]}function Ho(){}B([De],Ho),Ho.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this.miterLimit=et.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ho.prototype.processPath=function(t,r,i,a){var d=oe.newElement();d.c=t.c;var c=t.length();t.c||(c-=1);var p,E,u,k=[];for(p=0;p<c;p+=1)u=Dt.shapeSegment(t,p),k.push(dd(u,r));if(!t.c)for(p=c-1;p>=0;p-=1)u=Dt.shapeSegmentInverted(t,p),k.push(dd(u,r));k=ju(k);var I=null,V=null;for(p=0;p<k.length;p+=1){var b=k[p];for(V&&(I=nd(d,V,b[0],i,a)),V=b[b.length-1],E=0;E<b.length;E+=1)u=b[E],I&&Yi(u.points[0],I)?d.setXYAt(u.points[1][0],u.points[1][1],"o",d.length()-1):d.setTripleAt(u.points[0][0],u.points[0][1],u.points[1][0],u.points[1][1],u.points[0][0],u.points[0][1],d.length()),d.setTripleAt(u.points[3][0],u.points[3][1],u.points[3][0],u.points[3][1],u.points[2][0],u.points[2][1],d.length()),I=u.points[3]}return k.length&&nd(d,V,k[0][0],i,a),d},Ho.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amount.v,E=this.miterLimit.v,u=this.lineJoin;if(p!==0){var k,I;for(i=0;i<a;i+=1){if(k=this.shapes[i],I=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!t))for(I.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,d=0;d<c;d+=1)I.addShape(this.processPath(r[d],p,u,E));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function hd(t){for(var r=t.fStyle?t.fStyle.split(" "):[],i="normal",a="normal",d=r.length,c,p=0;p<d;p+=1)switch(c=r[p].toLowerCase(),c){case"italic":a="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break;default:break}return{style:a,weight:t.fWeight||i}}var li=function(){var t=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.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 a=127988,d=917631,c=917601,p=917626,E=65039,u=8205,k=127462,I=127487,V=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(T){var R=T.split(","),m,v=R.length,U=[];for(m=0;m<v;m+=1)R[m]!=="sans-serif"&&R[m]!=="monospace"&&U.push(R[m]);return U.join(",")}function L(T,R){var m=M("span");m.setAttribute("aria-hidden",!0),m.style.fontFamily=R;var v=M("span");v.innerText="giItT1WQy@!-/#",m.style.position="absolute",m.style.left="-10000px",m.style.top="-10000px",m.style.fontSize="300px",m.style.fontVariant="normal",m.style.fontStyle="normal",m.style.fontWeight="normal",m.style.letterSpacing="0",m.appendChild(v),document.body.appendChild(m);var U=v.offsetWidth;return v.style.fontFamily=b(T)+", "+R,{node:v,w:U,parent:m}}function O(){var T,R=this.fonts.length,m,v,U=R;for(T=0;T<R;T+=1)this.fonts[T].loaded?U-=1:this.fonts[T].fOrigin==="n"||this.fonts[T].origin===0?this.fonts[T].loaded=!0:(m=this.fonts[T].monoCase.node,v=this.fonts[T].monoCase.w,m.offsetWidth!==v?(U-=1,this.fonts[T].loaded=!0):(m=this.fonts[T].sansCase.node,v=this.fonts[T].sansCase.w,m.offsetWidth!==v&&(U-=1,this.fonts[T].loaded=!0)),this.fonts[T].loaded&&(this.fonts[T].sansCase.parent.parentNode.removeChild(this.fonts[T].sansCase.parent),this.fonts[T].monoCase.parent.parentNode.removeChild(this.fonts[T].monoCase.parent)));U!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function N(T,R){var m=document.body&&R?"svg":"canvas",v,U=hd(T);if(m==="svg"){var D=ut("text");D.style.fontSize="100px",D.setAttribute("font-family",T.fFamily),D.setAttribute("font-style",U.style),D.setAttribute("font-weight",U.weight),D.textContent="1",T.fClass?(D.style.fontFamily="inherit",D.setAttribute("class",T.fClass)):D.style.fontFamily=T.fFamily,R.appendChild(D),v=D}else{var rt=new OffscreenCanvas(500,500).getContext("2d");rt.font=U.style+" "+U.weight+" 100px "+T.fFamily,v=rt}function dt(pt){return m==="svg"?(v.textContent=pt,v.getComputedTextLength()):v.measureText(pt).width}return{measureText:dt}}function z(T,R){if(!T){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=T.list;return}if(!document.body){this.isLoaded=!0,T.list.forEach(function(be){be.helper=N(be),be.cache={}}),this.fonts=T.list;return}var m=T.list,v,U=m.length,D=U;for(v=0;v<U;v+=1){var rt=!0,dt,pt;if(m[v].loaded=!1,m[v].monoCase=L(m[v].fFamily,"monospace"),m[v].sansCase=L(m[v].fFamily,"sans-serif"),!m[v].fPath)m[v].loaded=!0,D-=1;else if(m[v].fOrigin==="p"||m[v].origin===3){if(dt=document.querySelectorAll('style[f-forigin="p"][f-family="'+m[v].fFamily+'"], style[f-origin="3"][f-family="'+m[v].fFamily+'"]'),dt.length>0&&(rt=!1),rt){var St=M("style");St.setAttribute("f-forigin",m[v].fOrigin),St.setAttribute("f-origin",m[v].origin),St.setAttribute("f-family",m[v].fFamily),St.type="text/css",St.innerText="@font-face {font-family: "+m[v].fFamily+"; font-style: normal; src: url('"+m[v].fPath+"');}",R.appendChild(St)}}else if(m[v].fOrigin==="g"||m[v].origin===1){for(dt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),pt=0;pt<dt.length;pt+=1)dt[pt].href.indexOf(m[v].fPath)!==-1&&(rt=!1);if(rt){var kt=M("link");kt.setAttribute("f-forigin",m[v].fOrigin),kt.setAttribute("f-origin",m[v].origin),kt.type="text/css",kt.rel="stylesheet",kt.href=m[v].fPath,document.body.appendChild(kt)}}else if(m[v].fOrigin==="t"||m[v].origin===2){for(dt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),pt=0;pt<dt.length;pt+=1)m[v].fPath===dt[pt].src&&(rt=!1);if(rt){var Gt=M("link");Gt.setAttribute("f-forigin",m[v].fOrigin),Gt.setAttribute("f-origin",m[v].origin),Gt.setAttribute("rel","stylesheet"),Gt.setAttribute("href",m[v].fPath),R.appendChild(Gt)}}m[v].helper=N(m[v],R),m[v].cache={},this.fonts.push(m[v])}D===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function w(T){if(T){this.chars||(this.chars=[]);var R,m=T.length,v,U=this.chars.length,D;for(R=0;R<m;R+=1){for(v=0,D=!1;v<U;)this.chars[v].style===T[R].style&&this.chars[v].fFamily===T[R].fFamily&&this.chars[v].ch===T[R].ch&&(D=!0),v+=1;D||(this.chars.push(T[R]),U+=1)}}}function _(T,R,m){for(var v=0,U=this.chars.length;v<U;){if(this.chars[v].ch===T&&this.chars[v].style===R&&this.chars[v].fFamily===m)return this.chars[v];v+=1}return(typeof T=="string"&&T.charCodeAt(0)!==13||!T)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",T,R,m)),r}function g(T,R,m){var v=this.getFontByName(R),U=T;if(!v.cache[U]){var D=v.helper;if(T===" "){var rt=D.measureText("|"+T+"|"),dt=D.measureText("||");v.cache[U]=(rt-dt)/100}else v.cache[U]=D.measureText(T)/100}return v.cache[U]*m}function x(T){for(var R=0,m=this.fonts.length;R<m;){if(this.fonts[R].fName===T)return this.fonts[R];R+=1}return this.fonts[0]}function C(T){var R=0,m=T.charCodeAt(0);if(m>=55296&&m<=56319){var v=T.charCodeAt(1);v>=56320&&v<=57343&&(R=(m-55296)*1024+v-56320+65536)}return R}function P(T,R){var m=T.toString(16)+R.toString(16);return V.indexOf(m)!==-1}function $(T){return T===u}function H(T){return T===E}function K(T){var R=C(T);return R>=k&&R<=I}function mt(T){return K(T.substr(0,2))&&K(T.substr(2,2))}function at(T){return i.indexOf(T)!==-1}function Q(T,R){var m=C(T.substr(R,2));if(m!==a)return!1;var v=0;for(R+=2;v<5;){if(m=C(T.substr(R,2)),m<c||m>p)return!1;v+=1,R+=2}return C(T.substr(R,2))===d}function ft(){this.isLoaded=!0}var ot=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)};ot.isModifier=P,ot.isZeroWidthJoiner=$,ot.isFlagEmoji=mt,ot.isRegionalCode=K,ot.isCombinedCharacter=at,ot.isRegionalFlag=Q,ot.isVariationSelector=H,ot.BLACK_FLAG_CODE_POINT=a;var Y={addChars:w,addFonts:z,getCharData:_,getFontByName:x,measureText:g,checkLoadedFonts:O,setIsLoaded:ft};return ot.prototype=Y,ot}();function md(t){this.animationData=t}md.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function Wu(t){return new md(t)}function ra(){}ra.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,i=this.renderableComponents.length;for(r=0;r<i;r+=1)this.renderableComponents[r].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 $n=function(){var t={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(r){return t[r]||""}}();function qu(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Yu(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Ku(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function Xu(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function Zu(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Ju(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Qu(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function tf(){this.p={}}function pd(t,r){var i=t.ef||[];this.effectElements=[];var a,d=i.length,c;for(a=0;a<d;a+=1)c=new Go(i[a],r),this.effectElements.push(c)}function Go(t,r){this.init(t,r)}B([Qt],Go),Go.prototype.getValue=Go.prototype.iterateDynamicProperties,Go.prototype.init=function(t,r){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(r);var i,a=this.data.ef.length,d,c=this.data.ef;for(i=0;i<a;i+=1){switch(d=null,c[i].ty){case 0:d=new qu(c[i],r,this);break;case 1:d=new Yu(c[i],r,this);break;case 2:d=new Ku(c[i],r,this);break;case 3:d=new Xu(c[i],r,this);break;case 4:case 7:d=new Qu(c[i],r,this);break;case 10:d=new Zu(c[i],r,this);break;case 11:d=new Ju(c[i],r,this);break;case 5:d=new pd(c[i],r,this);break;default:d=new tf(c[i],r,this);break}d&&this.effectElements.push(d)}};function $r(){}$r.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,i=this.data.masksProperties.length;r<i;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=$c();if(r){var i=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),p=r("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var E=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(E),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=$n(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=r},initBaseData:function(r,i,a){this.globalData=i,this.comp=a,this.data=r,this.layerId=ve(),this.data.sr||(this.data.sr=1),this.effectsManager=new pd(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Vr(){}Vr.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,i){var a,d=this.dynamicProperties.length;for(a=0;a<d;a+=1)(i||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function Br(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(t,r,i)}Br.prototype.prepareFrame=function(){},B([ra,$r,Vr],Br),Br.prototype.getBaseElement=function(){return null},Br.prototype.renderFrame=function(){},Br.prototype.destroy=function(){},Br.prototype.initExpressions=function(){var t=$c();if(t){var r=t("footage");this.layerInterface=r(this)}},Br.prototype.getFootageData=function(){return this.footageData};function ge(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.initBaseData(t,r,i),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=et.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}ge.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},B([ra,$r,Vr],ge),ge.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))},ge.prototype.show=function(){},ge.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ge.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ge.prototype.resume=function(){this._canPlay=!0},ge.prototype.setRate=function(t){this.audio.rate(t)},ge.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},ge.prototype.getBaseElement=function(){return null},ge.prototype.destroy=function(){},ge.prototype.sourceRectAtTime=function(){},ge.prototype.initExpressions=function(){};function ae(){}ae.prototype.checkLayers=function(t){var r,i=this.layers.length,a;for(this.completeLayers=!0,r=i-1;r>=0;r-=1)this.elements[r]||(a=this.layers[r],a.ip-a.st<=t-this.layers[r].st&&a.op-a.st>t-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ae.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},ae.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ae.prototype.createAudio=function(t){return new ge(t,this.globalData,this)},ae.prototype.createFootage=function(t){return new Br(t,this.globalData,this)},ae.prototype.buildAllItems=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.buildItem(t);this.checkPendingElements()},ae.prototype.includeLayers=function(t){this.completeLayers=!1;var r,i=t.length,a,d=this.layers.length;for(r=0;r<i;r+=1)for(a=0;a<d;){if(this.layers[a].id===t[r].id){this.layers[a]=t[r];break}a+=1}},ae.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},ae.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ae.prototype.buildElementParenting=function(t,r,i){for(var a=this.elements,d=this.layers,c=0,p=d.length;c<p;)d[c].ind==r&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(t)):(i.push(a[c]),a[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(t,d[c].parent,i):t.setHierarchy(i))),c+=1},ae.prototype.addPendingElement=function(t){this.pendingElements.push(t)},ae.prototype.searchExtraCompositions=function(t){var r,i=t.length;for(r=0;r<i;r+=1)if(t[r].xt){var a=this.createComp(t[r]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},ae.prototype.getElementById=function(t){var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.ind===t)return this.elements[r];return null},ae.prototype.getElementByPath=function(t){var r=t.shift(),i;if(typeof r=="number")i=this.elements[r];else{var a,d=this.elements.length;for(a=0;a<d;a+=1)if(this.elements[a].data.nm===r){i=this.elements[a];break}}return t.length===0?i:i.getElementByPath(t)},ae.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new li,this.globalData.slotManager=Wu(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,r),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var ef={TRANSFORM_EFFECT:"transformEFfect"};function Xi(){}Xi.prototype={initTransform:function(){var r=new se;this.finalTransform={mProp:this.data.ks?On.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,i=this.finalTransform.mat,a=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<d;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,i.cloneFromProps(r),a=0;a<d;a+=1)i.multiply(this.hierarchy[a].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 r=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<i;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),r=1;r<i;r+=1){var d=this.localTransforms[r].matrix;a.multiply(d)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<i;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(ef.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new se;var i=0,a=r.length;for(i=0;i<a;i+=1)this.localTransforms.push(r[i])}}},globalToLocal:function(r){var i=[];i.push(this.finalTransform);for(var a=!0,d=this.comp;a;)d.finalTransform?(d.data.hasMask&&i.splice(0,0,d.finalTransform),d=d.comp):a=!1;var c,p=i.length,E;for(c=0;c<p;c+=1)E=i[c].mat.applyToPointArray(0,0,0),r=[r[0]-E[0],r[1]-E[1],0];return r},mHelper:new se};function ci(t,r,i){this.data=t,this.element=r,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(c),this.solidPath="";var p,E=this.masksProperties,u=0,k=[],I,V,b=ve(),L,O,N,z,w="clipPath",_="clip-path";for(d=0;d<c;d+=1)if((E[d].mode!=="a"&&E[d].mode!=="n"||E[d].inv||E[d].o.k!==100||E[d].o.x)&&(w="mask",_="mask"),(E[d].mode==="s"||E[d].mode==="i")&&u===0?(L=ut("rect"),L.setAttribute("fill","#ffffff"),L.setAttribute("width",this.element.comp.data.w||0),L.setAttribute("height",this.element.comp.data.h||0),k.push(L)):L=null,p=ut("path"),E[d].mode==="n")this.viewData[d]={op:et.getProp(this.element,E[d].o,0,.01,this.element),prop:Xs.getShapeProp(this.element,E[d],3),elem:p,lastPath:""},a.appendChild(p);else{u+=1,p.setAttribute("fill",E[d].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var g;if(E[d].x.k!==0?(w="mask",_="mask",z=et.getProp(this.element,E[d].x,0,null,this.element),g=ve(),O=ut("filter"),O.setAttribute("id",g),N=ut("feMorphology"),N.setAttribute("operator","erode"),N.setAttribute("in","SourceGraphic"),N.setAttribute("radius","0"),O.appendChild(N),a.appendChild(O),p.setAttribute("stroke",E[d].mode==="s"?"#000000":"#ffffff")):(N=null,z=null),this.storedData[d]={elem:p,x:z,expan:N,lastPath:"",lastOperator:"",filterId:g,lastRadius:0},E[d].mode==="i"){V=k.length;var x=ut("g");for(I=0;I<V;I+=1)x.appendChild(k[I]);var C=ut("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",b+"_"+u),C.appendChild(p),a.appendChild(C),x.setAttribute("mask","url("+S()+"#"+b+"_"+u+")"),k.length=0,k.push(x)}else k.push(p);E[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:p,lastPath:"",op:et.getProp(this.element,E[d].o,0,.01,this.element),prop:Xs.getShapeProp(this.element,E[d],3),invRect:L},this.viewData[d].prop.k||this.drawPath(E[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=ut(w),c=k.length,d=0;d<c;d+=1)this.maskElement.appendChild(k[d]);u>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(_,"url("+S()+"#"+b+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}ci.prototype.getMaskProperty=function(t){return this.viewData[t].prop},ci.prototype.renderFrame=function(t){var r=this.element.finalTransform.mat,i,a=this.masksProperties.length;for(i=0;i<a;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var d=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+S()+"#"+this.storedData[i].filterId+")")),d.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},ci.prototype.getMaskelement=function(){return this.maskElement},ci.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},ci.prototype.drawPath=function(t,r,i){var a=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)a+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[d][0]+","+r.i[d][1]+" "+r.v[d][0]+","+r.v[d][1];if(r.c&&c>1&&(a+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),i.lastPath!==a){var p="";i.elem&&(r.c&&(p=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",p)),i.lastPath=a}},ci.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var jo=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=i;function r(a,d){var c=ut("filter");return c.setAttribute("id",a),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var a=ut("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return t}(),ud=function(){var t={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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),ia={},fd="filter_result_";function Vn(t){var r,i="SourceGraphic",a=t.data.ef?t.data.ef.length:0,d=ve(),c=jo.createFilter(d,!0),p=0;this.filters=[];var E;for(r=0;r<a;r+=1){E=null;var u=t.data.ef[r].ty;if(ia[u]){var k=ia[u].effect;E=new k(c,t.effectsManager.effectElements[r],t,fd+p,i),i=fd+p,ia[u].countsAsEffect&&(p+=1)}E&&this.filters.push(E)}p&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+S()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}Vn.prototype.renderFrame=function(t){var r,i=this.filters.length;for(r=0;r<i;r+=1)this.filters[r].renderFrame(t)},Vn.prototype.getEffects=function(t){var r,i=this.filters.length,a=[];for(r=0;r<i;r+=1)this.filters[r].type===t&&a.push(this.filters[r]);return a};function Sb(t,r,i){ia[t]={effect:r,countsAsEffect:i}}function Wo(){}Wo.prototype={initRendererElement:function(){this.layerElement=ut("g")},createContainerElements:function(){this.matteElement=ut("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var i=ut("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),r=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=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 a=ut("clipPath"),d=ut("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=ve();if(a.setAttribute("id",c),a.appendChild(d),this.globalData.defs.appendChild(a),this.checkMasks()){var p=ut("g");p.setAttribute("clip-path","url("+S()+"#"+c+")"),p.appendChild(this.layerElement),this.transformedElement=p,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+S()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new ci(this.data,this,this.globalData),this.renderableEffectsManager=new Vn(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var i=this.layerId+"_"+r,a,d,c,p;if(r===1||r===3){var E=ut("mask");E.setAttribute("id",i),E.setAttribute("mask-type",r===3?"luminance":"alpha"),c=ut("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),E.appendChild(c),this.globalData.defs.appendChild(E),!ud.maskType&&r===1&&(E.setAttribute("mask-type","luminance"),a=ve(),d=jo.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(jo.createAlphaToLuminanceFilter()),p=ut("g"),p.appendChild(c),E.appendChild(p),p.setAttribute("filter","url("+S()+"#"+a+")"))}else if(r===2){var u=ut("mask");u.setAttribute("id",i),u.setAttribute("mask-type","alpha");var k=ut("g");u.appendChild(k),a=ve(),d=jo.createFilter(a);var I=ut("feComponentTransfer");I.setAttribute("in","SourceGraphic"),d.appendChild(I);var V=ut("feFuncA");V.setAttribute("type","table"),V.setAttribute("tableValues","1.0 0.0"),I.appendChild(V),this.globalData.defs.appendChild(d);var b=ut("rect");b.setAttribute("width",this.comp.data.w),b.setAttribute("height",this.comp.data.h),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("fill","#ffffff"),b.setAttribute("opacity","0"),k.setAttribute("filter","url("+S()+"#"+a+")"),k.appendChild(b),c=ut("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(c),ud.maskType||(u.setAttribute("mask-type","luminance"),d.appendChild(jo.createAlphaToLuminanceFilter()),p=ut("g"),k.appendChild(b),p.appendChild(this.layerElement),k.appendChild(p)),this.globalData.defs.appendChild(u)}this.matteMasks[r]=i}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+S()+"#"+r+")")}};function Zi(){}Zi.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function qo(){}(function(){var t={initElement:function(i,a,d){this.initFrame(),this.initBaseData(i,a,d),this.initTransform(i,a,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.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(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};B([ra,q(t)],qo)})();function Yo(t,r,i){this.assetData=r.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(t,r,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}B([$r,Xi,Wo,Zi,Vr,qo],Yo),Yo.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=ut("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",t),this.layerElement.appendChild(this.innerElem)},Yo.prototype.sourceRectAtTime=function(){return this.sourceRect};function rf(t,r){this.elem=t,this.pos=r}function vd(){}vd.prototype={addShapeToModifiers:function(r){var i,a=this.shapeModifiers.length;for(i=0;i<a;i+=1)this.shapeModifiers[i].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var i=0,a=this.shapeModifiers.length;i<a;)if(this.shapeModifiers[i].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,i=this.shapes.length;for(r=0;r<i;r+=1)this.shapes[r].sh.reset();i=this.shapeModifiers.length;var a;for(r=i-1;r>=0&&(a=this.shapeModifiers[r].processShapes(this._isFirstFrame),!a);r-=1);}},searchProcessedElement:function(r){for(var i=this.processedElements,a=0,d=i.length;a<d;){if(i[a].elem===r)return i[a].pos;a+=1}return 0},addProcessedElement:function(r,i){for(var a=this.processedElements,d=a.length;d;)if(d-=1,a[d].elem===r){a[d].pos=i;return}a.push(new rf(r,i))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var gd={1:"butt",2:"round",3:"square"},bd={1:"miter",2:"round",3:"bevel"};function yd(t,r,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=r,this._isAnimated=!!i.k;for(var a=0,d=t.length;a<d;){if(t[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}yd.prototype.setAsAnimated=function(){this._isAnimated=!0};function Ed(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=ut("path"),this.msElem=null}Ed.prototype.reset=function(){this.d="",this._mdf=!1};function oa(t,r,i,a){this.elem=t,this.frameId=-1,this.dataProps=tt(r.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=J("float32",r.length?r.length-1:0),this.dashoffset=J("float32",1),this.initDynamicPropertyContainer(a);var d,c=r.length||0,p;for(d=0;d<c;d+=1)p=et.getProp(t,r[d].v,0,0,this),this.k=p.k||this.k,this.dataProps[d]={n:r[d].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}oa.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var r=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<i;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},B([Qt],oa);function xd(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.w=et.getProp(t,r.w,0,null,this),this.d=new oa(t,r.d||{},"svg",this),this.c=et.getProp(t,r.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}B([Qt],xd);function Td(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.c=et.getProp(t,r.c,1,255,this),this.style=i}B([Qt],Td);function Ad(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}B([Qt],Ad);function Ko(t,r,i){this.data=r,this.c=J("uint8c",r.p*4);var a=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=J("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=et.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ko.prototype.comparePoints=function(t,r){for(var i=0,a=this.o.length/2,d;i<a;){if(d=Math.abs(t[i*4]-t[r*4+i*2]),d>.01)return!1;i+=1}return!0},Ko.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,r=this.data.k.k.length;t<r;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ko.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var r,i=this.data.p*4,a,d;for(r=0;r<i;r+=1)a=r%4===0?100:255,d=Math.round(this.prop.v[r]*a),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,r=this.data.p*4;r<i;r+=1)a=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!t);this._mdf=!t}},B([Qt],Ko);function Ji(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,i)}Ji.prototype.initGradientData=function(t,r,i){this.o=et.getProp(t,r.o,0,.01,this),this.s=et.getProp(t,r.s,1,null,this),this.e=et.getProp(t,r.e,1,null,this),this.h=et.getProp(t,r.h||{k:0},0,.01,this),this.a=et.getProp(t,r.a||{k:0},0,xt,this),this.g=new Ko(t,r.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,r),this.setGradientOpacity(r,i),this._isAnimated=!!this._isAnimated},Ji.prototype.setGradientData=function(t,r){var i=ve(),a=ut(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,p,E;for(E=r.g.p*4,p=0;p<E;p+=4)c=ut("stop"),a.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+S()+"#"+i+")"),this.gf=a,this.cst=d},Ji.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,d,c=ut("mask"),p=ut("path");c.appendChild(p);var E=ve(),u=ve();c.setAttribute("id",u);var k=ut(t.t===1?"linearGradient":"radialGradient");k.setAttribute("id",E),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),d=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var I=this.stops;for(a=t.g.p*4;a<d;a+=2)i=ut("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(i),I.push(i);p.setAttribute(t.ty==="gf"?"fill":"stroke","url("+S()+"#"+E+")"),t.ty==="gs"&&(p.setAttribute("stroke-linecap",gd[t.lc||2]),p.setAttribute("stroke-linejoin",bd[t.lj||2]),t.lj===1&&p.setAttribute("stroke-miterlimit",t.ml)),this.of=k,this.ms=c,this.ost=I,this.maskId=u,r.msElem=p}},B([Qt],Ji);function _d(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=et.getProp(t,r.w,0,null,this),this.d=new oa(t,r.d||{},"svg",this),this.initGradientData(t,r,i),this._isAnimated=!!this._isAnimated}B([Ji,Qt],_d);function of(){this.it=[],this.prevViewData=[],this.gr=ut("g")}function sf(t,r,i){this.transform={mProps:t,op:r,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Sd=function(r,i,a,d){if(i===0)return"";var c=r.o,p=r.i,E=r.v,u,k=" M"+d.applyToPointStringified(E[0][0],E[0][1]);for(u=1;u<i;u+=1)k+=" C"+d.applyToPointStringified(c[u-1][0],c[u-1][1])+" "+d.applyToPointStringified(p[u][0],p[u][1])+" "+d.applyToPointStringified(E[u][0],E[u][1]);return a&&i&&(k+=" C"+d.applyToPointStringified(c[u-1][0],c[u-1][1])+" "+d.applyToPointStringified(p[0][0],p[0][1])+" "+d.applyToPointStringified(E[0][0],E[0][1]),k+="z"),k},af=function(){var t=new se,r=new se,i={createRenderFunction:a};function a(V){switch(V.ty){case"fl":return E;case"gf":return k;case"gs":return u;case"st":return I;case"sh":case"el":case"rc":case"sr":return p;case"tr":return d;case"no":return c;default:return null}}function d(V,b,L){(L||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(L||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function c(){}function p(V,b,L){var O,N,z,w,_,g,x=b.styles.length,C=b.lvl,P,$,H,K;for(g=0;g<x;g+=1){if(w=b.sh._mdf||L,b.styles[g].lvl<C){for($=r.reset(),H=C-b.styles[g].lvl,K=b.transformers.length-1;!w&&H>0;)w=b.transformers[K].mProps._mdf||w,H-=1,K-=1;if(w)for(H=C-b.styles[g].lvl,K=b.transformers.length-1;H>0;)$.multiply(b.transformers[K].mProps.v),H-=1,K-=1}else $=t;if(P=b.sh.paths,N=P._length,w){for(z="",O=0;O<N;O+=1)_=P.shapes[O],_&&_._length&&(z+=Sd(_,_._length,_.c,$));b.caches[g]=z}else z=b.caches[g];b.styles[g].d+=V.hd===!0?"":z,b.styles[g]._mdf=w||b.styles[g]._mdf}}function E(V,b,L){var O=b.style;(b.c._mdf||L)&&O.pElem.setAttribute("fill","rgb("+Jt(b.c.v[0])+","+Jt(b.c.v[1])+","+Jt(b.c.v[2])+")"),(b.o._mdf||L)&&O.pElem.setAttribute("fill-opacity",b.o.v)}function u(V,b,L){k(V,b,L),I(V,b,L)}function k(V,b,L){var O=b.gf,N=b.g._hasOpacity,z=b.s.v,w=b.e.v;if(b.o._mdf||L){var _=V.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(_,b.o.v)}if(b.s._mdf||L){var g=V.t===1?"x1":"cx",x=g==="x1"?"y1":"cy";O.setAttribute(g,z[0]),O.setAttribute(x,z[1]),N&&!b.g._collapsable&&(b.of.setAttribute(g,z[0]),b.of.setAttribute(x,z[1]))}var C,P,$,H;if(b.g._cmdf||L){C=b.cst;var K=b.g.c;for($=C.length,P=0;P<$;P+=1)H=C[P],H.setAttribute("offset",K[P*4]+"%"),H.setAttribute("stop-color","rgb("+K[P*4+1]+","+K[P*4+2]+","+K[P*4+3]+")")}if(N&&(b.g._omdf||L)){var mt=b.g.o;for(b.g._collapsable?C=b.cst:C=b.ost,$=C.length,P=0;P<$;P+=1)H=C[P],b.g._collapsable||H.setAttribute("offset",mt[P*2]+"%"),H.setAttribute("stop-opacity",mt[P*2+1])}if(V.t===1)(b.e._mdf||L)&&(O.setAttribute("x2",w[0]),O.setAttribute("y2",w[1]),N&&!b.g._collapsable&&(b.of.setAttribute("x2",w[0]),b.of.setAttribute("y2",w[1])));else{var at;if((b.s._mdf||b.e._mdf||L)&&(at=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),O.setAttribute("r",at),N&&!b.g._collapsable&&b.of.setAttribute("r",at)),b.e._mdf||b.h._mdf||b.a._mdf||L){at||(at=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var Q=Math.atan2(w[1]-z[1],w[0]-z[0]),ft=b.h.v;ft>=1?ft=.99:ft<=-1&&(ft=-.99);var ot=at*ft,Y=Math.cos(Q+b.a.v)*ot+z[0],T=Math.sin(Q+b.a.v)*ot+z[1];O.setAttribute("fx",Y),O.setAttribute("fy",T),N&&!b.g._collapsable&&(b.of.setAttribute("fx",Y),b.of.setAttribute("fy",T))}}}function I(V,b,L){var O=b.style,N=b.d;N&&(N._mdf||L)&&N.dashStr&&(O.pElem.setAttribute("stroke-dasharray",N.dashStr),O.pElem.setAttribute("stroke-dashoffset",N.dashoffset[0])),b.c&&(b.c._mdf||L)&&O.pElem.setAttribute("stroke","rgb("+Jt(b.c.v[0])+","+Jt(b.c.v[1])+","+Jt(b.c.v[2])+")"),(b.o._mdf||L)&&O.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||L)&&(O.pElem.setAttribute("stroke-width",b.w.v),O.msElem&&O.msElem.setAttribute("stroke-width",b.w.v))}return i}();function Bt(t,r,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,r,i),this.prevViewData=[]}B([$r,Xi,Wo,vd,Zi,Vr,qo],Bt),Bt.prototype.initSecondaryElement=function(){},Bt.prototype.identityMatrix=new se,Bt.prototype.buildExpressionInterface=function(){},Bt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Bt.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,i,a,d=this.stylesList.length,c,p=[],E=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],E=!1,p.length=0,t=0;t<r;t+=1)i=this.shapes[t],i.styles.indexOf(c)!==-1&&(p.push(i),E=i._isAnimated||E);p.length>1&&E&&this.setShapesAsAnimated(p)}},Bt.prototype.setShapesAsAnimated=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r].setAsAnimated()},Bt.prototype.createStyleElement=function(t,r){var i,a=new Ed(t,r),d=a.pElem;if(t.ty==="st")i=new xd(this,t,a);else if(t.ty==="fl")i=new Td(this,t,a);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?Ji:_d;i=new c(this,t,a),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),d.setAttribute("mask","url("+S()+"#"+i.maskId+")"))}else t.ty==="no"&&(i=new Ad(this,t,a));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",gd[t.lc||2]),d.setAttribute("stroke-linejoin",bd[t.lj||2]),d.setAttribute("fill-opacity","0"),t.lj===1&&d.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&d.setAttribute("fill-rule","evenodd"),t.ln&&d.setAttribute("id",t.ln),t.cl&&d.setAttribute("class",t.cl),t.bm&&(d.style["mix-blend-mode"]=$n(t.bm)),this.stylesList.push(a),this.addToAnimatedContents(t,i),i},Bt.prototype.createGroupElement=function(t){var r=new of;return t.ln&&r.gr.setAttribute("id",t.ln),t.cl&&r.gr.setAttribute("class",t.cl),t.bm&&(r.gr.style["mix-blend-mode"]=$n(t.bm)),r},Bt.prototype.createTransformElement=function(t,r){var i=On.getTransformProperty(this,t,this),a=new sf(i,i.o,r);return this.addToAnimatedContents(t,a),a},Bt.prototype.createShapeElement=function(t,r,i){var a=4;t.ty==="rc"?a=5:t.ty==="el"?a=6:t.ty==="sr"&&(a=7);var d=Xs.getShapeProp(this,t,a,this),c=new yd(r,i,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Bt.prototype.addToAnimatedContents=function(t,r){for(var i=0,a=this.animatedContents.length;i<a;){if(this.animatedContents[i].element===r)return;i+=1}this.animatedContents.push({fn:af.createRenderFunction(t),element:r,data:t})},Bt.prototype.setElementStyles=function(t){var r=t.styles,i,a=this.stylesList.length;for(i=0;i<a;i+=1)this.stylesList[i].closed||r.push(this.stylesList[i])},Bt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,r=this.itemsData.length;for(t=0;t<r;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,t=0;t<r;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},Bt.prototype.searchShapes=function(t,r,i,a,d,c,p){var E=[].concat(c),u,k=t.length-1,I,V,b=[],L=[],O,N,z;for(u=k;u>=0;u-=1){if(z=this.searchProcessedElement(t[u]),z?r[u]=i[z-1]:t[u]._render=p,t[u].ty==="fl"||t[u].ty==="st"||t[u].ty==="gf"||t[u].ty==="gs"||t[u].ty==="no")z?r[u].style.closed=!1:r[u]=this.createStyleElement(t[u],d),t[u]._render&&r[u].style.pElem.parentNode!==a&&a.appendChild(r[u].style.pElem),b.push(r[u].style);else if(t[u].ty==="gr"){if(!z)r[u]=this.createGroupElement(t[u]);else for(V=r[u].it.length,I=0;I<V;I+=1)r[u].prevViewData[I]=r[u].it[I];this.searchShapes(t[u].it,r[u].it,r[u].prevViewData,r[u].gr,d+1,E,p),t[u]._render&&r[u].gr.parentNode!==a&&a.appendChild(r[u].gr)}else t[u].ty==="tr"?(z||(r[u]=this.createTransformElement(t[u],a)),O=r[u].transform,E.push(O)):t[u].ty==="sh"||t[u].ty==="rc"||t[u].ty==="el"||t[u].ty==="sr"?(z||(r[u]=this.createShapeElement(t[u],E,d)),this.setElementStyles(r[u])):t[u].ty==="tm"||t[u].ty==="rd"||t[u].ty==="ms"||t[u].ty==="pb"||t[u].ty==="zz"||t[u].ty==="op"?(z?(N=r[u],N.closed=!1):(N=Fr.getModifier(t[u].ty),N.init(this,t[u]),r[u]=N,this.shapeModifiers.push(N)),L.push(N)):t[u].ty==="rp"&&(z?(N=r[u],N.closed=!0):(N=Fr.getModifier(t[u].ty),r[u]=N,N.init(this,t,u,r),this.shapeModifiers.push(N),p=!1),L.push(N));this.addProcessedElement(t[u],u+1)}for(k=b.length,u=0;u<k;u+=1)b[u].closed=!0;for(k=L.length,u=0;u<k;u+=1)L[u].closed=!0},Bt.prototype.renderInnerContent=function(){this.renderModifiers();var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<r;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},Bt.prototype.renderShape=function(){var t,r=this.animatedContents.length,i;for(t=0;t<r;t+=1)i=this.animatedContents[t],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},Bt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Bn(t,r,i,a,d,c){this.o=t,this.sw=r,this.sc=i,this.fc=a,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!i,fc:!!a,m:!0,p:!0}}Bn.prototype.update=function(t,r,i,a,d,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,p=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,p=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,p=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,p=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,p=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,p=!0),p};function de(t,r){this._frameId=s,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=t.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=t,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)}de.prototype.defaultBoxWidth=[0,0],de.prototype.copyData=function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},de.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},de.prototype.searchProperty=function(){return this.searchKeyframes()},de.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},de.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},de.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,d=this.effectsSequence.length,c=t||this.data.d.k[this.keysIndex].s;for(a=0;a<d;a+=1)i!==this.keysIndex?c=this.effectsSequence[a](c,c.t):c=this.effectsSequence[a](this.currentData,c.t);r!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},de.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,r=this.elem.comp.renderedFrame,i=0,a=t.length;i<=a-1&&!(i===a-1||t[i+1].t>r);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},de.prototype.buildFinalText=function(t){for(var r=[],i=0,a=t.length,d,c,p=!1,E=!1,u="";i<a;)p=E,E=!1,d=t.charCodeAt(i),u=t.charAt(i),li.isCombinedCharacter(d)?p=!0:d>=55296&&d<=56319?li.isRegionalFlag(t,i)?u=t.substr(i,14):(c=t.charCodeAt(i+1),c>=56320&&c<=57343&&(li.isModifier(d,c)?(u=t.substr(i,2),p=!0):li.isFlagEmoji(t.substr(i,4))?u=t.substr(i,4):u=t.substr(i,2))):d>56319?(c=t.charCodeAt(i+1),li.isVariationSelector(d)&&(p=!0)):li.isZeroWidthJoiner(d)&&(p=!0,E=!0),p?(r[r.length-1]+=u,p=!1):r.push(u),i+=u.length;return r},de.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,i=this.data,a=[],d,c,p,E=0,u,k=i.m.g,I=0,V=0,b=0,L=[],O=0,N=0,z,w,_=r.getFontByName(t.f),g,x=0,C=hd(_);t.fWeight=C.weight,t.fStyle=C.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),c=t.finalText.length,t.finalLineHeight=t.lh;var P=t.tr/1e3*t.finalSize,$;if(t.sz)for(var H=!0,K=t.sz[0],mt=t.sz[1],at,Q;H;){Q=this.buildFinalText(t.t),at=0,O=0,c=Q.length,P=t.tr/1e3*t.finalSize;var ft=-1;for(d=0;d<c;d+=1)$=Q[d].charCodeAt(0),p=!1,Q[d]===" "?ft=d:($===13||$===3)&&(O=0,p=!0,at+=t.finalLineHeight||t.finalSize*1.2),r.chars?(g=r.getCharData(Q[d],_.fStyle,_.fFamily),x=p?0:g.w*t.finalSize/100):x=r.measureText(Q[d],t.f,t.finalSize),O+x>K&&Q[d]!==" "?(ft===-1?c+=1:d=ft,at+=t.finalLineHeight||t.finalSize*1.2,Q.splice(d,ft===d?1:0,"\r"),ft=-1,O=0):(O+=x,O+=P);at+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&mt<at?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=Q,c=t.finalText.length,H=!1)}O=-P,x=0;var ot=0,Y;for(d=0;d<c;d+=1)if(p=!1,Y=t.finalText[d],$=Y.charCodeAt(0),$===13||$===3?(ot=0,L.push(O),N=O>N?O:N,O=-2*P,u="",p=!0,b+=1):u=Y,r.chars?(g=r.getCharData(Y,_.fStyle,r.getFontByName(t.f).fFamily),x=p?0:g.w*t.finalSize/100):x=r.measureText(u,t.f,t.finalSize),Y===" "?ot+=x+P:(O+=x+P+ot,ot=0),a.push({l:x,an:x,add:I,n:p,anIndexes:[],val:u,line:b,animatorJustifyOffset:0}),k==2){if(I+=x,u===""||u===" "||d===c-1){for((u===""||u===" ")&&(I-=x);V<=d;)a[V].an=I,a[V].ind=E,a[V].extra=x,V+=1;E+=1,I=0}}else if(k==3){if(I+=x,u===""||d===c-1){for(u===""&&(I-=x);V<=d;)a[V].an=I,a[V].ind=E,a[V].extra=x,V+=1;I=0,E+=1}}else a[E].ind=E,a[E].extra=0,E+=1;if(t.l=a,N=O>N?O:N,L.push(O),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=N,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=L;var T=i.a,R,m;w=T.length;var v,U,D=[];for(z=0;z<w;z+=1){for(R=T[z],R.a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),U=0,v=R.s.b,d=0;d<c;d+=1)m=a[d],m.anIndexes[z]=U,(v==1&&m.val!==""||v==2&&m.val!==""&&m.val!==" "||v==3&&(m.n||m.val==" "||d==c-1)||v==4&&(m.n||d==c-1))&&(R.s.rn===1&&D.push(U),U+=1);i.a[z].s.totalChars=U;var rt=-1,dt;if(R.s.rn===1)for(d=0;d<c;d+=1)m=a[d],rt!=m.anIndexes[z]&&(rt=m.anIndexes[z],dt=D.splice(Math.floor(Math.random()*D.length),1)[0]),m.anIndexes[z]=dt}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100},de.prototype.updateDocumentData=function(t,r){r=r===void 0?this.keysIndex:r;var i=this.copyData({},this.data.d.k[r].s);i=this.copyData(i,t),this.data.d.k[r].s=i,this.recalculate(r),this.setCurrentData(i),this.elem.addDynamicProperty(this)},de.prototype.recalculate=function(t){var r=this.data.d.k[t].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},de.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},de.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var nf=function(){var t=Math.max,r=Math.min,i=Math.floor;function a(c,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=et.getProp(c,p.s||{k:0},0,0,this),"e"in p?this.e=et.getProp(c,p.e,0,0,this):this.e={v:100},this.o=et.getProp(c,p.o||{k:0},0,0,this),this.xe=et.getProp(c,p.xe||{k:0},0,0,this),this.ne=et.getProp(c,p.ne||{k:0},0,0,this),this.sm=et.getProp(c,p.sm||{k:100},0,0,this),this.a=et.getProp(c,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var E=0,u=0,k=1,I=1;this.ne.v>0?E=this.ne.v/100:u=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:I=1+this.xe.v/100;var V=zo.getBezierEasing(E,u,k,I).get,b=0,L=this.finalS,O=this.finalE,N=this.data.sh;if(N===2)O===L?b=p>=O?1:0:b=t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b=V(b);else if(N===3)O===L?b=p>=O?0:1:b=1-t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b=V(b);else if(N===4)O===L?b=0:(b=t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b<.5?b*=2:b=1-2*(b-.5)),b=V(b);else if(N===5){if(O===L)b=0;else{var z=O-L;p=r(t(0,p+.5-L),O-L);var w=-z/2+p,_=z/2;b=Math.sqrt(1-w*w/(_*_))}b=V(b)}else N===6?(O===L?b=0:(p=r(t(0,p+.5-L),O-L),b=(1+Math.cos(Math.PI+Math.PI*2*p/(O-L)))/2),b=V(b)):(p>=i(L)&&(p-L<0?b=t(0,r(r(O,1)-(L-p),1)):b=t(0,r(O-p,1))),b=V(b));if(this.sm.v!==100){var g=this.sm.v*.01;g===0&&(g=1e-8);var x=.5-g*.5;b<x?b=0:(b=(b-x)/g,b>1&&(b=1))}return b*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var E=this.data.r===2?1:100/this.data.totalChars,u=this.o.v/E,k=this.s.v/E+u,I=this.e.v/E+u;if(k>I){var V=k;k=I,I=V}this.finalS=k,this.finalE=I}},B([Qt],a);function d(c,p,E){return new a(c,p,E)}return{getTextSelectorProp:d}}();function lf(t,r,i){var a={propType:!1},d=et.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,xt,i):a,rx:c.rx?d(t,c.rx,0,xt,i):a,ry:c.ry?d(t,c.ry,0,xt,i):a,sk:c.sk?d(t,c.sk,0,xt,i):a,sa:c.sa?d(t,c.sa,0,xt,i):a,s:c.s?d(t,c.s,1,.01,i):a,a:c.a?d(t,c.a,1,0,i):a,o:c.o?d(t,c.o,0,.01,i):a,p:c.p?d(t,c.p,1,0,i):a,sw:c.sw?d(t,c.sw,0,0,i):a,sc:c.sc?d(t,c.sc,1,0,i):a,fc:c.fc?d(t,c.fc,1,0,i):a,fh:c.fh?d(t,c.fh,0,0,i):a,fs:c.fs?d(t,c.fs,0,.01,i):a,fb:c.fb?d(t,c.fb,0,.01,i):a,t:c.t?d(t,c.t,0,0,i):a},this.s=nf.getTextSelectorProp(t,r.s,i),this.s.t=r.s.t}function di(t,r,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=i,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}di.prototype.searchProperties=function(){var t,r=this._textData.a.length,i,a=et.getProp;for(t=0;t<r;t+=1)i=this._textData.a[t],this._animatorsData[t]=new lf(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(this._elem,this._textData.m.a,1,0,this)},di.prototype.getMeasures=function(t,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,a=this._animatorsData,d=this._textData,c=this.mHelper,p=this._renderType,E=this.renderedLetters.length,u,k,I,V,b=t.l,L,O,N,z,w,_,g,x,C,P,$,H,K,mt,at;if(this._hasMaskedPath){if(at=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Q=at.v;this._pathData.r.v&&(Q=Q.reverse()),L={tLength:0,segments:[]},V=Q._length-1;var ft;for(H=0,I=0;I<V;I+=1)ft=rr.buildBezierData(Q.v[I],Q.v[I+1],[Q.o[I][0]-Q.v[I][0],Q.o[I][1]-Q.v[I][1]],[Q.i[I+1][0]-Q.v[I+1][0],Q.i[I+1][1]-Q.v[I+1][1]]),L.tLength+=ft.segmentLength,L.segments.push(ft),H+=ft.segmentLength;I=V,at.v.c&&(ft=rr.buildBezierData(Q.v[I],Q.v[0],[Q.o[I][0]-Q.v[I][0],Q.o[I][1]-Q.v[I][1]],[Q.i[0][0]-Q.v[0][0],Q.i[0][1]-Q.v[0][1]]),L.tLength+=ft.segmentLength,L.segments.push(ft),H+=ft.segmentLength),this._pathData.pi=L}if(L=this._pathData.pi,O=this._pathData.f.v,g=0,_=1,z=0,w=!0,P=L.segments,O<0&&at.v.c)for(L.tLength<Math.abs(O)&&(O=-Math.abs(O)%L.tLength),g=P.length-1,C=P[g].points,_=C.length-1;O<0;)O+=C[_].partialLength,_-=1,_<0&&(g-=1,C=P[g].points,_=C.length-1);C=P[g].points,x=C[_-1],N=C[_],$=N.partialLength}V=b.length,u=0,k=0;var ot=t.finalSize*1.2*.714,Y=!0,T,R,m,v,U;v=a.length;var D,rt=-1,dt,pt,St,kt=O,Gt=g,be=_,or=-1,ye,te,we,Lt,st,ur,Hr,fr,sr="",vr=this.defaultPropsArray,gr;if(t.j===2||t.j===1){var Ee=0,Gr=0,jr=t.j===2?-.5:-1,qe=0,Wr=!0;for(I=0;I<V;I+=1)if(b[I].n){for(Ee&&(Ee+=Gr);qe<I;)b[qe].animatorJustifyOffset=Ee,qe+=1;Ee=0,Wr=!0}else{for(m=0;m<v;m+=1)T=a[m].a,T.t.propType&&(Wr&&t.j===2&&(Gr+=T.t.v*jr),R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?Ee+=T.t.v*D[0]*jr:Ee+=T.t.v*D*jr);Wr=!1}for(Ee&&(Ee+=Gr);qe<I;)b[qe].animatorJustifyOffset=Ee,qe+=1}for(I=0;I<V;I+=1){if(c.reset(),ye=1,b[I].n)u=0,k+=t.yOffset,k+=Y?1:0,O=kt,Y=!1,this._hasMaskedPath&&(g=Gt,_=be,C=P[g].points,x=C[_-1],N=C[_],$=N.partialLength,z=0),sr="",fr="",ur="",gr="",vr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(or!==b[I].line){switch(t.j){case 1:O+=H-t.lineWidths[b[I].line];break;case 2:O+=(H-t.lineWidths[b[I].line])/2;break;default:break}or=b[I].line}rt!==b[I].ind&&(b[rt]&&(O+=b[rt].extra),O+=b[I].an/2,rt=b[I].ind),O+=i[0]*b[I].an*.005;var Ye=0;for(m=0;m<v;m+=1)T=a[m].a,T.p.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?Ye+=T.p.v[0]*D[0]:Ye+=T.p.v[0]*D),T.a.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?Ye+=T.a.v[0]*D[0]:Ye+=T.a.v[0]*D);for(w=!0,this._pathData.a.v&&(O=b[0].an*.5+(H-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*rt/(V-1),O+=this._pathData.f.v);w;)z+$>=O+Ye||!C?(K=(O+Ye-z)/N.partialLength,pt=x.point[0]+(N.point[0]-x.point[0])*K,St=x.point[1]+(N.point[1]-x.point[1])*K,c.translate(-i[0]*b[I].an*.005,-(i[1]*ot)*.01),w=!1):C&&(z+=N.partialLength,_+=1,_>=C.length&&(_=0,g+=1,P[g]?C=P[g].points:at.v.c?(_=0,g=0,C=P[g].points):(z-=N.partialLength,C=null)),C&&(x=N,N=C[_],$=N.partialLength));dt=b[I].an/2-b[I].add,c.translate(-dt,0,0)}else dt=b[I].an/2-b[I].add,c.translate(-dt,0,0),c.translate(-i[0]*b[I].an*.005,-i[1]*ot*.01,0);for(m=0;m<v;m+=1)T=a[m].a,T.t.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),(u!==0||t.j!==0)&&(this._hasMaskedPath?D.length?O+=T.t.v*D[0]:O+=T.t.v*D:D.length?u+=T.t.v*D[0]:u+=T.t.v*D));for(t.strokeWidthAnim&&(we=t.sw||0),t.strokeColorAnim&&(t.sc?te=[t.sc[0],t.sc[1],t.sc[2]]:te=[0,0,0]),t.fillColorAnim&&t.fc&&(Lt=[t.fc[0],t.fc[1],t.fc[2]]),m=0;m<v;m+=1)T=a[m].a,T.a.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?c.translate(-T.a.v[0]*D[0],-T.a.v[1]*D[1],T.a.v[2]*D[2]):c.translate(-T.a.v[0]*D,-T.a.v[1]*D,T.a.v[2]*D));for(m=0;m<v;m+=1)T=a[m].a,T.s.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?c.scale(1+(T.s.v[0]-1)*D[0],1+(T.s.v[1]-1)*D[1],1):c.scale(1+(T.s.v[0]-1)*D,1+(T.s.v[1]-1)*D,1));for(m=0;m<v;m+=1){if(T=a[m].a,R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),T.sk.propType&&(D.length?c.skewFromAxis(-T.sk.v*D[0],T.sa.v*D[1]):c.skewFromAxis(-T.sk.v*D,T.sa.v*D)),T.r.propType&&(D.length?c.rotateZ(-T.r.v*D[2]):c.rotateZ(-T.r.v*D)),T.ry.propType&&(D.length?c.rotateY(T.ry.v*D[1]):c.rotateY(T.ry.v*D)),T.rx.propType&&(D.length?c.rotateX(T.rx.v*D[0]):c.rotateX(T.rx.v*D)),T.o.propType&&(D.length?ye+=(T.o.v*D[0]-ye)*D[0]:ye+=(T.o.v*D-ye)*D),t.strokeWidthAnim&&T.sw.propType&&(D.length?we+=T.sw.v*D[0]:we+=T.sw.v*D),t.strokeColorAnim&&T.sc.propType)for(st=0;st<3;st+=1)D.length?te[st]+=(T.sc.v[st]-te[st])*D[0]:te[st]+=(T.sc.v[st]-te[st])*D;if(t.fillColorAnim&&t.fc){if(T.fc.propType)for(st=0;st<3;st+=1)D.length?Lt[st]+=(T.fc.v[st]-Lt[st])*D[0]:Lt[st]+=(T.fc.v[st]-Lt[st])*D;T.fh.propType&&(D.length?Lt=zc(Lt,T.fh.v*D[0]):Lt=zc(Lt,T.fh.v*D)),T.fs.propType&&(D.length?Lt=Dc(Lt,T.fs.v*D[0]):Lt=Dc(Lt,T.fs.v*D)),T.fb.propType&&(D.length?Lt=Fc(Lt,T.fb.v*D[0]):Lt=Fc(Lt,T.fb.v*D))}}for(m=0;m<v;m+=1)T=a[m].a,T.p.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),this._hasMaskedPath?D.length?c.translate(0,T.p.v[1]*D[0],-T.p.v[2]*D[1]):c.translate(0,T.p.v[1]*D,-T.p.v[2]*D):D.length?c.translate(T.p.v[0]*D[0],T.p.v[1]*D[1],-T.p.v[2]*D[2]):c.translate(T.p.v[0]*D,T.p.v[1]*D,-T.p.v[2]*D));if(t.strokeWidthAnim&&(ur=we<0?0:we),t.strokeColorAnim&&(Hr="rgb("+Math.round(te[0]*255)+","+Math.round(te[1]*255)+","+Math.round(te[2]*255)+")"),t.fillColorAnim&&t.fc&&(fr="rgb("+Math.round(Lt[0]*255)+","+Math.round(Lt[1]*255)+","+Math.round(Lt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,i[1]*ot*.01+k,0),this._pathData.p.v){mt=(N.point[1]-x.point[1])/(N.point[0]-x.point[0]);var hi=Math.atan(mt)*180/Math.PI;N.point[0]<x.point[0]&&(hi+=180),c.rotate(-hi*Math.PI/180)}c.translate(pt,St,0),O-=i[0]*b[I].an*.005,b[I+1]&&rt!==b[I+1].ind&&(O+=b[I].an/2,O+=t.tr*.001*t.finalSize)}else{switch(c.translate(u,k,0),t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(b[I].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[b[I].line]),0,0);break;case 2:c.translate(b[I].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[b[I].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(dt,0,0),c.translate(i[0]*b[I].an*.005,i[1]*ot*.01,0),u+=b[I].l+t.tr*.001*t.finalSize}p==="html"?sr=c.toCSS():p==="svg"?sr=c.to2dCSS():vr=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],gr=ye}E<=I?(U=new Bn(gr,ur,Hr,fr,sr,vr),this.renderedLetters.push(U),E+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[I],this.lettersChangedFlag=U.update(gr,ur,Hr,fr,sr,vr)||this.lettersChangedFlag)}}},di.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},di.prototype.mHelper=new se,di.prototype.defaultPropsArray=[],B([Qt],di);function Fe(){}Fe.prototype.initElement=function(t,r,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,i),this.textProperty=new de(this,t.t,this.dynamicProperties),this.textAnimator=new di(t.t,this.renderType,this),this.initTransform(t,r,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Fe.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},Fe.prototype.createPathShape=function(t,r){var i,a=r.length,d,c="";for(i=0;i<a;i+=1)r[i].ty==="sh"&&(d=r[i].ks.k,c+=Sd(d,d.i.length,!0,t));return c},Fe.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},Fe.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},Fe.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Fe.prototype.applyTextPropertiesToMatrix=function(t,r,i,a,d){switch(t.ps&&r.translate(t.ps[0],t.ps[1]+t.ascent,0),r.translate(0,-t.ls,0),t.j){case 1:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0);break;default:break}r.translate(a,d,0)},Fe.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},Fe.prototype.emptyProp=new Bn,Fe.prototype.destroy=function(){},Fe.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var cf={shapes:[]};function mr(t,r,i){this.textSpans=[],this.renderType="svg",this.initElement(t,r,i)}B([$r,Xi,Wo,Zi,Vr,qo,Fe],mr),mr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=ut("text"))},mr.prototype.buildTextContents=function(t){for(var r=0,i=t.length,a=[],d="";r<i;)t[r]==="\r"||t[r]===""?(a.push(d),d=""):d+=t[r],r+=1;return a.push(d),a},mr.prototype.buildShapeData=function(t,r){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var a=i.it[i.it.length-1];a.s&&(a.s.k[0]=r,a.s.k[1]=r)}}return t},mr.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,i=this.textProperty.currentData;this.renderedLetters=tt(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var a=this.globalData.fontManager.getFontByName(i.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var d=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",i.t);var p=i.l||[],E=!!this.globalData.fontManager.chars;r=p.length;var u,k=this.mHelper,I="",V=this.data.singleShape,b=0,L=0,O=!0,N=i.tr*.001*i.finalSize;if(V&&!E&&!i.sz){var z=this.textContainer,w="start";switch(i.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}z.setAttribute("text-anchor",w),z.setAttribute("letter-spacing",N);var _=this.buildTextContents(i.finalText);for(r=_.length,L=i.ps?i.ps[1]+i.ascent:0,t=0;t<r;t+=1)u=this.textSpans[t].span||ut("tspan"),u.textContent=_[t],u.setAttribute("x",0),u.setAttribute("y",L),u.style.display="inherit",z.appendChild(u),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=u,L+=i.finalLineHeight;this.layerElement.appendChild(z)}else{var g=this.textSpans.length,x;for(t=0;t<r;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!E||!V||t===0){if(u=g>t?this.textSpans[t].span:ut(E?"g":"text"),g<=t){if(u.setAttribute("stroke-linecap","butt"),u.setAttribute("stroke-linejoin","round"),u.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=u,E){var C=ut("g");u.appendChild(C),this.textSpans[t].childSpan=C}this.textSpans[t].span=u,this.layerElement.appendChild(u)}u.style.display="inherit"}if(k.reset(),V&&(p[t].n&&(b=-N,L+=i.yOffset,L+=O?1:0,O=!1),this.applyTextPropertiesToMatrix(i,k,p[t].line,b,L),b+=p[t].l||0,b+=N),E){x=this.globalData.fontManager.getCharData(i.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var P;if(x.t===1)P=new Xo(x.data,this.globalData,this);else{var $=cf;x.data&&x.data.shapes&&($=this.buildShapeData(x.data,i.finalSize)),P=new Bt($,this.globalData,this)}if(this.textSpans[t].glyph){var H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[t].glyph=P,P._debug=!0,P.prepareFrame(0),P.renderFrame(),this.textSpans[t].childSpan.appendChild(P.layerElement),x.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else V&&u.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),u.textContent=p[t].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}V&&u&&u.setAttribute("d",I)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},mr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},mr.prototype.getValue=function(){var t,r=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)i=this.textSpans[t].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},mr.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 t,r,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;r=a.length;var d,c,p;for(t=0;t<r;t+=1)a[t].n||(d=i[t],c=this.textSpans[t].span,p=this.textSpans[t].glyph,p&&p.renderFrame(),d._mdf.m&&c.setAttribute("transform",d.m),d._mdf.o&&c.setAttribute("opacity",d.o),d._mdf.sw&&c.setAttribute("stroke-width",d.sw),d._mdf.sc&&c.setAttribute("stroke",d.sc),d._mdf.fc&&c.setAttribute("fill",d.fc))}};function Un(t,r,i){this.initElement(t,r,i)}B([Yo],Un),Un.prototype.createContent=function(){var t=ut("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function Ur(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initFrame(),this.initTransform(t,r,i),this.initHierarchy()}Ur.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Ur.prototype.renderFrame=function(){},Ur.prototype.getBaseElement=function(){return null},Ur.prototype.destroy=function(){},Ur.prototype.sourceRectAtTime=function(){},Ur.prototype.hide=function(){},B([$r,Xi,Zi,Vr],Ur);function qt(){}B([ae],qt),qt.prototype.createNull=function(t){return new Ur(t,this.globalData,this)},qt.prototype.createShape=function(t){return new Bt(t,this.globalData,this)},qt.prototype.createText=function(t){return new mr(t,this.globalData,this)},qt.prototype.createImage=function(t){return new Yo(t,this.globalData,this)},qt.prototype.createSolid=function(t){return new Un(t,this.globalData,this)},qt.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.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 r=this.globalData.defs;this.setupGlobalData(t,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=ut("clipPath"),a=ut("rect");a.setAttribute("width",t.w),a.setAttribute("height",t.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=ve();i.setAttribute("id",d),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+S()+"#"+d+")"),r.appendChild(i),this.layers=t.layers,this.elements=tt(t.layers.length)},qt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,r=this.layers?this.layers.length:0;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},qt.prototype.updateContainerSize=function(){},qt.prototype.findIndexByInd=function(t){var r=0,i=this.layers.length;for(r=0;r<i;r+=1)if(this.layers[r].ind===t)return r;return-1},qt.prototype.buildItem=function(t){var r=this.elements;if(!(r[t]||this.layers[t].ty===99)){r[t]=!0;var i=this.createItem(this.layers[t]);if(r[t]=i,Hs()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var a="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(i);else{var d=r[a],c=d.getMatte(this.layers[t].tt);i.setMatte(c)}}}},qt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var r=0,i=this.elements.length;r<i;){if(this.elements[r]===t){var a="tp"in t.data?this.findIndexByInd(t.data.tp):r-1,d=this.elements[a],c=d.getMatte(this.layers[r].tt);t.setMatte(c);break}r+=1}}},qt.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},qt.prototype.appendElementInPos=function(t,r){var i=t.getBaseElement();if(i){for(var a=0,d;a<r;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(d=this.elements[a].getBaseElement()),a+=1;d?this.layerElement.insertBefore(i,d):this.layerElement.appendChild(i)}},qt.prototype.hide=function(){this.layerElement.style.display="none"},qt.prototype.show=function(){this.layerElement.style.display="block"};function pr(){}B([$r,Xi,Zi,Vr,qo],pr),pr.prototype.initElement=function(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initTransform(t,r,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},pr.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var i,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},pr.prototype.renderInnerContent=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},pr.prototype.setElements=function(t){this.elements=t},pr.prototype.getElements=function(){return this.elements},pr.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},pr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Xo(t,r,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(t,r,i),this.tm=t.tm?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}B([qt,pr,Wo],Xo),Xo.prototype.createComp=function(t){return new Xo(t,this.globalData,this)};function Hn(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=ut("svg");var i="";if(r&&r.title){var a=ut("title"),d=ve();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),i+=d}if(r&&r.description){var c=ut("desc"),p=ve();c.setAttribute("id",p),c.textContent=r.description,this.svgElement.appendChild(c),i+=" "+p}i&&this.svgElement.setAttribute("aria-labelledby",i);var E=ut("defs");this.svgElement.appendChild(E);var u=ut("g");this.svgElement.appendChild(u),this.layerElement=u,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:E,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return B([qt],Hn),Hn.prototype.createComp=function(t){return new Xo(t,this.globalData,this)},bu("svg",Hn),Fr.registerModifier("tm",We),Fr.registerModifier("pb",$o),Fr.registerModifier("rp",ir),Fr.registerModifier("rd",Vo),Fr.registerModifier("zz",Uo),Fr.registerModifier("op",Ho),wt})});var la=globalThis,ca=la.ShadowRoot&&(la.ShadyCSS===void 0||la.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jn=Symbol(),Cd=new WeakMap,Zo=class{constructor(o,e,s){if(this._$cssResult$=!0,s!==jn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o,e=this.t;if(ca&&o===void 0){let s=e!==void 0&&e.length===1;s&&(o=Cd.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),s&&Cd.set(e,o))}return o}toString(){return this.cssText}},wd=l=>new Zo(typeof l=="string"?l:l+"",void 0,jn),W=(l,...o)=>{let e=l.length===1?l[0]:o.reduce((s,n,h)=>s+(f=>{if(f._$cssResult$===!0)return f.cssText;if(typeof f=="number")return f;throw Error("Value passed to 'css' function must be a 'css' function result: "+f+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+l[h+1],l[0]);return new Zo(e,l,jn)},Wn=(l,o)=>{if(ca)l.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of o){let s=document.createElement("style"),n=la.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,l.appendChild(s)}},da=ca?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let e="";for(let s of o.cssRules)e+=s.cssText;return wd(e)})(l):l;var{is:gf,defineProperty:bf,getOwnPropertyDescriptor:yf,getOwnPropertyNames:Ef,getOwnPropertySymbols:xf,getPrototypeOf:Tf}=Object,qr=globalThis,Id=qr.trustedTypes,Af=Id?Id.emptyScript:"",qn=qr.reactiveElementPolyfillSupport,Jo=(l,o)=>l,Qo={toAttribute(l,o){switch(o){case Boolean:l=l?Af:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,o){let e=l;switch(o){case Boolean:e=l!==null;break;case Number:e=l===null?null:Number(l);break;case Object:case Array:try{e=JSON.parse(l)}catch{e=null}}return e}},ha=(l,o)=>!gf(l,o),Ld={attribute:!0,type:String,converter:Qo,reflect:!1,hasChanged:ha},Md,Nd;(Md=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Nd=qr.litPropertyMetadata)!=null||(qr.litPropertyMetadata=new WeakMap);var br=class extends HTMLElement{static addInitializer(o){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=Ld){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(o,s,e);n!==void 0&&bf(this.prototype,o,n)}}static getPropertyDescriptor(o,e,s){var f;let{get:n,set:h}=(f=yf(this.prototype,o))!=null?f:{get(){return this[e]},set(S){this[e]=S}};return{get(){return n==null?void 0:n.call(this)},set(S){let M=n==null?void 0:n.call(this);h.call(this,S),this.requestUpdate(o,M,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var e;return(e=this.elementProperties.get(o))!=null?e:Ld}static _$Ei(){if(this.hasOwnProperty(Jo("elementProperties")))return;let o=Tf(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Jo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jo("properties"))){let e=this.properties,s=[...Ef(e),...xf(e)];for(let n of s)this.createProperty(n,e[n])}let o=this[Symbol.metadata];if(o!==null){let e=litPropertyMetadata.get(o);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let e=[];if(Array.isArray(o)){let s=new Set(o.flat(1/0).reverse());for(let n of s)e.unshift(da(n))}else o!==void 0&&e.push(da(o));return e}static _$Eu(o,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(e=>e(this))}addController(o){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((s=o.hostConnected)==null||s.call(o))}removeController(o){var e;(e=this._$EO)==null||e.delete(o)}_$E_(){let o=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(o.set(s,this[s]),delete this[s]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var e;let o=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Wn(o,this.constructor.elementStyles),o}connectedCallback(){var o,e;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostConnected)==null?void 0:n.call(s)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(o,e,s){this._$AK(o,s)}_$EC(o,e){var h;let s=this.constructor.elementProperties.get(o),n=this.constructor._$Eu(o,s);if(n!==void 0&&s.reflect===!0){let f=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:Qo).toAttribute(e,s.type);this._$Em=o,f==null?this.removeAttribute(n):this.setAttribute(n,f),this._$Em=null}}_$AK(o,e){var h;let s=this.constructor,n=s._$Eh.get(o);if(n!==void 0&&this._$Em!==n){let f=s.getPropertyOptions(n),S=typeof f.converter=="function"?{fromAttribute:f.converter}:((h=f.converter)==null?void 0:h.fromAttribute)!==void 0?f.converter:Qo;this._$Em=n,this[n]=S.fromAttribute(e,f.type),this._$Em=null}}requestUpdate(o,e,s){var n;if(o!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(o)),!((n=s.hasChanged)!=null?n:ha)(this[o],e))return;this.P(o,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,e,s){var n;this._$AL.has(o)||this._$AL.set(o,e),s.reflect===!0&&this._$Em!==o&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[f,S]of this._$Ep)this[f]=S;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[f,S]of h)S.wrapped!==!0||this._$AL.has(f)||this[f]===void 0||this.P(f,this[f],S)}let o=!1,e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(h=>{var f;return(f=h.hostUpdate)==null?void 0:f.call(h)}),this.update(e)):this._$EU()}catch(h){throw o=!1,this._$EU(),h}o&&this._$AE(e)}willUpdate(o){}_$AE(o){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(o){}firstUpdated(o){}},Rd;br.elementStyles=[],br.shadowRootOptions={mode:"open"},br[Jo("elementProperties")]=new Map,br[Jo("finalized")]=new Map,qn==null||qn({ReactiveElement:br}),((Rd=qr.reactiveElementVersions)!=null?Rd:qr.reactiveElementVersions=[]).push("2.0.4");var es=globalThis,ma=es.trustedTypes,Od=ma?ma.createPolicy("lit-html",{createHTML:l=>l}):void 0,Xn="$lit$",yr=`lit$${Math.random().toFixed(9).slice(2)}$`,Zn="?"+yr,_f=`<${Zn}>`,ui=document,rs=()=>ui.createComment(""),is=l=>l===null||typeof l!="object"&&typeof l!="function",Jn=Array.isArray,Bd=l=>Jn(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Yn=`[
|
3
|
+
\f\r]`,ts=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pd=/-->/g,Dd=/>/g,mi=RegExp(`>|${Yn}(?:([^\\s"'>=/]+)(${Yn}*=${Yn}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Fd=/'/g,zd=/"/g,Ud=/^(?:script|style|textarea|title)$/i,Qn=l=>(o,...e)=>({_$litType$:l,strings:o,values:e}),F=Qn(1),Mb=Qn(2),Nb=Qn(3),Er=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),$d=new WeakMap,pi=ui.createTreeWalker(ui,129);function Hd(l,o){if(!Jn(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return Od!==void 0?Od.createHTML(o):o}var Gd=(l,o)=>{let e=l.length-1,s=[],n,h=o===2?"<svg>":o===3?"<math>":"",f=ts;for(let S=0;S<e;S++){let M=l[S],B,G,q=-1,it=0;for(;it<M.length&&(f.lastIndex=it,G=f.exec(M),G!==null);)it=f.lastIndex,f===ts?G[1]==="!--"?f=Pd:G[1]!==void 0?f=Dd:G[2]!==void 0?(Ud.test(G[2])&&(n=RegExp("</"+G[2],"g")),f=mi):G[3]!==void 0&&(f=mi):f===mi?G[0]===">"?(f=n!=null?n:ts,q=-1):G[1]===void 0?q=-2:(q=f.lastIndex-G[2].length,B=G[1],f=G[3]===void 0?mi:G[3]==='"'?zd:Fd):f===zd||f===Fd?f=mi:f===Pd||f===Dd?f=ts:(f=mi,n=void 0);let J=f===mi&&l[S+1].startsWith("/>")?" ":"";h+=f===ts?M+_f:q>=0?(s.push(B),M.slice(0,q)+Xn+M.slice(q)+yr+J):M+yr+(q===-2?S:J)}return[Hd(l,h+(l[e]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),s]},os=class l{constructor({strings:o,_$litType$:e},s){let n;this.parts=[];let h=0,f=0,S=o.length-1,M=this.parts,[B,G]=Gd(o,e);if(this.el=l.createElement(B,s),pi.currentNode=this.el.content,e===2||e===3){let q=this.el.content.firstChild;q.replaceWith(...q.childNodes)}for(;(n=pi.nextNode())!==null&&M.length<S;){if(n.nodeType===1){if(n.hasAttributes())for(let q of n.getAttributeNames())if(q.endsWith(Xn)){let it=G[f++],J=n.getAttribute(q).split(yr),tt=/([.?@])?(.*)/.exec(it);M.push({type:1,index:h,name:tt[2],strings:J,ctor:tt[1]==="."?ua:tt[1]==="?"?fa:tt[1]==="@"?va:vi}),n.removeAttribute(q)}else q.startsWith(yr)&&(M.push({type:6,index:h}),n.removeAttribute(q));if(Ud.test(n.tagName)){let q=n.textContent.split(yr),it=q.length-1;if(it>0){n.textContent=ma?ma.emptyScript:"";for(let J=0;J<it;J++)n.append(q[J],rs()),pi.nextNode(),M.push({type:2,index:++h});n.append(q[it],rs())}}}else if(n.nodeType===8)if(n.data===Zn)M.push({type:2,index:h});else{let q=-1;for(;(q=n.data.indexOf(yr,q+1))!==-1;)M.push({type:7,index:h}),q+=yr.length-1}h++}}static createElement(o,e){let s=ui.createElement("template");return s.innerHTML=o,s}};function fi(l,o,e=l,s){var f,S,M;if(o===Er)return o;let n=s!==void 0?(f=e.o)==null?void 0:f[s]:e.l,h=is(o)?void 0:o._$litDirective$;return(n==null?void 0:n.constructor)!==h&&((S=n==null?void 0:n._$AO)==null||S.call(n,!1),h===void 0?n=void 0:(n=new h(l),n._$AT(l,e,s)),s!==void 0?((M=e.o)!=null?M:e.o=[])[s]=n:e.l=n),n!==void 0&&(o=fi(l,n._$AS(l,o.values),n,s)),o}var pa=class{constructor(o,e){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var B;let{el:{content:e},parts:s}=this._$AD,n=((B=o==null?void 0:o.creationScope)!=null?B:ui).importNode(e,!0);pi.currentNode=n;let h=pi.nextNode(),f=0,S=0,M=s[0];for(;M!==void 0;){if(f===M.index){let G;M.type===2?G=new Qi(h,h.nextSibling,this,o):M.type===1?G=new M.ctor(h,M.name,M.strings,this,o):M.type===6&&(G=new ga(h,this,o)),this._$AV.push(G),M=s[++S]}f!==(M==null?void 0:M.index)&&(h=pi.nextNode(),f++)}return pi.currentNode=ui,n}p(o){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(o,s,e),e+=s.strings.length-2):s._$AI(o[e])),e++}},Qi=class l{get _$AU(){var o,e;return(e=(o=this._$AM)==null?void 0:o._$AU)!=null?e:this.v}constructor(o,e,s,n){var h;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=o,this._$AB=e,this._$AM=s,this.options=n,this.v=(h=n==null?void 0:n.isConnected)!=null?h:!0}get parentNode(){let o=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=e.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,e=this){o=fi(this,o,e),is(o)?o===X||o==null||o===""?(this._$AH!==X&&this._$AR(),this._$AH=X):o!==this._$AH&&o!==Er&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Bd(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==X&&is(this._$AH)?this._$AA.nextSibling.data=o:this.T(ui.createTextNode(o)),this._$AH=o}$(o){var h;let{values:e,_$litType$:s}=o,n=typeof s=="number"?this._$AC(o):(s.el===void 0&&(s.el=os.createElement(Hd(s.h,s.h[0]),this.options)),s);if(((h=this._$AH)==null?void 0:h._$AD)===n)this._$AH.p(e);else{let f=new pa(n,this),S=f.u(this.options);f.p(e),this.T(S),this._$AH=f}}_$AC(o){let e=$d.get(o.strings);return e===void 0&&$d.set(o.strings,e=new os(o)),e}k(o){Jn(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let h of o)n===e.length?e.push(s=new l(this.O(rs()),this.O(rs()),this,this.options)):s=e[n],s._$AI(h),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(o=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){var e;this._$AM===void 0&&(this.v=o,(e=this._$AP)==null||e.call(this,o))}},vi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,e,s,n,h){this.type=1,this._$AH=X,this._$AN=void 0,this.element=o,this.name=e,this._$AM=n,this.options=h,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=X}_$AI(o,e=this,s,n){let h=this.strings,f=!1;if(h===void 0)o=fi(this,o,e,0),f=!is(o)||o!==this._$AH&&o!==Er,f&&(this._$AH=o);else{let S=o,M,B;for(o=h[0],M=0;M<h.length-1;M++)B=fi(this,S[s+M],e,M),B===Er&&(B=this._$AH[M]),f||(f=!is(B)||B!==this._$AH[M]),B===X?o=X:o!==X&&(o+=(B!=null?B:"")+h[M+1]),this._$AH[M]=B}f&&!n&&this.j(o)}j(o){o===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},ua=class extends vi{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===X?void 0:o}},fa=class extends vi{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==X)}},va=class extends vi{constructor(o,e,s,n,h){super(o,e,s,n,h),this.type=5}_$AI(o,e=this){var f;if((o=(f=fi(this,o,e,0))!=null?f:X)===Er)return;let s=this._$AH,n=o===X&&s!==X||o.capture!==s.capture||o.once!==s.once||o.passive!==s.passive,h=o!==X&&(s===X||n);n&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,o):this._$AH.handleEvent(o)}},ga=class{constructor(o,e,s){this.element=o,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(o){fi(this,o)}},jd={M:Xn,P:yr,A:Zn,C:1,L:Gd,R:pa,D:Bd,V:fi,I:Qi,H:vi,N:fa,U:va,B:ua,F:ga},Kn=es.litHtmlPolyfillSupport,Vd;Kn==null||Kn(os,Qi),((Vd=es.litHtmlVersions)!=null?Vd:es.litHtmlVersions=[]).push("3.2.0");var Wd=(l,o,e)=>{var h,f;let s=(h=e==null?void 0:e.renderBefore)!=null?h:o,n=s._$litPart$;if(n===void 0){let S=(f=e==null?void 0:e.renderBefore)!=null?f:null;s._$litPart$=n=new Qi(o.insertBefore(rs(),S),S,void 0,e!=null?e:{})}return n._$AI(l),n};var Yr=class extends br{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,s;let o=super.createRenderRoot();return(s=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=o.firstChild),o}update(o){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Wd(e,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return Er}},qd;Yr._$litElement$=!0,Yr.finalized=!0,(qd=globalThis.litElementHydrateSupport)==null||qd.call(globalThis,{LitElement:Yr});var tl=globalThis.litElementPolyfillSupport;tl==null||tl({LitElement:Yr});var Yd;((Yd=globalThis.litElementVersions)!=null?Yd:globalThis.litElementVersions=[]).push("4.1.0");var Sf={attribute:!0,type:String,converter:Qo,reflect:!1,hasChanged:ha},kf=(l=Sf,o,e)=>{let{kind:s,metadata:n}=e,h=globalThis.litPropertyMetadata.get(n);if(h===void 0&&globalThis.litPropertyMetadata.set(n,h=new Map),h.set(e.name,l),s==="accessor"){let{name:f}=e;return{set(S){let M=o.get.call(this);o.set.call(this,S),this.requestUpdate(f,M,l)},init(S){return S!==void 0&&this.P(f,void 0,l),S}}}if(s==="setter"){let{name:f}=e;return function(S){let M=this[f];o.call(this,S),this.requestUpdate(f,M,l)}}throw Error("Unsupported decorator location: "+s)};function A(l){return(o,e)=>typeof e=="object"?kf(l,o,e):((s,n,h)=>{let f=n.hasOwnProperty(h);return n.constructor.createProperty(h,f?{...s,wrapped:!0}:s),f?Object.getOwnPropertyDescriptor(n,h):void 0})(l,o,e)}function Tt(l){return A({...l,state:!0,attribute:!1})}var xr=(l,o,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(l,o,e),e);function Tr(l,o){return(e,s,n)=>{let h=f=>{var S,M;return(M=(S=f.renderRoot)==null?void 0:S.querySelector(l))!=null?M:null};if(o){let{get:f,set:S}=typeof s=="object"?e:n!=null?n:(()=>{let M=Symbol();return{get(){return this[M]},set(B){this[M]=B}}})();return xr(e,s,{get(){let M=f.call(this);return M===void 0&&(M=h(this),(M!==null||this.hasUpdated)&&S.call(this,M)),M}})}return xr(e,s,{get(){return h(this)}})}}function Ft(l){return(o,e)=>{let{slot:s,selector:n}=l!=null?l:{},h="slot"+(s?`[name=${s}]`:":not([name])");return xr(o,e,{get(){var M,B;let f=(M=this.renderRoot)==null?void 0:M.querySelector(h),S=(B=f==null?void 0:f.assignedElements(l))!=null?B:[];return n===void 0?S:S.filter(G=>G.matches(n))}})}}function ba(l){return(o,e)=>{let{slot:s}=l!=null?l:{},n="slot"+(s?`[name=${s}]`:":not([name])");return xr(o,e,{get(){var f,S;let h=(f=this.renderRoot)==null?void 0:f.querySelector(n);return(S=h==null?void 0:h.assignedNodes(l))!=null?S:[]}})}}var Et=W`
|
5
5
|
:host {
|
6
6
|
align-items: center;
|
7
7
|
display: flex;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
justify-content: center;
|
10
10
|
width: fit-content;
|
11
11
|
}
|
12
|
-
`,
|
12
|
+
`,ya=W`
|
13
13
|
:host {
|
14
14
|
--mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
|
15
15
|
--mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
|
@@ -22,10 +22,10 @@
|
|
22
22
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
23
23
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
24
24
|
}
|
25
|
-
`,
|
25
|
+
`,At=(l=!1)=>{let o=W`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
26
26
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
27
27
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
28
|
-
`;return l?[
|
28
|
+
`;return l?[ya,W`
|
29
29
|
.mdc-focus-ring:focus-visible {
|
30
30
|
outline: none;
|
31
31
|
}
|
@@ -49,7 +49,7 @@
|
|
49
49
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
50
50
|
}
|
51
51
|
}
|
52
|
-
`]:[
|
52
|
+
`]:[ya,W`
|
53
53
|
:host([disabled]:focus) {
|
54
54
|
box-shadow: none;
|
55
55
|
}
|
@@ -64,7 +64,7 @@
|
|
64
64
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
65
65
|
}
|
66
66
|
}
|
67
|
-
`]};var
|
67
|
+
`]};var Cf=W`
|
68
68
|
:host {
|
69
69
|
height: 1.5rem;
|
70
70
|
gap: 0.25rem;
|
@@ -167,7 +167,7 @@
|
|
167
167
|
:host([variant="informational"]:active){
|
168
168
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
169
169
|
}
|
170
|
-
`,
|
170
|
+
`,Kd=[Et,Cf,...At()];var Xd=W`
|
171
171
|
:host {
|
172
172
|
box-sizing: border-box;
|
173
173
|
}
|
@@ -177,11 +177,11 @@
|
|
177
177
|
:host *::after {
|
178
178
|
box-sizing: inherit;
|
179
179
|
}
|
180
|
-
`;var
|
180
|
+
`;var Ea=class extends Yr{static register(o){customElements.get(o)||customElements.define(o,this)}};Ea.styles=[Xd];var Zd=Ea;var Z=Zd;var Kr=class extends Event{constructor(o,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=e,this.subscribe=s!=null?s:!1}};var to=class{constructor(o,e,s,n){var h;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(f,S)=>{this.unsubscribe&&(this.unsubscribe!==S&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=f,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(f,S)),this.unsubscribe=S},this.host=o,e.context!==void 0){let f=e;this.context=f.context,this.callback=f.callback,this.subscribe=(h=f.subscribe)!=null?h:!1}else this.context=e,this.callback=s,this.subscribe=n!=null?n:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Kr(this.context,this.t,this.subscribe))}};var xa=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,e=!1){let s=e||!Object.is(o,this.o);this.o=o,s&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},o!==void 0&&(this.value=o)}addCallback(o,e,s){if(!s)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:e});let{disposer:n}=this.subscriptions.get(o);o(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var el=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},eo=class extends xa{constructor(o,e,s){var n,h;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=f=>{let S=f.composedPath()[0];f.context===this.context&&S!==this.host&&(f.stopPropagation(),this.addCallback(f.callback,S,f.subscribe))},this.onProviderRequest=f=>{let S=f.composedPath()[0];if(f.context!==this.context||S===this.host)return;let M=new Set;for(let[B,{consumerHost:G}]of this.subscriptions)M.has(B)||(M.add(B),G.dispatchEvent(new Kr(this.context,B,!0)));f.stopPropagation()},this.host=o,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(h=(n=this.host).addController)==null||h.call(n,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new el(this.context))}};var wf=W`
|
181
181
|
:host {
|
182
182
|
display: contents;
|
183
183
|
}
|
184
|
-
`,
|
184
|
+
`,Qd=wf;var Ta=class extends Z{constructor({context:o,initialValue:e}){super(),this.context=new eo(this,{context:o,initialValue:e})}render(){return this.updateContext(),F`<slot></slot>`}};Ta.styles=[...Z.styles,Qd];var th=Ta;var ro=th;var If={PREFIX:"mdc",SEPARATOR:"-"},Lf={NAMESPACE:If},rl=Lf;var Mf=l=>[rl.NAMESPACE.PREFIX,l].join(rl.NAMESPACE.SEPARATOR),j={constructTagName:Mf};var y0=j.constructTagName("buttonsimple"),ss={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},io={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},as={SIZE:ss[32],TYPE:io.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var ns=j.constructTagName("text"),nt={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"},yt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Ie={TYPE:nt.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:yt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var eh=j.constructTagName("alertchip"),gi={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},oo={VARIANT:gi.NEUTRAL,TEXT_TYPE:nt.BODY_MIDSIZE_REGULAR,TAG_NAME:yt.SPAN,SIZE:ss[24],ROLE:"button"};var rh=l=>({[gi.ERROR]:"error-legacy-badge-filled",[gi.WARNING]:"warning-badge-filled",[gi.SUCCESS]:"check-circle-badge-filled",[gi.INFORMATIONAL]:"info-badge-filled",[gi.NEUTRAL]:"dnd-presence-badge-filled"})[l];var Pt=l=>{class o extends l{}return y([A({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ar=l=>{class o extends l{constructor(){super(...arguments);this.tabIndex=0}}return y([A({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Nf=[Et,W`
|
185
185
|
:host {
|
186
186
|
border: 0.0625rem solid transparent;
|
187
187
|
cursor: pointer;
|
@@ -238,10 +238,10 @@
|
|
238
238
|
:host([size="20"]){
|
239
239
|
height: var(--mdc-button-height-size-20);
|
240
240
|
}
|
241
|
-
`,...
|
242
|
-
<mdc-icon part="icon" name="${
|
243
|
-
<mdc-text part="label" type="${
|
244
|
-
`}};
|
241
|
+
`,...At()],ih=Nf;var Ke=class extends ar(Pt(Z)){constructor(){super();this.size=as.SIZE;this.role=as.ROLE;this.type=as.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||as.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===io.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===io.RESET&&this.form&&this.form.reset()}setActive(e,s){this.ariaStateKey&&this.ariaStateKey.split(",").filter(h=>h.trim().startsWith("aria-")).forEach(h=>{s===!0?e.setAttribute(h.trim(),"true"):s===!1?e.setAttribute(h.trim(),"false"):e.removeAttribute(h.trim())})}setSoftDisabled(e,s){s?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,s){s?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return F` <slot></slot> `}};Ke.formAssociated=!0,Ke.styles=[...Z.styles,...ih],y([A({type:Boolean,reflect:!0})],Ke.prototype,"active",2),y([A({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ke.prototype,"softDisabled",2),y([A({type:Number,reflect:!0})],Ke.prototype,"size",2),y([A({type:String,reflect:!0})],Ke.prototype,"role",2),y([A({type:String,reflect:!0})],Ke.prototype,"ariaStateKey",2),y([A({reflect:!0})],Ke.prototype,"type",2);var xe=Ke;var so=class extends xe{constructor(){super(...arguments);this.variant=oo.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=oo.SIZE,this.role=oo.ROLE}render(){return F`
|
242
|
+
<mdc-icon part="icon" name="${rh(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
243
|
+
<mdc-text part="label" type="${oo.TEXT_TYPE}" tagname="${oo.TAG_NAME}">${this.label}</mdc-text>
|
244
|
+
`}};so.styles=[...Z.styles,...Kd],y([A({type:String})],so.prototype,"variant",2),y([A({type:String})],so.prototype,"label",2);var il=so;var oh=W`
|
245
245
|
:host::part(text) {
|
246
246
|
font-size: unset;
|
247
247
|
font-weight: unset;
|
@@ -484,14 +484,14 @@
|
|
484
484
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
485
485
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
486
486
|
}
|
487
|
-
`;var
|
487
|
+
`;var Rf=[W`
|
488
488
|
:host {
|
489
489
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
490
490
|
|
491
491
|
display: block;
|
492
492
|
font-family: var(--mdc-text-font-family);
|
493
493
|
}
|
494
|
-
`,
|
494
|
+
`,oh],sh=Rf;var ao=class extends Z{constructor(){super(...arguments);this.type=Ie.TYPE;this.tagname=Ie.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case yt.H1:return F`<h1 part=${Ie.CSS_PART_TEXT}><slot></slot></h1>`;case yt.H2:return F`<h2 part=${Ie.CSS_PART_TEXT}><slot></slot></h2>`;case yt.H3:return F`<h3 part=${Ie.CSS_PART_TEXT}><slot></slot></h3>`;case yt.H4:return F`<h4 part=${Ie.CSS_PART_TEXT}><slot></slot></h4>`;case yt.H5:return F`<h5 part=${Ie.CSS_PART_TEXT}><slot></slot></h5>`;case yt.H6:return F`<h6 part=${Ie.CSS_PART_TEXT}><slot></slot></h6>`;case yt.DIV:return F`<div part=${Ie.CSS_PART_TEXT}><slot></slot></div>`;case yt.SPAN:return F`<span part=${Ie.CSS_PART_TEXT}><slot></slot></span>`;case yt.SMALL:return F`<small part=${Ie.CSS_PART_TEXT}><slot></slot></small>`;case yt.P:default:return F`<p part=${Ie.CSS_PART_TEXT}><slot></slot></p>`}}};ao.styles=[...Z.styles,...sh],y([A({attribute:"type",reflect:!0,type:String})],ao.prototype,"type",2),y([A({attribute:"tagname",reflect:!0,type:String})],ao.prototype,"tagname",2);var ol=ao;ol.register(ns);var Of=ol;var Pf=[Et,W`
|
495
495
|
:host {
|
496
496
|
--mdc-icon-fill-color: currentColor;
|
497
497
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -506,7 +506,7 @@
|
|
506
506
|
width: 100%;
|
507
507
|
fill: var(--mdc-icon-fill-color);
|
508
508
|
}
|
509
|
-
`,...
|
509
|
+
`,...At()],ah=Pf;var Df=l=>{let{host:o,context:e,subscribe:s}=l;return new to(o,{context:e,subscribe:s!=null?s:!0})},Ff={consume:Df},nh=Ff;var Aa=j.constructTagName("iconprovider"),lh=["svg"],ch=["em","rem","px","%"],zf={px:16,em:1,rem:1,"%":100},Ar={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:zf.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var _a=class{};_a.context=Aa;var Sa=_a;var nr=class extends ro{constructor(){super({context:Sa.context,initialValue:new Sa});this.iconSet=Ar.ICON_SET;this.fileExtension=Ar.FILE_EXTENSION;this.lengthUnit=Ar.LENGTH_UNIT;this.size=Ar.SIZE}static get Context(){return Sa.context}updateValuesInContext(){this.fileExtension&&lh.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ar.FILE_EXTENSION,this.context.value.fileExtension=Ar.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&&ch.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ar.LENGTH_UNIT,this.context.value.lengthUnit=Ar.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())}};y([A({type:String,attribute:"icon-set",reflect:!0})],nr.prototype,"iconSet",2),y([A({type:String})],nr.prototype,"url",2),y([A({type:String,attribute:"file-extension",reflect:!0})],nr.prototype,"fileExtension",2),y([A({type:String,attribute:"length-unit",reflect:!0})],nr.prototype,"lengthUnit",2),y([A({type:Number,reflect:!0})],nr.prototype,"size",2),y([A({type:String,attribute:"cache-strategy"})],nr.prototype,"cacheStrategy",2),y([A({type:String,attribute:"cache-name"})],nr.prototype,"cacheName",2);var ls=nr;var cs={},dh=async l=>(cs[l]===void 0&&(cs[l]=new Map),{async set(o,e){cs[l].set(o.url,await e.text())},async get(o){return cs[l].get(o.url)},async delete(o){cs[l].delete(o.url)}}),hh=async l=>{let o=await caches.open(l);return{set:async(e,s)=>{await o.put(e,s)},get:async e=>{let s=await o.match(e);return s==null?void 0:s.text()},delete:async e=>{await o.delete(e)}}},mh=async(l,o)=>o==="in-memory-cache"?dh(l):hh(l);var ph=async l=>fetch(l).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),uh=async({url:l,name:o,fileExtension:e,cacheStrategy:s,cacheName:n,renewSignal:h})=>{let f=h(),S=new Request(`${l}/${o}.${e}`,{signal:f});return!n||!s||!["in-memory-cache","web-cache-api"].includes(s)?ph(S).then(M=>M.text()):mh(n,s).then(M=>M.get(S).then(B=>B||ph(S.clone()).then(G=>{var q;return G.status<400&&G.headers.has("content-type")?(q=M.set)==null?void 0:q.call(M,S,G.clone()).then(()=>G.text()):G.text()})).catch(B=>{throw new Error(`Error in caching the Icon ${o}, ${B}`)}))};var fh=j.constructTagName("icon"),sl={NAME:void 0,SIZE:1};var Le=class extends Z{constructor(){super();this.name=sl.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=nh.consume({host:this,context:ls.Context});this.abortController=new AbortController}prepareIconElement(e){let s=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&s.setAttribute("data-name",this.name),s.setAttribute("part","icon"),s.setAttribute("aria-hidden","true"),s}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:s,url:n,cacheName:h,iconSet:f,cacheStrategy:S}=this.iconProviderContext.value;if(f==="custom-icons"&&n&&s&&this.name){let M=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return uh({url:n,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:S,renewSignal:M}).then(B=>{let G=this.prepareIconElement(B);this.handleIconLoadedSuccess(G)}).catch(B=>{this.handleIconLoadedFailure(B)})}if(f==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(M=>{this.handleIconLoadedSuccess(M.default())}).catch(M=>{this.handleIconLoadedFailure(M)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleIconLoadedFailure(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let s=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",s)}}get computedIconSize(){var e,s;return(s=(e=this.size)!=null?e:this.sizeFromContext)!=null?s:sl.SIZE}updated(e){var s,n,h,f;super.updated(e),e.has("name")&&this.getIconData().catch(S=>{S.name!=="AbortError"&&this.onerror&&this.onerror(S)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.lengthUnit)&&(this.lengthUnitFromContext=(n=this.iconProviderContext.value)==null?void 0:n.lengthUnit,this.updateSize()),this.sizeFromContext!==((h=this.iconProviderContext.value)==null?void 0:h.size)&&(this.sizeFromContext=(f=this.iconProviderContext.value)==null?void 0:f.size,this.updateSize())}render(){return F` ${this.iconData} `}};Le.styles=[...Z.styles,...ah],y([Tt()],Le.prototype,"iconData",2),y([Tt()],Le.prototype,"lengthUnitFromContext",2),y([Tt()],Le.prototype,"sizeFromContext",2),y([A({type:String,reflect:!0})],Le.prototype,"name",2),y([A({type:Number})],Le.prototype,"size",2),y([A({type:String,attribute:"length-unit"})],Le.prototype,"lengthUnit",2),y([A({type:String,attribute:"aria-label"})],Le.prototype,"ariaLabel",2),y([A({type:String,attribute:"aria-labelledby"})],Le.prototype,"ariaLabelledBy",2),y([Tt()],Le.prototype,"abortController",2);var al=Le;al.register(fh);var $f=al;il.register(eh);var Vf=il;var Bf=W`
|
510
510
|
:host {
|
511
511
|
--mdc-appheader-height: 4rem;
|
512
512
|
}
|
@@ -540,7 +540,7 @@
|
|
540
540
|
:host::part(trailing-section) {
|
541
541
|
justify-content: flex-end;
|
542
542
|
}
|
543
|
-
`,
|
543
|
+
`,vh=[Bf];var ka=class extends Z{render(){return F`
|
544
544
|
<header part="container">
|
545
545
|
<div part="leading-section">
|
546
546
|
<slot name="leading"></slot>
|
@@ -551,7 +551,7 @@
|
|
551
551
|
<div part="trailing-section">
|
552
552
|
<slot name="trailing"></slot>
|
553
553
|
</div>
|
554
|
-
</header>`}};
|
554
|
+
</header>`}};ka.styles=[...Z.styles,...vh];var nl=ka;var gh=j.constructTagName("appheader");nl.register(gh);var Uf=nl;var ht=l=>l!=null?l:X;var bh=j.constructTagName("avatar"),he={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ll=99,Hf="user-regular",Nt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},no={TYPE:he.PHOTO,SIZE:Nt[32],ICON_NAME:Hf};var Ca=l=>{class o extends l{constructor(){super(...arguments);this.size=no.SIZE;this.isTyping=!1}}return y([A({type:String})],o.prototype,"src",2),y([A({type:String})],o.prototype,"initials",2),y([A({type:String})],o.prototype,"presence",2),y([A({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),y([A({type:Number})],o.prototype,"counter",2),y([A({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var Te=l=>{class o extends l{}return y([A({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var Gf=[Et,W`
|
555
555
|
:host {
|
556
556
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
557
557
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -674,38 +674,38 @@
|
|
674
674
|
outline: 0.125rem solid;
|
675
675
|
}
|
676
676
|
}
|
677
|
-
`],
|
678
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
679
|
-
`:
|
677
|
+
`],yh=Gf;var Eh=j.constructTagName("presence"),ne={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},Yt={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},lo={TYPE:ne.ACTIVE,SIZE:Yt.SMALL};var xh=l=>({[Nt[124]]:Yt.XX_LARGE,[Nt[88]]:Yt.X_LARGE,[Nt[72]]:Yt.LARGE,[Nt[64]]:Yt.MIDSIZE,[Nt[48]]:Yt.SMALL,[Nt[32]]:Yt.X_SMALL,[Nt[24]]:Yt.XX_SMALL})[l]||Yt.X_SMALL,Th=l=>({[Nt[124]]:4.75,[Nt[88]]:3,[Nt[72]]:2.5,[Nt[64]]:2.25,[Nt[48]]:1.75,[Nt[32]]:1.25,[Nt[24]]:1})[l]||1.25,Ah=l=>({[Nt[124]]:nt.HEADING_XLARGE_MEDIUM,[Nt[88]]:nt.HEADING_LARGE_MEDIUM,[Nt[72]]:nt.HEADING_MIDSIZE_MEDIUM,[Nt[64]]:nt.HEADING_SMALL_MEDIUM,[Nt[48]]:nt.HEADING_SMALL_MEDIUM,[Nt[32]]:nt.BODY_MIDSIZE_MEDIUM,[Nt[24]]:nt.BODY_SMALL_MEDIUM})[l]||nt.BODY_MIDSIZE_MEDIUM;var ds=class extends Ca(Te(Z)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===he.COUNTER&&(this.counter||this.counter===0)||this.isTyping?X:this.presence?F`
|
678
|
+
<mdc-presence part="presence" type="${this.presence}" size="${xh(this.size)}"></mdc-presence>
|
679
|
+
`:X}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return F`
|
680
680
|
<img
|
681
681
|
part="photo"
|
682
|
-
src="${
|
682
|
+
src="${ht(this.src)}"
|
683
683
|
aria-hidden="true"
|
684
684
|
?hidden="${!this.isPhotoLoaded}"
|
685
685
|
@load="${this.handleOnLoad}"
|
686
686
|
@error="${this.handleOnError}"
|
687
687
|
/>
|
688
|
-
`}iconTemplate(){let e=this.iconName||
|
688
|
+
`}iconTemplate(){let e=this.iconName||no.ICON_NAME;return F`
|
689
689
|
<mdc-icon
|
690
|
-
name="${
|
690
|
+
name="${ht(e)}"
|
691
691
|
length-unit="rem"
|
692
|
-
size="${
|
692
|
+
size="${Th(this.size)}"
|
693
693
|
></mdc-icon>
|
694
694
|
`}textTemplate(e){return F`
|
695
695
|
<mdc-text
|
696
|
-
type="${
|
696
|
+
type="${Ah(this.size)}"
|
697
697
|
tagname="span"
|
698
698
|
>
|
699
699
|
${e}
|
700
700
|
</mdc-text>
|
701
|
-
`}generateCounterText(e){return e<0?"0":e>
|
701
|
+
`}generateCounterText(e){return e<0?"0":e>ll?`${ll}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let s="";return e===he.TEXT&&this.initials&&(s=this.generateInitialsText(this.initials)),e===he.COUNTER&&(this.counter||this.counter===0)&&(s=this.generateCounterText(this.counter)),this.textTemplate(s)}getTypeBasedOnInputs(){return this.src?he.PHOTO:this.iconName?he.ICON:this.initials?he.TEXT:this.counter||this.counter===0?he.COUNTER:he.ICON}getTemplateBasedOnType(e){switch(e){case he.PHOTO:return this.photoTemplate();case he.TEXT:case he.COUNTER:return this.generateTextContent(e);case he.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?F`<div part="loading-wrapper"><div part="loader"></div></div>`:X}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?X:e===he.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():X}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return F`
|
702
702
|
<div part="content" aria-hidden="true">
|
703
703
|
${this.getPhotoPlaceHolderContent(e)}
|
704
704
|
${this.getTemplateBasedOnType(e)}
|
705
705
|
${this.getLoadingContent()}
|
706
706
|
${this.getPresenceTemplateBasedOnType(e)}
|
707
707
|
</div>
|
708
|
-
`}};
|
708
|
+
`}};ds.styles=[...Z.styles,...yh],y([Tt()],ds.prototype,"isPhotoLoaded",2);var cl=ds;var jf=[Et,W`
|
709
709
|
:host {
|
710
710
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
711
711
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -799,7 +799,7 @@
|
|
799
799
|
.mdc-presence-icon__scheduled {
|
800
800
|
color: var(--mdc-presence-scheduled-background-color);
|
801
801
|
}
|
802
|
-
`],
|
802
|
+
`],_h=jf;var Sh=l=>{switch(l){case ne.AWAY:return"recents-presence-badge-filled";case ne.AWAY_CALLING:return"away-calling-presence-filled";case ne.BUSY:return"busy-presence-bold";case ne.DND:return"dnd-presence-badge-filled";case ne.MEETING:return"camera-filled";case ne.ON_CALL:return"handset-filled";case ne.ON_DEVICE:return"generic-device-video-badge-filled";case ne.ON_MOBILE:return"phone-badge-filled";case ne.PAUSE:return"pause-badge-filled";case ne.PTO:return"pto-presence-filled";case ne.PRESENTING:return"share-screen-badge-filled";case ne.QUIET:return"quiet-hours-presence-filled";case ne.SCHEDULED:return"meetings-presence-badge-filled";case ne.ACTIVE:default:return"active-presence-small-filled"}};var bi=class extends Z{constructor(){super(...arguments);this.type=lo.TYPE;this.size=lo.SIZE;this.currentIconType=lo.TYPE}get iconSize(){switch(this.size){case Yt.MIDSIZE:return 1.16125;case Yt.LARGE:return 1.30625;case Yt.X_LARGE:return 1.596875;case Yt.XX_LARGE:return 2.25;case Yt.XX_SMALL:case Yt.X_SMALL:case Yt.SMALL:default:return this.size=lo.SIZE,.875}}get icon(){let e=Sh(this.type);return e==="active-presence-small-filled"&&(this.type=lo.TYPE),e}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 F`
|
803
803
|
<div class="mdc-presence mdc-presence__${this.size}">
|
804
804
|
<mdc-icon
|
805
805
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -809,7 +809,7 @@
|
|
809
809
|
@error="${this.handleOnError}"
|
810
810
|
></mdc-icon>
|
811
811
|
</div>
|
812
|
-
`}};
|
812
|
+
`}};bi.styles=[...Z.styles,..._h],y([A({type:String,reflect:!0})],bi.prototype,"type",2),y([A({type:String,reflect:!0})],bi.prototype,"size",2),y([Tt()],bi.prototype,"currentIconType",2);var dl=bi;dl.register(Eh);var Wf=dl;cl.register(bh);var qf=cl;var yi=j.constructTagName("button"),ee={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},hs={40:40,32:32,28:28,24:24},Xr={64:64,52:52,20:20,...hs},Ei={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},co={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ae={VARIANT:ee.PRIMARY,SIZE:hs[32],COLOR:Ei.DEFAULT,TYPE_INTERNAL:co.ICON,TYPE:io.BUTTON,INVERTED:!1};var Yf=[Et,W`
|
813
813
|
:host {
|
814
814
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
815
815
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -838,18 +838,18 @@
|
|
838
838
|
:host::part(presence) {
|
839
839
|
z-index: 2;
|
840
840
|
}
|
841
|
-
`,...
|
841
|
+
`,...At()],kh=Yf;var ms=class extends Ca(Te(xe)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=Ae.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(Nt).includes(e)?`${e}`:no.SIZE.toString())}render(){return F`
|
842
842
|
<div part="overlay" aria-hidden="true"></div>
|
843
843
|
<mdc-avatar
|
844
844
|
?is-typing="${this.isTyping}"
|
845
|
-
counter="${
|
846
|
-
icon-name="${
|
847
|
-
initials="${
|
848
|
-
presence="${
|
849
|
-
size="${
|
850
|
-
src="${
|
845
|
+
counter="${ht(this.counter)}"
|
846
|
+
icon-name="${ht(this.iconName)}"
|
847
|
+
initials="${ht(this.initials)}"
|
848
|
+
presence="${ht(this.presence)}"
|
849
|
+
size="${ht(this.size)}"
|
850
|
+
src="${ht(this.src)}"
|
851
851
|
></mdc-avatar>
|
852
|
-
`}};
|
852
|
+
`}};ms.styles=[...kh],y([A({type:String,attribute:"aria-label"})],ms.prototype,"ariaLabel",2);var hl=ms;var Ch=j.constructTagName("avatarbutton");hl.register(Ch);var Kf=hl;var wa={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ps=l=>(...o)=>({_$litDirective$:l,values:o}),ho=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,e,s){this.t=o,this._$AM=e,this.i=s}_$AS(o,e){return this.update(o,e)}update(o,e){return this.render(...e)}};var mo=ps(class extends ho{constructor(l){var o;if(super(l),l.type!==wa.ATTRIBUTE||l.name!=="class"||((o=l.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(l){return" "+Object.keys(l).filter(o=>l[o]).join(" ")+" "}update(l,[o]){var s,n;if(this.st===void 0){this.st=new Set,l.strings!==void 0&&(this.nt=new Set(l.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(let h in o)o[h]&&!((s=this.nt)!=null&&s.has(h))&&this.st.add(h);return this.render(o)}let e=l.element.classList;for(let h of this.st)h in o||(e.remove(h),this.st.delete(h));for(let h in o){let f=!!o[h];f===this.st.has(h)||(n=this.nt)!=null&&n.has(h)||(f?(e.add(h),this.st.add(h)):(e.remove(h),this.st.delete(h)))}return Er}});var wh=j.constructTagName("badge"),_r={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ia={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},La={PRIMARY:"primary",SECONDARY:"secondary"},us={SUCCESS:"success",WARNING:"warning",ERROR:"error"},QT={...La,...us},Zr={TYPE:_r.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:La.PRIMARY,ICON_SIZE:1};var Xf=[Et,W`
|
853
853
|
:host {
|
854
854
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
855
855
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -918,21 +918,21 @@
|
|
918
918
|
outline: 0.125rem solid;
|
919
919
|
}
|
920
920
|
}
|
921
|
-
`],
|
921
|
+
`],Ih=Xf;var lr=class extends Te(Z){constructor(){super(...arguments);this.variant=Zr.VARIANT;this.maxCounter=Zr.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,s){return s===void 0||typeof s!="number"||e===0?"":s>e?`${e}+`:e>Zr.MAX_COUNTER_LIMIT||s>Zr.MAX_COUNTER_LIMIT?`${Zr.MAX_COUNTER_LIMIT}+`:s.toString()}getBadgeIcon(e,s){return F`
|
922
922
|
<mdc-icon
|
923
|
-
class="mdc-badge-icon ${
|
924
|
-
name="${
|
925
|
-
size="${
|
923
|
+
class="mdc-badge-icon ${mo({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${s}`]:!0})}"
|
924
|
+
name="${ht(e)}"
|
925
|
+
size="${Zr.ICON_SIZE}"
|
926
926
|
></mdc-icon>
|
927
|
-
`}getBadgeDot(){return F`<div class="mdc-badge-dot ${
|
927
|
+
`}getBadgeDot(){return F`<div class="mdc-badge-dot ${mo({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return F`
|
928
928
|
<mdc-text
|
929
|
-
type="${
|
930
|
-
tagname="${
|
931
|
-
class="mdc-badge-text ${
|
929
|
+
type="${nt.BODY_SMALL_MEDIUM}"
|
930
|
+
tagname="${yt.DIV}"
|
931
|
+
class="mdc-badge-text ${mo({"mdc-badge-overlay":this.overlay})}"
|
932
932
|
>
|
933
933
|
${this.getCounterText(this.maxCounter,this.counter)}
|
934
934
|
</mdc-text>
|
935
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
935
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(La).includes(this.variant)&&(this.variant=Zr.VARIANT);let{iconName:e,type:s,variant:n}=this;switch(s){case _r.ICON:return this.getBadgeIcon(e||"",n);case _r.COUNTER:return this.getBadgeCounterText();case _r.SUCCESS:return this.getBadgeIcon(Ia.SUCCESS_ICON_NAME,us.SUCCESS);case _r.WARNING:return this.getBadgeIcon(Ia.WARNING_ICON_NAME,us.WARNING);case _r.ERROR:return this.getBadgeIcon(Ia.ERROR_ICON_NAME,us.ERROR);case _r.DOT:default:return this.type=_r.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};lr.styles=[...Z.styles,...Ih],y([A({type:String,reflect:!0})],lr.prototype,"type",2),y([A({type:String,reflect:!0})],lr.prototype,"variant",2),y([A({type:Number})],lr.prototype,"counter",2),y([A({type:Number,attribute:"max-counter",reflect:!0})],lr.prototype,"maxCounter",2),y([A({type:Boolean})],lr.prototype,"overlay",2),y([A({type:String,attribute:"aria-label"})],lr.prototype,"ariaLabel",2);var ml=lr;ml.register(wh);var Zf=ml;var Jf=W`
|
936
936
|
:host {
|
937
937
|
display: block;
|
938
938
|
height: 100%;
|
@@ -941,7 +941,7 @@
|
|
941
941
|
height: 100%;
|
942
942
|
width: 100%;
|
943
943
|
}
|
944
|
-
`,
|
944
|
+
`,Lh=[Jf];var Mh=j.constructTagName("brandvisual"),Nh={NAME:void 0};var po=class extends Z{constructor(){super(...arguments);this.name=Nh.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(s=>{this.onerror&&this.onerror(s)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleBrandVisualLoadedFailure(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}render(){return F` ${this.brandVisualData} `}};po.styles=[...Z.styles,...Lh],y([Tt()],po.prototype,"brandVisualData",2),y([A({type:String,reflect:!0})],po.prototype,"name",2);var pl=po;pl.register(Mh);var Qf=pl;var tv=W`
|
945
945
|
:host {
|
946
946
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
947
947
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -962,7 +962,7 @@
|
|
962
962
|
:host([size="large"]) {
|
963
963
|
height: var(--mdc-bullet-size-large);
|
964
964
|
}
|
965
|
-
`,
|
965
|
+
`,Rh=[tv];var Oh=j.constructTagName("bullet"),Ph={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var fs=class extends Z{constructor(){super(...arguments);this.size=Ph.SMALL}};fs.styles=[...Z.styles,...Rh],y([A({type:String,reflect:!0})],fs.prototype,"size",2);var ul=fs;ul.register(Oh);var ev=ul;var Ma=l=>{class o extends l{constructor(){super(...arguments);this.variant=Ae.VARIANT;this.color=Ae.COLOR;this.typeInternal=Ae.TYPE_INTERNAL}setVariant(n){this.setAttribute("variant",Object.values(ee).includes(n)?n:Ae.VARIANT)}setColor(n){!Object.values(Ei).includes(n)||this.variant===ee.TERTIARY?this.setAttribute("color",`${Ae.COLOR}`):this.setAttribute("color",n)}setSize(n){let f=this.typeInternal===co.ICON?Object.values(Xr).includes(n)&&!(n===Xr[20]&&this.variant!==ee.TERTIARY):Object.values(hs).includes(n);this.setAttribute("size",f?`${n}`:`${Ae.SIZE}`)}inferButtonType(){var h,f;let n=(f=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"))==null?void 0:f.assignedNodes().filter(S=>{var M;return S.nodeType!==Node.TEXT_NODE||((M=S.textContent)==null?void 0:M.trim())}).length;n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=co.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=co.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=co.PILL,this.setAttribute("data-btn-type","pill"))}}return y([A({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),y([A({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),y([A({type:String})],o.prototype,"variant",2),y([A({type:String})],o.prototype,"color",2),y([Tt()],o.prototype,"typeInternal",2),o};var rv=W`
|
966
966
|
:host {
|
967
967
|
background-color: transparent;
|
968
968
|
border-radius: 1.25rem;
|
@@ -1198,13 +1198,13 @@
|
|
1198
1198
|
--mdc-button-primary-disabled-background-color: var(--mds-color-theme-inverted-button-primary-disabled);
|
1199
1199
|
--mdc-button-primary-disabled-color: var(--mds-color-theme-inverted-text-primary-disabled);
|
1200
1200
|
}
|
1201
|
-
`,
|
1201
|
+
`,Dh=[rv];var vs=l=>{let o=l.split("-"),e=["bold","filled","regular","light"];return o.filter(s=>!e.includes(s)).join("-")};var Sr=class extends Ma(xe){constructor(){super(...arguments);this.size=Ae.SIZE;this.inverted=Ae.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${vs(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${vs(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return F`
|
1202
1202
|
${this.prefixFilledIconName?F` <mdc-icon name="${this.prefixFilledIconName}"
|
1203
1203
|
part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1204
1204
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1205
1205
|
${this.postfixFilledIconName?F` <mdc-icon name="${this.postfixFilledIconName}"
|
1206
1206
|
part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1207
|
-
`}};
|
1207
|
+
`}};Sr.styles=[...xe.styles,...Dh],y([A({type:Number})],Sr.prototype,"size",2),y([A({type:Boolean,reflect:!0})],Sr.prototype,"inverted",2),y([A({type:String,reflect:!0})],Sr.prototype,"role",2),y([Tt()],Sr.prototype,"prefixFilledIconName",2),y([Tt()],Sr.prototype,"postfixFilledIconName",2);var xi=Sr;xi.register(yi);var iv=xi;var Fh=j.constructTagName("linksimple"),fl={INLINE:!1,INVERTED:!1};var ov=[Et,W`
|
1208
1208
|
:host {
|
1209
1209
|
--mdc-link-border-radius: 0.25rem;
|
1210
1210
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1271,15 +1271,15 @@
|
|
1271
1271
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1272
1272
|
}
|
1273
1273
|
|
1274
|
-
`,...
|
1274
|
+
`,...At()],zh=ov;var kr=class extends Pt(ar(Z)){constructor(){super(...arguments);this.inline=fl.INLINE;this.inverted=fl.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return F`
|
1275
1275
|
<slot></slot>
|
1276
|
-
`}};
|
1276
|
+
`}};kr.styles=[...Z.styles,...zh],y([A({type:Boolean,reflect:!0})],kr.prototype,"inline",2),y([A({type:Boolean,reflect:!0})],kr.prototype,"inverted",2),y([A({type:String,reflect:!0})],kr.prototype,"href",2),y([A({type:String,reflect:!0})],kr.prototype,"target",2),y([A({type:String,reflect:!0})],kr.prototype,"rel",2);var Jr=kr;var uo=class extends Ma(Jr){constructor(){super(...arguments);this.size=Ae.SIZE}setSoftDisabled(e,s){s?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}render(){return F`
|
1277
1277
|
${this.prefixIcon?F` <mdc-icon name="${this.prefixIcon}"
|
1278
1278
|
part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1279
1279
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1280
1280
|
${this.postfixIcon?F` <mdc-icon name="${this.postfixIcon}"
|
1281
1281
|
part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1282
|
-
`}};
|
1282
|
+
`}};uo.styles=[...xi.styles],y([A({type:Number,reflect:!0})],uo.prototype,"size",2),y([A({type:Boolean,attribute:"soft-disabled",reflect:!0})],uo.prototype,"softDisabled",2);var vl=uo;var $h=j.constructTagName("buttonlink");vl.register($h);var sv=vl;var av=W`
|
1283
1283
|
:host {
|
1284
1284
|
align-items: flex-start;
|
1285
1285
|
border-radius: 0.5rem;
|
@@ -1363,27 +1363,27 @@
|
|
1363
1363
|
margin-bottom: 0.5rem;
|
1364
1364
|
}
|
1365
1365
|
|
1366
|
-
`,
|
1366
|
+
`,Vh=[Et,av];var Na=j.constructTagName("link"),Ra={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Oa={LARGE:1,MIDSIZE:.875,SMALL:.75},Bh={LINK_SIZE:Ra.LARGE};var Uh=j.constructTagName("card"),gl={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},nv={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Kt={VARIANT:gl.BORDER,ORIENTATION:nv.VERTICAL,TITLE_TYPE:nt.HEADING_SMALL_BOLD,SUBTITLE_TYPE:nt.BODY_MIDSIZE_MEDIUM,TAGNAME:yt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Na,BUTTON:yi};var Pa=l=>{class o extends l{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Kt.VARIANT;this.orientation=Kt.ORIENTATION;this.titleTagName=Kt.TAGNAME;this.subtitleTagName=Kt.TAGNAME}renderImage(){return this.imageSrc?F`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:X}renderIcon(){return this.iconName?F`<mdc-icon
|
1367
1367
|
part="icon"
|
1368
|
-
size="${
|
1369
|
-
length-unit="${
|
1368
|
+
size="${Kt.ICON_SIZE}"
|
1369
|
+
length-unit="${Kt.ICON_LENGTH_UNIT}"
|
1370
1370
|
name="${this.iconName}"
|
1371
|
-
></mdc-icon>`:
|
1372
|
-
<mdc-text part="title" type="${
|
1373
|
-
${this.subtitle?F`<mdc-text part="subtitle" type="${
|
1371
|
+
></mdc-icon>`:X}renderTitle(){return F`<div part="title-container">
|
1372
|
+
<mdc-text part="title" type="${Kt.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
|
1373
|
+
${this.subtitle?F`<mdc-text part="subtitle" type="${Kt.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1374
1374
|
>${this.subtitle}</mdc-text
|
1375
|
-
>`:
|
1376
|
-
</div>`}}return y([A({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),y([A({type:String,reflect:!0})],o.prototype,"subtitle",2),y([A({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),y([A({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),y([A({type:String,reflect:!0})],o.prototype,"variant",2),y([A({type:String,reflect:!0})],o.prototype,"orientation",2),y([A({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),y([A({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),y([A({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var
|
1377
|
-
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(
|
1375
|
+
>`:X}
|
1376
|
+
</div>`}}return y([A({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),y([A({type:String,reflect:!0})],o.prototype,"subtitle",2),y([A({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),y([A({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),y([A({type:String,reflect:!0})],o.prototype,"variant",2),y([A({type:String,reflect:!0})],o.prototype,"orientation",2),y([A({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),y([A({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),y([A({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Da=l=>{class o extends l{updateFooterButtonColors(s){let n=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];n==null||n.forEach(h=>{s===gl.PROMOTIONAL?h.setAttribute("color",Ei.PROMOTIONAL):h.setAttribute("color",Ei.DEFAULT)})}handleFooterSlot(s,n){var f,S,M;let h=[];s===Kt.LINK&&((f=this.footerLink)!=null&&f.length)?h=this.footerLink:s===Kt.BUTTON&&n===ee.PRIMARY&&((S=this.footerButtonPrimary)!=null&&S.length)?h=this.footerButtonPrimary:s===Kt.BUTTON&&n===ee.SECONDARY&&((M=this.footerButtonSecondary)!=null&&M.length)&&(h=this.footerButtonSecondary);for(let B=1;B<h.length;B+=1)h[B].remove();h.forEach(B=>{B.matches(s)||B.remove(),n&&B.setAttribute("variant",n)})}renderFooter(){return F`<div part="footer">
|
1377
|
+
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Kt.LINK)}></slot>
|
1378
1378
|
<slot name="footer-button-secondary"
|
1379
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1379
|
+
@slotchange=${()=>this.handleFooterSlot(Kt.BUTTON,ee.SECONDARY)}></slot>
|
1380
1380
|
<slot name="footer-button-primary"
|
1381
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1382
|
-
</div>`}}return y([
|
1381
|
+
@slotchange=${()=>this.handleFooterSlot(Kt.BUTTON,ee.PRIMARY)}></slot>
|
1382
|
+
</div>`}}return y([Ft({slot:"footer-link"})],o.prototype,"footerLink",2),y([Ft({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),y([Ft({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var gs=class extends Pa(Da(Z)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(s=>{!s.matches(Kt.BUTTON)&&s.getAttribute("data-btn-type")!=="icon"?s.remove():(s.setAttribute("variant",ee.TERTIARY),s.setAttribute("size","32"))}),this.iconButtons&&this.iconButtons.length>3)for(let s=3;s<this.iconButtons.length;s+=1)this.iconButtons[s].remove()}}update(e){super.update(e),e.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?F`<div part="header">
|
1383
1383
|
${this.renderIcon()}
|
1384
1384
|
${this.renderTitle()}
|
1385
1385
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1386
|
-
</div>`:
|
1386
|
+
</div>`:X}render(){return F`
|
1387
1387
|
${this.renderImage()}
|
1388
1388
|
<div part="body">
|
1389
1389
|
${this.renderHeader()}
|
@@ -1392,7 +1392,7 @@
|
|
1392
1392
|
<slot name="after-body"></slot>
|
1393
1393
|
${this.renderFooter()}
|
1394
1394
|
</div>
|
1395
|
-
`}};
|
1395
|
+
`}};gs.styles=[...Z.styles,...Vh],y([Ft({slot:"icon-button"})],gs.prototype,"iconButtons",2);var Xe=gs;Xe.register(Uh);var lv=Xe;var cv=W`
|
1396
1396
|
:host {
|
1397
1397
|
cursor: pointer;
|
1398
1398
|
user-select: none;
|
@@ -1414,10 +1414,10 @@
|
|
1414
1414
|
:host([disabled])::part(image){
|
1415
1415
|
opacity: 0.5;
|
1416
1416
|
}
|
1417
|
-
`,
|
1417
|
+
`,Hh=[cv,...At()];var Fa=class extends Pa(xe){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?F`<div part="header">
|
1418
1418
|
${this.renderIcon()}
|
1419
1419
|
${this.renderTitle()}
|
1420
|
-
</div>`:
|
1420
|
+
</div>`:X}render(){return F`
|
1421
1421
|
${this.renderImage()}
|
1422
1422
|
<div part="body">
|
1423
1423
|
${this.renderHeader()}
|
@@ -1425,7 +1425,7 @@
|
|
1425
1425
|
<slot name="body"></slot>
|
1426
1426
|
<slot name="after-body"></slot>
|
1427
1427
|
</div>
|
1428
|
-
`}}
|
1428
|
+
`}};Fa.styles=[...Xe.styles,...Hh];var bl=Fa;var Gh=j.constructTagName("cardbutton");bl.register(Gh);var dv=bl;var hv=W`
|
1429
1429
|
:host {
|
1430
1430
|
cursor: pointer;
|
1431
1431
|
user-select: none;
|
@@ -1482,16 +1482,16 @@
|
|
1482
1482
|
:host([disabled])::part(check-icon){
|
1483
1483
|
color: var(--mds-color-theme-text-primary-disabled);
|
1484
1484
|
}
|
1485
|
-
`,
|
1486
|
-
size="${
|
1487
|
-
length-unit="${
|
1488
|
-
name="${e}"></mdc-icon>`;case
|
1485
|
+
`,jh=[hv,...At()];var Wh=j.constructTagName("cardcheckbox"),yl={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},za={CHECK:"check",CHECKBOX:"checkbox"},$a={SELECTION_TYPE:za.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var zt={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",RADIO:"radio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var fo=class extends Pt(ar(Xe)){constructor(){super();this.checked=!1;this.selectionType=$a.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=zt.CHECKBOX}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderSelection(){let e=this.checked?yl.CHECKED:yl.DEFAULT;switch(this.selectionType){case za.CHECK:return F`<mdc-icon part="check check-icon"
|
1486
|
+
size="${$a.ICON_SIZE}"
|
1487
|
+
length-unit="${$a.ICON_LENGTH_UNIT}"
|
1488
|
+
name="${e}"></mdc-icon>`;case za.CHECKBOX:return F`<mdc-staticcheckbox part="check"
|
1489
1489
|
?checked="${this.checked}"
|
1490
|
-
?disabled="${this.disabled}"></mdc-staticcheckbox>`;default:return
|
1490
|
+
?disabled="${this.disabled}"></mdc-staticcheckbox>`;default:return X}}renderHeader(){return this.cardTitle?F`<div part="header">
|
1491
1491
|
${this.renderIcon()}
|
1492
1492
|
${this.renderTitle()}
|
1493
1493
|
${this.renderSelection()}
|
1494
|
-
</div>`:
|
1494
|
+
</div>`:X}render(){return F`
|
1495
1495
|
${this.renderImage()}
|
1496
1496
|
<div part="body">
|
1497
1497
|
${this.renderHeader()}
|
@@ -1499,7 +1499,7 @@
|
|
1499
1499
|
<slot name="body"></slot>
|
1500
1500
|
<slot name="after-body"></slot>
|
1501
1501
|
</div>
|
1502
|
-
`}};
|
1502
|
+
`}};fo.styles=[...Xe.styles,...jh],y([A({type:Boolean,reflect:!0})],fo.prototype,"checked",2),y([A({type:String,attribute:"selection-type",reflect:!0})],fo.prototype,"selectionType",2);var El=fo;var mv=[W`
|
1503
1503
|
:host{
|
1504
1504
|
margin: 0.125rem 0;
|
1505
1505
|
border-radius: 0.125rem;
|
@@ -1556,15 +1556,15 @@
|
|
1556
1556
|
border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
|
1557
1557
|
}
|
1558
1558
|
}
|
1559
|
-
`],
|
1559
|
+
`],qh=mv;var Yh=j.constructTagName("checkbox"),Va={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Kh=j.constructTagName("staticcheckbox");var vo=class extends Pt(Z){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?F`
|
1560
1560
|
<mdc-icon
|
1561
1561
|
class="icon"
|
1562
|
-
name="${this.indeterminate?
|
1562
|
+
name="${this.indeterminate?Va.INDETERMINATE:Va.CHECKED}"
|
1563
1563
|
size="1"
|
1564
1564
|
length-unit="rem"
|
1565
1565
|
></mdc-icon>
|
1566
|
-
`:
|
1567
|
-
<div part="icon-container">${e}</div>`}};
|
1566
|
+
`:X;return F`<slot></slot>
|
1567
|
+
<div part="icon-container">${e}</div>`}};vo.styles=[...Z.styles,...qh],y([A({type:Boolean,reflect:!0})],vo.prototype,"checked",2),y([A({type:Boolean,reflect:!0})],vo.prototype,"indeterminate",2);var xl=vo;xl.register(Kh);var pv=xl;El.register(Wh);var uv=El;var fv=W`
|
1568
1568
|
:host {
|
1569
1569
|
cursor: pointer;
|
1570
1570
|
user-select: none;
|
@@ -1617,13 +1617,13 @@
|
|
1617
1617
|
:host([disabled])::part(image){
|
1618
1618
|
opacity: 0.5;
|
1619
1619
|
}
|
1620
|
-
`,
|
1620
|
+
`,Xh=[fv,...At()];var go=class extends Pt(ar(Xe)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=zt.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(s=>{s.checked=!1}),this.checked=!0}setDisabled(e){this.setAttribute("aria-disabled",`${e}`),this.tabIndex=e?-1:0}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(e,s){e[s].focus(),e[s].toggleChecked()}toggleOnEnter(e){if(this.disabled)return;let n=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let f=(h+1)%n.length;this.updateCardRadio(n,f)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let f=(h-1+n.length)%n.length;this.updateCardRadio(n,f)}e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?F`<div part="header">
|
1621
1621
|
${this.renderIcon()}
|
1622
1622
|
${this.renderTitle()}
|
1623
1623
|
<mdc-staticradio part="check"
|
1624
1624
|
?checked="${this.checked}"
|
1625
1625
|
?disabled="${this.disabled}"></mdc-staticradio>
|
1626
|
-
</div>`:
|
1626
|
+
</div>`:X}render(){return F`
|
1627
1627
|
${this.renderImage()}
|
1628
1628
|
<div part="body">
|
1629
1629
|
${this.renderHeader()}
|
@@ -1631,7 +1631,7 @@
|
|
1631
1631
|
<slot name="body"></slot>
|
1632
1632
|
<slot name="after-body"></slot>
|
1633
1633
|
</div>
|
1634
|
-
`}};
|
1634
|
+
`}};go.styles=[...Xe.styles,...Xh],y([A({type:Boolean,reflect:!0})],go.prototype,"checked",2),y([A({type:String})],go.prototype,"name",2);var Tl=go;var Ba=j.constructTagName("cardradio");var vv=[W`
|
1635
1635
|
:host{
|
1636
1636
|
display: block;
|
1637
1637
|
position: relative;
|
@@ -1714,9 +1714,9 @@
|
|
1714
1714
|
:host([readonly][checked]) .icon:after{
|
1715
1715
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
1716
1716
|
}
|
1717
|
-
`],
|
1717
|
+
`],Zh=vv;var bo=class extends Pt(Z){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return F`
|
1718
1718
|
<slot></slot>
|
1719
|
-
<span part="radio-icon" class="icon"></span>`}};
|
1719
|
+
<span part="radio-icon" class="icon"></span>`}};bo.styles=[...Z.styles,...Zh],y([A({type:Boolean,reflect:!0})],bo.prototype,"checked",2),y([A({type:Boolean,reflect:!0})],bo.prototype,"readonly",2);var Al=bo;var Jh=j.constructTagName("staticradio");Al.register(Jh);var gv=Al;Tl.register(Ba);var bv=Tl;var Ut=l=>{class o extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return y([A({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var re=[];for(let l=0;l<256;++l)re.push((l+256).toString(16).slice(1));function Qh(l,o=0){return(re[l[o+0]]+re[l[o+1]]+re[l[o+2]]+re[l[o+3]]+"-"+re[l[o+4]]+re[l[o+5]]+"-"+re[l[o+6]]+re[l[o+7]]+"-"+re[l[o+8]]+re[l[o+9]]+"-"+re[l[o+10]]+re[l[o+11]]+re[l[o+12]]+re[l[o+13]]+re[l[o+14]]+re[l[o+15]]).toLowerCase()}var _l,yv=new Uint8Array(16);function Sl(){if(!_l){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");_l=crypto.getRandomValues.bind(crypto)}return _l(yv)}var Ev=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),kl={randomUUID:Ev};function xv(l,o,e){var n,h,f;if(kl.randomUUID&&!o&&!l)return kl.randomUUID();l=l||{};let s=(f=(h=l.random)!=null?h:(n=l.rng)==null?void 0:n.call(l))!=null?f:Sl();if(s.length<16)throw new Error("Random bytes length must be >= 16");if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,o){if(e=e||0,e<0||e+16>o.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let S=0;S<16;++S)o[e+S]=s[S];return o}return Qh(s)}var Cr=xv;var _e=l=>{class o extends l{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}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${Cr()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,y([A({reflect:!0,type:String})],o.prototype,"name",2),y([A({reflect:!0,type:String})],o.prototype,"value",2),y([A({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),y([Tr("input")],o.prototype,"inputElement",2),o};var tm=j.constructTagName("formfieldwrapper"),Xt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},$t={VALIDATION:Xt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},Ti={TAGNAME:yt.SPAN,TYPE:nt.BODY_MIDSIZE_REGULAR,HEADER_TYPE:nt.BODY_MIDSIZE_BOLD};var Tv=[Et,W`
|
1720
1720
|
:host {
|
1721
1721
|
flex-direction: column;
|
1722
1722
|
align-items: flex-start;
|
@@ -1769,33 +1769,33 @@
|
|
1769
1769
|
:host([help-text-type='priority']) .mdc-help-text {
|
1770
1770
|
color: var(--mds-color-theme-text-accent-normal);
|
1771
1771
|
}
|
1772
|
-
`],
|
1773
|
-
id="${
|
1774
|
-
tagname="${
|
1775
|
-
type="${
|
1772
|
+
`],em=Tv;var rm=l=>({[Xt.ERROR]:"error-legacy-badge-filled",[Xt.WARNING]:"warning-badge-filled",[Xt.SUCCESS]:"check-circle-badge-filled",[Xt.PRIORITY]:"priority-badge-filled",[Xt.DEFAULT]:""})[l]||"";var wr=class extends Pt(Z){constructor(){super(...arguments);this.id="";this.helpTextType=$t.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?F`<label for="${this.id}" id="${$t.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:F` <mdc-text
|
1773
|
+
id="${$t.HEADING_ID}"
|
1774
|
+
tagname="${Ti.TAGNAME}"
|
1775
|
+
type="${Ti.HEADER_TYPE}"
|
1776
1776
|
part="label"
|
1777
1777
|
>${this.label}</mdc-text
|
1778
|
-
>`:
|
1779
|
-
<mdc-text part="required-label" tagname=${
|
1778
|
+
>`:X}renderRequiredLabel(){return this.requiredLabel?F`
|
1779
|
+
<mdc-text part="required-label" tagname=${Ti.TAGNAME} type=${Ti.TYPE}>
|
1780
1780
|
(${this.requiredLabel})
|
1781
1781
|
</mdc-text>
|
1782
|
-
`:
|
1782
|
+
`:X}renderHelpTextIcon(){if(!this.helpText)return X;let e=rm(this.helpTextType||$t.VALIDATION);return e&&!this.disabled?F`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:X}renderHelpText(){return this.helpText?F`
|
1783
1783
|
<mdc-text
|
1784
|
-
id="${
|
1784
|
+
id="${$t.HELPER_TEXT_ID}"
|
1785
1785
|
part="help-text"
|
1786
|
-
tagname=${
|
1787
|
-
type=${
|
1786
|
+
tagname=${Ti.TAGNAME}
|
1787
|
+
type=${Ti.TYPE}
|
1788
1788
|
>
|
1789
1789
|
${this.helpText}
|
1790
1790
|
</mdc-text>
|
1791
|
-
`:
|
1791
|
+
`:X}renderLabel(){return this.label?F`<div class="mdc-label-text" part="label-text">
|
1792
1792
|
<slot name="label">${this.renderLabelElement()}</slot>
|
1793
1793
|
<slot name="required-label">${this.renderRequiredLabel()}</slot>
|
1794
1794
|
<slot name="label-info"></slot>
|
1795
|
-
</div>`:
|
1795
|
+
</div>`:X}renderHelperText(){return this.helpText?F`<div class="mdc-help-text" part="mdc-help-text">
|
1796
1796
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1797
1797
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
1798
|
-
</div>`:
|
1798
|
+
</div>`:X}};wr.styles=[...Z.styles,...em],y([A({reflect:!0,type:String})],wr.prototype,"label",2),y([A({type:String,reflect:!0,attribute:"required-label"})],wr.prototype,"requiredLabel",2),y([A({type:String})],wr.prototype,"id",2),y([A({reflect:!0,attribute:"help-text-type"})],wr.prototype,"helpTextType",2),y([A({type:String,reflect:!0,attribute:"help-text"})],wr.prototype,"helpText",2);var me=wr;var Av=[W`
|
1799
1799
|
:host {
|
1800
1800
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1801
1801
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -1862,10 +1862,10 @@
|
|
1862
1862
|
}
|
1863
1863
|
|
1864
1864
|
|
1865
|
-
`,...
|
1865
|
+
`,...At(!0)],im=Av;var Ai=class extends _e(Ut(me)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?F`<div class="text-container">
|
1866
1866
|
${this.renderLabel()}
|
1867
1867
|
${this.renderHelperText()}
|
1868
|
-
</div>`:
|
1868
|
+
</div>`:X}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}handleChange(e){this.toggleState();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var e;return F`
|
1869
1869
|
<mdc-staticcheckbox
|
1870
1870
|
class="mdc-focus-ring"
|
1871
1871
|
?checked="${this.checked}"
|
@@ -1876,8 +1876,8 @@
|
|
1876
1876
|
type="checkbox"
|
1877
1877
|
class="input"
|
1878
1878
|
?autofocus="${this.autofocus}"
|
1879
|
-
name="${
|
1880
|
-
value="${
|
1879
|
+
name="${ht(this.name)}"
|
1880
|
+
value="${ht(this.value)}"
|
1881
1881
|
?required="${!!this.requiredLabel}"
|
1882
1882
|
.checked="${this.checked}"
|
1883
1883
|
aria-checked="${this.indeterminate?"mixed":this.checked}"
|
@@ -1885,13 +1885,13 @@
|
|
1885
1885
|
.disabled="${this.disabled}"
|
1886
1886
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
1887
1887
|
tabindex="${this.disabled?-1:0}"
|
1888
|
-
aria-describedby="${
|
1888
|
+
aria-describedby="${ht(this.helpText?$t.HELPER_TEXT_ID:"")}"
|
1889
1889
|
@change=${this.handleChange}
|
1890
1890
|
@keydown=${this.handleKeyDown}
|
1891
1891
|
/>
|
1892
1892
|
</mdc-staticcheckbox>
|
1893
1893
|
${this.renderLabelAndHelperText()}
|
1894
|
-
`}};
|
1894
|
+
`}};Ai.styles=[...me.styles,...im],y([A({type:Boolean,reflect:!0})],Ai.prototype,"checked",2),y([A({type:Boolean,reflect:!0})],Ai.prototype,"indeterminate",2),y([A({type:Boolean,reflect:!0})],Ai.prototype,"autofocus",2);var Cl=Ai;Cl.register(Yh);var _v=Cl;var Sv=W`
|
1895
1895
|
:host {
|
1896
1896
|
height: 1.5rem;
|
1897
1897
|
gap: 0.25rem;
|
@@ -2028,15 +2028,15 @@
|
|
2028
2028
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2029
2029
|
cursor: auto;
|
2030
2030
|
}
|
2031
|
-
`,
|
2031
|
+
`,om=[Et,Sv,...At()];var sm=j.constructTagName("chip"),kv={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},yo={COLOR:kv.DEFAULT,TEXT_TYPE:nt.BODY_MIDSIZE_REGULAR,TAG_NAME:yt.SPAN,SIZE:ss[24],ROLE:"button"};var Eo=class extends Te(xe){constructor(){super(...arguments);this.color=yo.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=yo.ROLE,this.size=yo.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?F`
|
2032
2032
|
<mdc-icon
|
2033
2033
|
name="${this.iconName}"
|
2034
2034
|
length-unit="rem"
|
2035
2035
|
size="1"></mdc-icon>
|
2036
|
-
`:
|
2036
|
+
`:X}render(){return F`
|
2037
2037
|
${this.renderIcon()}
|
2038
|
-
<mdc-text type="${
|
2039
|
-
`}};xo.styles=[...J.styles,...sm],y([A({type:String,reflect:!0})],xo.prototype,"color",2),y([A({type:String})],xo.prototype,"label",2);var To=xo;To.register(am);var Iv=To;var dr=Math.min,ue=Math.max,Es=Math.round,xs=Math.floor,Je=l=>({x:l,y:l}),Lv={left:"right",right:"left",bottom:"top",top:"bottom"},Mv={start:"end",end:"start"};function ja(l,o,e){return ue(l,dr(o,e))}function Si(l,o){return typeof l=="function"?l(o):l}function Lr(l){return l.split("-")[0]}function ki(l){return l.split("-")[1]}function Ll(l){return l==="x"?"y":"x"}function Wa(l){return l==="y"?"height":"width"}function ti(l){return["top","bottom"].includes(Lr(l))?"y":"x"}function qa(l){return Ll(ti(l))}function nm(l,o,e){e===void 0&&(e=!1);let s=ki(l),n=qa(l),h=Wa(n),f=n==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(f=ys(f)),[f,ys(f)]}function lm(l){let o=ys(l);return[Ga(l),o,Ga(o)]}function Ga(l){return l.replace(/start|end/g,o=>Mv[o])}function Nv(l,o,e){let s=["left","right"],n=["right","left"],h=["top","bottom"],f=["bottom","top"];switch(l){case"top":case"bottom":return e?o?n:s:o?s:n;case"left":case"right":return o?h:f;default:return[]}}function cm(l,o,e,s){let n=ki(l),h=Nv(Lr(l),e==="start",s);return n&&(h=h.map(f=>f+"-"+n),o&&(h=h.concat(h.map(Ga)))),h}function ys(l){return l.replace(/left|right|bottom|top/g,o=>Lv[o])}function Rv(l){return{top:0,right:0,bottom:0,left:0,...l}}function Ml(l){return typeof l!="number"?Rv(l):{top:l,right:l,bottom:l,left:l}}function Ci(l){let{x:o,y:e,width:s,height:n}=l;return{width:s,height:n,top:e,left:o,right:o+s,bottom:e+n,x:o,y:e}}function dm(l,o,e){let{reference:s,floating:n}=l,h=ti(o),f=qa(o),S=Wa(f),M=Lr(o),B=h==="y",G=s.x+s.width/2-n.width/2,q=s.y+s.height/2-n.height/2,ot=s[S]/2-n[S]/2,Q;switch(M){case"top":Q={x:G,y:s.y-n.height};break;case"bottom":Q={x:G,y:s.y+s.height};break;case"right":Q={x:s.x+s.width,y:q};break;case"left":Q={x:s.x-n.width,y:q};break;default:Q={x:s.x,y:s.y}}switch(ki(o)){case"start":Q[f]-=ot*(e&&B?-1:1);break;case"end":Q[f]+=ot*(e&&B?-1:1);break}return Q}var hm=async(l,o,e)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:f}=e,S=h.filter(Boolean),M=await(f.isRTL==null?void 0:f.isRTL(o)),B=await f.getElementRects({reference:l,floating:o,strategy:n}),{x:G,y:q}=dm(B,s,M),ot=s,Q={},et=0;for(let ct=0;ct<S.length;ct++){let{name:bt,fn:gt}=S[ct],{x:yt,y:St,data:Bt,reset:Nt}=await gt({x:G,y:q,initialPlacement:s,placement:ot,strategy:n,middlewareData:Q,rects:B,platform:f,elements:{reference:l,floating:o}});G=yt!=null?yt:G,q=St!=null?St:q,Q={...Q,[bt]:{...Q[bt],...Bt}},Nt&&et<=50&&(et++,typeof Nt=="object"&&(Nt.placement&&(ot=Nt.placement),Nt.rects&&(B=Nt.rects===!0?await f.getElementRects({reference:l,floating:o,strategy:n}):Nt.rects),{x:G,y:q}=dm(B,ot,M)),ct=-1)}return{x:G,y:q,placement:ot,strategy:n,middlewareData:Q}};async function Ya(l,o){var e;o===void 0&&(o={});let{x:s,y:n,platform:h,rects:f,elements:S,strategy:M}=l,{boundary:B="clippingAncestors",rootBoundary:G="viewport",elementContext:q="floating",altBoundary:ot=!1,padding:Q=0}=Si(o,l),et=Ml(Q),bt=S[ot?q==="floating"?"reference":"floating":q],gt=Ci(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(bt)))==null||e?bt:bt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(S.floating)),boundary:B,rootBoundary:G,strategy:M})),yt=q==="floating"?{x:s,y:n,width:f.floating.width,height:f.floating.height}:f.reference,St=await(h.getOffsetParent==null?void 0:h.getOffsetParent(S.floating)),Bt=await(h.isElement==null?void 0:h.isElement(St))?await(h.getScale==null?void 0:h.getScale(St))||{x:1,y:1}:{x:1,y:1},Nt=Ci(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:S,rect:yt,offsetParent:St,strategy:M}):yt);return{top:(gt.top-Nt.top+et.top)/Bt.y,bottom:(Nt.bottom-gt.bottom+et.bottom)/Bt.y,left:(gt.left-Nt.left+et.left)/Bt.x,right:(Nt.right-gt.right+et.right)/Bt.x}}var mm=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:n,rects:h,platform:f,elements:S,middlewareData:M}=o,{element:B,padding:G=0}=Si(l,o)||{};if(B==null)return{};let q=Ml(G),ot={x:e,y:s},Q=qa(n),et=Wa(Q),ct=await f.getDimensions(B),bt=Q==="y",gt=bt?"top":"left",yt=bt?"bottom":"right",St=bt?"clientHeight":"clientWidth",Bt=h.reference[et]+h.reference[Q]-ot[Q]-h.floating[et],Nt=ot[Q]-h.reference[Q],Pt=await(f.getOffsetParent==null?void 0:f.getOffsetParent(B)),ve=Pt?Pt[St]:0;(!ve||!await(f.isElement==null?void 0:f.isElement(Pt)))&&(ve=S.floating[St]||h.floating[et]);let Qt=Bt/2-Nt/2,He=ve/2-ct[et]/2-1,we=dr(q[gt],He),Oe=dr(q[yt],He),Ge=we,je=ve-ct[et]-Oe,Tt=ve/2-ct[et]/2+Qt,de=ja(Ge,Tt,je),Pe=!M.arrow&&ki(n)!=null&&Tt!==de&&h.reference[et]/2-(Tt<Ge?we:Oe)-ct[et]/2<0,We=Pe?Tt<Ge?Tt-Ge:Tt-je:0;return{[Q]:ot[Q]+We,data:{[Q]:de,centerOffset:Tt-de-We,...Pe&&{alignmentOffset:We}},reset:Pe}}});var pm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:n,middlewareData:h,rects:f,initialPlacement:S,platform:M,elements:B}=o,{mainAxis:G=!0,crossAxis:q=!0,fallbackPlacements:ot,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:ct=!0,...bt}=Si(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let gt=Lr(n),yt=ti(S),St=Lr(S)===S,Bt=await(M.isRTL==null?void 0:M.isRTL(B.floating)),Nt=ot||(St||!ct?[ys(S)]:lm(S)),Pt=et!=="none";!ot&&Pt&&Nt.push(...cm(S,ct,et,Bt));let ve=[S,...Nt],Qt=await Ya(o,bt),He=[],we=((s=h.flip)==null?void 0:s.overflows)||[];if(G&&He.push(Qt[gt]),q){let Tt=nm(n,f,Bt);He.push(Qt[Tt[0]],Qt[Tt[1]])}if(we=[...we,{placement:n,overflows:He}],!He.every(Tt=>Tt<=0)){var Oe,Ge;let Tt=(((Oe=h.flip)==null?void 0:Oe.index)||0)+1,de=ve[Tt];if(de)return{data:{index:Tt,overflows:we},reset:{placement:de}};let Pe=(Ge=we.filter(We=>We.overflows[0]<=0).sort((We,hr)=>We.overflows[1]-hr.overflows[1])[0])==null?void 0:Ge.placement;if(!Pe)switch(Q){case"bestFit":{var je;let We=(je=we.filter(hr=>{if(Pt){let De=ti(hr.placement);return De===yt||De==="y"}return!0}).map(hr=>[hr.placement,hr.overflows.filter(De=>De>0).reduce((De,Hs)=>De+Hs,0)]).sort((hr,De)=>hr[1]-De[1])[0])==null?void 0:je[0];We&&(Pe=We);break}case"initialPlacement":Pe=S;break}if(n!==Pe)return{reset:{placement:Pe}}}return{}}}};async function Ov(l,o){let{placement:e,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),f=Lr(e),S=ki(e),M=ti(e)==="y",B=["left","top"].includes(f)?-1:1,G=h&&M?-1:1,q=Si(o,l),{mainAxis:ot,crossAxis:Q,alignmentAxis:et}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return S&&typeof et=="number"&&(Q=S==="end"?et*-1:et),M?{x:Q*G,y:ot*B}:{x:ot*B,y:Q*G}}var um=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:n,y:h,placement:f,middlewareData:S}=o,M=await Ov(o,l);return f===((e=S.offset)==null?void 0:e.placement)&&(s=S.arrow)!=null&&s.alignmentOffset?{}:{x:n+M.x,y:h+M.y,data:{...M,placement:f}}}}},fm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:e,y:s,placement:n}=o,{mainAxis:h=!0,crossAxis:f=!1,limiter:S={fn:bt=>{let{x:gt,y:yt}=bt;return{x:gt,y:yt}}},...M}=Si(l,o),B={x:e,y:s},G=await Ya(o,M),q=ti(Lr(n)),ot=Ll(q),Q=B[ot],et=B[q];if(h){let bt=ot==="y"?"top":"left",gt=ot==="y"?"bottom":"right",yt=Q+G[bt],St=Q-G[gt];Q=ja(yt,Q,St)}if(f){let bt=q==="y"?"top":"left",gt=q==="y"?"bottom":"right",yt=et+G[bt],St=et-G[gt];et=ja(yt,et,St)}let ct=S.fn({...o,[ot]:Q,[q]:et});return{...ct,data:{x:ct.x-e,y:ct.y-s,enabled:{[ot]:h,[q]:f}}}}}};var vm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:n,rects:h,platform:f,elements:S}=o,{apply:M=()=>{},...B}=Si(l,o),G=await Ya(o,B),q=Lr(n),ot=ki(n),Q=ti(n)==="y",{width:et,height:ct}=h.floating,bt,gt;q==="top"||q==="bottom"?(bt=q,gt=ot===(await(f.isRTL==null?void 0:f.isRTL(S.floating))?"start":"end")?"left":"right"):(gt=q,bt=ot==="end"?"top":"bottom");let yt=ct-G.top-G.bottom,St=et-G.left-G.right,Bt=dr(ct-G[bt],yt),Nt=dr(et-G[gt],St),Pt=!o.middlewareData.shift,ve=Bt,Qt=Nt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(Qt=St),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(ve=yt),Pt&&!ot){let we=ue(G.left,0),Oe=ue(G.right,0),Ge=ue(G.top,0),je=ue(G.bottom,0);Q?Qt=et-2*(we!==0||Oe!==0?we+Oe:ue(G.left,G.right)):ve=ct-2*(Ge!==0||je!==0?Ge+je:ue(G.top,G.bottom))}await M({...o,availableWidth:Qt,availableHeight:ve});let He=await f.getDimensions(S.floating);return et!==He.width||ct!==He.height?{reset:{rects:!0}}:{}}}};function Ka(){return typeof window<"u"}function wi(l){return bm(l)?(l.nodeName||"").toLowerCase():"#document"}function ke(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function Qe(l){var o;return(o=(bm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function bm(l){return Ka()?l instanceof Node||l instanceof ke(l).Node:!1}function $e(l){return Ka()?l instanceof Element||l instanceof ke(l).Element:!1}function tr(l){return Ka()?l instanceof HTMLElement||l instanceof ke(l).HTMLElement:!1}function gm(l){return!Ka()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof ke(l).ShadowRoot}function _o(l){let{overflow:o,overflowX:e,overflowY:s,display:n}=Ve(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(n)}function ym(l){return["table","td","th"].includes(wi(l))}function Ts(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function Xa(l){let o=Za(),e=$e(l)?Ve(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!o&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!o&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function Em(l){let o=Mr(l);for(;tr(o)&&!Ii(o);){if(Xa(o))return o;if(Ts(o))return null;o=Mr(o)}return null}function Za(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ii(l){return["html","body","#document"].includes(wi(l))}function Ve(l){return ke(l).getComputedStyle(l)}function As(l){return $e(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Mr(l){if(wi(l)==="html")return l;let o=l.assignedSlot||l.parentNode||gm(l)&&l.host||Qe(l);return gm(o)?o.host:o}function xm(l){let o=Mr(l);return Ii(o)?l.ownerDocument?l.ownerDocument.body:l.body:tr(o)&&_o(o)?o:xm(o)}function Ao(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let n=xm(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),f=ke(n);if(h){let S=Ja(f);return o.concat(f,f.visualViewport||[],_o(n)?n:[],S&&e?Ao(S):[])}return o.concat(n,Ao(n,[],e))}function Ja(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function _m(l){let o=Ve(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,n=tr(l),h=n?l.offsetWidth:e,f=n?l.offsetHeight:s,S=Es(e)!==h||Es(s)!==f;return S&&(e=h,s=f),{width:e,height:s,$:S}}function Rl(l){return $e(l)?l:l.contextElement}function So(l){let o=Rl(l);if(!tr(o))return Je(1);let e=o.getBoundingClientRect(),{width:s,height:n,$:h}=_m(o),f=(h?Es(e.width):e.width)/s,S=(h?Es(e.height):e.height)/n;return(!f||!Number.isFinite(f))&&(f=1),(!S||!Number.isFinite(S))&&(S=1),{x:f,y:S}}var Pv=Je(0);function Sm(l){let o=ke(l);return!Za()||!o.visualViewport?Pv:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Dv(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==ke(l)?!1:o}function Li(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let n=l.getBoundingClientRect(),h=Rl(l),f=Je(1);o&&(s?$e(s)&&(f=So(s)):f=So(l));let S=Dv(h,e,s)?Sm(h):Je(0),M=(n.left+S.x)/f.x,B=(n.top+S.y)/f.y,G=n.width/f.x,q=n.height/f.y;if(h){let ot=ke(h),Q=s&&$e(s)?ke(s):s,et=ot,ct=Ja(et);for(;ct&&s&&Q!==et;){let bt=So(ct),gt=ct.getBoundingClientRect(),yt=Ve(ct),St=gt.left+(ct.clientLeft+parseFloat(yt.paddingLeft))*bt.x,Bt=gt.top+(ct.clientTop+parseFloat(yt.paddingTop))*bt.y;M*=bt.x,B*=bt.y,G*=bt.x,q*=bt.y,M+=St,B+=Bt,et=ke(ct),ct=Ja(et)}}return Ci({width:G,height:q,x:M,y:B})}function Ol(l,o){let e=As(l).scrollLeft;return o?o.left+e:Li(Qe(l)).left+e}function km(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),n=s.left+o.scrollLeft-(e?0:Ol(l,s)),h=s.top+o.scrollTop;return{x:n,y:h}}function Fv(l){let{elements:o,rect:e,offsetParent:s,strategy:n}=l,h=n==="fixed",f=Qe(s),S=o?Ts(o.floating):!1;if(s===f||S&&h)return e;let M={scrollLeft:0,scrollTop:0},B=Je(1),G=Je(0),q=tr(s);if((q||!q&&!h)&&((wi(s)!=="body"||_o(f))&&(M=As(s)),tr(s))){let Q=Li(s);B=So(s),G.x=Q.x+s.clientLeft,G.y=Q.y+s.clientTop}let ot=f&&!q&&!h?km(f,M,!0):Je(0);return{width:e.width*B.x,height:e.height*B.y,x:e.x*B.x-M.scrollLeft*B.x+G.x+ot.x,y:e.y*B.y-M.scrollTop*B.y+G.y+ot.y}}function zv(l){return Array.from(l.getClientRects())}function $v(l){let o=Qe(l),e=As(l),s=l.ownerDocument.body,n=ue(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),h=ue(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight),f=-e.scrollLeft+Ol(l),S=-e.scrollTop;return Ve(s).direction==="rtl"&&(f+=ue(o.clientWidth,s.clientWidth)-n),{width:n,height:h,x:f,y:S}}function Vv(l,o){let e=ke(l),s=Qe(l),n=e.visualViewport,h=s.clientWidth,f=s.clientHeight,S=0,M=0;if(n){h=n.width,f=n.height;let B=Za();(!B||B&&o==="fixed")&&(S=n.offsetLeft,M=n.offsetTop)}return{width:h,height:f,x:S,y:M}}function Bv(l,o){let e=Li(l,!0,o==="fixed"),s=e.top+l.clientTop,n=e.left+l.clientLeft,h=tr(l)?So(l):Je(1),f=l.clientWidth*h.x,S=l.clientHeight*h.y,M=n*h.x,B=s*h.y;return{width:f,height:S,x:M,y:B}}function Tm(l,o,e){let s;if(o==="viewport")s=Vv(l,e);else if(o==="document")s=$v(Qe(l));else if($e(o))s=Bv(o,e);else{let n=Sm(l);s={x:o.x-n.x,y:o.y-n.y,width:o.width,height:o.height}}return Ci(s)}function Cm(l,o){let e=Mr(l);return e===o||!$e(e)||Ii(e)?!1:Ve(e).position==="fixed"||Cm(e,o)}function Uv(l,o){let e=o.get(l);if(e)return e;let s=Ao(l,[],!1).filter(S=>$e(S)&&wi(S)!=="body"),n=null,h=Ve(l).position==="fixed",f=h?Mr(l):l;for(;$e(f)&&!Ii(f);){let S=Ve(f),M=Xa(f);!M&&S.position==="fixed"&&(n=null),(h?!M&&!n:!M&&S.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||_o(f)&&!M&&Cm(l,f))?s=s.filter(G=>G!==f):n=S,f=Mr(f)}return o.set(l,s),s}function Hv(l){let{element:o,boundary:e,rootBoundary:s,strategy:n}=l,f=[...e==="clippingAncestors"?Ts(o)?[]:Uv(o,this._c):[].concat(e),s],S=f[0],M=f.reduce((B,G)=>{let q=Tm(o,G,n);return B.top=ue(q.top,B.top),B.right=dr(q.right,B.right),B.bottom=dr(q.bottom,B.bottom),B.left=ue(q.left,B.left),B},Tm(o,S,n));return{width:M.right-M.left,height:M.bottom-M.top,x:M.left,y:M.top}}function Gv(l){let{width:o,height:e}=_m(l);return{width:o,height:e}}function jv(l,o,e){let s=tr(o),n=Qe(o),h=e==="fixed",f=Li(l,!0,h,o),S={scrollLeft:0,scrollTop:0},M=Je(0);if(s||!s&&!h)if((wi(o)!=="body"||_o(n))&&(S=As(o)),s){let ot=Li(o,!0,h,o);M.x=ot.x+o.clientLeft,M.y=ot.y+o.clientTop}else n&&(M.x=Ol(n));let B=n&&!s&&!h?km(n,S):Je(0),G=f.left+S.scrollLeft-M.x-B.x,q=f.top+S.scrollTop-M.y-B.y;return{x:G,y:q,width:f.width,height:f.height}}function Nl(l){return Ve(l).position==="static"}function Am(l,o){if(!tr(l)||Ve(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return Qe(l)===e&&(e=e.ownerDocument.body),e}function wm(l,o){let e=ke(l);if(Ts(l))return e;if(!tr(l)){let n=Mr(l);for(;n&&!Ii(n);){if($e(n)&&!Nl(n))return n;n=Mr(n)}return e}let s=Am(l,o);for(;s&&ym(s)&&Nl(s);)s=Am(s,o);return s&&Ii(s)&&Nl(s)&&!Xa(s)?e:s||Em(l)||e}var Wv=async function(l){let o=this.getOffsetParent||wm,e=this.getDimensions,s=await e(l.floating);return{reference:jv(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function qv(l){return Ve(l).direction==="rtl"}var Yv={convertOffsetParentRelativeRectToViewportRelativeRect:Fv,getDocumentElement:Qe,getClippingRect:Hv,getOffsetParent:wm,getElementRects:Wv,getClientRects:zv,getDimensions:Gv,getScale:So,isElement:$e,isRTL:qv};function Kv(l,o){let e=null,s,n=Qe(l);function h(){var S;clearTimeout(s),(S=e)==null||S.disconnect(),e=null}function f(S,M){S===void 0&&(S=!1),M===void 0&&(M=1),h();let{left:B,top:G,width:q,height:ot}=l.getBoundingClientRect();if(S||o(),!q||!ot)return;let Q=xs(G),et=xs(n.clientWidth-(B+q)),ct=xs(n.clientHeight-(G+ot)),bt=xs(B),yt={rootMargin:-Q+"px "+-et+"px "+-ct+"px "+-bt+"px",threshold:ue(0,dr(1,M))||1},St=!0;function Bt(Nt){let Pt=Nt[0].intersectionRatio;if(Pt!==M){if(!St)return f();Pt?f(!1,Pt):s=setTimeout(()=>{f(!1,1e-7)},1e3)}St=!1}try{e=new IntersectionObserver(Bt,{...yt,root:n.ownerDocument})}catch{e=new IntersectionObserver(Bt,yt)}e.observe(l)}return f(!0),h}function Im(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:S=typeof IntersectionObserver=="function",animationFrame:M=!1}=s,B=Rl(l),G=n||h?[...B?Ao(B):[],...Ao(o)]:[];G.forEach(gt=>{n&>.addEventListener("scroll",e,{passive:!0}),h&>.addEventListener("resize",e)});let q=B&&S?Kv(B,e):null,ot=-1,Q=null;f&&(Q=new ResizeObserver(gt=>{let[yt]=gt;yt&&yt.target===B&&Q&&(Q.unobserve(o),cancelAnimationFrame(ot),ot=requestAnimationFrame(()=>{var St;(St=Q)==null||St.observe(o)})),e()}),B&&!M&&Q.observe(B),Q.observe(o));let et,ct=M?Li(l):null;M&&bt();function bt(){let gt=Li(l);ct&&(gt.x!==ct.x||gt.y!==ct.y||gt.width!==ct.width||gt.height!==ct.height)&&e(),ct=gt,et=requestAnimationFrame(bt)}return e(),()=>{var gt;G.forEach(yt=>{n&&yt.removeEventListener("scroll",e),h&&yt.removeEventListener("resize",e)}),q==null||q(),(gt=Q)==null||gt.disconnect(),Q=null,M&&cancelAnimationFrame(et)}}var Lm=um;var Mm=fm,Nm=pm,Rm=vm;var Om=mm;var Pm=(l,o,e)=>{let s=new Map,n={platform:Yv,...e},h={...n.platform,_c:s};return hm(l,o,{...n,platform:h})};var Qa=l=>{class o extends l{constructor(...n){super(...n);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:f}=n.getBoundingClientRect(),{offsetWidth:S,offsetHeight:M}=n;return S+M+f+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:f,visibility:S}=n.style;return h==="none"||f==="0"||S==="hidden"||S==="collapse"}hasComputedHidden(n){let h=getComputedStyle(n);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(n){return n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(n)||this.isNotVisible(n)||this.hasComputedHidden(n)}isNotTabbable(n){return n.getAttribute("tabindex")==="-1"}isInteractiveElement(n){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1)}isFocusable(n){return this.isHidden(n)||this.isNotTabbable(n)?!1:this.isInteractiveElement(n)}findFocusable(n,h=new Set){return n instanceof HTMLElement&&this.isFocusable(n)&&h.add(n),Array.from(n.children).forEach(S=>{let M=S;this.isFocusable(M)&&h.add(M),M.shadowRoot?this.findFocusable(M.shadowRoot,h):M.tagName==="SLOT"?M.assignedElements({flatten:!0}).forEach(G=>{G instanceof HTMLElement&&this.findFocusable(G,h)}):this.findFocusable(M,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(n=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[n]&&(this.focusTrapIndex=n,this.focusableElements[n].focus()))}calculateNextIndex(n,h){let{length:f}=this.focusableElements,S=this.shouldWrapFocus();if(n===-1)return h>0?0:f-1;let M=n+h;return S?(M<0&&(M=f-1),M>=f&&(M=0)):(M<0&&(M=0),M>=f&&(M=f-1)),M}getDeepActiveElement(){var h;let n=document.activeElement||document.body;for(;n instanceof HTMLElement&&((h=n.shadowRoot)!=null&&h.activeElement);)n=n.shadowRoot.activeElement;return n||document.body}findElement(n){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(n,h))}isEqualFocusNode(n,h){return n.nodeType>=0?h.isEqualNode(n)&&h===n:!1}trapFocus(n){if(this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),f=this.findElement(h);n?this.focusTrapIndex=this.calculateNextIndex(f,-1):this.focusTrapIndex=this.calculateNextIndex(f,1);let S=this.focusableElements[this.focusTrapIndex];S&&S.focus()}handleKeydown(n){!this.enabledFocusTrap||!this.focusableElements.length||n.key==="Tab"&&(n.preventDefault(),this.trapFocus(n.shiftKey))}}return y([A({type:Boolean})],o.prototype,"enabledFocusTrap",2),y([A({type:Boolean})],o.prototype,"enabledPreventScroll",2),o};var Dm=j.constructTagName("popover"),fe={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"},Mi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},_s={TONAL:"tonal",CONTRAST:"contrast"},Ot={PLACEMENT:fe.BOTTOM,TRIGGER:Mi.CLICK,COLOR:_s.TONAL,OFFSET:4,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,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Ni=class{static dispatchPopoverEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}};var Pl=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(e=>e!==o)}clear(){this.stack=[]}},ei=new Pl;var Xv=W`
|
2038
|
+
<mdc-text type="${yo.TEXT_TYPE}" tagname="${yo.TAG_NAME}">${this.label}</mdc-text>
|
2039
|
+
`}};Eo.styles=[...Z.styles,...om],y([A({type:String,reflect:!0})],Eo.prototype,"color",2),y([A({type:String})],Eo.prototype,"label",2);var xo=Eo;xo.register(sm);var Cv=xo;var cr=Math.min,pe=Math.max,ys=Math.round,Es=Math.floor,Ze=l=>({x:l,y:l}),wv={left:"right",right:"left",bottom:"top",top:"bottom"},Iv={start:"end",end:"start"};function Ha(l,o,e){return pe(l,cr(o,e))}function _i(l,o){return typeof l=="function"?l(o):l}function Ir(l){return l.split("-")[0]}function Si(l){return l.split("-")[1]}function wl(l){return l==="x"?"y":"x"}function Ga(l){return l==="y"?"height":"width"}function Qr(l){return["top","bottom"].includes(Ir(l))?"y":"x"}function ja(l){return wl(Qr(l))}function am(l,o,e){e===void 0&&(e=!1);let s=Si(l),n=ja(l),h=Ga(n),f=n==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(f=bs(f)),[f,bs(f)]}function nm(l){let o=bs(l);return[Ua(l),o,Ua(o)]}function Ua(l){return l.replace(/start|end/g,o=>Iv[o])}function Lv(l,o,e){let s=["left","right"],n=["right","left"],h=["top","bottom"],f=["bottom","top"];switch(l){case"top":case"bottom":return e?o?n:s:o?s:n;case"left":case"right":return o?h:f;default:return[]}}function lm(l,o,e,s){let n=Si(l),h=Lv(Ir(l),e==="start",s);return n&&(h=h.map(f=>f+"-"+n),o&&(h=h.concat(h.map(Ua)))),h}function bs(l){return l.replace(/left|right|bottom|top/g,o=>wv[o])}function Mv(l){return{top:0,right:0,bottom:0,left:0,...l}}function Il(l){return typeof l!="number"?Mv(l):{top:l,right:l,bottom:l,left:l}}function ki(l){let{x:o,y:e,width:s,height:n}=l;return{width:s,height:n,top:e,left:o,right:o+s,bottom:e+n,x:o,y:e}}function cm(l,o,e){let{reference:s,floating:n}=l,h=Qr(o),f=ja(o),S=Ga(f),M=Ir(o),B=h==="y",G=s.x+s.width/2-n.width/2,q=s.y+s.height/2-n.height/2,it=s[S]/2-n[S]/2,J;switch(M){case"top":J={x:G,y:s.y-n.height};break;case"bottom":J={x:G,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:q};break;case"left":J={x:s.x-n.width,y:q};break;default:J={x:s.x,y:s.y}}switch(Si(o)){case"start":J[f]-=it*(e&&B?-1:1);break;case"end":J[f]+=it*(e&&B?-1:1);break}return J}var dm=async(l,o,e)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:f}=e,S=h.filter(Boolean),M=await(f.isRTL==null?void 0:f.isRTL(o)),B=await f.getElementRects({reference:l,floating:o,strategy:n}),{x:G,y:q}=cm(B,s,M),it=s,J={},tt=0;for(let lt=0;lt<S.length;lt++){let{name:gt,fn:vt}=S[lt],{x:bt,y:_t,data:Vt,reset:Mt}=await vt({x:G,y:q,initialPlacement:s,placement:it,strategy:n,middlewareData:J,rects:B,platform:f,elements:{reference:l,floating:o}});G=bt!=null?bt:G,q=_t!=null?_t:q,J={...J,[gt]:{...J[gt],...Vt}},Mt&&tt<=50&&(tt++,typeof Mt=="object"&&(Mt.placement&&(it=Mt.placement),Mt.rects&&(B=Mt.rects===!0?await f.getElementRects({reference:l,floating:o,strategy:n}):Mt.rects),{x:G,y:q}=cm(B,it,M)),lt=-1)}return{x:G,y:q,placement:it,strategy:n,middlewareData:J}};async function Wa(l,o){var e;o===void 0&&(o={});let{x:s,y:n,platform:h,rects:f,elements:S,strategy:M}=l,{boundary:B="clippingAncestors",rootBoundary:G="viewport",elementContext:q="floating",altBoundary:it=!1,padding:J=0}=_i(o,l),tt=Il(J),gt=S[it?q==="floating"?"reference":"floating":q],vt=ki(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(gt)))==null||e?gt:gt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(S.floating)),boundary:B,rootBoundary:G,strategy:M})),bt=q==="floating"?{x:s,y:n,width:f.floating.width,height:f.floating.height}:f.reference,_t=await(h.getOffsetParent==null?void 0:h.getOffsetParent(S.floating)),Vt=await(h.isElement==null?void 0:h.isElement(_t))?await(h.getScale==null?void 0:h.getScale(_t))||{x:1,y:1}:{x:1,y:1},Mt=ki(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:S,rect:bt,offsetParent:_t,strategy:M}):bt);return{top:(vt.top-Mt.top+tt.top)/Vt.y,bottom:(Mt.bottom-vt.bottom+tt.bottom)/Vt.y,left:(vt.left-Mt.left+tt.left)/Vt.x,right:(Mt.right-vt.right+tt.right)/Vt.x}}var hm=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:n,rects:h,platform:f,elements:S,middlewareData:M}=o,{element:B,padding:G=0}=_i(l,o)||{};if(B==null)return{};let q=Il(G),it={x:e,y:s},J=ja(n),tt=Ga(J),lt=await f.getDimensions(B),gt=J==="y",vt=gt?"top":"left",bt=gt?"bottom":"right",_t=gt?"clientHeight":"clientWidth",Vt=h.reference[tt]+h.reference[J]-it[J]-h.floating[tt],Mt=it[J]-h.reference[J],Ot=await(f.getOffsetParent==null?void 0:f.getOffsetParent(B)),fe=Ot?Ot[_t]:0;(!fe||!await(f.isElement==null?void 0:f.isElement(Ot)))&&(fe=S.floating[_t]||h.floating[tt]);let Jt=Vt/2-Mt/2,Ue=fe/2-lt[tt]/2-1,Ce=cr(q[vt],Ue),Re=cr(q[bt],Ue),He=Ce,Ge=fe-lt[tt]-Re,xt=fe/2-lt[tt]/2+Jt,ce=Ha(He,xt,Ge),Oe=!M.arrow&&Si(n)!=null&&xt!==ce&&h.reference[tt]/2-(xt<He?Ce:Re)-lt[tt]/2<0,je=Oe?xt<He?xt-He:xt-Ge:0;return{[J]:it[J]+je,data:{[J]:ce,centerOffset:xt-ce-je,...Oe&&{alignmentOffset:je}},reset:Oe}}});var mm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:n,middlewareData:h,rects:f,initialPlacement:S,platform:M,elements:B}=o,{mainAxis:G=!0,crossAxis:q=!0,fallbackPlacements:it,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:lt=!0,...gt}=_i(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let vt=Ir(n),bt=Qr(S),_t=Ir(S)===S,Vt=await(M.isRTL==null?void 0:M.isRTL(B.floating)),Mt=it||(_t||!lt?[bs(S)]:nm(S)),Ot=tt!=="none";!it&&Ot&&Mt.push(...lm(S,lt,tt,Vt));let fe=[S,...Mt],Jt=await Wa(o,gt),Ue=[],Ce=((s=h.flip)==null?void 0:s.overflows)||[];if(G&&Ue.push(Jt[vt]),q){let xt=am(n,f,Vt);Ue.push(Jt[xt[0]],Jt[xt[1]])}if(Ce=[...Ce,{placement:n,overflows:Ue}],!Ue.every(xt=>xt<=0)){var Re,He;let xt=(((Re=h.flip)==null?void 0:Re.index)||0)+1,ce=fe[xt];if(ce)return{data:{index:xt,overflows:Ce},reset:{placement:ce}};let Oe=(He=Ce.filter(je=>je.overflows[0]<=0).sort((je,dr)=>je.overflows[1]-dr.overflows[1])[0])==null?void 0:He.placement;if(!Oe)switch(J){case"bestFit":{var Ge;let je=(Ge=Ce.filter(dr=>{if(Ot){let Pe=Qr(dr.placement);return Pe===bt||Pe==="y"}return!0}).map(dr=>[dr.placement,dr.overflows.filter(Pe=>Pe>0).reduce((Pe,Us)=>Pe+Us,0)]).sort((dr,Pe)=>dr[1]-Pe[1])[0])==null?void 0:Ge[0];je&&(Oe=je);break}case"initialPlacement":Oe=S;break}if(n!==Oe)return{reset:{placement:Oe}}}return{}}}};async function Nv(l,o){let{placement:e,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),f=Ir(e),S=Si(e),M=Qr(e)==="y",B=["left","top"].includes(f)?-1:1,G=h&&M?-1:1,q=_i(o,l),{mainAxis:it,crossAxis:J,alignmentAxis:tt}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return S&&typeof tt=="number"&&(J=S==="end"?tt*-1:tt),M?{x:J*G,y:it*B}:{x:it*B,y:J*G}}var pm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:n,y:h,placement:f,middlewareData:S}=o,M=await Nv(o,l);return f===((e=S.offset)==null?void 0:e.placement)&&(s=S.arrow)!=null&&s.alignmentOffset?{}:{x:n+M.x,y:h+M.y,data:{...M,placement:f}}}}},um=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:e,y:s,placement:n}=o,{mainAxis:h=!0,crossAxis:f=!1,limiter:S={fn:gt=>{let{x:vt,y:bt}=gt;return{x:vt,y:bt}}},...M}=_i(l,o),B={x:e,y:s},G=await Wa(o,M),q=Qr(Ir(n)),it=wl(q),J=B[it],tt=B[q];if(h){let gt=it==="y"?"top":"left",vt=it==="y"?"bottom":"right",bt=J+G[gt],_t=J-G[vt];J=Ha(bt,J,_t)}if(f){let gt=q==="y"?"top":"left",vt=q==="y"?"bottom":"right",bt=tt+G[gt],_t=tt-G[vt];tt=Ha(bt,tt,_t)}let lt=S.fn({...o,[it]:J,[q]:tt});return{...lt,data:{x:lt.x-e,y:lt.y-s,enabled:{[it]:h,[q]:f}}}}}};var fm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:n,rects:h,platform:f,elements:S}=o,{apply:M=()=>{},...B}=_i(l,o),G=await Wa(o,B),q=Ir(n),it=Si(n),J=Qr(n)==="y",{width:tt,height:lt}=h.floating,gt,vt;q==="top"||q==="bottom"?(gt=q,vt=it===(await(f.isRTL==null?void 0:f.isRTL(S.floating))?"start":"end")?"left":"right"):(vt=q,gt=it==="end"?"top":"bottom");let bt=lt-G.top-G.bottom,_t=tt-G.left-G.right,Vt=cr(lt-G[gt],bt),Mt=cr(tt-G[vt],_t),Ot=!o.middlewareData.shift,fe=Vt,Jt=Mt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(Jt=_t),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(fe=bt),Ot&&!it){let Ce=pe(G.left,0),Re=pe(G.right,0),He=pe(G.top,0),Ge=pe(G.bottom,0);J?Jt=tt-2*(Ce!==0||Re!==0?Ce+Re:pe(G.left,G.right)):fe=lt-2*(He!==0||Ge!==0?He+Ge:pe(G.top,G.bottom))}await M({...o,availableWidth:Jt,availableHeight:fe});let Ue=await f.getDimensions(S.floating);return tt!==Ue.width||lt!==Ue.height?{reset:{rects:!0}}:{}}}};function qa(){return typeof window<"u"}function Ci(l){return gm(l)?(l.nodeName||"").toLowerCase():"#document"}function Se(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function Je(l){var o;return(o=(gm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function gm(l){return qa()?l instanceof Node||l instanceof Se(l).Node:!1}function ze(l){return qa()?l instanceof Element||l instanceof Se(l).Element:!1}function Qe(l){return qa()?l instanceof HTMLElement||l instanceof Se(l).HTMLElement:!1}function vm(l){return!qa()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Se(l).ShadowRoot}function Ao(l){let{overflow:o,overflowX:e,overflowY:s,display:n}=$e(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(n)}function bm(l){return["table","td","th"].includes(Ci(l))}function xs(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function Ya(l){let o=Ka(),e=ze(l)?$e(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!o&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!o&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function ym(l){let o=Lr(l);for(;Qe(o)&&!wi(o);){if(Ya(o))return o;if(xs(o))return null;o=Lr(o)}return null}function Ka(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wi(l){return["html","body","#document"].includes(Ci(l))}function $e(l){return Se(l).getComputedStyle(l)}function Ts(l){return ze(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Lr(l){if(Ci(l)==="html")return l;let o=l.assignedSlot||l.parentNode||vm(l)&&l.host||Je(l);return vm(o)?o.host:o}function Em(l){let o=Lr(l);return wi(o)?l.ownerDocument?l.ownerDocument.body:l.body:Qe(o)&&Ao(o)?o:Em(o)}function To(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let n=Em(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),f=Se(n);if(h){let S=Xa(f);return o.concat(f,f.visualViewport||[],Ao(n)?n:[],S&&e?To(S):[])}return o.concat(n,To(n,[],e))}function Xa(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Am(l){let o=$e(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,n=Qe(l),h=n?l.offsetWidth:e,f=n?l.offsetHeight:s,S=ys(e)!==h||ys(s)!==f;return S&&(e=h,s=f),{width:e,height:s,$:S}}function Ml(l){return ze(l)?l:l.contextElement}function _o(l){let o=Ml(l);if(!Qe(o))return Ze(1);let e=o.getBoundingClientRect(),{width:s,height:n,$:h}=Am(o),f=(h?ys(e.width):e.width)/s,S=(h?ys(e.height):e.height)/n;return(!f||!Number.isFinite(f))&&(f=1),(!S||!Number.isFinite(S))&&(S=1),{x:f,y:S}}var Rv=Ze(0);function _m(l){let o=Se(l);return!Ka()||!o.visualViewport?Rv:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ov(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==Se(l)?!1:o}function Ii(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let n=l.getBoundingClientRect(),h=Ml(l),f=Ze(1);o&&(s?ze(s)&&(f=_o(s)):f=_o(l));let S=Ov(h,e,s)?_m(h):Ze(0),M=(n.left+S.x)/f.x,B=(n.top+S.y)/f.y,G=n.width/f.x,q=n.height/f.y;if(h){let it=Se(h),J=s&&ze(s)?Se(s):s,tt=it,lt=Xa(tt);for(;lt&&s&&J!==tt;){let gt=_o(lt),vt=lt.getBoundingClientRect(),bt=$e(lt),_t=vt.left+(lt.clientLeft+parseFloat(bt.paddingLeft))*gt.x,Vt=vt.top+(lt.clientTop+parseFloat(bt.paddingTop))*gt.y;M*=gt.x,B*=gt.y,G*=gt.x,q*=gt.y,M+=_t,B+=Vt,tt=Se(lt),lt=Xa(tt)}}return ki({width:G,height:q,x:M,y:B})}function Nl(l,o){let e=Ts(l).scrollLeft;return o?o.left+e:Ii(Je(l)).left+e}function Sm(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),n=s.left+o.scrollLeft-(e?0:Nl(l,s)),h=s.top+o.scrollTop;return{x:n,y:h}}function Pv(l){let{elements:o,rect:e,offsetParent:s,strategy:n}=l,h=n==="fixed",f=Je(s),S=o?xs(o.floating):!1;if(s===f||S&&h)return e;let M={scrollLeft:0,scrollTop:0},B=Ze(1),G=Ze(0),q=Qe(s);if((q||!q&&!h)&&((Ci(s)!=="body"||Ao(f))&&(M=Ts(s)),Qe(s))){let J=Ii(s);B=_o(s),G.x=J.x+s.clientLeft,G.y=J.y+s.clientTop}let it=f&&!q&&!h?Sm(f,M,!0):Ze(0);return{width:e.width*B.x,height:e.height*B.y,x:e.x*B.x-M.scrollLeft*B.x+G.x+it.x,y:e.y*B.y-M.scrollTop*B.y+G.y+it.y}}function Dv(l){return Array.from(l.getClientRects())}function Fv(l){let o=Je(l),e=Ts(l),s=l.ownerDocument.body,n=pe(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),h=pe(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight),f=-e.scrollLeft+Nl(l),S=-e.scrollTop;return $e(s).direction==="rtl"&&(f+=pe(o.clientWidth,s.clientWidth)-n),{width:n,height:h,x:f,y:S}}function zv(l,o){let e=Se(l),s=Je(l),n=e.visualViewport,h=s.clientWidth,f=s.clientHeight,S=0,M=0;if(n){h=n.width,f=n.height;let B=Ka();(!B||B&&o==="fixed")&&(S=n.offsetLeft,M=n.offsetTop)}return{width:h,height:f,x:S,y:M}}function $v(l,o){let e=Ii(l,!0,o==="fixed"),s=e.top+l.clientTop,n=e.left+l.clientLeft,h=Qe(l)?_o(l):Ze(1),f=l.clientWidth*h.x,S=l.clientHeight*h.y,M=n*h.x,B=s*h.y;return{width:f,height:S,x:M,y:B}}function xm(l,o,e){let s;if(o==="viewport")s=zv(l,e);else if(o==="document")s=Fv(Je(l));else if(ze(o))s=$v(o,e);else{let n=_m(l);s={x:o.x-n.x,y:o.y-n.y,width:o.width,height:o.height}}return ki(s)}function km(l,o){let e=Lr(l);return e===o||!ze(e)||wi(e)?!1:$e(e).position==="fixed"||km(e,o)}function Vv(l,o){let e=o.get(l);if(e)return e;let s=To(l,[],!1).filter(S=>ze(S)&&Ci(S)!=="body"),n=null,h=$e(l).position==="fixed",f=h?Lr(l):l;for(;ze(f)&&!wi(f);){let S=$e(f),M=Ya(f);!M&&S.position==="fixed"&&(n=null),(h?!M&&!n:!M&&S.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ao(f)&&!M&&km(l,f))?s=s.filter(G=>G!==f):n=S,f=Lr(f)}return o.set(l,s),s}function Bv(l){let{element:o,boundary:e,rootBoundary:s,strategy:n}=l,f=[...e==="clippingAncestors"?xs(o)?[]:Vv(o,this._c):[].concat(e),s],S=f[0],M=f.reduce((B,G)=>{let q=xm(o,G,n);return B.top=pe(q.top,B.top),B.right=cr(q.right,B.right),B.bottom=cr(q.bottom,B.bottom),B.left=pe(q.left,B.left),B},xm(o,S,n));return{width:M.right-M.left,height:M.bottom-M.top,x:M.left,y:M.top}}function Uv(l){let{width:o,height:e}=Am(l);return{width:o,height:e}}function Hv(l,o,e){let s=Qe(o),n=Je(o),h=e==="fixed",f=Ii(l,!0,h,o),S={scrollLeft:0,scrollTop:0},M=Ze(0);if(s||!s&&!h)if((Ci(o)!=="body"||Ao(n))&&(S=Ts(o)),s){let it=Ii(o,!0,h,o);M.x=it.x+o.clientLeft,M.y=it.y+o.clientTop}else n&&(M.x=Nl(n));let B=n&&!s&&!h?Sm(n,S):Ze(0),G=f.left+S.scrollLeft-M.x-B.x,q=f.top+S.scrollTop-M.y-B.y;return{x:G,y:q,width:f.width,height:f.height}}function Ll(l){return $e(l).position==="static"}function Tm(l,o){if(!Qe(l)||$e(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return Je(l)===e&&(e=e.ownerDocument.body),e}function Cm(l,o){let e=Se(l);if(xs(l))return e;if(!Qe(l)){let n=Lr(l);for(;n&&!wi(n);){if(ze(n)&&!Ll(n))return n;n=Lr(n)}return e}let s=Tm(l,o);for(;s&&bm(s)&&Ll(s);)s=Tm(s,o);return s&&wi(s)&&Ll(s)&&!Ya(s)?e:s||ym(l)||e}var Gv=async function(l){let o=this.getOffsetParent||Cm,e=this.getDimensions,s=await e(l.floating);return{reference:Hv(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function jv(l){return $e(l).direction==="rtl"}var Wv={convertOffsetParentRelativeRectToViewportRelativeRect:Pv,getDocumentElement:Je,getClippingRect:Bv,getOffsetParent:Cm,getElementRects:Gv,getClientRects:Dv,getDimensions:Uv,getScale:_o,isElement:ze,isRTL:jv};function qv(l,o){let e=null,s,n=Je(l);function h(){var S;clearTimeout(s),(S=e)==null||S.disconnect(),e=null}function f(S,M){S===void 0&&(S=!1),M===void 0&&(M=1),h();let{left:B,top:G,width:q,height:it}=l.getBoundingClientRect();if(S||o(),!q||!it)return;let J=Es(G),tt=Es(n.clientWidth-(B+q)),lt=Es(n.clientHeight-(G+it)),gt=Es(B),bt={rootMargin:-J+"px "+-tt+"px "+-lt+"px "+-gt+"px",threshold:pe(0,cr(1,M))||1},_t=!0;function Vt(Mt){let Ot=Mt[0].intersectionRatio;if(Ot!==M){if(!_t)return f();Ot?f(!1,Ot):s=setTimeout(()=>{f(!1,1e-7)},1e3)}_t=!1}try{e=new IntersectionObserver(Vt,{...bt,root:n.ownerDocument})}catch{e=new IntersectionObserver(Vt,bt)}e.observe(l)}return f(!0),h}function wm(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:S=typeof IntersectionObserver=="function",animationFrame:M=!1}=s,B=Ml(l),G=n||h?[...B?To(B):[],...To(o)]:[];G.forEach(vt=>{n&&vt.addEventListener("scroll",e,{passive:!0}),h&&vt.addEventListener("resize",e)});let q=B&&S?qv(B,e):null,it=-1,J=null;f&&(J=new ResizeObserver(vt=>{let[bt]=vt;bt&&bt.target===B&&J&&(J.unobserve(o),cancelAnimationFrame(it),it=requestAnimationFrame(()=>{var _t;(_t=J)==null||_t.observe(o)})),e()}),B&&!M&&J.observe(B),J.observe(o));let tt,lt=M?Ii(l):null;M&>();function gt(){let vt=Ii(l);lt&&(vt.x!==lt.x||vt.y!==lt.y||vt.width!==lt.width||vt.height!==lt.height)&&e(),lt=vt,tt=requestAnimationFrame(gt)}return e(),()=>{var vt;G.forEach(bt=>{n&&bt.removeEventListener("scroll",e),h&&bt.removeEventListener("resize",e)}),q==null||q(),(vt=J)==null||vt.disconnect(),J=null,M&&cancelAnimationFrame(tt)}}var Im=pm;var Lm=um,Mm=mm,Nm=fm;var Rm=hm;var Om=(l,o,e)=>{let s=new Map,n={platform:Wv,...e},h={...n.platform,_c:s};return dm(l,o,{...n,platform:h})};var Za=l=>{class o extends l{constructor(...n){super(...n);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:f}=n.getBoundingClientRect(),{offsetWidth:S,offsetHeight:M}=n;return S+M+f+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:f,visibility:S}=n.style;return h==="none"||f==="0"||S==="hidden"||S==="collapse"}hasComputedHidden(n){let h=getComputedStyle(n);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(n){return n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(n)||this.isNotVisible(n)||this.hasComputedHidden(n)}isNotTabbable(n){return n.getAttribute("tabindex")==="-1"}isInteractiveElement(n){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1)}isFocusable(n){return this.isHidden(n)||this.isNotTabbable(n)?!1:this.isInteractiveElement(n)}findFocusable(n,h=new Set){return n instanceof HTMLElement&&this.isFocusable(n)&&h.add(n),Array.from(n.children).forEach(S=>{let M=S;this.isFocusable(M)&&h.add(M),M.shadowRoot?this.findFocusable(M.shadowRoot,h):M.tagName==="SLOT"?M.assignedElements({flatten:!0}).forEach(G=>{G instanceof HTMLElement&&this.findFocusable(G,h)}):this.findFocusable(M,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(n=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[n]&&(this.focusTrapIndex=n,this.focusableElements[n].focus()))}calculateNextIndex(n,h){let{length:f}=this.focusableElements,S=this.shouldWrapFocus();if(n===-1)return h>0?0:f-1;let M=n+h;return S?(M<0&&(M=f-1),M>=f&&(M=0)):(M<0&&(M=0),M>=f&&(M=f-1)),M}getDeepActiveElement(){var h;let n=document.activeElement||document.body;for(;n instanceof HTMLElement&&((h=n.shadowRoot)!=null&&h.activeElement);)n=n.shadowRoot.activeElement;return n||document.body}findElement(n){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(n,h))}isEqualFocusNode(n,h){return n.nodeType>=0?h.isEqualNode(n)&&h===n:!1}trapFocus(n){if(this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),f=this.findElement(h);n?this.focusTrapIndex=this.calculateNextIndex(f,-1):this.focusTrapIndex=this.calculateNextIndex(f,1);let S=this.focusableElements[this.focusTrapIndex];S&&S.focus()}handleKeydown(n){!this.enabledFocusTrap||!this.focusableElements.length||n.key==="Tab"&&(n.preventDefault(),this.trapFocus(n.shiftKey))}}return y([A({type:Boolean})],o.prototype,"enabledFocusTrap",2),y([A({type:Boolean})],o.prototype,"enabledPreventScroll",2),o};var Pm=j.constructTagName("popover"),ue={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"},Li={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},As={TONAL:"tonal",CONTRAST:"contrast"},Rt={PLACEMENT:ue.BOTTOM,TRIGGER:Li.CLICK,COLOR:As.TONAL,OFFSET:4,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,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Mi=class{static dispatchPopoverEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}};var Rl=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(e=>e!==o)}clear(){this.stack=[]}},ti=new Rl;var Yv=W`
|
2040
2040
|
:host {
|
2041
2041
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2042
2042
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2151,7 +2151,7 @@
|
|
2151
2151
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
2152
2152
|
border-bottom-left-radius: 100%;
|
2153
2153
|
}
|
2154
|
-
`,
|
2154
|
+
`,Dm=[Yv];var Ja=class{constructor(o){this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,e]=this.popover.delay.split(",").map(s=>{let n=parseInt(s,10);if(Number.isNaN(n)||n<0)throw new Error(`Invalid delay value: ${s}`);return n});return[o,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let s=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,n=this.popover.offsetHeight||0,h=this.popover.offsetWidth||0;if(e)switch(o.split("-")[0]){case"top":e.style.height=s,e.style.bottom=`calc(-1 * (${s}))`,e.style.left="50%",e.style.width=`${h}px`;break;case"left":e.style.height=`${n}px`,e.style.width=s,e.style.right=`calc(-1.5 * (${s}))`;break;case"right":e.style.height=`${n}px`,e.style.width=s,e.style.left=`calc(-0.5 * (${s}))`;break;case"bottom":default:e.style.height=s,e.style.top=`calc(-1 * (${s}))`,e.style.left="50%",e.style.width=`${h}px`;break}}setupAppendTo(){if(this.popover.appendTo){let o=document.getElementById(this.popover.appendTo);o&&o.appendChild(this.popover)}}setupAccessibility(){var o,e,s;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((s=this.popover.triggerElement)==null?void 0:s.id)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var o,e,s;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((o=this.popover.triggerElement)==null?void 0:o.getAttribute("aria-haspopup"))||"dialog"):(s=this.popover.triggerElement)==null||s.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var o,e;this.popover.disableAriaExpanded?(o=this.popover.triggerElement)==null||o.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(o,e){var G;if(!this.popover.arrowElement)return;let s=e.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[s],{x:h,y:f}=o,S=this.popover.arrowElement.getBoundingClientRect(),M=(G=this.popover.arrowElement.offsetParent)==null?void 0:G.getBoundingClientRect();if(!this.arrowPixelChange){let q=M!=null&&M[n]?12-Math.abs(S[n]-M[n]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let B=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",s),Object.assign(this.popover.arrowElement.style,{left:h!=null?`${h}px`:"",top:f!=null?`${f}px`:"",[n]:`${-this.popover.arrowElement.offsetHeight/2-B}px`})}updatePopoverStyle(o,e){Object.assign(this.popover.style,{left:`${o}px`,top:`${e}px`})}createBackdrop(){var o;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(o=this.popover.parentElement)==null||o.appendChild(e);let s=document.createElement("style");s.textContent=`
|
2155
2155
|
.popover-backdrop {
|
2156
2156
|
position: fixed;
|
2157
2157
|
top: 0;
|
@@ -2161,21 +2161,21 @@
|
|
2161
2161
|
background: transparent;
|
2162
2162
|
z-index: ${this.popover.zIndex-1};
|
2163
2163
|
}
|
2164
|
-
`,e.appendChild(s),this.popover.backdropElement=e}}};var
|
2164
|
+
`,e.appendChild(s),this.popover.backdropElement=e}}};var Ct=class extends Za(Z){constructor(){super();this.id="";this.triggerID="";this.trigger=Rt.TRIGGER;this.placement=Rt.PLACEMENT;this.color=Rt.COLOR;this.visible=Rt.VISIBLE;this.offset=Rt.OFFSET;this.focusTrap=Rt.FOCUS_TRAP;this.preventScroll=Rt.PREVENT_SCROLL;this.showArrow=Rt.ARROW;this.closeButton=Rt.CLOSE_BUTTON;this.interactive=Rt.INTERACTIVE;this.delay=Rt.DELAY;this.hideOnEscape=Rt.HIDE_ON_ESCAPE;this.hideOnBlur=Rt.HIDE_ON_BLUR;this.hideOnOutsideClick=Rt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Rt.FOCUS_BACK;this.backdrop=Rt.BACKDROP;this.flip=Rt.FLIP;this.size=Rt.SIZE;this.zIndex=Rt.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=Rt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Rt.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(ti.peek()!==this)return;let s=!1,n=e.composedPath();s=this.contains(e.target)||n.includes(this.triggerElement);let h=this.backdropElement?n.includes(this.backdropElement):!1;(!s||h)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{ti.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Ja(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Mi.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),Mi.onDestroyedPopover(this),ti.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let s=e.get("visible")||!1;await this.isOpenUpdated(s,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(ue).includes(this.placement)?this.placement:Rt.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let n=this.trigger.split(" ").filter(h=>Object.values(Li).includes(h));this.setAttribute("trigger",n.length>0?this.trigger:Rt.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(As).includes(this.color)?this.color:Rt.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,s){var n,h,f;if(!(e===s||!this.triggerElement))if(s)ti.peek()!==this&&ti.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),Mi.onShowPopover(this);else{if(ti.peek()===this&&ti.pop(),this.backdropElement&&((n=this.backdropElement)==null||n.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(h=this.deactivateFocusTrap)==null||h.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let S=this.triggerElement.getAttribute("aria-haspopup");(S==="dialog"||S==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((f=this.triggerElement)==null||f.focus()),Mi.onHidePopover(this)}}async handleCreatePopoverFirstUpdate(){var e,s;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(s=this.setInitialFocus)==null||s.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[Lm()],s=this.offset;if(this.flip&&e.push(Mm()),this.size){let n=this.renderRoot.querySelector('[part="popover-content"]');e.push(Nm({apply({availableHeight:h}){n&&Object.assign(n.style,{maxHeight:`${h}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let n=this.arrowElement.offsetHeight;s=Math.sqrt(2*n**2)/2+this.offset,e.push(Rm({element:this.arrowElement,padding:12}))}e.push(Im(s)),wm(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:n,y:h,middlewareData:f,placement:S}=await Om(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(n,h),f.arrow&&this.arrowElement&&this.utils.updateArrowStyle(f.arrow,S),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(S)})}render(){return F`
|
2165
2165
|
<div class="popover-hover-bridge"></div>
|
2166
2166
|
${this.closeButton?F` <mdc-button
|
2167
2167
|
class="popover-close"
|
2168
2168
|
prefix-icon="cancel-bold"
|
2169
2169
|
variant="tertiary"
|
2170
2170
|
size="20"
|
2171
|
-
aria-label=${
|
2171
|
+
aria-label=${ht(this.closeButtonAriaLabel)||""}
|
2172
2172
|
@click="${this.hidePopover}"
|
2173
|
-
></mdc-button>`:
|
2174
|
-
${this.showArrow?F`<div class="popover-arrow"></div>`:
|
2173
|
+
></mdc-button>`:X}
|
2174
|
+
${this.showArrow?F`<div class="popover-arrow"></div>`:X}
|
2175
2175
|
<div part="popover-content">
|
2176
2176
|
<slot></slot>
|
2177
2177
|
</div>
|
2178
|
-
`}};
|
2178
|
+
`}};Ct.styles=[...Z.styles,...Dm],y([A({type:String,reflect:!0})],Ct.prototype,"id",2),y([A({type:String,reflect:!0})],Ct.prototype,"triggerID",2),y([A({type:String,reflect:!0})],Ct.prototype,"trigger",2),y([A({type:String,reflect:!0})],Ct.prototype,"placement",2),y([A({type:String,reflect:!0})],Ct.prototype,"color",2),y([A({type:Boolean,reflect:!0})],Ct.prototype,"visible",2),y([A({type:Number,reflect:!0})],Ct.prototype,"offset",2),y([A({type:Boolean,reflect:!0,attribute:"focus-trap"})],Ct.prototype,"focusTrap",2),y([A({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],Ct.prototype,"preventScroll",2),y([A({type:Boolean,reflect:!0,attribute:"show-arrow"})],Ct.prototype,"showArrow",2),y([A({type:Boolean,reflect:!0,attribute:"close-button"})],Ct.prototype,"closeButton",2),y([A({type:Boolean,reflect:!0})],Ct.prototype,"interactive",2),y([A({type:String,reflect:!0})],Ct.prototype,"delay",2),y([A({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],Ct.prototype,"hideOnEscape",2),y([A({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],Ct.prototype,"hideOnBlur",2),y([A({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],Ct.prototype,"hideOnOutsideClick",2),y([A({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],Ct.prototype,"focusBackToTrigger",2),y([A({type:Boolean,reflect:!0})],Ct.prototype,"backdrop",2),y([A({type:Boolean,reflect:!0})],Ct.prototype,"flip",2),y([A({type:Boolean,reflect:!0})],Ct.prototype,"size",2),y([A({type:Number,reflect:!0,attribute:"z-index"})],Ct.prototype,"zIndex",2),y([A({type:String,reflect:!0,attribute:"append-to"})],Ct.prototype,"appendTo",2),y([A({type:String,attribute:"close-button-aria-label",reflect:!0})],Ct.prototype,"closeButtonAriaLabel",2),y([A({type:String,reflect:!0})],Ct.prototype,"role",2),y([A({type:String,reflect:!0,attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledby",2),y([A({type:String,reflect:!0,attribute:"aria-describedby"})],Ct.prototype,"ariaDescribedby",2),y([A({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ct.prototype,"disableAriaExpanded",2);var tr=Ct;var Fm=j.constructTagName("coachmark"),Ni={COLOR:As.CONTRAST,TRIGGER:Li.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Ri=class extends tr{constructor(){super(...arguments);this.trigger=Ni.TRIGGER;this.showArrow=Ni.ARROW;this.closeButton=Ni.CLOSE_BUTTON;this.disableAriaExpanded=Ni.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ni.COLOR,this.showArrow=Ni.ARROW}};y([A({type:String,reflect:!0})],Ri.prototype,"trigger",2),y([A({type:Boolean,attribute:"show-arrow"})],Ri.prototype,"showArrow",2),y([A({type:Boolean,reflect:!0,attribute:"close-button"})],Ri.prototype,"closeButton",2),y([A({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ri.prototype,"disableAriaExpanded",2);var Ol=Ri;Ol.register(Fm);var Kv=Ol;var Xv=W`
|
2179
2179
|
:host {
|
2180
2180
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2181
2181
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2280,7 +2280,7 @@
|
|
2280
2280
|
mdc-text::part(text) {
|
2281
2281
|
margin: 0;
|
2282
2282
|
}
|
2283
|
-
|
2283
|
+
`,zm=[Xv];var $m=j.constructTagName("dialog"),Zv={DEFAULT:"default",PROMOTIONAL:"promotional"},Mr={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Zv.DEFAULT};var Qa=class{constructor(o){this.dialog=o}setupAriaAttributes(){this.dialog.headerText&&!this.dialog.ariaLabel&&!this.dialog.ariaLabelledby?this.dialog.setAttribute("aria-labelledby",this.dialog.headerText):!this.dialog.headerText&&!this.dialog.ariaLabel&&!this.dialog.ariaLabelledby&&this.dialog.setAttribute("aria-labelledby",this.dialog.triggerId)}createBackdrop(){var s;let o=document.createElement("div");o.classList.add("dialog-backdrop");let e=document.createElement("style");e.textContent=`
|
2284
2284
|
.dialog-backdrop {
|
2285
2285
|
position: fixed;
|
2286
2286
|
top: 0;
|
@@ -2290,37 +2290,37 @@
|
|
2290
2290
|
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
2291
2291
|
z-index: ${this.dialog.zIndex-1};
|
2292
2292
|
}
|
2293
|
-
`,o.appendChild(e),(s=this.dialog.parentElement)==null||s.appendChild(o),this.dialog.backdropElement=o}};var
|
2293
|
+
`,o.appendChild(e),(s=this.dialog.parentElement)==null||s.appendChild(o),this.dialog.backdropElement=o}};var Oi=class{static dispatchDialogEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var Zt=class extends Za(Da(Z)){constructor(){super();this.id="";this.triggerId="";this.visible=Mr.VISIBLE;this.zIndex=Mr.Z_INDEX;this.size=Mr.SIZE;this.variant=Mr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabelledby=null;this.ariaLabel=null;this.headerText="";this.descriptionText="";this.headerTagName=Mr.HEADER_TAG_NAME;this.descriptionTagName=Mr.DESCRIPTION_TAG_NAME;this.role=Mr.ROLE;this.triggerElement=null;this.backdropElement=null;this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hideDialog())};this.hideDialog=()=>{this.visible=!1};this.utils=new Qa(this),document.addEventListener("keydown",this.onEscapeKeydown)}async firstUpdated(e){super.firstUpdated(e),this.setupTriggerListener(),this.utils.setupAriaAttributes(),this.style.zIndex=`${this.zIndex}`,Oi.onCreatedDialog(this),this.visible&&await this.handleCreateDialogFirstUpdate()}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),document.removeEventListener("keydown",this.onEscapeKeydown),Oi.onDestroyedDialog(this)}setupTriggerListener(){this.triggerId&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.triggerElement&&this.addEventListener("focus-trap-exit",this.hideDialog))}removeEventListeners(){this.triggerElement&&this.removeEventListener("focus-trap-exit",this.hideDialog)}async updated(e){if(super.updated(e),e.has("visible")){let s=e.get("visible");await this.isOpenUpdated(s,this.visible)}e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("variant")&&this.updateFooterButtonColors(this.variant),(e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAriaAttributes()}async isOpenUpdated(e,s){var n,h,f;e===s||!this.triggerElement||(s?(this.enabledFocusTrap=!0,this.enabledPreventScroll=!0,this.utils.createBackdrop(),await this.handleCreateDialogFirstUpdate(),this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),Oi.onShowDialog(this)):((n=this.backdropElement)==null||n.remove(),this.backdropElement=null,(h=this.deactivateFocusTrap)==null||h.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.removeAttribute("aria-haspopup"),(f=this.triggerElement)==null||f.focus(),Oi.onHideDialog(this)))}async handleCreateDialogFirstUpdate(){var e,s;this.visible&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(s=this.setInitialFocus)==null||s.call(this))}render(){var e;return F`
|
2294
2294
|
${this.headerText?F`
|
2295
2295
|
<div part="header">
|
2296
2296
|
<mdc-text
|
2297
2297
|
part="header-text"
|
2298
|
-
tagname="${
|
2299
|
-
type="${
|
2298
|
+
tagname="${yt[this.headerTagName.toUpperCase()]}"
|
2299
|
+
type="${nt.BODY_LARGE_BOLD}"
|
2300
2300
|
>
|
2301
2301
|
${this.headerText}
|
2302
2302
|
</mdc-text>
|
2303
2303
|
<mdc-text
|
2304
2304
|
part="description-text"
|
2305
|
-
tagname="${
|
2306
|
-
type="${
|
2305
|
+
tagname="${yt[this.descriptionTagName.toUpperCase()]}"
|
2306
|
+
type="${nt.BODY_MIDSIZE_REGULAR}"
|
2307
2307
|
>
|
2308
|
-
${(e=this.descriptionText)!=null?e:
|
2308
|
+
${(e=this.descriptionText)!=null?e:X}
|
2309
2309
|
</mdc-text>
|
2310
|
-
</div>`:
|
2310
|
+
</div>`:X}
|
2311
2311
|
<mdc-button
|
2312
2312
|
part="dialog-close-btn"
|
2313
|
-
prefix-icon="${
|
2314
|
-
variant="${
|
2315
|
-
size="${
|
2316
|
-
aria-label="${
|
2313
|
+
prefix-icon="${Mr.CANCEL_ICON}"
|
2314
|
+
variant="${ee.TERTIARY}"
|
2315
|
+
size="${Xr[20]}"
|
2316
|
+
aria-label="${ht(this.closeButtonAriaLabel)||""}"
|
2317
2317
|
@click="${this.hideDialog}"
|
2318
2318
|
></mdc-button>
|
2319
2319
|
<div part="body">
|
2320
2320
|
<slot name="dialog-body"></slot>
|
2321
2321
|
</div>
|
2322
2322
|
${this.renderFooter()}
|
2323
|
-
`}};
|
2323
|
+
`}};Zt.styles=[...Z.styles,...zm],y([A({type:String,reflect:!0})],Zt.prototype,"id",2),y([A({type:String,reflect:!0})],Zt.prototype,"triggerId",2),y([A({type:Boolean,reflect:!0})],Zt.prototype,"visible",2),y([A({type:Number,reflect:!0,attribute:"z-index"})],Zt.prototype,"zIndex",2),y([A({type:String,reflect:!0})],Zt.prototype,"size",2),y([A({type:String,reflect:!0})],Zt.prototype,"variant",2),y([A({type:String,attribute:"close-button-aria-label"})],Zt.prototype,"closeButtonAriaLabel",2),y([A({type:String,reflect:!0,attribute:"aria-labelledby"})],Zt.prototype,"ariaLabelledby",2),y([A({type:String,reflect:!0,attribute:"aria-label"})],Zt.prototype,"ariaLabel",2),y([A({type:String,reflect:!0,attribute:"header-text"})],Zt.prototype,"headerText",2),y([A({type:String,reflect:!0,attribute:"description-text"})],Zt.prototype,"descriptionText",2),y([A({type:String,reflect:!0,attribute:"header-tag-name"})],Zt.prototype,"headerTagName",2),y([A({type:String,reflect:!0,attribute:"description-tag-name"})],Zt.prototype,"descriptionTagName",2),y([A({type:String,reflect:!0})],Zt.prototype,"role",2);var Pl=Zt;Pl.register($m);var Jv=Pl;var Vm=j.constructTagName("divider"),_s={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Dl={SOLID:"solid",GRADIENT:"gradient"},ei={POSITIVE:"positive",NEGATIVE:"negative"},Ss={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Pi={ORIENTATION:_s.HORIZONTAL,VARIANT:Dl.SOLID,ARROW_DIRECTION:ei.NEGATIVE,BUTTON_DIRECTION:ei.NEGATIVE};var Qv=[Et,W`
|
2324
2324
|
:host {
|
2325
2325
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2326
2326
|
--mdc-divider-width: 0.0625rem;
|
@@ -2531,11 +2531,11 @@
|
|
2531
2531
|
font-size: var(--mdc-divider-text-size);
|
2532
2532
|
line-height: var(--mdc-divider-text-line-height);
|
2533
2533
|
}
|
2534
|
-
`],
|
2534
|
+
`],Bm=Qv;var ri=class extends Z{constructor(){super(...arguments);this.orientation=Pi.ORIENTATION;this.variant=Pi.VARIANT;this.arrowDirection=Pi.ARROW_DIRECTION;this.buttonPosition=Pi.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Dl).includes(e)?e:Pi.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(_s).includes(e)?e:Pi.ORIENTATION)}ensureValidDirections(){let e=this.orientation===_s.HORIZONTAL?ei.NEGATIVE:ei.POSITIVE;Object.values(ei).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(ei).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let s=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",s)}}getArrowIcon(){let e=this.orientation===_s.HORIZONTAL,s=this.arrowDirection===ei.POSITIVE;return e?s?Ss.UP:Ss.DOWN:s?Ss.RIGHT:Ss.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var f;let e=(f=this.shadowRoot)==null?void 0:f.querySelector("slot"),s=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(s.length>1)return;let n=s.some(S=>S.tagName===ns.toUpperCase()),h=s.some(S=>S.tagName===yi.toUpperCase());n&&!h?this.setAttribute("data-type","mdc-text-divider"):!n&&h&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return F`
|
2535
2535
|
<div></div>
|
2536
2536
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2537
2537
|
<div></div>
|
2538
|
-
`}};
|
2538
|
+
`}};ri.styles=[...Z.styles,...Bm],y([A({type:String,reflect:!0})],ri.prototype,"orientation",2),y([A({type:String,reflect:!0})],ri.prototype,"variant",2),y([A({type:String,attribute:"arrow-direction",reflect:!0})],ri.prototype,"arrowDirection",2),y([A({type:String,attribute:"button-position",reflect:!0})],ri.prototype,"buttonPosition",2);var Fl=ri;Fl.register(Vm);var tg=Fl;var eg=W`
|
2539
2539
|
:host([selected]){
|
2540
2540
|
border: 2px solid;
|
2541
2541
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -2555,7 +2555,7 @@
|
|
2555
2555
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2556
2556
|
cursor: auto;
|
2557
2557
|
}
|
2558
|
-
`,
|
2558
|
+
`,Um=[eg];var Hm=j.constructTagName("filterchip"),zl={ICON_NAME:"check-bold",COLOR:"default"};var ks=class extends xo{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=zl.COLOR}setSelected(e){e?(this.iconName=zl.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};ks.styles=[...xo.styles,...Um],y([A({type:Boolean,reflect:!0})],ks.prototype,"selected",2);var $l=ks;$l.register(Hm);var rg=$l;var ig=W`
|
2559
2559
|
|
2560
2560
|
:host::part(container) {
|
2561
2561
|
display: flex;
|
@@ -2572,12 +2572,12 @@
|
|
2572
2572
|
:host::part(label-text){
|
2573
2573
|
font-weight: bold;
|
2574
2574
|
}
|
2575
|
-
`,
|
2575
|
+
`,Gm=[ig];var tn=class extends Ut(me){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return F`
|
2576
2576
|
<div
|
2577
2577
|
part="container"
|
2578
|
-
role="${this.isRadio
|
2579
|
-
aria-labelledby="${
|
2580
|
-
aria-describedby="${
|
2578
|
+
role="${this.isRadio?zt.RADIOGROUP:zt.GROUP}"
|
2579
|
+
aria-labelledby="${$t.HEADING_ID}"
|
2580
|
+
aria-describedby="${ht(this.helpText?$t.HELPER_TEXT_ID:"")}"
|
2581
2581
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2582
2582
|
>
|
2583
2583
|
<div part="group-header">
|
@@ -2586,7 +2586,7 @@
|
|
2586
2586
|
</div>
|
2587
2587
|
<slot></slot>
|
2588
2588
|
</div>
|
2589
|
-
`}};
|
2589
|
+
`}};tn.styles=[...me.styles,...Gm];var Vl=tn;var jm=j.constructTagName("formfieldgroup");Vl.register(jm);var en=Vl;ls.register(Aa);var og=ls;var sg=[W`
|
2590
2590
|
:host{
|
2591
2591
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2592
2592
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2702,35 +2702,35 @@
|
|
2702
2702
|
opacity: 0;
|
2703
2703
|
pointer-events: none;
|
2704
2704
|
}
|
2705
|
-
`,...
|
2705
|
+
`,...At(!0)],Wm=sg;me.register(tm);var Ve=me;var qm=j.constructTagName("input"),rn={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Bl={OFF:"off",ON:"on"},Ul={TEXT:"text",SEARCH:"search"},Ym={MAX_LENGTH:10,VALIDATION:Xt.ERROR},Nr={VALIDATION:Xt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:ee.TERTIARY,CLEAR_BUTTON_SIZE:Xr[20],PREFIX_TEXT_TYPE:nt.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:yt.SPAN,AUTO_COMPLETE:Bl.OFF,INPUT_TYPE:Ul.TEXT};var jt=class extends _e(Ut(Ve)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=rn.OFF;this.autocomplete=Bl.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,s,n){super.attributeChangedCallback(e,s,n),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(f=>{this.onerror&&this.onerror(f)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?F`
|
2706
2706
|
<mdc-icon
|
2707
2707
|
class="leading-icon"
|
2708
2708
|
part="leading-icon"
|
2709
2709
|
name=${this.leadingIcon}
|
2710
|
-
size="${
|
2711
|
-
length-unit="${
|
2710
|
+
size="${Nr.ICON_SIZE_VALUE}"
|
2711
|
+
length-unit="${Nr.ICON_SIZE_UNIT}">
|
2712
2712
|
</mdc-icon>
|
2713
|
-
`:
|
2713
|
+
`:X}renderPrefixText(){return this.prefixText?F`
|
2714
2714
|
<mdc-text
|
2715
2715
|
class="prefix-text"
|
2716
|
-
tagname="${
|
2717
|
-
type="${
|
2716
|
+
tagname="${Nr.PREFIX_TEXT_TAG}"
|
2717
|
+
type="${Nr.PREFIX_TEXT_TYPE}"
|
2718
2718
|
aria-hidden="true"
|
2719
2719
|
>
|
2720
|
-
${this.prefixText.slice(0,
|
2720
|
+
${this.prefixText.slice(0,Ym.MAX_LENGTH)}
|
2721
2721
|
</mdc-text>
|
2722
|
-
`:
|
2722
|
+
`:X}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let s=e||this.value&&this.trailingButton;return s?F`
|
2723
2723
|
<mdc-button
|
2724
2724
|
part='trailing-button'
|
2725
2725
|
class='own-focus-ring ${s?"":"hidden"}'
|
2726
|
-
prefix-icon='${
|
2727
|
-
variant='${
|
2728
|
-
size="${
|
2726
|
+
prefix-icon='${Nr.CLEAR_BUTTON_ICON}'
|
2727
|
+
variant='${Nr.CLEAR_BUTTON_VARIANT}'
|
2728
|
+
size="${Nr.CLEAR_BUTTON_SIZE}"
|
2729
2729
|
aria-label="${this.clearAriaLabel}"
|
2730
2730
|
@click=${this.clearInputText}
|
2731
2731
|
?disabled=${this.disabled||this.readonly||!s}
|
2732
2732
|
></mdc-button>
|
2733
|
-
`:
|
2733
|
+
`:X}renderInputElement(e,s=!1){var h;let n=s?"":this.placeholder;return F`<input
|
2734
2734
|
aria-label="${(h=this.dataAriaLabel)!=null?h:""}"
|
2735
2735
|
class='input'
|
2736
2736
|
part='input'
|
@@ -2741,18 +2741,18 @@
|
|
2741
2741
|
?readonly="${this.readonly}"
|
2742
2742
|
?required="${!!this.requiredLabel}"
|
2743
2743
|
type="${e}"
|
2744
|
-
aria-describedby="${
|
2744
|
+
aria-describedby="${ht(this.helpText?$t.HELPER_TEXT_ID:"")}"
|
2745
2745
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
2746
|
-
placeholder=${
|
2747
|
-
minlength=${
|
2748
|
-
maxlength=${
|
2746
|
+
placeholder=${ht(n)}
|
2747
|
+
minlength=${ht(this.minlength)}
|
2748
|
+
maxlength=${ht(this.maxlength)}
|
2749
2749
|
autocapitalize=${this.autocapitalize}
|
2750
2750
|
autocomplete=${this.autocomplete}
|
2751
2751
|
?autofocus="${this.autofocus}"
|
2752
|
-
dirname=${
|
2753
|
-
pattern=${
|
2754
|
-
list=${
|
2755
|
-
size=${
|
2752
|
+
dirname=${ht(this.dirname)}
|
2753
|
+
pattern=${ht(this.pattern)}
|
2754
|
+
list=${ht(this.list)}
|
2755
|
+
size=${ht(this.size)}
|
2756
2756
|
@input=${this.onInput}
|
2757
2757
|
@change=${this.onChange}
|
2758
2758
|
@keydown=${this.handleKeyDown}
|
@@ -2762,12 +2762,12 @@
|
|
2762
2762
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
2763
2763
|
<div class="input-section" part="input-section">
|
2764
2764
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
2765
|
-
<slot name="input">${this.renderInputElement(
|
2765
|
+
<slot name="input">${this.renderInputElement(Nr.INPUT_TYPE)}</slot>
|
2766
2766
|
</div>
|
2767
2767
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2768
2768
|
</div>
|
2769
|
-
${this.helpText?this.renderHelperText():
|
2770
|
-
`}};
|
2769
|
+
${this.helpText?this.renderHelperText():X}
|
2770
|
+
`}};jt.styles=[...Ve.styles,...Wm],y([A({type:String})],jt.prototype,"placeholder",2),y([A({type:Boolean})],jt.prototype,"readonly",2),y([A({type:String,attribute:"prefix-text"})],jt.prototype,"prefixText",2),y([A({type:String,attribute:"leading-icon"})],jt.prototype,"leadingIcon",2),y([A({type:Boolean,attribute:"trailing-button"})],jt.prototype,"trailingButton",2),y([A({type:Number})],jt.prototype,"maxlength",2),y([A({type:Number})],jt.prototype,"minlength",2),y([A({type:String})],jt.prototype,"autocapitalize",2),y([A({type:String})],jt.prototype,"autocomplete",2),y([A({type:Boolean})],jt.prototype,"autofocus",2),y([A({type:String})],jt.prototype,"dirname",2),y([A({type:String})],jt.prototype,"pattern",2),y([A({type:String})],jt.prototype,"list",2),y([A({type:Number})],jt.prototype,"size",2),y([A({type:String,attribute:"clear-aria-label"})],jt.prototype,"clearAriaLabel",2);var So=jt;So.register(qm);var ag=So;var ng=W`
|
2771
2771
|
:host {
|
2772
2772
|
height: 1.5rem;
|
2773
2773
|
gap: 0.25rem;
|
@@ -2796,24 +2796,24 @@
|
|
2796
2796
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2797
2797
|
cursor: auto;
|
2798
2798
|
}
|
2799
|
-
`,
|
2799
|
+
`,Km=[Et,ng];var on=j.constructTagName("inputchip"),sn={TEXT_TYPE:nt.BODY_MIDSIZE_REGULAR,TAG_NAME:yt.SPAN,CLOSE_ICON:"cancel-bold"};var Di=class extends Te(Pt(Z)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?F`
|
2800
2800
|
<mdc-icon
|
2801
2801
|
name="${this.iconName}"
|
2802
2802
|
length-unit="rem"
|
2803
2803
|
size="1"></mdc-icon>
|
2804
|
-
`:
|
2804
|
+
`:X}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return F`
|
2805
2805
|
${this.renderIcon()}
|
2806
|
-
<mdc-text part="label" type="${
|
2806
|
+
<mdc-text part="label" type="${sn.TEXT_TYPE}" tagname="${sn.TAG_NAME}">${this.label}</mdc-text>
|
2807
2807
|
<mdc-button
|
2808
2808
|
?disabled="${this.disabled}"
|
2809
2809
|
variant="tertiary"
|
2810
2810
|
part="close-icon"
|
2811
2811
|
aria-label="${this.clearAriaLabel}"
|
2812
|
-
prefix-icon="${
|
2812
|
+
prefix-icon="${sn.CLOSE_ICON}"
|
2813
2813
|
size="20"
|
2814
2814
|
@click="${this.handleClose}"
|
2815
2815
|
></mdc-button>
|
2816
|
-
`}};
|
2816
|
+
`}};Di.styles=[...Z.styles,...Km],y([A({type:String})],Di.prototype,"label",2),y([A({type:Boolean})],Di.prototype,"error",2),y([A({type:String,attribute:"clear-aria-label"})],Di.prototype,"clearAriaLabel",2);var Hl=Di;Hl.register(on);var lg=Hl;var cg=W`
|
2817
2817
|
:host {
|
2818
2818
|
gap: 0.25rem;
|
2819
2819
|
}
|
@@ -2871,7 +2871,7 @@
|
|
2871
2871
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
2872
2872
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
2873
2873
|
}
|
2874
|
-
`,
|
2874
|
+
`,Xm=[cg];var Cs=class extends Te(Jr){constructor(){super(...arguments);this.size=Bh.LINK_SIZE}getIconSize(){switch(this.size){case Ra.SMALL:return Oa.SMALL;case Ra.MIDSIZE:return Oa.MIDSIZE;default:return Oa.LARGE}}render(){return F`
|
2875
2875
|
<slot></slot>
|
2876
2876
|
${this.iconName?F`
|
2877
2877
|
<mdc-icon
|
@@ -2879,28 +2879,28 @@
|
|
2879
2879
|
size=${this.getIconSize()}
|
2880
2880
|
length-unit="rem"
|
2881
2881
|
></mdc-icon>
|
2882
|
-
`:
|
2883
|
-
`}};
|
2882
|
+
`:X}
|
2883
|
+
`}};Cs.styles=[...Jr.styles,...Xm],y([A({type:String,reflect:!0})],Cs.prototype,"size",2);var Gl=Cs;Gl.register(Na);var dg=Gl;Jr.register(Fh);var hg=Jr;var It={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var an=j.constructTagName("listitem"),jl="dynamic-listitem-tooltip-popover",Wl="dynamic-listitem-tooltip-triggerid",ws={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ql={VARIANT:ws.FULL_WIDTH,TOOLTIP_PLACEMENT:ue.TOP};var Zm=j.constructTagName("list"),Yl="header-id";var mg=W`
|
2884
2884
|
:host::part(header-text) {
|
2885
2885
|
padding: 0.5rem 0.75rem;
|
2886
2886
|
}
|
2887
|
-
`,
|
2887
|
+
`,Jm=[mg];var ko=class extends Ut(Z){constructor(){super();this.dataRole=zt.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var h;let s=this.getCurrentIndex(e.target),n=this.getNewIndexBasedOnKey(e.key,s,this.listItems.length);n!==void 0&&((h=this.listItems[n])==null||h.focus(),this.resetTabIndexAndSetActiveTabIndex(n))}getCurrentIndex(e){return this.listItems.findIndex(s=>s===e||s===e.parentElement)}getNewIndexBasedOnKey(e,s,n){switch(e){case It.ARROW_DOWN:return(s+1)%n;case It.ARROW_UP:return(s-1+n)%n;case It.HOME:return 0;case It.END:return n-1;default:return}}handleMouseClick(e){let s=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(s)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((s,n)=>{let h=e===n?"0":"-1";s==null||s.setAttribute("tabindex",h)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var s;let e=this.headerText?F`
|
2888
2888
|
<mdc-text
|
2889
|
-
id="${
|
2889
|
+
id="${Yl}"
|
2890
2890
|
part="header-text"
|
2891
|
-
type="${
|
2892
|
-
tagname="${
|
2891
|
+
type="${nt.BODY_MIDSIZE_BOLD}"
|
2892
|
+
tagname="${yt.SPAN}"
|
2893
2893
|
>${this.headerText}</mdc-text>
|
2894
|
-
`:
|
2894
|
+
`:X;return F`
|
2895
2895
|
<div
|
2896
2896
|
role="${this.dataRole}"
|
2897
|
-
aria-labelledby="${this.headerText?
|
2897
|
+
aria-labelledby="${this.headerText?Yl:""}"
|
2898
2898
|
aria-label="${(s=this.dataAriaLabel)!=null?s:""}"
|
2899
2899
|
>
|
2900
2900
|
${e}
|
2901
2901
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
2902
2902
|
</div>
|
2903
|
-
`}};
|
2903
|
+
`}};ko.styles=[...Z.styles,...Jm],y([Ft({selector:`${an}:not([disabled])`})],ko.prototype,"listItems",2),y([A({type:String,attribute:"header-text",reflect:!0})],ko.prototype,"headerText",2);var Kl=ko;Kl.register(Zm);var pg=Kl;var nn=j.constructTagName("tooltip"),Me={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ii={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ue.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Me.DESCRIPTION};var ug=W`
|
2904
2904
|
|
2905
2905
|
:host {
|
2906
2906
|
--mdc-tooltip-max-width: 400px;
|
@@ -2925,7 +2925,7 @@
|
|
2925
2925
|
:host([color='contrast'])::part(popover-content) {
|
2926
2926
|
color: var(--mdc-tooltip-text-color-contrast);
|
2927
2927
|
}
|
2928
|
-
`,
|
2928
|
+
`,Qm=[ug];var Co=class extends tr{constructor(){super(...arguments);this.tooltipType=ii.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ii.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ii.OFFSET,this.placement=this.placement||ii.PLACEMENT,this.role=zt.TOOLTIP,this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,s;return((s=(e=this.defaultSlotNodes)==null?void 0:e.map(n=>n.textContent).join(" "))==null?void 0:s.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(Me).includes(e)?e:ii.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Cr()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case Me.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case Me.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ue).includes(this.placement)||(this.placement=ii.PLACEMENT)}onTooltipTypeUpdated(e){let s=e.get("tooltipType");Object.values(Me).includes(this.tooltipType)||this.setTooltipType(ii.TOOLTIP_TYPE);let n=document.getElementById(this.triggerID);if(n){let h=this.getTooltipText();switch(this.tooltipType){case Me.DESCRIPTION:s===Me.LABEL&&n.removeAttribute("aria-labelledby"),n.setAttribute("aria-describedby",this.id);break;case Me.LABEL:s===Me.DESCRIPTION&&n.removeAttribute("aria-describedby"),n.setAttribute("aria-labelledby",this.id);break;default:s===Me.DESCRIPTION?n.removeAttribute("aria-describedby"):s===Me.LABEL&&n.removeAttribute("aria-labelledby");break}h.length>0&&this.tooltipType!==Me.NONE&&!this.ariaLabel&&(this.ariaLabel=h)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};Co.styles=[...tr.styles,...Qm],y([A({type:String,attribute:"tooltip-type",reflect:!0})],Co.prototype,"tooltipType",2),y([ba()],Co.prototype,"defaultSlotNodes",2);var Xl=Co;Xl.register(nn);var fg=Xl;var vg=W`
|
2929
2929
|
:host {
|
2930
2930
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
2931
2931
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3007,27 +3007,27 @@
|
|
3007
3007
|
display: flex;
|
3008
3008
|
flex-direction: row;
|
3009
3009
|
}
|
3010
|
-
`,
|
3010
|
+
`,tp=[vg,...At()];var ke=class extends Pt(ar(Z)){constructor(){super();this.variant=ql.VARIANT;this.tooltipPlacement=ql.TOOLTIP_PLACEMENT;this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||zt.LISTITEM}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var s;if(!this.tooltipText)return;this.id=this.id||Wl;let e=document.createElement(nn);e.id=jl,e.textContent=this.tooltipText,e.setAttribute("triggerid",this.id),e.setAttribute("placement",this.tooltipPlacement),e.setAttribute("visible",""),e.setAttribute("show-arrow",""),(s=this.parentElement)==null||s.after(e)}hideTooltipOnLeave(){this.id=this.id===Wl?"":this.id;let e=document.querySelector(`#${jl}`);e==null||e.remove()}getText(e,s,n){return n?F`
|
3011
3011
|
<slot name="${e}">
|
3012
|
-
<mdc-text part="${e}" type="${s}" tagname="${
|
3012
|
+
<mdc-text part="${e}" type="${s}" tagname="${yt.SPAN}">${n}</mdc-text>
|
3013
3013
|
</slot>
|
3014
|
-
`:
|
3014
|
+
`:X}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(s=>{e?s.setAttribute("disabled",""):s.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.setAttribute("aria-disabled",`${this.disabled}`))}render(){return F`
|
3015
3015
|
<div part="leading">
|
3016
3016
|
<slot name="leading-controls"></slot>
|
3017
3017
|
<div part="leading-text">
|
3018
|
-
${this.getText("leading-text-primary-label",
|
3019
|
-
${this.getText("leading-text-secondary-label",
|
3020
|
-
${this.getText("leading-text-tertiary-label",
|
3018
|
+
${this.getText("leading-text-primary-label",nt.BODY_MIDSIZE_REGULAR,this.label)}
|
3019
|
+
${this.getText("leading-text-secondary-label",nt.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3020
|
+
${this.getText("leading-text-tertiary-label",nt.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3021
3021
|
</div>
|
3022
3022
|
</div>
|
3023
3023
|
<div part="trailing">
|
3024
3024
|
<div part="trailing-text">
|
3025
|
-
${this.getText("trailing-text-side-header",
|
3026
|
-
${this.getText("trailing-text-subline",
|
3025
|
+
${this.getText("trailing-text-side-header",nt.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3026
|
+
${this.getText("trailing-text-subline",nt.BODY_SMALL_REGULAR,this.sublineText)}
|
3027
3027
|
</div>
|
3028
3028
|
<slot name="trailing-controls"></slot>
|
3029
3029
|
</div>
|
3030
|
-
`}};
|
3030
|
+
`}};ke.styles=[...Z.styles,...tp],y([Ft({slot:"leading-controls"})],ke.prototype,"leadingControlsSlot",2),y([Ft({slot:"trailing-controls"})],ke.prototype,"trailingControlsSlot",2),y([A({type:String,reflect:!0})],ke.prototype,"variant",2),y([A({type:String,reflect:!0})],ke.prototype,"label",2),y([A({type:String,reflect:!0,attribute:"secondary-label"})],ke.prototype,"secondaryLabel",2),y([A({type:String,reflect:!0,attribute:"tertiary-label"})],ke.prototype,"tertiaryLabel",2),y([A({type:String,reflect:!0,attribute:"side-header-text"})],ke.prototype,"sideHeaderText",2),y([A({type:String,reflect:!0,attribute:"subline-text"})],ke.prototype,"sublineText",2),y([A({type:String,reflect:!0,attribute:"tooltip-text"})],ke.prototype,"tooltipText",2),y([A({type:String,reflect:!0,attribute:"tooltip-placement"})],ke.prototype,"tooltipPlacement",2);var Rr=ke;Rr.register(an);var gg=Rr;var bg=W`
|
3031
3031
|
:host {
|
3032
3032
|
--mdc-marker-width: 0.25rem;
|
3033
3033
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3052,7 +3052,7 @@
|
|
3052
3052
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3053
3053
|
);
|
3054
3054
|
}
|
3055
|
-
`,
|
3055
|
+
`,ep=[bg];var rp=j.constructTagName("marker"),ip={SOLID:"solid",STRIPED:"striped"};var Is=class extends Z{constructor(){super(...arguments);this.variant=ip.SOLID}};Is.styles=[...Z.styles,...ep],y([A({type:String,reflect:!0})],Is.prototype,"variant",2);var Zl=Is;Zl.register(rp);var yg=Zl;var ln=class extends Rr{connectedCallback(){super.connectedCallback(),this.role=zt.MENUITEM,this.variant=ws.INSET_RECTANGLE}};ln.styles=[...Rr.styles];var Or=ln;var op=j.constructTagName("menuitem");Or.register(op);var Eg=Or;var cn=j.constructTagName("optgroup"),Jl="header-id";var xg=W`
|
3056
3056
|
:host {
|
3057
3057
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3058
3058
|
}
|
@@ -3065,23 +3065,23 @@
|
|
3065
3065
|
color: var(--mdc-optgroup-disabled-color);
|
3066
3066
|
cursor: default;
|
3067
3067
|
}
|
3068
|
-
`,
|
3068
|
+
`,sp=[xg];var wo=class extends Ut(Pt(Z)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let o=this.label?F`
|
3069
3069
|
<mdc-text
|
3070
|
-
id="${
|
3070
|
+
id="${Jl}"
|
3071
3071
|
part="header-text"
|
3072
|
-
type="${
|
3073
|
-
tagname="${
|
3072
|
+
type="${nt.BODY_MIDSIZE_BOLD}"
|
3073
|
+
tagname="${yt.SPAN}"
|
3074
3074
|
>${this.label}</mdc-text>
|
3075
|
-
`:
|
3075
|
+
`:X;return F`
|
3076
3076
|
<div
|
3077
3077
|
role="group"
|
3078
|
-
aria-labelledby="${this.label?
|
3078
|
+
aria-labelledby="${this.label?Jl:""}"
|
3079
3079
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3080
3080
|
>
|
3081
3081
|
${o}
|
3082
3082
|
<slot role="presentation"></slot>
|
3083
3083
|
</div>
|
3084
|
-
`}};
|
3084
|
+
`}};wo.styles=[...Z.styles,...sp],y([A({type:String,reflect:!0})],wo.prototype,"label",2),y([Ft({selector:"mdc-option"})],wo.prototype,"options",2);var Ql=wo;Ql.register(cn);var Tg=Ql;var ap="check-bold",Ls=j.constructTagName("option");var Ag=W`
|
3085
3085
|
:host {
|
3086
3086
|
--mdc-option-icon-width: 1rem;
|
3087
3087
|
|
@@ -3105,22 +3105,22 @@
|
|
3105
3105
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
3106
3106
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
3107
3107
|
}
|
3108
|
-
`,
|
3108
|
+
`,np=[Ag];var Fi=class extends _e(Rr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=ws.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}handleDefaultSlotChange(){var s,n,h;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");e&&!this.label&&(this.label=(h=(n=e.assignedNodes()[0])==null?void 0:n.textContent)==null?void 0:h.trim())}updateAttribute(e,s){this.setAttribute(e,s)}update(e){super.update(e),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?F`
|
3109
3109
|
<div part="leading-icon">
|
3110
|
-
<mdc-icon length-unit="rem" slot="leading-controls" name="${
|
3110
|
+
<mdc-icon length-unit="rem" slot="leading-controls" name="${ht(this.prefixIcon)}"></mdc-icon>
|
3111
3111
|
</div>
|
3112
|
-
`:
|
3113
|
-
<mdc-icon length-unit="rem" slot="trailing-controls" name="${
|
3114
|
-
`:
|
3112
|
+
`:X,s=this.selected?F`
|
3113
|
+
<mdc-icon length-unit="rem" slot="trailing-controls" name="${ap}"></mdc-icon>
|
3114
|
+
`:X;return F`
|
3115
3115
|
${e}
|
3116
3116
|
<div part="leading-text">
|
3117
|
-
${this.getText("leading-text-primary-label",
|
3117
|
+
${this.getText("leading-text-primary-label",nt.BODY_MIDSIZE_REGULAR,this.label)}
|
3118
3118
|
</div>
|
3119
3119
|
<div part="trailing">
|
3120
3120
|
${s}
|
3121
3121
|
</div>
|
3122
3122
|
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
3123
|
-
`}};
|
3123
|
+
`}};Fi.styles=[...Rr.styles,...np],y([A({type:Boolean,reflect:!0})],Fi.prototype,"selected",2),y([A({type:String,reflect:!0,attribute:"prefix-icon"})],Fi.prototype,"prefixIcon",2),y([A({type:String,reflect:!0,attribute:"aria-label"})],Fi.prototype,"ariaLabel",2);var tc=Fi;tc.register(Ls);var _g=tc;tr.register(Pm);var Sg=tr;var kg=[Et,W`
|
3124
3124
|
:host {
|
3125
3125
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
3126
3126
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -3204,7 +3204,7 @@
|
|
3204
3204
|
border: var(--mdc-progressbar-border);
|
3205
3205
|
}
|
3206
3206
|
}
|
3207
|
-
`],
|
3207
|
+
`],lp=kg;var cp=j.constructTagName("progressbar"),dn={DEFAULT:"default",INLINE:"inline"},dp={VARIANT:dn.DEFAULT,VALIDATION:Xt.DEFAULT};var zi=class extends Ut(Ve){constructor(){super(...arguments);this.variant=dp.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var h;let e=this.getValidationVariant(),s=this.clampedValue>0&&this.clampedValue<100,n=this.error?"100":`${this.clampedValue}`;return F`
|
3208
3208
|
<div
|
3209
3209
|
part="progress-container ${s?"gap":""}"
|
3210
3210
|
role="progressbar"
|
@@ -3216,16 +3216,16 @@
|
|
3216
3216
|
<div part="progress-bar ${e}" style="width: ${n}%"></div>
|
3217
3217
|
<div part="remaining"></div>
|
3218
3218
|
</div>
|
3219
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
3219
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Cr()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=Xt.ERROR:this.clampedValue===100?this.helpTextType=Xt.SUCCESS:this.helpTextType=Xt.DEFAULT,this.helpTextType}render(){let e=this.variant===dn.INLINE;return F`
|
3220
3220
|
${e?F`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:F`
|
3221
3221
|
<div part="label-container">
|
3222
3222
|
${this.renderLabelElement()}
|
3223
|
-
${this.variant===
|
3223
|
+
${this.variant===dn.DEFAULT&&this.label?F`<span part="percentage">${this.clampedValue}%</span>`:""}
|
3224
3224
|
</div>
|
3225
3225
|
${this.renderProgressbar()}
|
3226
3226
|
${this.renderHelperText()}
|
3227
3227
|
`}
|
3228
|
-
`}}
|
3228
|
+
`}};zi.styles=[...Ve.styles,...lp],y([A({type:String,reflect:!0})],zi.prototype,"variant",2),y([A({type:String,reflect:!0})],zi.prototype,"value",2),y([A({type:Boolean,attribute:"error"})],zi.prototype,"error",2);var Ms=zi;Ms.register(cp);var Cg=Ms;var wg=W`
|
3229
3229
|
:host {
|
3230
3230
|
--mdc-spinner-size: 3rem;
|
3231
3231
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -3269,7 +3269,7 @@
|
|
3269
3269
|
color: var(--mdc-progress-error-color);
|
3270
3270
|
margin: 0.5rem;
|
3271
3271
|
}
|
3272
|
-
`,
|
3272
|
+
`,hp=[wg];var mp=j.constructTagName("progressspinner"),Wt={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"},ec={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var rc=l=>{if(l===0)return 0;let o=l/100*Wt.CIRCUMFERENCE-Wt.GAP_SIZE;return Math.max(o,.1*l)},pp=l=>{let o=Wt.CIRCUMFERENCE-rc(l)-2*Wt.GAP_SIZE;return l===0?Wt.CIRCUMFERENCE:o<0?0:o},up=l=>l===0?0:Wt.GAP_SIZE*.5,fp=(l,o)=>{let e=o+Wt.GAP_SIZE*1.5;return l===0?0:e};var hn=class extends Ms{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var h;let o=rc(this.clampedValue),e=pp(this.clampedValue),s=up(this.clampedValue),n=fp(this.clampedValue,o);return F`
|
3273
3273
|
<div
|
3274
3274
|
part="spinner-container ${this.variant}"
|
3275
3275
|
role="progressbar"
|
@@ -3283,18 +3283,18 @@
|
|
3283
3283
|
part="spinner-track"
|
3284
3284
|
cx="24"
|
3285
3285
|
cy="24"
|
3286
|
-
r="${
|
3287
|
-
stroke-width="${e===0?0:
|
3288
|
-
stroke-dasharray="${e} ${
|
3286
|
+
r="${Wt.RADIUS}"
|
3287
|
+
stroke-width="${e===0?0:Wt.STROKE_WIDTH}"
|
3288
|
+
stroke-dasharray="${e} ${Wt.CIRCUMFERENCE}"
|
3289
3289
|
stroke-dashoffset="-${n}"
|
3290
3290
|
/>
|
3291
3291
|
<circle
|
3292
3292
|
part="spinner-progress"
|
3293
3293
|
cx="24"
|
3294
3294
|
cy="24"
|
3295
|
-
r="${
|
3296
|
-
stroke-width="${o===0?0:
|
3297
|
-
stroke-dasharray="${o} ${
|
3295
|
+
r="${Wt.RADIUS}"
|
3296
|
+
stroke-width="${o===0?0:Wt.STROKE_WIDTH}"
|
3297
|
+
stroke-dasharray="${o} ${Wt.CIRCUMFERENCE}"
|
3298
3298
|
stroke-dashoffset="-${s}"
|
3299
3299
|
/>
|
3300
3300
|
</svg>
|
@@ -3303,18 +3303,18 @@
|
|
3303
3303
|
<mdc-icon
|
3304
3304
|
part="error-icon"
|
3305
3305
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
3306
|
-
name="${
|
3307
|
-
size="${
|
3308
|
-
length-unit="${
|
3306
|
+
name="${ec.ERROR_LEGACY_FILLED}"
|
3307
|
+
size="${Wt.ERROR_ICON_SIZE}"
|
3308
|
+
length-unit="${Wt.ICON_LENGTH_UNIT}"></mdc-icon>
|
3309
3309
|
`}renderSuccessState(){var o;return F`
|
3310
3310
|
<mdc-icon
|
3311
3311
|
part="success-icon"
|
3312
3312
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
3313
|
-
name="${
|
3314
|
-
size="${
|
3315
|
-
length-unit="${
|
3313
|
+
name="${ec.CHECK_CIRCLE_BOLD}"
|
3314
|
+
size="${Wt.SUCCESS_ICON_SIZE}"
|
3315
|
+
length-unit="${Wt.ICON_LENGTH_UNIT}"></mdc-icon>
|
3316
3316
|
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():F`
|
3317
|
-
${this.renderProgressSpinner()}`}};
|
3317
|
+
${this.renderProgressSpinner()}`}};hn.styles=[...Z.styles,...hp];var ic=hn;ic.register(mp);var Ig=ic;var Lg=[Et,W`
|
3318
3318
|
:host{
|
3319
3319
|
display: flex;
|
3320
3320
|
flex-direction: row;
|
@@ -3401,10 +3401,10 @@
|
|
3401
3401
|
display: none;
|
3402
3402
|
}
|
3403
3403
|
|
3404
|
-
`,...
|
3404
|
+
`,...At(!0)],vp=Lg;var $i=class extends _e(Ut(me)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?F`<div class="mdc-radio__label-container">
|
3405
3405
|
${this.renderLabel()}
|
3406
3406
|
${this.renderHelperText()}
|
3407
|
-
</div>`:
|
3407
|
+
</div>`:X}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let s=e.constructor;this.dispatchEvent(new s(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(s=>{s.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(s=>{this.onerror&&this.onerror(s)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,s){this.updateComplete.then(()=>{e.forEach(n=>{n.setComponentValidity(s)})}).catch(n=>{this.onerror&&this.onerror(n)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let s=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(s,!0);else{let n=s.some(S=>S.requiredLabel),h=!!s.find(S=>S.checked),f=n&&!h;this.setGroupValidity(s,!f)}this.internals.setFormValue(e)}handleChange(e){var h;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(f=>{var M;let S=(M=f.shadowRoot)==null?void 0:M.querySelector("input");S&&(f.checked=!1,S.checked=!1)}),this.checked=!0;let n=(h=this.shadowRoot)==null?void 0:h.querySelector("input");n&&(n.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,s,n){var h,f;(f=(h=e[s].shadowRoot)==null?void 0:h.querySelector("input"))==null||f.focus(),e[s].handleChange(n)}handleKeyDown(e){var f;if(this.disabled)return;let n=this.getAllRadiosWithinSameGroup().filter(S=>!S.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let S=(h+1)%n.length;this.updateRadio(n,S,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let S=(h-1+n.length)%n.length;this.updateRadio(n,S,e)}else e.key===" "&&this.updateRadio(n,h,e);this.updateTabIndex(),e.key==="Enter"&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),s=e.find(h=>h.checked),n=e.find(h=>!h.disabled);e.forEach(h=>{var S;let f=(S=h.shadowRoot)==null?void 0:S.querySelector("input");f&&(f.tabIndex=-1,(h===s||!s&&h===n)&&(f.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return F`
|
3408
3408
|
<mdc-staticradio
|
3409
3409
|
class="mdc-focus-ring"
|
3410
3410
|
?checked="${this.checked}"
|
@@ -3416,8 +3416,8 @@
|
|
3416
3416
|
type="radio"
|
3417
3417
|
role="radio"
|
3418
3418
|
?autofocus="${this.autofocus}"
|
3419
|
-
name="${
|
3420
|
-
value="${
|
3419
|
+
name="${ht(this.name)}"
|
3420
|
+
value="${ht(this.value)}"
|
3421
3421
|
?required="${!!this.requiredLabel}"
|
3422
3422
|
@change=${this.handleChange}
|
3423
3423
|
@keydown=${this.handleKeyDown}
|
@@ -3426,17 +3426,17 @@
|
|
3426
3426
|
?disabled=${this.disabled}
|
3427
3427
|
class="mdc-radio__input"
|
3428
3428
|
aria-checked="${this.checked}"
|
3429
|
-
aria-describedby="${
|
3429
|
+
aria-describedby="${ht(this.helpText?$t.HELPER_TEXT_ID:"")}"
|
3430
3430
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3431
3431
|
/>
|
3432
3432
|
</mdc-staticradio>
|
3433
3433
|
${this.renderLabelAndHelperText()}
|
3434
|
-
`}}
|
3434
|
+
`}};$i.styles=[...me.styles,...vp],y([A({type:Boolean,reflect:!0})],$i.prototype,"checked",2),y([A({type:Boolean,reflect:!0})],$i.prototype,"readonly",2),y([A({type:Boolean,reflect:!0})],$i.prototype,"autofocus",2);var oc=$i;var mn=j.constructTagName("radio");oc.register(mn);var Mg=oc;var Ns=class extends en{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,s,n,h,f;(f=(h=(n=(s=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:s.flatMap(S=>S.assignedElements({flatten:!0})))==null?void 0:n.filter(S=>S.tagName.toLowerCase()===mn||S.tagName.toLowerCase()===Ba))==null?void 0:h.filter(S=>!S.hasAttribute("name")))==null||f.forEach(S=>{S.setAttribute("name",this.name),this.requiredLabel&&S.setAttribute("required-label",this.requiredLabel)})}};Ns.styles=[...en.styles],y([A({type:String})],Ns.prototype,"name",2);var sc=Ns;var gp=j.constructTagName("radiogroup");sc.register(gp);var Ng=sc;var bp=j.constructTagName("screenreaderannouncer"),Rg={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Io={ARIA_LIVE:Rg.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Og=[W`
|
3435
3435
|
:host {
|
3436
3436
|
display: none;
|
3437
3437
|
visibility: hidden;
|
3438
3438
|
}
|
3439
|
-
`],
|
3439
|
+
`],yp=Og;var Pr=class extends Z{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Io.ARIA_LIVE;this.delay=Io.DELAY;this.timeout=Io.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,s,n,h){var f;if(e.length>0){let S=`mdc-screenreaderannouncer-announcement-${Cr()}`,M=document.createElement("div");M.id=S,M.ariaLive=h,(f=document.getElementById(this.identity))==null||f.appendChild(M);let B=window.setTimeout(()=>{let G=document.createElement("p");G.textContent=e,M.appendChild(G),this.ariaLiveAnnouncementIds.push(S);let q=window.setTimeout(()=>{var it;(it=document.getElementById(S))==null||it.remove()},n);this.timeOutIds.push(q)},s);this.timeOutIds.push(B)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var s;(s=document.getElementById(e))==null||s.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let s=document.createElement("style");s.textContent=`
|
3440
3440
|
.mdc-screenreaderannouncer__visually-hidden {
|
3441
3441
|
clip: rect(0 0 0 0);
|
3442
3442
|
clip-path: inset(50%);
|
@@ -3446,7 +3446,7 @@
|
|
3446
3446
|
white-space: nowrap;
|
3447
3447
|
width: 1px;
|
3448
3448
|
}
|
3449
|
-
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
3449
|
+
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Io.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Io.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Pr.styles=[...Z.styles,...yp],y([A({type:String,reflect:!0})],Pr.prototype,"announcement",2),y([A({type:String,reflect:!0})],Pr.prototype,"identity",2),y([A({type:String,reflect:!0,attribute:"data-aria-live"})],Pr.prototype,"dataAriaLive",2),y([A({type:Number,reflect:!0})],Pr.prototype,"delay",2),y([A({type:Number,reflect:!0})],Pr.prototype,"timeout",2);var ac=Pr;ac.register(bp);var Pg=ac;var Dg=W`
|
3450
3450
|
|
3451
3451
|
:host::part(filters-container){
|
3452
3452
|
display: flex;
|
@@ -3473,9 +3473,9 @@
|
|
3473
3473
|
scrollbar-width: none;
|
3474
3474
|
}
|
3475
3475
|
|
3476
|
-
`,
|
3476
|
+
`,Ep=[Dg];var xp=j.constructTagName("searchfield"),Rs={TYPE:Ul.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:on};var Vi=class extends So{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=Rs.ICON,this.trailingButton=Rs.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(s=>{s.matches(Rs.INPUT_CHIP_TAG)||s.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(s=>{s.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return F`
|
3477
3477
|
${this.renderLabelElement()}
|
3478
|
-
<div class="${
|
3478
|
+
<div class="${mo({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
|
3479
3479
|
${this.renderLeadingIcon()}
|
3480
3480
|
<div part='scrollable-container' tabindex='-1'>
|
3481
3481
|
<div part="filters-container"
|
@@ -3483,11 +3483,11 @@
|
|
3483
3483
|
@keydown=${e=>e.key==="Enter"?this.inputElement.focus():null}
|
3484
3484
|
@keyup=${e=>e.key===" "?this.inputElement.focus():null}>
|
3485
3485
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
|
3486
|
-
${this.renderInputElement(
|
3486
|
+
${this.renderInputElement(Rs.TYPE,this.hasInputChips)}
|
3487
3487
|
</div>
|
3488
3488
|
${this.renderTrailingButton(this.hasInputChips)}
|
3489
3489
|
</div>
|
3490
|
-
`}};
|
3490
|
+
`}};Vi.styles=[...So.styles,...Ep],y([Ft({slot:"filters"})],Vi.prototype,"inputChips",2),y([Tt()],Vi.prototype,"isInputFocused",2),y([Tt()],Vi.prototype,"hasInputChips",2);var nc=Vi;nc.register(xp);var Fg=nc;var Tp=j.constructTagName("select"),pn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var zg=W`
|
3491
3491
|
:host {
|
3492
3492
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
3493
3493
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -3593,7 +3593,7 @@
|
|
3593
3593
|
:host([help-text-type="warning"])::part(base-container) {
|
3594
3594
|
border-color: var(--mdc-select-warning-border-color);
|
3595
3595
|
}
|
3596
|
-
`,
|
3596
|
+
`,Ap=[zg,...At(!0)];var le=class extends _e(Ut(me)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=pn.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(s=>s.tagName.toLowerCase()===Ls?s:s.tagName.toLowerCase()===cn?Array.from(s.children).filter(n=>n.tagName.toLowerCase()===Ls):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=pn.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=pn.ARROW_DOWN}updateTabIndexForAllOptions(e){var n;let s=!1;this.getAllValidOptions().forEach(h=>{h===e?(this.setSelectedValue(h),s=!0,h.setAttribute("selected",""),h.setAttribute("tabindex","0")):(h==null||h.setAttribute("tabindex","-1"),h==null||h.removeAttribute("selected"))}),!s&&((n=this.getAllValidOptions()[0])==null||n.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var s,n,h,f;this.selectedValueText=(n=(s=e==null?void 0:e.getAttribute("label"))!=null?s:e==null?void 0:e.textContent)!=null?n:"",this.selectedIcon=e==null?void 0:e.getAttribute("prefix-icon"),this.selectedValue=(f=(h=e==null?void 0:e.getAttribute("value"))!=null?h:e==null?void 0:e.textContent)!=null?f:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.selectedIcon=null,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var s;switch(e.key){case It.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case It.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(s=this.form)==null||s.requestSubmit();break;case It.ESCAPE:this.closePopover(),e.stopPropagation();break;case It.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case It.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case It.ARROW_DOWN:case It.ARROW_UP:case It.PAGE_DOWN:case It.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case It.ARROW_DOWN:case It.ARROW_UP:case It.ENTER:case It.SPACE:this.openPopover(),e.preventDefault();break;case It.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case It.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let s=this.getAllValidOptions(),n=s.findIndex(f=>f===e.target),h=this.getNewIndexBasedOnKey(e.key,n,s.length);h!==-1&&(this.setFocusAndTabIndex(h),e.preventDefault())}getNewIndexBasedOnKey(e,s,n){return e===It.ARROW_DOWN&&s!==n-1?s+1:e===It.ARROW_UP&&s>0?s-1:e===It.PAGE_DOWN?s+10>n?n-1:s+10:e===It.PAGE_UP?s-10<0?0:s-10:-1}updateActivedescendant(e){var n,h;let s=this.getAllValidOptions().findIndex(f=>f===e);this.activeDescendant=(h=(n=this.getAllValidOptions()[s])==null?void 0:n.id)!=null?h:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var s;(s=this.getAllValidOptions()[e])==null||s.focus(),this.getAllValidOptions().forEach((n,h)=>{let f=e===h?"0":"-1";n==null||n.setAttribute("tabindex",f)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),s=e.findIndex(n=>n==null?void 0:n.hasAttribute("selected"));s!==-1?(this.setSelectedValue(e[s]),this.updateTabIndexForAllOptions(e[s])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return F`
|
3597
3597
|
<select
|
3598
3598
|
part="native-select"
|
3599
3599
|
id="${this.id}"
|
@@ -3618,7 +3618,7 @@
|
|
3618
3618
|
>
|
3619
3619
|
${e.textContent}
|
3620
3620
|
</option>
|
3621
|
-
`})}getPopoverContent(){return this.disabled||this.readonly?
|
3621
|
+
`})}getPopoverContent(){return this.disabled||this.readonly?X:F`
|
3622
3622
|
<mdc-popover
|
3623
3623
|
id="options-popover"
|
3624
3624
|
triggerid="select-base-triggerid"
|
@@ -3628,7 +3628,7 @@
|
|
3628
3628
|
focus-back-to-trigger
|
3629
3629
|
focus-trap
|
3630
3630
|
role="listbox"
|
3631
|
-
placement="${
|
3631
|
+
placement="${ue.BOTTOM_START}"
|
3632
3632
|
@shown="${this.handlePopoverOpen}"
|
3633
3633
|
@hidden="${this.handlePopoverClose}"
|
3634
3634
|
style="--mdc-popover-max-width: ${this.popoverWidth}; --mdc-popover-max-height: ${this.height};"
|
@@ -3647,14 +3647,14 @@
|
|
3647
3647
|
aria-activedescendant="${this.activeDescendant}"
|
3648
3648
|
aria-haspopup="listbox"
|
3649
3649
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3650
|
-
aria-labelledby="${this.label
|
3650
|
+
aria-labelledby="${this.label?$t.HEADING_ID:""}"
|
3651
3651
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
3652
3652
|
>
|
3653
|
-
${this.selectedIcon?F`<mdc-icon length-unit="rem" size="1" name="${this.selectedIcon}" part="selected-icon"></mdc-icon>`:
|
3653
|
+
${this.selectedIcon?F`<mdc-icon length-unit="rem" size="1" name="${this.selectedIcon}" part="selected-icon"></mdc-icon>`:X}
|
3654
3654
|
<mdc-text
|
3655
3655
|
part="base-text ${this.selectedValueText?"selected":""}"
|
3656
|
-
type="${
|
3657
|
-
tagname="${
|
3656
|
+
type="${nt.BODY_MIDSIZE_REGULAR}"
|
3657
|
+
tagname="${yt.SPAN}"
|
3658
3658
|
>
|
3659
3659
|
${(s=this.selectedValueText)!=null?s:this.placeholder}
|
3660
3660
|
</mdc-text>
|
@@ -3666,7 +3666,7 @@
|
|
3666
3666
|
${this.getPopoverContent()}
|
3667
3667
|
</div>
|
3668
3668
|
${this.renderHelperText()}
|
3669
|
-
`}};
|
3669
|
+
`}};le.styles=[...me.styles,...Ap],y([A({type:String})],le.prototype,"placeholder",2),y([A({type:Boolean})],le.prototype,"readonly",2),y([A({type:String})],le.prototype,"height",2),y([Ft()],le.prototype,"optionsList",2),y([Tt()],le.prototype,"baseIconName",2),y([Tt()],le.prototype,"selectedValueText",2),y([Tt()],le.prototype,"selectedIcon",2),y([Tt()],le.prototype,"selectedValue",2),y([Tt()],le.prototype,"displayPopover",2),y([Tt()],le.prototype,"activeDescendant",2),y([Tt()],le.prototype,"popoverWidth",2),y([Tr("select")],le.prototype,"inputElement",2);var lc=le;lc.register(Tp);var $g=lc;var Vg=[Et,W`
|
3670
3670
|
:host {
|
3671
3671
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
3672
3672
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -3728,11 +3728,11 @@
|
|
3728
3728
|
stroke-dashoffset: -292;
|
3729
3729
|
}
|
3730
3730
|
}
|
3731
|
-
`],
|
3731
|
+
`],_p=Vg;var Sp=j.constructTagName("spinner"),Bg={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ug={STANDALONE:"standalone",BUTTON:"button"},un={VARIANT:Ug.STANDALONE,SIZE:Bg.MIDSIZE,INVERTED:!1};var oi=class extends Z{constructor(){super(...arguments);this.inverted=un.INVERTED;this.size=un.SIZE;this.ariaLabel=null;this.variant=un.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return F`
|
3732
3732
|
<svg part="container" viewBox="0 0 100 100">
|
3733
3733
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
3734
3734
|
</svg>
|
3735
|
-
`}};
|
3735
|
+
`}};oi.styles=[...Z.styles,..._p],y([A({type:Boolean,reflect:!0})],oi.prototype,"inverted",2),y([A({type:String,reflect:!0})],oi.prototype,"size",2),y([A({type:String,attribute:"aria-label"})],oi.prototype,"ariaLabel",2),y([A({type:String,reflect:!0})],oi.prototype,"variant",2);var cc=oi;cc.register(Sp);var Hg=cc;var kp=j.constructTagName("statictoggle"),Gg={DEFAULT:"default",COMPACT:"compact"},dc={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Cp={compact:.75,default:1.25},wp={SIZE:Gg.DEFAULT};var jg=[W`
|
3736
3736
|
:host {
|
3737
3737
|
--mdc-statictoggle-width: 3rem;
|
3738
3738
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3811,17 +3811,17 @@
|
|
3811
3811
|
border: var(--mdc-statictoggle-border);
|
3812
3812
|
}
|
3813
3813
|
}
|
3814
|
-
`],
|
3814
|
+
`],Ip=jg;var Lo=class extends Pt(Z){constructor(){super(...arguments);this.checked=!1;this.size=wp.SIZE}render(){return F`
|
3815
3815
|
<slot></slot>
|
3816
3816
|
<div part="slider">
|
3817
3817
|
<mdc-icon
|
3818
|
-
name="${this.checked?
|
3818
|
+
name="${this.checked?dc.CHECKED:dc.UNCHECKED}"
|
3819
3819
|
class="icon"
|
3820
3820
|
length-unit="rem"
|
3821
|
-
size="${
|
3821
|
+
size="${Cp[this.size]}"
|
3822
3822
|
></mdc-icon>
|
3823
3823
|
</div>
|
3824
|
-
`}};
|
3824
|
+
`}};Lo.styles=[...Z.styles,...Ip],y([A({type:Boolean,reflect:!0})],Lo.prototype,"checked",2),y([A({type:String,reflect:!0})],Lo.prototype,"size",2);var hc=Lo;hc.register(kp);var Wg=hc;var qg=[Et,W`
|
3825
3825
|
|
3826
3826
|
:host {
|
3827
3827
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -4065,21 +4065,21 @@
|
|
4065
4065
|
color: var(--mdc-tab-pill-active-color-disabled);
|
4066
4066
|
}
|
4067
4067
|
|
4068
|
-
`,...
|
4068
|
+
`,...At()],Lp=qg;var Mp=j.constructTagName("tab"),mc={GLASS:"glass",LINE:"line",PILL:"pill"},fn={VARIANT:mc.PILL,ACTIVE:!1};var si=class extends Te(xe){constructor(){super(...arguments);this.active=fn.ACTIVE;this.variant=fn.VARIANT;this.handleTabActiveChange=e=>{let s=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(s)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${vs(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(mc).includes(e)?e:fn.VARIANT)}setActive(e,s){super.setActive(e,s),this.modifyIconName(s)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return F`
|
4069
4069
|
<div part="container">
|
4070
|
-
${this.iconName?F` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:
|
4070
|
+
${this.iconName?F` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:X}
|
4071
4071
|
${this.text?F` <mdc-text
|
4072
|
-
type=${this.active?
|
4073
|
-
tagname=${
|
4072
|
+
type=${this.active?nt.BODY_MIDSIZE_BOLD:nt.BODY_MIDSIZE_MEDIUM}
|
4073
|
+
tagname=${yt.SPAN}
|
4074
4074
|
data-text=${this.text}
|
4075
4075
|
part="text"
|
4076
4076
|
>${this.text}</mdc-text
|
4077
|
-
>`:
|
4077
|
+
>`:X}
|
4078
4078
|
<slot name="badge"></slot>
|
4079
4079
|
<slot name="chip"></slot>
|
4080
4080
|
</div>
|
4081
4081
|
<div part="indicator"></div>
|
4082
|
-
`}};
|
4082
|
+
`}};si.styles=[...xe.styles,...Lp],y([A({type:Boolean,reflect:!0})],si.prototype,"active",2),y([A({type:String,reflect:!0})],si.prototype,"text",2),y([A({type:String,reflect:!0})],si.prototype,"variant",2),y([A({type:String,reflect:!0,attribute:"tab-id"})],si.prototype,"tabId",2);var Be=si;Be.register(Mp);var Yg=Be;var Kg=[ya,W`
|
4083
4083
|
:host {
|
4084
4084
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
4085
4085
|
--mdc-tablist-gap: 0.5rem;
|
@@ -4109,20 +4109,20 @@
|
|
4109
4109
|
:host mdc-button[prefix-icon="arrow-right-regular"] {
|
4110
4110
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4111
4111
|
}
|
4112
|
-
`],
|
4112
|
+
`],Np=[...Kg];var Rp=j.constructTagName("tablist"),Os={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Mo={FORWARD:"forward",BACKWARD:"backward"};var vn=l=>l[0],pc=l=>l[l.length-1],Op=(l,o)=>{let e=l.findIndex(s=>o===s)-1;return l[(e+l.length)%l.length]},Pp=(l,o)=>{let e=l.findIndex(s=>o===s)+1;return l[e%l.length]},Dp=(l,o)=>l.find(e=>e.tabId===o),uc=l=>l.find(o=>o.active);var er=class extends Z{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let s=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(s)};this.handleFocus=async e=>{if(e.relatedTarget instanceof Be||!(e.target instanceof Be))return;let s=uc(this.tabs||[]);s instanceof Be&&await this.focusTab(s)};this.handleMousedown=e=>{e.target instanceof Be&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let s=e.target;s instanceof Be&&(this.setActiveTab(s),await this.focusTab(s),this.activeTabId=s.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var s;(s=this.tabs)==null||s.forEach(n=>{n.setAttribute("tabindex",n===e?"0":"-1")})};this.setActiveTab=e=>{var s;(s=this.tabs)==null||s.forEach(n=>{n===e?n.setAttribute("active",""):n.removeAttribute("active")})};this.focusTab=async e=>{e instanceof Be&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let s=e.target;if(!(s instanceof Be)||!this.tabs)return;let n=Op(this.tabs,s),h=Pp(this.tabs,s),f=vn(this.tabs),S=pc(this.tabs);switch(e.code){case Os.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?h:n);break;case Os.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?n:h);break;case Os.HOME:await this.focusTab(f);break;case Os.END:await this.focusTab(S);break;default:}};this.shouldShowArrowButton=e=>e===Mo.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,s;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=uc(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((s=this.notFocusedArrowButton)==null||s.focus())};this.handleArrowButtonVisibility=async()=>{var q,it,J;if(!this.tabs||!this.tabsContainer)return;let e=!1;((q=this.shadowRoot)==null?void 0:q.activeElement)instanceof xi&&(e=!0);let s=vn(this.tabs),n=pc(this.tabs),h=s.getBoundingClientRect().left,f=(it=this.tabsContainer)==null?void 0:it.getBoundingClientRect().left,S=n.getBoundingClientRect().right,M=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().right,B=s.getBoundingClientRect().right,G=n.getBoundingClientRect().left;if(!this.isRtl()){h<=f?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,S>M?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}B>M?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,G<f?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var h;let s=this.isRtl()?-1:1,n=this.isRtl()?1:-1;(h=this.tabsContainer)==null||h.scrollBy({left:this.tabsContainer.clientWidth*(e===Mo.FORWARD?s:n),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var n,h,f;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(S=>S.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(n=vn(this.tabs))==null?void 0:n.tabId),(h=this.tabsContainer)==null||h.addEventListener("focusin",this.handleFocus),(f=this.tabsContainer)==null||f.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let s=Dp(this.tabs,this.activeTabId);if(!(s instanceof Be))return;this.setActiveTab(s),e.get("activeTabId")?(this.fireTabChangeEvent(s),await this.focusTab(s)):this.resetTabIndexAndSetNewTabIndex(s)}}render(){let e=this.isRtl()?"left":"right",s=this.isRtl()?"right":"left",n=h=>F` ${this.shouldShowArrowButton(h)?F`<mdc-button
|
4113
4113
|
variant="tertiary"
|
4114
|
-
prefix-icon="arrow-${h===
|
4115
|
-
aria-label="Scroll tabs ${h===
|
4114
|
+
prefix-icon="arrow-${h===Mo.FORWARD?e:s}-regular"
|
4115
|
+
aria-label="Scroll tabs ${h===Mo.FORWARD?e:s}"
|
4116
4116
|
@click="${()=>this.scrollTabs(h)}"
|
4117
|
-
></mdc-button>`:
|
4117
|
+
></mdc-button>`:X}`;return F` ${n("backward")}
|
4118
4118
|
<div
|
4119
4119
|
class="container"
|
4120
4120
|
role="tablist"
|
4121
4121
|
tabindex="-1"
|
4122
|
-
aria-label="${
|
4122
|
+
aria-label="${ht(this.dataAriaLabel)}">
|
4123
4123
|
<slot></slot>
|
4124
4124
|
</div>
|
4125
|
-
${n(
|
4125
|
+
${n(Mo.FORWARD)}`}};er.styles=[...Z.styles,...Np],y([A({type:String,attribute:"active-tab-id",reflect:!0})],er.prototype,"activeTabId",2),y([A({type:String,attribute:"data-aria-label"})],er.prototype,"dataAriaLabel",2),y([Tr(".container")],er.prototype,"tabsContainer",2),y([Tr("mdc-button:not(:focus-visible)")],er.prototype,"notFocusedArrowButton",2),y([Ft({selector:"mdc-tab"})],er.prototype,"tabs",2),y([Tt()],er.prototype,"showForwardArrowButton",2),y([Tt()],er.prototype,"showBackwardArrowButton",2);var fc=er;fc.register(Rp);var Xg=fc;var Zg=[W`
|
4126
4126
|
:host {
|
4127
4127
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
4128
4128
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4243,15 +4243,15 @@
|
|
4243
4243
|
pointer-events: none;
|
4244
4244
|
}
|
4245
4245
|
|
4246
|
-
`,...
|
4246
|
+
`,...At(!0)],Fp=Zg;var zp=j.constructTagName("textarea"),vc={HARD:"hard",SOFT:"soft"},$p={OFF:"off",ON:"on"},gn={CHARACTER_COUNTER_TYPE:nt.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:vc.SOFT};var ie=class extends _e(Ut(Ve)){constructor(){super(...arguments);this.readonly=!1;this.rows=gn.ROWS;this.cols=gn.COLS;this.wrap=vc.SOFT;this.autocapitalize=rn.OFF;this.autocomplete=$p.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(s=>{this.onerror&&this.onerror(s)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Xt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,s,n){super.attributeChangedCallback(e,s,n),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(f=>{this.onerror&&this.onerror(f)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?F`
|
4247
4247
|
<mdc-text
|
4248
4248
|
part="character-counter"
|
4249
4249
|
tagname="span"
|
4250
|
-
type=${
|
4250
|
+
type=${gn.CHARACTER_COUNTER_TYPE}
|
4251
4251
|
>
|
4252
4252
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
4253
4253
|
</mdc-text>
|
4254
|
-
`:
|
4254
|
+
`:X}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?X:F`
|
4255
4255
|
<div part="textarea-footer">
|
4256
4256
|
${this.renderHelperText()}
|
4257
4257
|
${this.renderCharacterCounter()}
|
@@ -4268,24 +4268,24 @@
|
|
4268
4268
|
?disabled="${this.disabled}"
|
4269
4269
|
?readonly="${this.readonly}"
|
4270
4270
|
?required="${!!this.requiredLabel}"
|
4271
|
-
placeholder=${
|
4272
|
-
rows=${
|
4273
|
-
cols=${
|
4274
|
-
wrap=${
|
4271
|
+
placeholder=${ht(this.placeholder)}
|
4272
|
+
rows=${ht(this.rows)}
|
4273
|
+
cols=${ht(this.cols)}
|
4274
|
+
wrap=${ht(this.wrap)}
|
4275
4275
|
?autofocus="${this.autofocus}"
|
4276
4276
|
autocapitalize=${this.autocapitalize}
|
4277
4277
|
autocomplete=${this.autocomplete}
|
4278
|
-
minlength=${
|
4279
|
-
maxlength=${
|
4280
|
-
dirname=${
|
4278
|
+
minlength=${ht(this.minlength)}
|
4279
|
+
maxlength=${ht(this.maxlength)}
|
4280
|
+
dirname=${ht(this.dirname)}
|
4281
4281
|
@input=${this.updateValue}
|
4282
4282
|
@change=${this.onChange}
|
4283
|
-
aria-describedby="${
|
4283
|
+
aria-describedby="${ht(this.helpText?$t.HELPER_TEXT_ID:"")}"
|
4284
4284
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
4285
4285
|
></textarea>
|
4286
4286
|
</div>
|
4287
4287
|
${this.renderTextareaFooter()}
|
4288
|
-
`}};
|
4288
|
+
`}};ie.styles=[...Ve.styles,...Fp],y([A({type:String})],ie.prototype,"placeholder",2),y([A({type:Boolean})],ie.prototype,"readonly",2),y([A({type:Number})],ie.prototype,"rows",2),y([A({type:Number})],ie.prototype,"cols",2),y([A({type:String})],ie.prototype,"wrap",2),y([A({type:String})],ie.prototype,"autocapitalize",2),y([A({type:String})],ie.prototype,"autocomplete",2),y([A({type:Boolean})],ie.prototype,"autofocus",2),y([A({type:String})],ie.prototype,"dirname",2),y([A({type:Number})],ie.prototype,"maxlength",2),y([A({type:Number})],ie.prototype,"minlength",2),y([A({type:Number,attribute:"max-character-limit"})],ie.prototype,"maxCharacterLimit",2),y([Tr("textarea")],ie.prototype,"inputElement",2);var gc=ie;gc.register(zp);var Jg=gc;var bn=j.constructTagName("themeprovider"),bc={THEMECLASS:"mds-theme-stable-darkWebex"};var yn=class{constructor(o){this.themeclass=o}};yn.context=bn;var En=yn;var Qg=W`
|
4289
4289
|
:host {
|
4290
4290
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
4291
4291
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -4314,7 +4314,7 @@
|
|
4314
4314
|
* {
|
4315
4315
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
4316
4316
|
}
|
4317
|
-
`,
|
4317
|
+
`,Vp=[Qg];var No=class extends ro{constructor(){super({context:En.context,initialValue:new En(bc.THEMECLASS)});this.themeclass=bc.THEMECLASS}static get Context(){return En.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};No.styles=[...ro.styles,...Vp],y([Tt()],No.prototype,"currentThemeClass",2),y([A({type:String})],No.prototype,"themeclass",2);var yc=No;yc.register(bn);var tb=yc;var Bp=j.constructTagName("toggle"),Ps={DEFAULT:"default",COMPACT:"compact"};var Ec={SIZE:Ps.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var eb=[Et,W`
|
4318
4318
|
:host {
|
4319
4319
|
--mdc-toggle-width: 3rem;
|
4320
4320
|
--mdc-toggle-height: 1.5rem;
|
@@ -4396,7 +4396,7 @@
|
|
4396
4396
|
:host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
|
4397
4397
|
color: var(--mdc-toggle-label-color-disabled);
|
4398
4398
|
}
|
4399
|
-
`,...
|
4399
|
+
`,...At(!0)],Up=eb;var Bi=class extends _e(Ut(Ve)){constructor(){super(...arguments);this.checked=!1;this.size=Ec.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}handleChange(e){this.toggleState();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Ps).includes(e)?e:Ec.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return F`
|
4400
4400
|
<mdc-statictoggle
|
4401
4401
|
?checked="${this.checked}"
|
4402
4402
|
?disabled="${this.disabled}"
|
@@ -4411,12 +4411,12 @@
|
|
4411
4411
|
role="switch"
|
4412
4412
|
?autofocus="${this.autofocus}"
|
4413
4413
|
?required="${!!this.requiredLabel}"
|
4414
|
-
name="${
|
4415
|
-
value="${
|
4414
|
+
name="${ht(this.name)}"
|
4415
|
+
value="${ht(this.value)}"
|
4416
4416
|
.checked="${this.checked}"
|
4417
4417
|
aria-checked="${this.checked}"
|
4418
4418
|
.disabled="${this.disabled}"
|
4419
|
-
aria-describedby="${
|
4419
|
+
aria-describedby="${ht(this.helpText?$t.HELPER_TEXT_ID:"")}"
|
4420
4420
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
4421
4421
|
tabindex="${this.disabled?-1:0}"
|
4422
4422
|
@change="${this.handleChange}"
|
@@ -4425,7 +4425,7 @@
|
|
4425
4425
|
</mdc-statictoggle>
|
4426
4426
|
${this.renderLabel()}
|
4427
4427
|
${this.renderHelperText()}
|
4428
|
-
`}};
|
4428
|
+
`}};Bi.styles=[...Ve.styles,...Up],y([A({type:Boolean,reflect:!0})],Bi.prototype,"checked",2),y([A({type:String,reflect:!0})],Bi.prototype,"size",2),y([A({type:Boolean,reflect:!0})],Bi.prototype,"autofocus",2);var xc=Bi;xc.register(Bp);var rb=xc;var Hp=j.constructTagName("toggletip"),Ui={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:ue.TOP,CLICK:Li.CLICK,SHOW_ARROW:!0};var ib=W`
|
4429
4429
|
:host {
|
4430
4430
|
--mdc-toggletip-max-width: 400px;
|
4431
4431
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -4455,17 +4455,17 @@
|
|
4455
4455
|
:host(:dir(rtl))::part(popover-content) {
|
4456
4456
|
margin-left: 2rem;
|
4457
4457
|
}
|
4458
|
-
`,
|
4458
|
+
`,Gp=[ib];var Hi=class extends tr{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=Ui.CLOSE_BUTTON,this.closeButtonAriaLabel=Ui.CLOSE_BUTTON_ARIA_LABEL,this.placement=Ui.PLACEMENT,this.trigger=Ui.CLICK,this.showArrow=Ui.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,s;return((s=(e=this.defaultSlotNodes)==null?void 0:e.map(n=>n.textContent).join(" "))==null?void 0:s.trim())||""}onPlacementUpdated(){Object.values(ue).includes(this.placement)||(this.placement=Ui.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return F`
|
4459
4459
|
${super.render()}
|
4460
4460
|
<mdc-screenreaderannouncer
|
4461
4461
|
identity="${this.screenreaderAnnouncerIdentity}"
|
4462
4462
|
announcement="${this.currentAnnouncement}"
|
4463
4463
|
delay="300">
|
4464
4464
|
</mdc-screenreaderannouncer>
|
4465
|
-
`}};
|
4465
|
+
`}};Hi.styles=[...tr.styles,...Gp],y([ba()],Hi.prototype,"defaultSlotNodes",2),y([Tt()],Hi.prototype,"currentAnnouncement",2),y([A({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Hi.prototype,"screenreaderAnnouncerIdentity",2);var Tc=Hi;Tc.register(Hp);var ob=Tc;function Gi(l,o,e){var h;let s=(h=e.initialDeps)!=null?h:[],n;return()=>{var f,S,M,B;let G;e.key&&((f=e.debug)!=null&&f.call(e))&&(G=Date.now());let q=l();if(!(q.length!==s.length||q.some((tt,lt)=>s[lt]!==tt)))return n;s=q;let J;if(e.key&&((S=e.debug)!=null&&S.call(e))&&(J=Date.now()),n=o(...q),e.key&&((M=e.debug)!=null&&M.call(e))){let tt=Math.round((Date.now()-G)*100)/100,lt=Math.round((Date.now()-J)*100)/100,gt=lt/16,vt=(bt,_t)=>{for(bt=String(bt);bt.length<_t;)bt=" "+bt;return bt};console.info(`%c\u23F1 ${vt(lt,5)} /${vt(tt,5)} ms`,`
|
4466
4466
|
font-size: .6rem;
|
4467
4467
|
font-weight: bold;
|
4468
|
-
color: hsl(${Math.max(0,Math.min(120-120*bt,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(B=e==null?void 0:e.onChange)==null||B.call(e,n),n}}function An(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var Wp=(l,o)=>Math.abs(l-o)<1,qp=(l,o,e)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>o.apply(this,n),e)}};var nb=l=>l,lb=l=>{let o=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let n=o;n<=e;n++)s.push(n);return s},Kp=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=f=>{let{width:S,height:M}=f;o({width:Math.round(S),height:Math.round(M)})};if(n(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(f=>{let S=f[0];if(S!=null&&S.borderBoxSize){let M=S.borderBoxSize[0];if(M){n({width:M.inlineSize,height:M.blockSize});return}}n(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},Yp={passive:!0};var cb=typeof window>"u"?!0:"onscrollend"in window,Xp=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&cb?()=>{}:qp(s,()=>{o(n,!1)},l.options.isScrollingResetDelay),f=B=>()=>{let{horizontal:G,isRtl:q}=l.options;n=G?e.scrollLeft*(q&&-1||1):e.scrollTop,h(),o(n,B)},S=f(!0),M=f(!1);return M(),e.addEventListener("scroll",S,Yp),e.addEventListener("scrollend",M,Yp),()=>{e.removeEventListener("scroll",S),e.removeEventListener("scrollend",M)}};var db=(l,o,e)=>{if(o!=null&&o.borderBoxSize){let s=o.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Zp=(l,{adjustments:o=0,behavior:e},s)=>{var n,h;let f=l+o;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:f,behavior:e})},_n=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,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 e=null,s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(n=>{n.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var n;(n=s())==null||n.disconnect(),e=null},observe:n=>{var h;return(h=s())==null?void 0:h.observe(n,{box:"border-box"})},unobserve:n=>{var h;return(h=s())==null?void 0:h.unobserve(n)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,n])=>{typeof n>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nb,rangeExtractor:lb,onChange:()=>{},measureElement:db,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var s,n;(n=(s=this.options).onChange)==null||n.call(s,this,e)},this.maybeNotify=ji(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{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(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;var e;let s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(n=(e=this.scrollElement)==null?void 0:e.window)!=null?n:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,s)=>{let n=new Map,h=new Map;for(let f=s-1;f>=0;f--){let S=e[f];if(n.has(S.lane))continue;let M=h.get(S.lane);if(M==null||S.end>M.end?h.set(S.lane,S):S.end<M.end&&n.set(S.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((f,S)=>f.end===S.end?f.index-S.index:f.end-S.end)[0]:void 0},this.getMeasurementOptions=ji(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,n,h,f)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:f}),{key:!1}),this.getMeasurements=ji(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:f},S)=>{if(!f)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(G=>{this.itemSizeCache.set(G.key,G.size)}));let M=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let B=this.measurementsCache.slice(0,M);for(let G=M;G<e;G++){let q=h(G),ot=this.options.lanes===1?B[G-1]:this.getFurthestMeasurement(B,G),Q=ot?ot.end+this.options.gap:s+n,et=S.get(q),ct=typeof et=="number"?et:this.options.estimateSize(G),bt=Q+ct,gt=ot?ot.lane:G%this.options.lanes;B[G]={index:G,start:Q,size:ct,end:bt,key:q,lane:gt}}return this.measurementsCache=B,B},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ji(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,n)=>this.range=e.length>0&&s>0?hb({measurements:e,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=ji(()=>{let e=null,s=null,n=this.calculateRange();return n&&(e=n.startIndex,s=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,n,h,f)=>h===null||f===null?[]:e({startIndex:h,endIndex:f,overscan:s,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let s=this.options.indexAttribute,n=e.getAttribute(s);return n?parseInt(n,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{let n=this.indexFromElement(e),h=this.measurementsCache[n];if(!h)return;let f=h.key,S=this.elementsCache.get(f);S!==e&&(S&&this.observer.unobserve(S),this.observer.observe(e),this.elementsCache.set(f,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var S;let n=this.measurementsCache[e];if(!n)return;let h=(S=this.itemSizeCache.get(n.key))!=null?S:n.size,f=s-h;f!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,f,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,n)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(n))});return}this._measureElement(e,void 0)},this.getVirtualItems=ji(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let n=[];for(let h=0,f=e.length;h<f;h++){let S=e[h],M=s[S];n.push(M)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return An(s[Jp(0,s.length-1,n=>An(s[n]).start,e)])},this.getOffsetForAlignment=(e,s)=>{let n=this.getSize(),h=this.getScrollOffset();s==="auto"&&e>=h+n&&(s="end"),s==="end"&&(e-=n);let f=this.options.horizontal?"scrollWidth":"scrollHeight",M=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[f]:this.scrollElement[f]:0)-n;return Math.max(Math.min(M,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let h=this.getSize(),f=this.getScrollOffset();if(s==="auto")if(n.end>=f+h-this.options.scrollPaddingEnd)s="end";else if(n.start<=f+this.options.scrollPaddingStart)s="start";else return[f,s];let S=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(S,s),s];case"end":return[this.getOffsetForAlignment(n.end+this.options.scrollPaddingEnd,s),s];default:return[this.getOffsetForAlignment(n.start-this.options.scrollPaddingStart,s),s]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:s="start",behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,s),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:s="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(e,s);if(!h)return;let[f,S]=h;this._scrollToOffset(f,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[B]=An(this.getOffsetForIndex(e,S));Wp(B,this.getScrollOffset())||this.scrollToIndex(e,{align:S,behavior:n})}else this.scrollToIndex(e,{align:S,behavior:n})}))},this.scrollBy=(e,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var h;var e;let s=this.getMeasurements(),n;return s.length===0?n=this.options.paddingStart:n=this.options.lanes===1?(h=(e=s[s.length-1])==null?void 0:e.end)!=null?h:0:Math.max(...s.slice(-this.options.lanes).map(f=>f.end)),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Jp=(l,o,e,s)=>{for(;l<=o;){let n=(l+o)/2|0,h=e(n);if(h<s)l=n+1;else if(h>s)o=n-1;else return n}return l>0?l-1:0};function hb({measurements:l,outerSize:o,scrollOffset:e}){let s=l.length-1,h=Jp(0,s,S=>l[S].start,e),f=h;for(;f<s&&l[f].end<e+o;)f++;return{startIndex:h,endIndex:f}}var Sc=class{constructor(o,e){this.cleanup=()=>{},(this.host=o).addController(this);let s={...e,onChange:(n,h)=>{var f;this.host.updateComplete.then(()=>this.host.requestUpdate()),(f=e.onChange)==null||f.call(e,n,h)}};this.virtualizer=new _n(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Sn=class extends Sc{constructor(o,e){super(o,{observeElementRect:Kp,observeElementOffset:Xp,scrollToFn:Zp,...e})}};var{I:P2}=Wd;var Qp=l=>l.strings===void 0;var Fs=(l,o)=>{var s;let e=l._$AN;if(e===void 0)return!1;for(let n of e)(s=n._$AO)==null||s.call(n,o,!1),Fs(n,o);return!0},kn=l=>{let o,e;do{if((o=l._$AM)===void 0)break;e=o._$AN,e.delete(l),l=o}while((e==null?void 0:e.size)===0)},tu=l=>{for(let o;o=l._$AM;l=o){let e=o._$AN;if(e===void 0)o._$AN=e=new Set;else if(e.has(l))break;e.add(l),ub(o)}};function mb(l){this._$AN!==void 0?(kn(this),this._$AM=l,tu(this)):this._$AM=l}function pb(l,o=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(o)if(Array.isArray(s))for(let h=e;h<s.length;h++)Fs(s[h],!1),kn(s[h]);else s!=null&&(Fs(s,!1),kn(s));else Fs(this,l)}var ub=l=>{var o,e;l.type==La.CHILD&&((o=l._$AP)!=null||(l._$AP=pb),(e=l._$AQ)!=null||(l._$AQ=mb))},Cn=class extends mo{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,s){super._$AT(o,e,s),tu(this),this.isConnected=o._$AU}_$AO(o,e=!0){var s,n;o!==this.isConnected&&(this.isConnected=o,o?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(Fs(this,o),kn(this))}setValue(o){if(Qp(this.t))this.t._$AI(o,this);else{let e=[...this.t._$AH];e[this.i]=o,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var wn=()=>new Cc,Cc=class{},kc=new WeakMap,In=us(class extends Cn{render(l){return Z}update(l,[o]){var s;let e=o!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=o,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),Z}rt(l){var o;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(o=this.ht)!=null?o:globalThis,s=kc.get(e);s===void 0&&(s=new WeakMap,kc.set(e,s)),s.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),s.set(this.Y,l),l!==void 0&&this.Y.call(this.ht,l)}else this.Y.value=l}get lt(){var l,o,e;return typeof this.Y=="function"?(o=kc.get((l=this.ht)!=null?l:globalThis))==null?void 0:o.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var fb=[W`
|
4468
|
+
color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(B=e==null?void 0:e.onChange)==null||B.call(e,n),n}}function xn(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var jp=(l,o)=>Math.abs(l-o)<1,Wp=(l,o,e)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>o.apply(this,n),e)}};var sb=l=>l,ab=l=>{let o=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let n=o;n<=e;n++)s.push(n);return s},Yp=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=f=>{let{width:S,height:M}=f;o({width:Math.round(S),height:Math.round(M)})};if(n(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(f=>{let S=f[0];if(S!=null&&S.borderBoxSize){let M=S.borderBoxSize[0];if(M){n({width:M.inlineSize,height:M.blockSize});return}}n(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},qp={passive:!0};var nb=typeof window>"u"?!0:"onscrollend"in window,Kp=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&nb?()=>{}:Wp(s,()=>{o(n,!1)},l.options.isScrollingResetDelay),f=B=>()=>{let{horizontal:G,isRtl:q}=l.options;n=G?e.scrollLeft*(q&&-1||1):e.scrollTop,h(),o(n,B)},S=f(!0),M=f(!1);return M(),e.addEventListener("scroll",S,qp),e.addEventListener("scrollend",M,qp),()=>{e.removeEventListener("scroll",S),e.removeEventListener("scrollend",M)}};var lb=(l,o,e)=>{if(o!=null&&o.borderBoxSize){let s=o.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Xp=(l,{adjustments:o=0,behavior:e},s)=>{var n,h;let f=l+o;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:f,behavior:e})},Tn=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,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 e=null,s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(n=>{n.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var n;(n=s())==null||n.disconnect(),e=null},observe:n=>{var h;return(h=s())==null?void 0:h.observe(n,{box:"border-box"})},unobserve:n=>{var h;return(h=s())==null?void 0:h.unobserve(n)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,n])=>{typeof n>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:sb,rangeExtractor:ab,onChange:()=>{},measureElement:lb,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var s,n;(n=(s=this.options).onChange)==null||n.call(s,this,e)},this.maybeNotify=Gi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{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(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;var e;let s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(n=(e=this.scrollElement)==null?void 0:e.window)!=null?n:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,s)=>{let n=new Map,h=new Map;for(let f=s-1;f>=0;f--){let S=e[f];if(n.has(S.lane))continue;let M=h.get(S.lane);if(M==null||S.end>M.end?h.set(S.lane,S):S.end<M.end&&n.set(S.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((f,S)=>f.end===S.end?f.index-S.index:f.end-S.end)[0]:void 0},this.getMeasurementOptions=Gi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,n,h,f)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:f}),{key:!1}),this.getMeasurements=Gi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:f},S)=>{if(!f)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(G=>{this.itemSizeCache.set(G.key,G.size)}));let M=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let B=this.measurementsCache.slice(0,M);for(let G=M;G<e;G++){let q=h(G),it=this.options.lanes===1?B[G-1]:this.getFurthestMeasurement(B,G),J=it?it.end+this.options.gap:s+n,tt=S.get(q),lt=typeof tt=="number"?tt:this.options.estimateSize(G),gt=J+lt,vt=it?it.lane:G%this.options.lanes;B[G]={index:G,start:J,size:lt,end:gt,key:q,lane:vt}}return this.measurementsCache=B,B},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Gi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,n)=>this.range=e.length>0&&s>0?cb({measurements:e,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Gi(()=>{let e=null,s=null,n=this.calculateRange();return n&&(e=n.startIndex,s=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,n,h,f)=>h===null||f===null?[]:e({startIndex:h,endIndex:f,overscan:s,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let s=this.options.indexAttribute,n=e.getAttribute(s);return n?parseInt(n,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{let n=this.indexFromElement(e),h=this.measurementsCache[n];if(!h)return;let f=h.key,S=this.elementsCache.get(f);S!==e&&(S&&this.observer.unobserve(S),this.observer.observe(e),this.elementsCache.set(f,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var S;let n=this.measurementsCache[e];if(!n)return;let h=(S=this.itemSizeCache.get(n.key))!=null?S:n.size,f=s-h;f!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,f,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,n)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(n))});return}this._measureElement(e,void 0)},this.getVirtualItems=Gi(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let n=[];for(let h=0,f=e.length;h<f;h++){let S=e[h],M=s[S];n.push(M)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return xn(s[Zp(0,s.length-1,n=>xn(s[n]).start,e)])},this.getOffsetForAlignment=(e,s)=>{let n=this.getSize(),h=this.getScrollOffset();s==="auto"&&e>=h+n&&(s="end"),s==="end"&&(e-=n);let f=this.options.horizontal?"scrollWidth":"scrollHeight",M=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[f]:this.scrollElement[f]:0)-n;return Math.max(Math.min(M,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let h=this.getSize(),f=this.getScrollOffset();if(s==="auto")if(n.end>=f+h-this.options.scrollPaddingEnd)s="end";else if(n.start<=f+this.options.scrollPaddingStart)s="start";else return[f,s];let S=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(S,s),s];case"end":return[this.getOffsetForAlignment(n.end+this.options.scrollPaddingEnd,s),s];default:return[this.getOffsetForAlignment(n.start-this.options.scrollPaddingStart,s),s]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:s="start",behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,s),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:s="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(e,s);if(!h)return;let[f,S]=h;this._scrollToOffset(f,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[B]=xn(this.getOffsetForIndex(e,S));jp(B,this.getScrollOffset())||this.scrollToIndex(e,{align:S,behavior:n})}else this.scrollToIndex(e,{align:S,behavior:n})}))},this.scrollBy=(e,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var h;var e;let s=this.getMeasurements(),n;return s.length===0?n=this.options.paddingStart:n=this.options.lanes===1?(h=(e=s[s.length-1])==null?void 0:e.end)!=null?h:0:Math.max(...s.slice(-this.options.lanes).map(f=>f.end)),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Zp=(l,o,e,s)=>{for(;l<=o;){let n=(l+o)/2|0,h=e(n);if(h<s)l=n+1;else if(h>s)o=n-1;else return n}return l>0?l-1:0};function cb({measurements:l,outerSize:o,scrollOffset:e}){let s=l.length-1,h=Zp(0,s,S=>l[S].start,e),f=h;for(;f<s&&l[f].end<e+o;)f++;return{startIndex:h,endIndex:f}}var Ac=class{constructor(o,e){this.cleanup=()=>{},(this.host=o).addController(this);let s={...e,onChange:(n,h)=>{var f;this.host.updateComplete.then(()=>this.host.requestUpdate()),(f=e.onChange)==null||f.call(e,n,h)}};this.virtualizer=new Tn(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},An=class extends Ac{constructor(o,e){super(o,{observeElementRect:Yp,observeElementOffset:Kp,scrollToFn:Xp,...e})}};var{I:U$}=jd;var Jp=l=>l.strings===void 0;var Ds=(l,o)=>{var s;let e=l._$AN;if(e===void 0)return!1;for(let n of e)(s=n._$AO)==null||s.call(n,o,!1),Ds(n,o);return!0},_n=l=>{let o,e;do{if((o=l._$AM)===void 0)break;e=o._$AN,e.delete(l),l=o}while((e==null?void 0:e.size)===0)},Qp=l=>{for(let o;o=l._$AM;l=o){let e=o._$AN;if(e===void 0)o._$AN=e=new Set;else if(e.has(l))break;e.add(l),mb(o)}};function db(l){this._$AN!==void 0?(_n(this),this._$AM=l,Qp(this)):this._$AM=l}function hb(l,o=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(o)if(Array.isArray(s))for(let h=e;h<s.length;h++)Ds(s[h],!1),_n(s[h]);else s!=null&&(Ds(s,!1),_n(s));else Ds(this,l)}var mb=l=>{var o,e;l.type==wa.CHILD&&((o=l._$AP)!=null||(l._$AP=hb),(e=l._$AQ)!=null||(l._$AQ=db))},Sn=class extends ho{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,s){super._$AT(o,e,s),Qp(this),this.isConnected=o._$AU}_$AO(o,e=!0){var s,n;o!==this.isConnected&&(this.isConnected=o,o?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(Ds(this,o),_n(this))}setValue(o){if(Jp(this.t))this.t._$AI(o,this);else{let e=[...this.t._$AH];e[this.i]=o,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var kn=()=>new Sc,Sc=class{},_c=new WeakMap,Cn=ps(class extends Sn{render(l){return X}update(l,[o]){var s;let e=o!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=o,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),X}rt(l){var o;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(o=this.ht)!=null?o:globalThis,s=_c.get(e);s===void 0&&(s=new WeakMap,_c.set(e,s)),s.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),s.set(this.Y,l),l!==void 0&&this.Y.call(this.ht,l)}else this.Y.value=l}get lt(){var l,o,e;return typeof this.Y=="function"?(o=_c.get((l=this.ht)!=null?l:globalThis))==null?void 0:o.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var pb=[W`
|
4469
4469
|
:host::part(scroll) {
|
4470
4470
|
height: 100%;
|
4471
4471
|
width: 100%;
|
@@ -4475,31 +4475,31 @@
|
|
4475
4475
|
position: relative;
|
4476
4476
|
width: 100%;
|
4477
4477
|
}
|
4478
|
-
`],
|
4478
|
+
`],tu=pb;var eu=j.constructTagName("virtualizedlist"),oV=j.constructTagName("virtualizedwrapper"),ru={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var ji=class extends Z{constructor(){super();this.virtualizerProps=ru.VIRTUALIZER_PROPS;this.scrollElementRef=kn();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new An(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var S,M;this.virtualizer=e.getVirtualizer();let{getTotalSize:s,getVirtualItems:n,measureElement:h}=this.virtualizer,f=n();if(f!==this.virtualItems){this.virtualItems=f;let B=n(),G={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(M=(S=B[0])==null?void 0:S.start)!=null?M:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:B,measureElement:h,listStyle:G})}return F`<div
|
4479
4479
|
part="container"
|
4480
4480
|
style="height: ${s()}px;"
|
4481
4481
|
>
|
4482
4482
|
<slot></slot>
|
4483
4483
|
</div>`}render(){return F`<div
|
4484
|
-
${
|
4484
|
+
${Cn(this.scrollElementRef)}
|
4485
4485
|
part="scroll"
|
4486
4486
|
@scroll=${this.onscroll&&this.onscroll}
|
4487
4487
|
>
|
4488
4488
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):F``}
|
4489
4489
|
</div>
|
4490
|
-
`}};
|
4490
|
+
`}};ji.styles=[...Z.styles,...tu],y([A({type:Function,attribute:"onscroll"})],ji.prototype,"onscroll",2),y([A({type:Object,attribute:"virtualizerprops"})],ji.prototype,"virtualizerProps",2),y([A({type:Function,attribute:"setlistdata"})],ji.prototype,"setlistdata",2);var kc=ji;kc.register(eu);var ub=kc;var iu=j.constructTagName("menusection"),Ne={TRUE:"true",FALSE:"false"};var Fs=class extends Or{constructor(){super(...arguments);this.ariaChecked=Ne.FALSE}connectedCallback(){super.connectedCallback(),this.role=zt.MENUITEMRADIO}render(){return F`
|
4491
4491
|
<div part="leading-controls">
|
4492
4492
|
<mdc-staticradio
|
4493
4493
|
slot="leading-controls"
|
4494
|
-
?checked="${this.ariaChecked===
|
4494
|
+
?checked="${this.ariaChecked===Ne.TRUE}"
|
4495
4495
|
?disabled="${this.disabled}"
|
4496
4496
|
></mdc-staticradio>
|
4497
4497
|
</div>
|
4498
4498
|
<div part="leading-text">
|
4499
|
-
${this.getText("leading-text-primary-label",
|
4500
|
-
${this.getText("leading-text-secondary-label",
|
4499
|
+
${this.getText("leading-text-primary-label",nt.BODY_MIDSIZE_REGULAR,this.label)}
|
4500
|
+
${this.getText("leading-text-secondary-label",nt.BODY_MIDSIZE_REGULAR,this.secondaryLabel)}
|
4501
4501
|
</div>
|
4502
|
-
`}};
|
4502
|
+
`}};Fs.styles=[...Or.styles],y([A({type:String,reflect:!0,attribute:"aria-checked"})],Fs.prototype,"ariaChecked",2);var Cc=Fs;var zs=j.constructTagName("menuitemradio");Cc.register(zs);var fb=Cc;var wn=j.constructTagName("menuitemcheckbox"),$s={CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},wc={ARIA_CHECKED:Ne.FALSE,INDICATOR:$s.CHECKBOX};var vb=W`
|
4503
4503
|
:host {
|
4504
4504
|
--mdc-checkmark-indicator-color: var(--mds-color-theme-control-active-normal);
|
4505
4505
|
}
|
@@ -4509,20 +4509,20 @@
|
|
4509
4509
|
:host([disabled])::part(checkmark-icon) {
|
4510
4510
|
--mdc-icon-fill-color: currentColor;
|
4511
4511
|
}
|
4512
|
-
`,
|
4512
|
+
`,ou=[vb];var Ro=class extends Or{constructor(){super(...arguments);this.ariaChecked=wc.ARIA_CHECKED;this.indicator=wc.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=zt.MENUITEMCHECKBOX}staticCheckbox(){return this.indicator!==$s.CHECKBOX?X:F`
|
4513
4513
|
<mdc-staticcheckbox
|
4514
4514
|
slot="leading-controls"
|
4515
|
-
?checked="${this.ariaChecked===
|
4515
|
+
?checked="${this.ariaChecked===Ne.TRUE}"
|
4516
4516
|
?disabled="${this.disabled}"
|
4517
4517
|
></mdc-staticcheckbox>
|
4518
|
-
`}staticToggle(){return this.indicator
|
4518
|
+
`}staticToggle(){return this.indicator!==$s.TOGGLE?X:F`
|
4519
4519
|
<mdc-statictoggle
|
4520
4520
|
slot="trailing-controls"
|
4521
|
-
?checked="${this.ariaChecked===
|
4521
|
+
?checked="${this.ariaChecked===Ne.TRUE}"
|
4522
4522
|
?disabled="${this.disabled}"
|
4523
|
-
size="${
|
4523
|
+
size="${Ps.COMPACT}"
|
4524
4524
|
></mdc-statictoggle>
|
4525
|
-
`}getCheckmarkIcon(){return this.indicator
|
4525
|
+
`}getCheckmarkIcon(){return this.indicator!==$s.CHECKMARK||this.ariaChecked===Ne.FALSE?X:F`
|
4526
4526
|
<mdc-icon
|
4527
4527
|
slot="trailing-controls"
|
4528
4528
|
name="check-bold"
|
@@ -4533,21 +4533,21 @@
|
|
4533
4533
|
${this.staticCheckbox()}
|
4534
4534
|
<slot name="leading-controls"></slot>
|
4535
4535
|
<div part="leading-text">
|
4536
|
-
${this.getText("leading-text-primary-label",
|
4537
|
-
${this.getText("leading-text-secondary-label",
|
4538
|
-
${this.getText("leading-text-tertiary-label",
|
4536
|
+
${this.getText("leading-text-primary-label",nt.BODY_MIDSIZE_REGULAR,this.label)}
|
4537
|
+
${this.getText("leading-text-secondary-label",nt.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
4538
|
+
${this.getText("leading-text-tertiary-label",nt.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
4539
4539
|
</div>
|
4540
4540
|
</div>
|
4541
4541
|
<div part="trailing">
|
4542
4542
|
<div part="trailing-text">
|
4543
|
-
${this.getText("trailing-text-side-header",
|
4544
|
-
${this.getText("trailing-text-subline",
|
4543
|
+
${this.getText("trailing-text-side-header",nt.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
4544
|
+
${this.getText("trailing-text-subline",nt.BODY_SMALL_REGULAR,this.sublineText)}
|
4545
4545
|
</div>
|
4546
4546
|
<slot name="trailing-controls"></slot>
|
4547
4547
|
${this.staticToggle()}
|
4548
4548
|
${this.getCheckmarkIcon()}
|
4549
4549
|
</div>
|
4550
|
-
`}};Oo.styles=[...Pr.styles,...su],y([A({type:String,reflect:!0,attribute:"aria-checked"})],Oo.prototype,"ariaChecked",2),y([A({type:String,reflect:!0})],Oo.prototype,"indicator",2);var Mc=Oo;Mc.register(Ln);var yb=Mc;var Bs=class extends J{constructor(){super(...arguments);this.handleClick=e=>{this.toggleCheckedState(e.target)};this.handleKeydown=e=>{e.key!==Lt.ENTER&&e.key!==Lt.SPACE||(e.key===Lt.SPACE&&e.preventDefault(),this.toggleCheckedState(e.target))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role",$t.GROUP),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown)}toggleCheckedState(e){if(!(e instanceof HTMLElement)||e.hasAttribute("disabled"))return;let s=e.tagName.toLowerCase(),n=e.getAttribute("aria-checked")===Re.TRUE;switch(s){case Ln:e.setAttribute("aria-checked",String(!n));break;case $s:if(n)return;this.radios.forEach(h=>{let f=h===e?Re.TRUE:Re.FALSE;h.setAttribute("aria-checked",f)});break;default:break}}render(){return F`<slot></slot>`}};Bs.styles=[...J.styles],y([zt({selector:`${$s}:not([disabled])`})],Bs.prototype,"radios",2);var Nc=Bs;Nc.register(ou);var Eb=Nc;var cu=bf(au());var Nn={};vf(Nn,{alert_32px_loop:()=>Ab,audio_video:()=>xb,calling:()=>Tb,celebrate:()=>Db,clap_dark:()=>Fb,clap_light:()=>zb,clap_medium:()=>Bb,clap_medium_dark:()=>$b,clap_medium_light:()=>Vb,clap_yellow:()=>Ub,contacts:()=>Mb,default:()=>h0,discoverability_badge:()=>Nb,fire:()=>Hb,haha:()=>Gb,heart:()=>jb,heart_opacity_test:()=>Rb,hello_32px:()=>_b,meeting:()=>Ob,on_video_celebrate:()=>Wb,on_video_clap_dark:()=>qb,on_video_clap_light:()=>Yb,on_video_clap_medium:()=>Zb,on_video_clap_medium_dark:()=>Kb,on_video_clap_medium_light:()=>Xb,on_video_clap_yellow:()=>Jb,on_video_fire:()=>Qb,on_video_haha:()=>ty,on_video_heart:()=>ey,on_video_prayer_dark:()=>ry,on_video_prayer_light:()=>iy,on_video_prayer_medium:()=>ay,on_video_prayer_medium_dark:()=>oy,on_video_prayer_medium_light:()=>sy,on_video_prayer_yellow:()=>ny,on_video_raise_hand_dark:()=>ly,on_video_raise_hand_light:()=>cy,on_video_raise_hand_medium:()=>my,on_video_raise_hand_medium_dark:()=>dy,on_video_raise_hand_medium_light:()=>hy,on_video_raise_hand_yellow:()=>py,on_video_sad:()=>uy,on_video_slow_down:()=>fy,on_video_smile:()=>vy,on_video_speed_up:()=>gy,on_video_thumb_down_dark:()=>by,on_video_thumb_down_light:()=>yy,on_video_thumb_down_medium:()=>Ty,on_video_thumb_down_medium_dark:()=>Ey,on_video_thumb_down_medium_light:()=>xy,on_video_thumb_down_yellow:()=>Ay,on_video_thumb_up_dark:()=>_y,on_video_thumb_up_light:()=>Sy,on_video_thumb_up_medium:()=>wy,on_video_thumb_up_medium_dark:()=>ky,on_video_thumb_up_medium_light:()=>Cy,on_video_thumb_up_yellow:()=>Iy,on_video_wow:()=>Ly,personal_insight:()=>Pb,prayer_dark:()=>My,prayer_light:()=>Ny,prayer_medium:()=>Py,prayer_medium_dark:()=>Ry,prayer_medium_light:()=>Oy,prayer_yellow:()=>Dy,processing_32px_end:()=>Sb,processing_32px_loop:()=>kb,processing_32px_start:()=>Cb,raise_hand_dark:()=>Fy,raise_hand_light:()=>zy,raise_hand_medium:()=>By,raise_hand_medium_dark:()=>$y,raise_hand_medium_light:()=>Vy,raise_hand_yellow:()=>Uy,responding_32px_end:()=>wb,responding_32px_loop:()=>Ib,responding_32px_start:()=>Lb,sad:()=>Hy,slow_down:()=>Gy,smile:()=>jy,space:()=>a0,speed_up:()=>Wy,success:()=>n0,teams:()=>l0,thumb_down_dark:()=>qy,thumb_down_light:()=>Yy,thumb_down_medium:()=>Zy,thumb_down_medium_dark:()=>Ky,thumb_down_medium_light:()=>Xy,thumb_down_yellow:()=>Jy,thumb_up_dark:()=>Qy,thumb_up_light:()=>t0,thumb_up_medium:()=>i0,thumb_up_medium_dark:()=>e0,thumb_up_medium_light:()=>r0,thumb_up_yellow:()=>o0,webex_logo_loop:()=>c0,welcome:()=>d0,wow:()=>s0});var xb="./lottie/audio_video.json",Tb="./lottie/calling.json",Ab="./lottie/cisco-ai-assistant/alert_32px_loop.json",_b="./lottie/cisco-ai-assistant/hello_32px.json",Sb="./lottie/cisco-ai-assistant/processing_32px_end.json",kb="./lottie/cisco-ai-assistant/processing_32px_loop.json",Cb="./lottie/cisco-ai-assistant/processing_32px_start.json",wb="./lottie/cisco-ai-assistant/responding_32px_end.json",Ib="./lottie/cisco-ai-assistant/responding_32px_loop.json",Lb="./lottie/cisco-ai-assistant/responding_32px_start.json",Mb="./lottie/contacts.json",Nb="./lottie/discoverability_badge.json",Rb="./lottie/heart_opacity_test.json",Ob="./lottie/meeting.json",Pb="./lottie/personal_insight.json",Db="./lottie/reactions/celebrate.json",Fb="./lottie/reactions/clap_dark.json",zb="./lottie/reactions/clap_light.json",$b="./lottie/reactions/clap_medium_dark.json",Vb="./lottie/reactions/clap_medium_light.json",Bb="./lottie/reactions/clap_medium.json",Ub="./lottie/reactions/clap_yellow.json",Hb="./lottie/reactions/fire.json",Gb="./lottie/reactions/haha.json",jb="./lottie/reactions/heart.json",Wb="./lottie/reactions/on_video/on_video_celebrate.json",qb="./lottie/reactions/on_video/on_video_clap_dark.json",Yb="./lottie/reactions/on_video/on_video_clap_light.json",Kb="./lottie/reactions/on_video/on_video_clap_medium_dark.json",Xb="./lottie/reactions/on_video/on_video_clap_medium_light.json",Zb="./lottie/reactions/on_video/on_video_clap_medium.json",Jb="./lottie/reactions/on_video/on_video_clap_yellow.json",Qb="./lottie/reactions/on_video/on_video_fire.json",ty="./lottie/reactions/on_video/on_video_haha.json",ey="./lottie/reactions/on_video/on_video_heart.json",ry="./lottie/reactions/on_video/on_video_prayer_dark.json",iy="./lottie/reactions/on_video/on_video_prayer_light.json",oy="./lottie/reactions/on_video/on_video_prayer_medium_dark.json",sy="./lottie/reactions/on_video/on_video_prayer_medium_light.json",ay="./lottie/reactions/on_video/on_video_prayer_medium.json",ny="./lottie/reactions/on_video/on_video_prayer_yellow.json",ly="./lottie/reactions/on_video/on_video_raise_hand_dark.json",cy="./lottie/reactions/on_video/on_video_raise_hand_light.json",dy="./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",hy="./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",my="./lottie/reactions/on_video/on_video_raise_hand_medium.json",py="./lottie/reactions/on_video/on_video_raise_hand_yellow.json",uy="./lottie/reactions/on_video/on_video_sad.json",fy="./lottie/reactions/on_video/on_video_slow_down.json",vy="./lottie/reactions/on_video/on_video_smile.json",gy="./lottie/reactions/on_video/on_video_speed_up.json",by="./lottie/reactions/on_video/on_video_thumb_down_dark.json",yy="./lottie/reactions/on_video/on_video_thumb_down_light.json",Ey="./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",xy="./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",Ty="./lottie/reactions/on_video/on_video_thumb_down_medium.json",Ay="./lottie/reactions/on_video/on_video_thumb_down_yellow.json",_y="./lottie/reactions/on_video/on_video_thumb_up_dark.json",Sy="./lottie/reactions/on_video/on_video_thumb_up_light.json",ky="./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",Cy="./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",wy="./lottie/reactions/on_video/on_video_thumb_up_medium.json",Iy="./lottie/reactions/on_video/on_video_thumb_up_yellow.json",Ly="./lottie/reactions/on_video/on_video_wow.json",My="./lottie/reactions/prayer_dark.json",Ny="./lottie/reactions/prayer_light.json",Ry="./lottie/reactions/prayer_medium_dark.json",Oy="./lottie/reactions/prayer_medium_light.json",Py="./lottie/reactions/prayer_medium.json",Dy="./lottie/reactions/prayer_yellow.json",Fy="./lottie/reactions/raise_hand_dark.json",zy="./lottie/reactions/raise_hand_light.json",$y="./lottie/reactions/raise_hand_medium_dark.json",Vy="./lottie/reactions/raise_hand_medium_light.json",By="./lottie/reactions/raise_hand_medium.json",Uy="./lottie/reactions/raise_hand_yellow.json",Hy="./lottie/reactions/sad.json",Gy="./lottie/reactions/slow_down.json",jy="./lottie/reactions/smile.json",Wy="./lottie/reactions/speed_up.json",qy="./lottie/reactions/thumb_down_dark.json",Yy="./lottie/reactions/thumb_down_light.json",Ky="./lottie/reactions/thumb_down_medium_dark.json",Xy="./lottie/reactions/thumb_down_medium_light.json",Zy="./lottie/reactions/thumb_down_medium.json",Jy="./lottie/reactions/thumb_down_yellow.json",Qy="./lottie/reactions/thumb_up_dark.json",t0="./lottie/reactions/thumb_up_light.json",e0="./lottie/reactions/thumb_up_medium_dark.json",r0="./lottie/reactions/thumb_up_medium_light.json",i0="./lottie/reactions/thumb_up_medium.json",o0="./lottie/reactions/thumb_up_yellow.json",s0="./lottie/reactions/wow.json",a0="./lottie/space.json",n0="./lottie/success.json",l0="./lottie/teams.json",c0="./lottie/webex_logo_loop.json",d0="./lottie/welcome.json",h0={audio_video:xb,calling:Tb,alert_32px_loop:Ab,hello_32px:_b,processing_32px_end:Sb,processing_32px_loop:kb,processing_32px_start:Cb,responding_32px_end:wb,responding_32px_loop:Ib,responding_32px_start:Lb,contacts:Mb,discoverability_badge:Nb,heart_opacity_test:Rb,meeting:Ob,personal_insight:Pb,celebrate:Db,clap_dark:Fb,clap_light:zb,clap_medium_dark:$b,clap_medium_light:Vb,clap_medium:Bb,clap_yellow:Ub,fire:Hb,haha:Gb,heart:jb,on_video_celebrate:Wb,on_video_clap_dark:qb,on_video_clap_light:Yb,on_video_clap_medium_dark:Kb,on_video_clap_medium_light:Xb,on_video_clap_medium:Zb,on_video_clap_yellow:Jb,on_video_fire:Qb,on_video_haha:ty,on_video_heart:ey,on_video_prayer_dark:ry,on_video_prayer_light:iy,on_video_prayer_medium_dark:oy,on_video_prayer_medium_light:sy,on_video_prayer_medium:ay,on_video_prayer_yellow:ny,on_video_raise_hand_dark:ly,on_video_raise_hand_light:cy,on_video_raise_hand_medium_dark:dy,on_video_raise_hand_medium_light:hy,on_video_raise_hand_medium:my,on_video_raise_hand_yellow:py,on_video_sad:uy,on_video_slow_down:fy,on_video_smile:vy,on_video_speed_up:gy,on_video_thumb_down_dark:by,on_video_thumb_down_light:yy,on_video_thumb_down_medium_dark:Ey,on_video_thumb_down_medium_light:xy,on_video_thumb_down_medium:Ty,on_video_thumb_down_yellow:Ay,on_video_thumb_up_dark:_y,on_video_thumb_up_light:Sy,on_video_thumb_up_medium_dark:ky,on_video_thumb_up_medium_light:Cy,on_video_thumb_up_medium:wy,on_video_thumb_up_yellow:Iy,on_video_wow:Ly,prayer_dark:My,prayer_light:Ny,prayer_medium_dark:Ry,prayer_medium_light:Oy,prayer_medium:Py,prayer_yellow:Dy,raise_hand_dark:Fy,raise_hand_light:zy,raise_hand_medium_dark:$y,raise_hand_medium_light:Vy,raise_hand_medium:By,raise_hand_yellow:Uy,sad:Hy,slow_down:Gy,smile:jy,speed_up:Wy,thumb_down_dark:qy,thumb_down_light:Yy,thumb_down_medium_dark:Ky,thumb_down_medium_light:Xy,thumb_down_medium:Zy,thumb_down_yellow:Jy,thumb_up_dark:Qy,thumb_up_light:t0,thumb_up_medium_dark:e0,thumb_up_medium_light:r0,thumb_up_medium:i0,thumb_up_yellow:o0,wow:s0,space:a0,success:n0,teams:l0,webex_logo_loop:c0,welcome:d0};var m0=[xt],nu=m0;var lu=j.constructTagName("animation"),Rn={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var Fr=class extends J{constructor(){super(...arguments);this.name=Rn.NAME;this.loop=Rn.LOOP;this.autoplay=Rn.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=wn();this.onCompleteHandler=()=>{let e=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(e)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(e){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=cu.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:e,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}getAnimationData(){return this.name&&Nn[this.name]?import(`@momentum-design/animations/dist${Nn[this.name].replace(/^\./,"")}`).then(s=>this.onLoadSuccessHandler(s.default)).catch(s=>this.onLoadFailHandler(s)):Promise.reject(new Error(`Invalid animation name: ${this.name}`))}updated(e){super.updated(e),(e.has("name")||e.has("loop")||e.has("autoplay"))&&this.getAnimationData().catch(s=>{var n;return(n=this.onerror)==null?void 0:n.call(this,s.message)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null)}render(){return F`<div aria-hidden="true" ${In(this.containerRef)}></div>`}};Fr.styles=[...J.styles,...nu],y([A({type:String,reflect:!0})],Fr.prototype,"name",2),y([A({type:String,reflect:!0})],Fr.prototype,"loop",2),y([A({type:Boolean,reflect:!0})],Fr.prototype,"autoplay",2),y([A({type:String,attribute:"aria-label"})],Fr.prototype,"ariaLabel",2),y([A({type:String,attribute:"aria-labelledby"})],Fr.prototype,"ariaLabelledBy",2);var Rc=Fr;Rc.register(lu);var p0=Rc;})();
|
4550
|
+
`}};Ro.styles=[...Or.styles,...ou],y([A({type:String,reflect:!0,attribute:"aria-checked"})],Ro.prototype,"ariaChecked",2),y([A({type:String,reflect:!0})],Ro.prototype,"indicator",2);var Ic=Ro;Ic.register(wn);var gb=Ic;var Vs=class extends Z{constructor(){super(...arguments);this.handleClick=e=>{this.toggleCheckedState(e.target)};this.handleKeydown=e=>{e.key!==It.ENTER&&e.key!==It.SPACE||(e.key===It.SPACE&&e.preventDefault(),this.toggleCheckedState(e.target))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role",zt.GROUP),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown)}toggleCheckedState(e){if(!(e instanceof HTMLElement)||e.hasAttribute("disabled"))return;let s=e.tagName.toLowerCase(),n=e.getAttribute("aria-checked")===Ne.TRUE;switch(s){case wn:e.setAttribute("aria-checked",String(!n));break;case zs:if(n)return;this.radios.forEach(h=>{let f=h===e?Ne.TRUE:Ne.FALSE;h.setAttribute("aria-checked",f)});break;default:break}}render(){return F`<slot></slot>`}};Vs.styles=[...Z.styles],y([Ft({selector:`${zs}:not([disabled])`})],Vs.prototype,"radios",2);var Lc=Vs;Lc.register(iu);var bb=Lc;var lu=vf(su());var Mc={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var yb=[Et],au=yb;var nu=j.constructTagName("animation"),Ln={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var Dr=class extends Z{constructor(){super(...arguments);this.name=Ln.NAME;this.loop=Ln.LOOP;this.autoplay=Ln.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=kn();this.onCompleteHandler=()=>{let e=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(e)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(e){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=lu.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:e,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}getAnimationData(){this.name&&Mc[this.name]?import(`@momentum-design/animations/dist${Mc[this.name].replace(/^\./,"")}`).then(s=>this.onLoadSuccessHandler(s.default)).catch(s=>this.onLoadFailHandler(s)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(e){super.updated(e),(e.has("name")||e.has("loop")||e.has("autoplay"))&&this.getAnimationData(),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null)}render(){return F`<div aria-hidden="true" ${Cn(this.containerRef)}></div>`}};Dr.styles=[...Z.styles,...au],y([A({type:String,reflect:!0})],Dr.prototype,"name",2),y([A({type:String,reflect:!0})],Dr.prototype,"loop",2),y([A({type:Boolean,reflect:!0})],Dr.prototype,"autoplay",2),y([A({type:String,attribute:"aria-label"})],Dr.prototype,"ariaLabel",2),y([A({type:String,attribute:"aria-labelledby"})],Dr.prototype,"ariaLabelledBy",2);var Nc=Dr;Nc.register(nu);var Eb=Nc;})();
|
4551
4551
|
/*! Bundled license information:
|
4552
4552
|
|
4553
4553
|
lottie-web/build/player/lottie_light.js:
|