@momentum-design/components 0.120.37 → 0.120.38
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 +56 -56
- package/dist/browser/index.js.map +3 -3
- package/dist/components/animation/animation.component.d.ts +1 -1
- package/dist/components/animation/animation.component.js +5 -4
- package/dist/components/dialog/dialog.component.d.ts +1 -1
- package/dist/components/dialog/dialog.component.js +5 -5
- package/dist/components/icon/icon.component.d.ts +1 -1
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/illustration/illustration.component.js +3 -2
- package/dist/custom-elements.json +822 -822
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +3 -3
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var Jb=Object.create;var $d=Object.defineProperty;var Jp=Object.getOwnPropertyDescriptor;var ty=Object.getOwnPropertyNames;var ey=Object.getPrototypeOf,ry=Object.prototype.hasOwnProperty;var iy=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var oy=(n,o,t,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of ty(o))!ry.call(n,a)&&a!==t&&$d(n,a,{get:()=>o[a],enumerable:!(i=Jp(o,a))||i.enumerable});return n};var sy=(n,o,t)=>(t=n!=null?Jb(ey(n)):{},oy(o||!n||!n.__esModule?$d(t,"default",{value:n,enumerable:!0}):t,n));var p=(n,o,t,i)=>{for(var a=i>1?void 0:i?Jp(o,t):o,d=n.length-1,m;d>=0;d--)(m=n[d])&&(a=(i?m(o,t,a):m(a))||a);return i&&a&&$d(o,t,a),a};var Zm=iy((xa,al)=>{typeof navigator<"u"&&function(n,o){typeof xa=="object"&&typeof al<"u"?al.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(xa,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,i=-999999,a=function(r){t=!!r},d=function(){return t},m=function(r){o=r},b=function(){return o};function C(e){return document.createElement(e)}function L(e,r){var s,l=e.length,h;for(s=0;s<l;s+=1){h=e[s].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(r.prototype[c]=h[c])}}function W(e,r){return Object.getOwnPropertyDescriptor(e,r)}function K(e){function r(){}return r.prototype=e,r}var rt=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(s){this.audios.push(s)},pause:function(){var s,l=this.audios.length;for(s=0;s<l;s+=1)this.audios[s].pause()},resume:function(){var s,l=this.audios.length;for(s=0;s<l;s+=1)this.audios[s].resume()},setRate:function(s){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].setRate(s)},createAudio:function(s){return this.audioFactory?this.audioFactory(s):window.Howl?new window.Howl({src:[s]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(s){this.audioFactory=s},setVolume:function(s){this._volume=s,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var s,l=this.audios.length;for(s=0;s<l;s+=1)this.audios[s].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(s,l){var h=0,c=[],v;switch(s){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(h=0;h<l;h+=1)c.push(v);return c}function r(s,l){return s==="float32"?new Float32Array(l):s==="int16"?new Int16Array(l):s==="uint8c"?new Uint8ClampedArray(l):e(s,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function tt(e){return Array.apply(null,{length:e})}function lt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(s){return typeof s}:lt=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},lt(e)}var dt=!0,gt=null,At=null,Nt="",jt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Ut=Math.pow,Zt=Math.sqrt,ne=Math.floor,ur=Math.max,ke=Math.min,Xe={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r,s=e.length;for(r=0;r<s;r+=1)Xe[e[r]]=Math[e[r]]})();function fr(){return{}}Xe.random=Math.random,Xe.abs=function(e){var r=lt(e);if(r==="object"&&e.length){var s=tt(e.length),l,h=e.length;for(l=0;l<h;l+=1)s[l]=Math.abs(e[l]);return s}return Math.abs(e)};var vr=150,Ct=Math.PI/180,me=.5519;function Ze(e){Vt=!!e}function Qe(e){return Vt?Math.round(e):e}function Je(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function tr(e,r,s,l){this.type=e,this.currentTime=r,this.totalTime=s,this.direction=l<0?-1:1}function pn(e,r){this.type=e,this.direction=r<0?-1:1}function ap(e,r,s,l){this.type=e,this.currentLoop=s,this.totalLoops=r,this.direction=l<0?-1:1}function np(e,r,s){this.type=e,this.firstFrame=r,this.totalFrames=s}function lp(e,r){this.type=e,this.target=r}function Jg(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function tb(e){this.type="configError",this.nativeError=e}function NA(e,r){this.type=e,this.nativeError=r}var we=function(){var e=0;return function(){return e+=1,Nt+"__lottie_element_"+e}}();function Sd(e,r,s){var l,h,c,v,x,g,k,R;switch(v=Math.floor(e*6),x=e*6-v,g=s*(1-r),k=s*(1-x*r),R=s*(1-(1-x)*r),v%6){case 0:l=s,h=R,c=g;break;case 1:l=k,h=s,c=g;break;case 2:l=g,h=s,c=R;break;case 3:l=g,h=k,c=s;break;case 4:l=R,h=g,c=s;break;case 5:l=s,h=g,c=k;break;default:break}return[l,h,c]}function _d(e,r,s){var l=Math.max(e,r,s),h=Math.min(e,r,s),c=l-h,v,x=l===0?0:c/l,g=l/255;switch(l){case h:v=0;break;case e:v=r-s+c*(r<s?6:0),v/=6*c;break;case r:v=s-e+c*2,v/=6*c;break;case s:v=e-r+c*4,v/=6*c;break;default:break}return[v,x,g]}function dp(e,r){var s=_d(e[0]*255,e[1]*255,e[2]*255);return s[1]+=r,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),Sd(s[0],s[1],s[2])}function cp(e,r){var s=_d(e[0]*255,e[1]*255,e[2]*255);return s[2]+=r,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),Sd(s[0],s[1],s[2])}function hp(e,r){var s=_d(e[0]*255,e[1]*255,e[2]*255);return s[0]+=r/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),Sd(s[0],s[1],s[2])}var LA=function(){var e=[],r,s;for(r=0;r<256;r+=1)s=r.toString(16),e[r]=s.length===1?"0"+s:s;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),eb=function(r){dt=!!r},rb=function(){return dt},ib=function(r){gt=r},mn=function(){return gt},RA=function(r){At=r},pp=function(){return At},un=function(r){vr=r},Hs=function(){return vr},ob=function(r){Nt=r},MA=function(){return Nt};function Tt(e){return document.createElementNS(n,e)}function fn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fn=function(s){return typeof s}:fn=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},fn(e)}var Gs=function(){var e=1,r=[],s,l,h={onmessage:function(){},postMessage:function(M){s({data:M})}},c={postMessage:function(M){h.onmessage({data:M})}};function v(T){if(window.Worker&&window.Blob&&d()){var M=new Blob(["var _workerSelf = self; self.onmessage = ",T.toString()],{type:"text/javascript"}),D=URL.createObjectURL(M);return new Worker(D)}return s=T,h}function x(){l||(l=v(function(M){function D(){function V(Q,S){var P,f,y=Q.length,G,F,nt,ft;for(f=0;f<y;f+=1)if(P=Q[f],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for(F=Et.length,G=0;G<F;G+=1)if(Et[G].pt.k.i)w(Et[G].pt.k);else for(ft=Et[G].pt.k.length,nt=0;nt<ft;nt+=1)Et[G].pt.k[nt].s&&w(Et[G].pt.k[nt].s[0]),Et[G].pt.k[nt].e&&w(Et[G].pt.k[nt].e[0])}P.ty===0?(P.layers=E(P.refId,S),V(P.layers,S)):P.ty===4?A(P.shapes):P.ty===5&&xt(P)}}function N(Q,S){if(Q){var P=0,f=Q.length;for(P=0;P<f;P+=1)Q[P].t===1&&(Q[P].data.layers=E(Q[P].data.refId,S),V(Q[P].data.layers,S))}}function I(Q,S){for(var P=0,f=S.length;P<f;){if(S[P].id===Q)return S[P];P+=1}return null}function E(Q,S){var P=I(Q,S);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function A(Q){var S,P=Q.length,f,y;for(S=P-1;S>=0;S-=1)if(Q[S].ty==="sh")if(Q[S].ks.k.i)w(Q[S].ks.k);else for(y=Q[S].ks.k.length,f=0;f<y;f+=1)Q[S].ks.k[f].s&&w(Q[S].ks.k[f].s[0]),Q[S].ks.k[f].e&&w(Q[S].ks.k[f].e[0]);else Q[S].ty==="gr"&&A(Q[S].it)}function w(Q){var S,P=Q.i.length;for(S=0;S<P;S+=1)Q.i[S][0]+=Q.v[S][0],Q.i[S][1]+=Q.v[S][1],Q.o[S][0]+=Q.v[S][0],Q.o[S][1]+=Q.v[S][1]}function $(Q,S){var P=S?S.split("."):[100,100,100];return Q[0]>P[0]?!0:P[0]>Q[0]?!1:Q[1]>P[1]?!0:P[1]>Q[1]?!1:Q[2]>P[2]?!0:P[2]>Q[2]?!1:null}var U=function(){var Q=[4,4,14];function S(f){var y=f.t.d;f.t.d={k:[{s:y,t:0}]}}function P(f){var y,G=f.length;for(y=0;y<G;y+=1)f[y].ty===5&&S(f[y])}return function(f){if($(Q,f.v)&&(P(f.layers),f.assets)){var y,G=f.assets.length;for(y=0;y<G;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),Y=function(){var Q=[4,7,99];return function(S){if(S.chars&&!$(Q,S.v)){var P,f=S.chars.length;for(P=0;P<f;P+=1){var y=S.chars[P];y.data&&y.data.shapes&&(A(y.data.shapes),y.data.ip=0,y.data.op=99999,y.data.st=0,y.data.sr=1,y.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},S.chars[P].t||(y.data.shapes.push({ty:"no"}),y.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),J=function(){var Q=[5,7,15];function S(f){var y=f.t.p;typeof y.a=="number"&&(y.a={a:0,k:y.a}),typeof y.p=="number"&&(y.p={a:0,k:y.p}),typeof y.r=="number"&&(y.r={a:0,k:y.r})}function P(f){var y,G=f.length;for(y=0;y<G;y+=1)f[y].ty===5&&S(f[y])}return function(f){if($(Q,f.v)&&(P(f.layers),f.assets)){var y,G=f.assets.length;for(y=0;y<G;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),yt=function(){var Q=[4,1,9];function S(f){var y,G=f.length,F,nt;for(y=0;y<G;y+=1)if(f[y].ty==="gr")S(f[y].it);else if(f[y].ty==="fl"||f[y].ty==="st")if(f[y].c.k&&f[y].c.k[0].i)for(nt=f[y].c.k.length,F=0;F<nt;F+=1)f[y].c.k[F].s&&(f[y].c.k[F].s[0]/=255,f[y].c.k[F].s[1]/=255,f[y].c.k[F].s[2]/=255,f[y].c.k[F].s[3]/=255),f[y].c.k[F].e&&(f[y].c.k[F].e[0]/=255,f[y].c.k[F].e[1]/=255,f[y].c.k[F].e[2]/=255,f[y].c.k[F].e[3]/=255);else f[y].c.k[0]/=255,f[y].c.k[1]/=255,f[y].c.k[2]/=255,f[y].c.k[3]/=255}function P(f){var y,G=f.length;for(y=0;y<G;y+=1)f[y].ty===4&&S(f[y].shapes)}return function(f){if($(Q,f.v)&&(P(f.layers),f.assets)){var y,G=f.assets.length;for(y=0;y<G;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),pt=function(){var Q=[4,4,18];function S(f){var y,G=f.length,F,nt;for(y=G-1;y>=0;y-=1)if(f[y].ty==="sh")if(f[y].ks.k.i)f[y].ks.k.c=f[y].closed;else for(nt=f[y].ks.k.length,F=0;F<nt;F+=1)f[y].ks.k[F].s&&(f[y].ks.k[F].s[0].c=f[y].closed),f[y].ks.k[F].e&&(f[y].ks.k[F].e[0].c=f[y].closed);else f[y].ty==="gr"&&S(f[y].it)}function P(f){var y,G,F=f.length,nt,ft,Et,Lt;for(G=0;G<F;G+=1){if(y=f[G],y.hasMask){var Rt=y.masksProperties;for(ft=Rt.length,nt=0;nt<ft;nt+=1)if(Rt[nt].pt.k.i)Rt[nt].pt.k.c=Rt[nt].cl;else for(Lt=Rt[nt].pt.k.length,Et=0;Et<Lt;Et+=1)Rt[nt].pt.k[Et].s&&(Rt[nt].pt.k[Et].s[0].c=Rt[nt].cl),Rt[nt].pt.k[Et].e&&(Rt[nt].pt.k[Et].e[0].c=Rt[nt].cl)}y.ty===4&&S(y.shapes)}}return function(f){if($(Q,f.v)&&(P(f.layers),f.assets)){var y,G=f.assets.length;for(y=0;y<G;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}();function ot(Q){Q.__complete||(yt(Q),U(Q),Y(Q),J(Q),pt(Q),V(Q.layers,Q.assets),N(Q.chars,Q.assets),Q.__complete=!0)}function xt(Q){Q.t.a.length===0&&"m"in Q.t.p}var ct={};return ct.completeData=ot,ct.checkColors=yt,ct.checkChars=Y,ct.checkPathProperties=J,ct.checkShapes=pt,ct.completeLayers=V,ct}if(c.dataManager||(c.dataManager=D()),c.assetLoader||(c.assetLoader=function(){function V(I){var E=I.getResponseHeader("content-type");return E&&I.responseType==="json"&&E.indexOf("json")!==-1||I.response&&fn(I.response)==="object"?I.response:I.response&&typeof I.response=="string"?JSON.parse(I.response):I.responseText?JSON.parse(I.responseText):null}function N(I,E,A,w){var $,U=new XMLHttpRequest;try{U.responseType="json"}catch{}U.onreadystatechange=function(){if(U.readyState===4)if(U.status===200)$=V(U),A($);else try{$=V(U),A($)}catch(Y){w&&w(Y)}};try{U.open(["G","E","T"].join(""),I,!0)}catch{U.open(["G","E","T"].join(""),E+"/"+I,!0)}U.send()}return{load:N}}()),M.data.type==="loadAnimation")c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})});else if(M.data.type==="complete"){var O=M.data.animation;c.dataManager.completeData(O),c.postMessage({id:M.data.id,payload:O,status:"success"})}else M.data.type==="loadData"&&c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})})}),l.onmessage=function(T){var M=T.data,D=M.id,O=r[D];r[D]=null,M.status==="success"?O.onComplete(M.payload):O.onError&&O.onError()})}function g(T,M){e+=1;var D="processId_"+e;return r[D]={onComplete:T,onError:M},D}function k(T,M,D){x();var O=g(M,D);l.postMessage({type:"loadAnimation",path:T,fullPath:window.location.origin+window.location.pathname,id:O})}function R(T,M,D){x();var O=g(M,D);l.postMessage({type:"loadData",path:T,fullPath:window.location.origin+window.location.pathname,id:O})}function H(T,M,D){x();var O=g(M,D);l.postMessage({type:"complete",animation:T,id:O})}return{loadAnimation:k,loadData:R,completeAnimation:H}}(),sb=function(){var e=function(){var N=C("canvas");N.width=1,N.height=1;var I=N.getContext("2d");return I.fillStyle="rgba(0,0,0,0)",I.fillRect(0,0,1,1),N}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(N,I,E){var A="";if(N.e)A=N.p;else if(I){var w=N.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),A=I+w}else A=E,A+=N.u?N.u:"",A+=N.p;return A}function h(N){var I=0,E=setInterval((function(){var A=N.getBBox();(A.width||I>500)&&(this._imageLoaded(),clearInterval(E)),I+=1}).bind(this),50)}function c(N){var I=l(N,this.assetsPath,this.path),E=Tt("image");jt?this.testImageLoaded(E):E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),E.setAttributeNS("http://www.w3.org/1999/xlink","href",I),this._elementHelper.append?this._elementHelper.append(E):this._elementHelper.appendChild(E);var A={img:E,assetData:N};return A}function v(N){var I=l(N,this.assetsPath,this.path),E=C("img");E.crossOrigin="anonymous",E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),E.src=I;var A={img:E,assetData:N};return A}function x(N){var I={assetData:N},E=l(N,this.assetsPath,this.path);return Gs.loadData(E,(function(A){I.img=A,this._footageLoaded()}).bind(this),(function(){I.img={},this._footageLoaded()}).bind(this)),I}function g(N,I){this.imagesLoadedCb=I;var E,A=N.length;for(E=0;E<A;E+=1)N[E].layers||(!N[E].t||N[E].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(N[E]))):N[E].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(N[E]))))}function k(N){this.path=N||""}function R(N){this.assetsPath=N||""}function H(N){for(var I=0,E=this.images.length;I<E;){if(this.images[I].assetData===N)return this.images[I].img;I+=1}return null}function T(){this.imagesLoadedCb=null,this.images.length=0}function M(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function O(N,I){N==="svg"?(this._elementHelper=I,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=r.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=x.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:g,setAssetsPath:R,setPath:k,loadedImages:M,loadedFootages:D,destroy:T,getAsset:H,createImgData:v,createImageData:c,imageLoaded:r,footageLoaded:s,setCacheType:O},V}();function mp(){}mp.prototype={triggerEvent:function(r,s){if(this._cbs[r])for(var l=this._cbs[r],h=0;h<l.length;h+=1)l[h](s)},addEventListener:function(r,s){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(s),(function(){this.removeEventListener(r,s)}).bind(this)},removeEventListener:function(r,s){if(!s)this._cbs[r]=null;else if(this._cbs[r]){for(var l=0,h=this._cbs[r].length;l<h;)this._cbs[r][l]===s&&(this._cbs[r].splice(l,1),l-=1,h-=1),l+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var ab=function(){function e(r){for(var s=r.split(`\r
|
|
2
|
-
`),l={},h,c=0,v=0;v<s.length;v+=1)h=s[v].split(":"),h.length===2&&(l[h[0]]=h[1].trim(),c+=1);if(c===0)throw new Error;return l}return function(r){for(var s=[],l=0;l<r.length;l+=1){var h=r[l],c={time:h.tm,duration:h.dr};try{c.payload=JSON.parse(r[l].cm)}catch{try{c.payload=e(r[l].cm)}catch{c.payload={name:r[l].cm}}}s.push(c)}return s}}(),nb=function(){function e(r){this.compositions.push(r)}return function(){function r(s){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===s)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),Ys={},lb=function(r,s){Ys[r]=s};function db(e){return Ys[e]}function cb(){if(Ys.canvas)return"canvas";for(var e in Ys)if(Ys[e])return e;return""}function Ws(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ws=function(s){return typeof s}:Ws=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ws(e)}var ut=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=we(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=rb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=nb(),this.imagePreloader=new sb,this.audioController=rt(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new tr("drawnFrame",0,0,0),this.expressionsPlugin=mn()};L([mp],ut),ut.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var s=db(r);this.renderer=new s(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Gs.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ut.prototype.onSetupError=function(){this.trigger("data_failed")},ut.prototype.setupAnimation=function(e){Gs.completeAnimation(e,this.configAnimation)},ut.prototype.setData=function(e,r){r&&Ws(r)!=="object"&&(r=JSON.parse(r));var s={wrapper:e,animationData:r},l=e.attributes;s.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",s.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:cb()||"canvas";var h=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";h==="false"?s.loop=!1:h==="true"?s.loop=!0:h!==""&&(s.loop=parseInt(h,10));var c=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;s.autoplay=c!=="false",s.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var v=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";v==="false"&&(s.prerender=!1),s.path?this.setParams(s):this.trigger("destroy")},ut.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,s,l=r.length,h=e.layers,c,v=h.length;for(c=0;c<v;c+=1)for(s=0;s<l;){if(r[s].id===h[c].id){r[s]=h[c];break}s+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,s=0;s<l;s+=1)this.animationData.assets.push(e.assets[s]);this.animationData.__complete=!1,Gs.completeAnimation(this.animationData,this.onSegmentComplete)},ut.prototype.onSegmentComplete=function(e){this.animationData=e;var r=mn();r&&r.initExpressions(this),this.loadNextSegment()},ut.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var s=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Gs.loadData(s,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ut.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ut.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ut.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ut.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=ab(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},ut.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ut.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=mn();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ut.prototype.resize=function(e,r){var s=typeof e=="number"?e:void 0,l=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(s,l)},ut.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ut.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")},ut.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ut.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ut.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ut.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ut.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ut.prototype.getMarkerData=function(e){for(var r,s=0;s<this.markers.length;s+=1)if(r=this.markers[s],r.payload&&r.payload.name===e)return r;return null},ut.prototype.goToAndStop=function(e,r,s){if(!(s&&this.name!==s)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&this.goToAndStop(h.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ut.prototype.goToAndPlay=function(e,r,s){if(!(s&&this.name!==s)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(l,r,s);this.play()}},ut.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,s=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(s=!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):(s=!0,r=0)):this.setCurrentRawFrameValue(r),s&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},ut.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},ut.prototype.setSegment=function(e,r){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?s=e:this.currentRawFrame+this.firstFrame>r&&(s=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},ut.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),Ws(e[0])==="object"){var s,l=e.length;for(s=0;s<l;s+=1)this.segments.push(e[s])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ut.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ut.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ut.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ut.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ut.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ut.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ut.prototype.setLoop=function(e){this.loop=e},ut.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},ut.prototype.getVolume=function(){return this.audioController.getVolume()},ut.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ut.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ut.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ut.prototype.getPath=function(){return this.path},ut.prototype.getAssetsPath=function(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var s=e.p;s.indexOf("images/")!==-1&&(s=s.split("/")[1]),r=this.assetsPath+s}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},ut.prototype.getAssetData=function(e){for(var r=0,s=this.assets.length;r<s;){if(e===this.assets[r].id)return this.assets[r];r+=1}return null},ut.prototype.hide=function(){this.renderer.hide()},ut.prototype.show=function(){this.renderer.show()},ut.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ut.prototype.updateDocumentData=function(e,r,s){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(r,s)}catch{}},ut.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new tr(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new ap(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new pn(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new np(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new lp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new tr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new ap(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new pn(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new np(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new lp(e,this))},ut.prototype.triggerRenderFrameError=function(e){var r=new Jg(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},ut.prototype.triggerConfigError=function(e){var r=new tb(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Qt=function(){var e={},r=[],s=0,l=0,h=0,c=!0,v=!1;function x(S){for(var P=0,f=S.target;P<l;)r[P].animation===f&&(r.splice(P,1),P-=1,l-=1,f.isPaused||H()),P+=1}function g(S,P){if(!S)return null;for(var f=0;f<l;){if(r[f].elem===S&&r[f].elem!==null)return r[f].animation;f+=1}var y=new ut;return T(y,S),y.setData(S,P),y}function k(){var S,P=r.length,f=[];for(S=0;S<P;S+=1)f.push(r[S].animation);return f}function R(){h+=1,yt()}function H(){h-=1}function T(S,P){S.addEventListener("destroy",x),S.addEventListener("_active",R),S.addEventListener("_idle",H),r.push({elem:P,animation:S}),l+=1}function M(S){var P=new ut;return T(P,null),P.setParams(S),P}function D(S,P){var f;for(f=0;f<l;f+=1)r[f].animation.setSpeed(S,P)}function O(S,P){var f;for(f=0;f<l;f+=1)r[f].animation.setDirection(S,P)}function V(S){var P;for(P=0;P<l;P+=1)r[P].animation.play(S)}function N(S){var P=S-s,f;for(f=0;f<l;f+=1)r[f].animation.advanceTime(P);s=S,h&&!v?window.requestAnimationFrame(N):c=!0}function I(S){s=S,window.requestAnimationFrame(N)}function E(S){var P;for(P=0;P<l;P+=1)r[P].animation.pause(S)}function A(S,P,f){var y;for(y=0;y<l;y+=1)r[y].animation.goToAndStop(S,P,f)}function w(S){var P;for(P=0;P<l;P+=1)r[P].animation.stop(S)}function $(S){var P;for(P=0;P<l;P+=1)r[P].animation.togglePause(S)}function U(S){var P;for(P=l-1;P>=0;P-=1)r[P].animation.destroy(S)}function Y(S,P,f){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),G,F=y.length;for(G=0;G<F;G+=1)f&&y[G].setAttribute("data-bm-type",f),g(y[G],S);if(P&&F===0){f||(f="svg");var nt=document.getElementsByTagName("body")[0];nt.innerText="";var ft=C("div");ft.style.width="100%",ft.style.height="100%",ft.setAttribute("data-bm-type",f),nt.appendChild(ft),g(ft,S)}}function J(){var S;for(S=0;S<l;S+=1)r[S].animation.resize()}function yt(){!v&&h&&c&&(window.requestAnimationFrame(I),c=!1)}function pt(){v=!0}function ot(){v=!1,yt()}function xt(S,P){var f;for(f=0;f<l;f+=1)r[f].animation.setVolume(S,P)}function ct(S){var P;for(P=0;P<l;P+=1)r[P].animation.mute(S)}function Q(S){var P;for(P=0;P<l;P+=1)r[P].animation.unmute(S)}return e.registerAnimation=g,e.loadAnimation=M,e.setSpeed=D,e.setDirection=O,e.play=V,e.pause=E,e.stop=w,e.togglePause=$,e.searchAnimations=Y,e.resize=J,e.goToAndStop=A,e.destroy=U,e.freeze=pt,e.unfreeze=ot,e.setVolume=xt,e.mute=ct,e.unmute=Q,e.getRegisteredAnimations=k,e}(),js=function(){var e={};e.getBezierEasing=s;var r={};function s(I,E,A,w,$){var U=$||("bez_"+I+"_"+E+"_"+A+"_"+w).replace(/\./g,"p");if(r[U])return r[U];var Y=new N([I,E,A,w]);return r[U]=Y,Y}var l=4,h=.001,c=1e-7,v=10,x=11,g=1/(x-1),k=typeof Float32Array=="function";function R(I,E){return 1-3*E+3*I}function H(I,E){return 3*E-6*I}function T(I){return 3*I}function M(I,E,A){return((R(E,A)*I+H(E,A))*I+T(E))*I}function D(I,E,A){return 3*R(E,A)*I*I+2*H(E,A)*I+T(E)}function O(I,E,A,w,$){var U,Y,J=0;do Y=E+(A-E)/2,U=M(Y,w,$)-I,U>0?A=Y:E=Y;while(Math.abs(U)>c&&++J<v);return Y}function V(I,E,A,w){for(var $=0;$<l;++$){var U=D(E,A,w);if(U===0)return E;var Y=M(E,A,w)-I;E-=Y/U}return E}function N(I){this._p=I,this._mSampleValues=k?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(E){var A=this._p[0],w=this._p[1],$=this._p[2],U=this._p[3];return this._precomputed||this._precompute(),A===w&&$===U?E:E===0?0:E===1?1:M(this._getTForX(E),w,U)},_precompute:function(){var E=this._p[0],A=this._p[1],w=this._p[2],$=this._p[3];this._precomputed=!0,(E!==A||w!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var E=this._p[0],A=this._p[2],w=0;w<x;++w)this._mSampleValues[w]=M(w*g,E,A)},_getTForX:function(E){for(var A=this._p[0],w=this._p[2],$=this._mSampleValues,U=0,Y=1,J=x-1;Y!==J&&$[Y]<=E;++Y)U+=g;--Y;var yt=(E-$[Y])/($[Y+1]-$[Y]),pt=U+yt*g,ot=D(pt,A,w);return ot>=h?V(E,pt,A,w):ot===0?pt:O(E,U,U+g,A,w)}},e}(),up=function(){function e(r){return r.concat(tt(r.length))}return{double:e}}(),vn=function(){return function(e,r,s){var l=0,h=e,c=tt(h),v={newElement:x,release:g};function x(){var k;return l?(l-=1,k=c[l]):k=r(),k}function g(k){l===h&&(c=up.double(c),h*=2),s&&s(k),c[l]=k,l+=1}return v}}(),fp=function(){function e(){return{addedLength:0,percents:X("float32",Hs()),lengths:X("float32",Hs())}}return vn(8,e)}(),vp=function(){function e(){return{lengths:[],totalLength:0}}function r(s){var l,h=s.lengths.length;for(l=0;l<h;l+=1)fp.release(s.lengths[l]);s.lengths.length=0}return vn(8,e,r)}();function hb(){var e=Math;function r(T,M,D,O,V,N){var I=T*O+M*V+D*N-V*O-N*T-D*M;return I>-.001&&I<.001}function s(T,M,D,O,V,N,I,E,A){if(D===0&&N===0&&A===0)return r(T,M,O,V,I,E);var w=e.sqrt(e.pow(O-T,2)+e.pow(V-M,2)+e.pow(N-D,2)),$=e.sqrt(e.pow(I-T,2)+e.pow(E-M,2)+e.pow(A-D,2)),U=e.sqrt(e.pow(I-O,2)+e.pow(E-V,2)+e.pow(A-N,2)),Y;return w>$?w>U?Y=w-$-U:Y=U-$-w:U>$?Y=U-$-w:Y=$-w-U,Y>-1e-4&&Y<1e-4}var l=function(){return function(T,M,D,O){var V=Hs(),N,I,E,A,w,$=0,U,Y=[],J=[],yt=fp.newElement();for(E=D.length,N=0;N<V;N+=1){for(w=N/(V-1),U=0,I=0;I<E;I+=1)A=Ut(1-w,3)*T[I]+3*Ut(1-w,2)*w*D[I]+3*(1-w)*Ut(w,2)*O[I]+Ut(w,3)*M[I],Y[I]=A,J[I]!==null&&(U+=Ut(Y[I]-J[I],2)),J[I]=Y[I];U&&(U=Zt(U),$+=U),yt.percents[N]=w,yt.lengths[N]=$}return yt.addedLength=$,yt}}();function h(T){var M=vp.newElement(),D=T.c,O=T.v,V=T.o,N=T.i,I,E=T._length,A=M.lengths,w=0;for(I=0;I<E-1;I+=1)A[I]=l(O[I],O[I+1],V[I],N[I+1]),w+=A[I].addedLength;return D&&E&&(A[I]=l(O[I],O[0],V[I],N[0]),w+=A[I].addedLength),M.totalLength=w,M}function c(T){this.segmentLength=0,this.points=new Array(T)}function v(T,M){this.partialLength=T,this.point=M}var x=function(){var T={};return function(M,D,O,V){var N=(M[0]+"_"+M[1]+"_"+D[0]+"_"+D[1]+"_"+O[0]+"_"+O[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!T[N]){var I=Hs(),E,A,w,$,U,Y=0,J,yt,pt=null;M.length===2&&(M[0]!==D[0]||M[1]!==D[1])&&r(M[0],M[1],D[0],D[1],M[0]+O[0],M[1]+O[1])&&r(M[0],M[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(I=2);var ot=new c(I);for(w=O.length,E=0;E<I;E+=1){for(yt=tt(w),U=E/(I-1),J=0,A=0;A<w;A+=1)$=Ut(1-U,3)*M[A]+3*Ut(1-U,2)*U*(M[A]+O[A])+3*(1-U)*Ut(U,2)*(D[A]+V[A])+Ut(U,3)*D[A],yt[A]=$,pt!==null&&(J+=Ut(yt[A]-pt[A],2));J=Zt(J),Y+=J,ot.points[E]=new v(J,yt),pt=yt}ot.segmentLength=Y,T[N]=ot}return T[N]}}();function g(T,M){var D=M.percents,O=M.lengths,V=D.length,N=ne((V-1)*T),I=T*M.addedLength,E=0;if(N===V-1||N===0||I===O[N])return D[N];for(var A=O[N]>I?-1:1,w=!0;w;)if(O[N]<=I&&O[N+1]>I?(E=(I-O[N])/(O[N+1]-O[N]),w=!1):N+=A,N<0||N>=V-1){if(N===V-1)return D[N];w=!1}return D[N]+(D[N+1]-D[N])*E}function k(T,M,D,O,V,N){var I=g(V,N),E=1-I,A=e.round((E*E*E*T[0]+(I*E*E+E*I*E+E*E*I)*D[0]+(I*I*E+E*I*I+I*E*I)*O[0]+I*I*I*M[0])*1e3)/1e3,w=e.round((E*E*E*T[1]+(I*E*E+E*I*E+E*E*I)*D[1]+(I*I*E+E*I*I+I*E*I)*O[1]+I*I*I*M[1])*1e3)/1e3;return[A,w]}var R=X("float32",8);function H(T,M,D,O,V,N,I){V<0?V=0:V>1&&(V=1);var E=g(V,I);N=N>1?1:N;var A=g(N,I),w,$=T.length,U=1-E,Y=1-A,J=U*U*U,yt=E*U*U*3,pt=E*E*U*3,ot=E*E*E,xt=U*U*Y,ct=E*U*Y+U*E*Y+U*U*A,Q=E*E*Y+U*E*A+E*U*A,S=E*E*A,P=U*Y*Y,f=E*Y*Y+U*A*Y+U*Y*A,y=E*A*Y+U*A*A+E*Y*A,G=E*A*A,F=Y*Y*Y,nt=A*Y*Y+Y*A*Y+Y*Y*A,ft=A*A*Y+Y*A*A+A*Y*A,Et=A*A*A;for(w=0;w<$;w+=1)R[w*4]=e.round((J*T[w]+yt*D[w]+pt*O[w]+ot*M[w])*1e3)/1e3,R[w*4+1]=e.round((xt*T[w]+ct*D[w]+Q*O[w]+S*M[w])*1e3)/1e3,R[w*4+2]=e.round((P*T[w]+f*D[w]+y*O[w]+G*M[w])*1e3)/1e3,R[w*4+3]=e.round((F*T[w]+nt*D[w]+ft*O[w]+Et*M[w])*1e3)/1e3;return R}return{getSegmentsLength:h,getNewSegment:H,getPointInSegment:k,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:s}}var Cr=hb(),Qi=i,gp=Math.abs;function bp(e,r){var s=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=r.lastIndex,c=h,v=this.keyframes.length-1,x=!0,g,k,R;x;){if(g=this.keyframes[c],k=this.keyframes[c+1],c===v-1&&e>=k.t-s){g.h&&(g=k),h=0;break}if(k.t-s>e){h=c;break}c<v-1?c+=1:(h=0,x=!1)}R=this.keyframesMetadata[c]||{};var H,T,M,D,O,V,N=k.t-s,I=g.t-s,E;if(g.to){R.bezierData||(R.bezierData=Cr.buildBezierData(g.s,k.s||g.e,g.to,g.ti));var A=R.bezierData;if(e>=N||e<I){var w=e>=N?A.points.length-1:0;for(T=A.points[w].point.length,H=0;H<T;H+=1)l[H]=A.points[w].point[H]}else{R.__fnct?V=R.__fnct:(V=js.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,R.__fnct=V),M=V((e-I)/(N-I));var $=A.segmentLength*M,U,Y=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(O=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,D=A.points.length;x;){if(Y+=A.points[O].partialLength,$===0||M===0||O===A.points.length-1){for(T=A.points[O].point.length,H=0;H<T;H+=1)l[H]=A.points[O].point[H];break}else if($>=Y&&$<Y+A.points[O+1].partialLength){for(U=($-Y)/A.points[O+1].partialLength,T=A.points[O].point.length,H=0;H<T;H+=1)l[H]=A.points[O].point[H]+(A.points[O+1].point[H]-A.points[O].point[H])*U;break}O<D-1?O+=1:x=!1}r._lastPoint=O,r._lastAddedLength=Y-A.points[O].partialLength,r._lastKeyframeIndex=c}}else{var J,yt,pt,ot,xt;if(v=g.s.length,E=k.s||g.e,this.sh&&g.h!==1)if(e>=N)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=I)l[0]=g.s[0],l[1]=g.s[1],l[2]=g.s[2];else{var ct=yp(g.s),Q=yp(E),S=(e-I)/(N-I);mb(l,pb(ct,Q,S))}else for(c=0;c<v;c+=1)g.h!==1&&(e>=N?M=1:e<I?M=0:(g.o.x.constructor===Array?(R.__fnct||(R.__fnct=[]),R.__fnct[c]?V=R.__fnct[c]:(J=g.o.x[c]===void 0?g.o.x[0]:g.o.x[c],yt=g.o.y[c]===void 0?g.o.y[0]:g.o.y[c],pt=g.i.x[c]===void 0?g.i.x[0]:g.i.x[c],ot=g.i.y[c]===void 0?g.i.y[0]:g.i.y[c],V=js.getBezierEasing(J,yt,pt,ot).get,R.__fnct[c]=V)):R.__fnct?V=R.__fnct:(J=g.o.x,yt=g.o.y,pt=g.i.x,ot=g.i.y,V=js.getBezierEasing(J,yt,pt,ot).get,g.keyframeMetadata=V),M=V((e-I)/(N-I)))),E=k.s||g.e,xt=g.h===1?g.s[c]:g.s[c]+(E[c]-g.s[c])*M,this.propType==="multidimensional"?l[c]=xt:l=xt}return r.lastIndex=h,l}function pb(e,r,s){var l=[],h=e[0],c=e[1],v=e[2],x=e[3],g=r[0],k=r[1],R=r[2],H=r[3],T,M,D,O,V;return M=h*g+c*k+v*R+x*H,M<0&&(M=-M,g=-g,k=-k,R=-R,H=-H),1-M>1e-6?(T=Math.acos(M),D=Math.sin(T),O=Math.sin((1-s)*T)/D,V=Math.sin(s*T)/D):(O=1-s,V=s),l[0]=O*h+V*g,l[1]=O*c+V*k,l[2]=O*v+V*R,l[3]=O*x+V*H,l}function mb(e,r){var s=r[0],l=r[1],h=r[2],c=r[3],v=Math.atan2(2*l*c-2*s*h,1-2*l*l-2*h*h),x=Math.asin(2*s*l+2*h*c),g=Math.atan2(2*s*c-2*l*h,1-2*s*s-2*h*h);e[0]=v/Ct,e[1]=x/Ct,e[2]=g/Ct}function yp(e){var r=e[0]*Ct,s=e[1]*Ct,l=e[2]*Ct,h=Math.cos(r/2),c=Math.cos(s/2),v=Math.cos(l/2),x=Math.sin(r/2),g=Math.sin(s/2),k=Math.sin(l/2),R=h*c*v-x*g*k,H=x*g*v+h*c*k,T=x*c*v+h*g*k,M=h*g*v-x*c*k;return[H,T,M,R]}function Ep(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==Qi&&(this._caching.lastFrame>=s&&e>=s||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function gn(e){var r;if(this.propType==="unidimensional")r=e*this.mult,gp(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var s=0,l=this.v.length;s<l;)r=e[s]*this.mult,gp(this.v[s]-r)>1e-5&&(this.v[s]=r,this._mdf=!0),s+=1}function bn(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,r=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)s=this.effectsSequence[e](s);this.setVValue(s),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function yn(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ub(e,r,s,l){this.propType="unidimensional",this.mult=s||1,this.data=r,this.v=s?r.k*s:r.k,this.pv=r.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=bn,this.setVValue=gn,this.addEffect=yn}function fb(e,r,s,l){this.propType="multidimensional",this.mult=s||1,this.data=r,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,c=r.k.length;for(this.v=X("float32",c),this.pv=X("float32",c),this.vel=X("float32",c),h=0;h<c;h+=1)this.v[h]=r.k[h]*this.mult,this.pv[h]=r.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=bn,this.setVValue=gn,this.addEffect=yn}function vb(e,r,s,l){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:Qi,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=s||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=Qi,this.pv=Qi,this._isFirstFrame=!0,this.getValue=bn,this.setVValue=gn,this.interpolateValue=bp,this.effectsSequence=[Ep.bind(this)],this.addEffect=yn}function gb(e,r,s,l){this.propType="multidimensional";var h,c=r.k.length,v,x,g,k;for(h=0;h<c-1;h+=1)r.k[h].to&&r.k[h].s&&r.k[h+1]&&r.k[h+1].s&&(v=r.k[h].s,x=r.k[h+1].s,g=r.k[h].to,k=r.k[h].ti,(v.length===2&&!(v[0]===x[0]&&v[1]===x[1])&&Cr.pointOnLine2D(v[0],v[1],x[0],x[1],v[0]+g[0],v[1]+g[1])&&Cr.pointOnLine2D(v[0],v[1],x[0],x[1],x[0]+k[0],x[1]+k[1])||v.length===3&&!(v[0]===x[0]&&v[1]===x[1]&&v[2]===x[2])&&Cr.pointOnLine3D(v[0],v[1],v[2],x[0],x[1],x[2],v[0]+g[0],v[1]+g[1],v[2]+g[2])&&Cr.pointOnLine3D(v[0],v[1],v[2],x[0],x[1],x[2],x[0]+k[0],x[1]+k[1],x[2]+k[2]))&&(r.k[h].to=null,r.k[h].ti=null),v[0]===x[0]&&v[1]===x[1]&&g[0]===0&&g[1]===0&&k[0]===0&&k[1]===0&&(v.length===2||v[2]===x[2]&&g[2]===0&&k[2]===0)&&(r.k[h].to=null,r.k[h].ti=null));this.effectsSequence=[Ep.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=s||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=bn,this.setVValue=gn,this.interpolateValue=bp,this.frameId=-1;var R=r.k[0].s.length;for(this.v=X("float32",R),this.pv=X("float32",R),h=0;h<R;h+=1)this.v[h]=Qi,this.pv[h]=Qi;this._caching={lastFrame:Qi,lastIndex:0,value:X("float32",R)},this.addEffect=yn}var at=function(){function e(s,l,h,c,v){l.sid&&(l=s.globalData.slotManager.getProp(l));var x;if(!l.k.length)x=new ub(s,l,c,v);else if(typeof l.k[0]=="number")x=new fb(s,l,c,v);else switch(h){case 0:x=new vb(s,l,c,v);break;case 1:x=new gb(s,l,c,v);break;default:break}return x.effectsSequence.length&&v.addDynamicProperty(x),x}var r={getProp:e};return r}();function le(){}le.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,s=this.dynamicProperties.length;for(r=0;r<s;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 Ji=function(){function e(){return X("float32",2)}return vn(8,e)}();function Yr(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}Yr.prototype.setPathData=function(e,r){this.c=e,this.setLength(r);for(var s=0;s<r;)this.v[s]=Ji.newElement(),this.o[s]=Ji.newElement(),this.i[s]=Ji.newElement(),s+=1},Yr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Yr.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},Yr.prototype.setXYAt=function(e,r,s,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[l]||c[l]&&!h)&&(c[l]=Ji.newElement()),c[l][0]=e,c[l][1]=r},Yr.prototype.setTripleAt=function(e,r,s,l,h,c,v,x){this.setXYAt(e,r,"v",v,x),this.setXYAt(s,l,"o",v,x),this.setXYAt(h,c,"i",v,x)},Yr.prototype.reverse=function(){var e=new Yr;e.setPathData(this.c,this._length);var r=this.v,s=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],l[0][0],l[0][1],s[0][0],s[0][1],0,!1),h=1);var c=this._length-1,v=this._length,x;for(x=h;x<v;x+=1)e.setTripleAt(r[c][0],r[c][1],l[c][0],l[c][1],s[c][0],s[c][1],x,!1),c-=1;return e},Yr.prototype.length=function(){return this._length};var ue=function(){function e(){return new Yr}function r(h){var c=h._length,v;for(v=0;v<c;v+=1)Ji.release(h.v[v]),Ji.release(h.i[v]),Ji.release(h.o[v]),h.v[v]=null,h.i[v]=null,h.o[v]=null;h._length=0,h.c=!1}function s(h){var c=l.newElement(),v,x=h._length===void 0?h.v.length:h._length;for(c.setLength(x),c.c=h.c,v=0;v<x;v+=1)c.setTripleAt(h.v[v][0],h.v[v][1],h.o[v][0],h.o[v][1],h.i[v][0],h.i[v][1],v);return c}var l=vn(4,e,r);return l.clone=s,l}();function Id(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}Id.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Id.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ue.release(this.shapes[e]);this._length=0};var Ho=function(){var e={newShapeCollection:h,release:c},r=0,s=4,l=tt(s);function h(){var v;return r?(r-=1,v=l[r]):v=new Id,v}function c(v){var x,g=v._length;for(x=0;x<g;x+=1)ue.release(v.shapes[x]);v._length=0,r===s&&(l=up.double(l),s*=2),l[r]=v,r+=1}return e}(),En=function(){var e=-999999;function r(N,I,E){var A=E.lastIndex,w,$,U,Y,J,yt,pt,ot,xt,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)w=ct[0].s[0],U=!0,A=0;else if(N>=ct[ct.length-1].t-this.offsetTime)w=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],U=!0;else{for(var Q=A,S=ct.length-1,P=!0,f,y,G;P&&(f=ct[Q],y=ct[Q+1],!(y.t-this.offsetTime>N));)Q<S-1?Q+=1:P=!1;if(G=this.keyframesMetadata[Q]||{},U=f.h===1,A=Q,!U){if(N>=y.t-this.offsetTime)ot=1;else if(N<f.t-this.offsetTime)ot=0;else{var F;G.__fnct?F=G.__fnct:(F=js.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,G.__fnct=F),ot=F((N-(f.t-this.offsetTime))/(y.t-this.offsetTime-(f.t-this.offsetTime)))}$=y.s?y.s[0]:f.e[0]}w=f.s[0]}for(yt=I._length,pt=w.i[0].length,E.lastIndex=A,Y=0;Y<yt;Y+=1)for(J=0;J<pt;J+=1)xt=U?w.i[Y][J]:w.i[Y][J]+($.i[Y][J]-w.i[Y][J])*ot,I.i[Y][J]=xt,xt=U?w.o[Y][J]:w.o[Y][J]+($.o[Y][J]-w.o[Y][J])*ot,I.o[Y][J]=xt,xt=U?w.v[Y][J]:w.v[Y][J]+($.v[Y][J]-w.v[Y][J])*ot,I.v[Y][J]=xt}function s(){var N=this.comp.renderedFrame-this.offsetTime,I=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<I&&N<I||A>E&&N>E)||(this._caching.lastIndex=A<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function l(){this.paths=this.localShapeCollection}function h(N,I){if(N._length!==I._length||N.c!==I.c)return!1;var E,A=N._length;for(E=0;E<A;E+=1)if(N.v[E][0]!==I.v[E][0]||N.v[E][1]!==I.v[E][1]||N.o[E][0]!==I.o[E][0]||N.o[E][1]!==I.o[E][1]||N.i[E][0]!==I.i[E][0]||N.i[E][1]!==I.i[E][1])return!1;return!0}function c(N){h(this.v,N)||(this.v=ue.clone(N),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function v(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var I,E=this.effectsSequence.length;for(I=0;I<E;I+=1)N=this.effectsSequence[I](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(N,I,E){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=I,this.k=!1,this.kf=!1,this._mdf=!1;var A=E===3?I.pt.k:I.ks.k;this.v=ue.clone(A),this.pv=ue.clone(this.v),this.localShapeCollection=Ho.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function g(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}x.prototype.interpolateShape=r,x.prototype.getValue=v,x.prototype.setVValue=c,x.prototype.addEffect=g;function k(N,I,E){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=E===3?I.pt.k:I.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=ue.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ue.clone(this.v),this.localShapeCollection=Ho.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[s.bind(this)]}k.prototype.getValue=v,k.prototype.interpolateShape=r,k.prototype.setVValue=c,k.prototype.addEffect=g;var R=function(){var N=me;function I(E,A){this.v=ue.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ho.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=at.getProp(E,A.p,1,0,this),this.s=at.getProp(E,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return I.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var A=this.p.v[0],w=this.p.v[1],$=this.s.v[0]/2,U=this.s.v[1]/2,Y=this.d!==3,J=this.v;J.v[0][0]=A,J.v[0][1]=w-U,J.v[1][0]=Y?A+$:A-$,J.v[1][1]=w,J.v[2][0]=A,J.v[2][1]=w+U,J.v[3][0]=Y?A-$:A+$,J.v[3][1]=w,J.i[0][0]=Y?A-$*N:A+$*N,J.i[0][1]=w-U,J.i[1][0]=Y?A+$:A-$,J.i[1][1]=w-U*N,J.i[2][0]=Y?A+$*N:A-$*N,J.i[2][1]=w+U,J.i[3][0]=Y?A-$:A+$,J.i[3][1]=w+U*N,J.o[0][0]=Y?A+$*N:A-$*N,J.o[0][1]=w-U,J.o[1][0]=Y?A+$:A-$,J.o[1][1]=w+U*N,J.o[2][0]=Y?A-$*N:A+$*N,J.o[2][1]=w+U,J.o[3][0]=Y?A-$:A+$,J.o[3][1]=w-U*N}},L([le],I),I}(),H=function(){function N(I,E){this.v=ue.newElement(),this.v.setPathData(!0,0),this.elem=I,this.comp=I.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(I),E.sy===1?(this.ir=at.getProp(I,E.ir,0,0,this),this.is=at.getProp(I,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(I,E.pt,0,0,this),this.p=at.getProp(I,E.p,1,0,this),this.r=at.getProp(I,E.r,0,Ct,this),this.or=at.getProp(I,E.or,0,0,this),this.os=at.getProp(I,E.os,0,.01,this),this.localShapeCollection=Ho.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return N.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var E=Math.floor(this.pt.v)*2,A=Math.PI*2/E,w=!0,$=this.or.v,U=this.ir.v,Y=this.os.v,J=this.is.v,yt=2*Math.PI*$/(E*2),pt=2*Math.PI*U/(E*2),ot,xt,ct,Q,S=-Math.PI/2;S+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,ot=0;ot<E;ot+=1){xt=w?$:U,ct=w?Y:J,Q=w?yt:pt;var f=xt*Math.cos(S),y=xt*Math.sin(S),G=f===0&&y===0?0:y/Math.sqrt(f*f+y*y),F=f===0&&y===0?0:-f/Math.sqrt(f*f+y*y);f+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(f,y,f-G*Q*ct*P,y-F*Q*ct*P,f+G*Q*ct*P,y+F*Q*ct*P,ot,!0),w=!w,S+=A*P}},convertPolygonToPath:function(){var E=Math.floor(this.pt.v),A=Math.PI*2/E,w=this.or.v,$=this.os.v,U=2*Math.PI*w/(E*4),Y,J=-Math.PI*.5,yt=this.data.d===3?-1:1;for(J+=this.r.v,this.v._length=0,Y=0;Y<E;Y+=1){var pt=w*Math.cos(J),ot=w*Math.sin(J),xt=pt===0&&ot===0?0:ot/Math.sqrt(pt*pt+ot*ot),ct=pt===0&&ot===0?0:-pt/Math.sqrt(pt*pt+ot*ot);pt+=+this.p.v[0],ot+=+this.p.v[1],this.v.setTripleAt(pt,ot,pt-xt*U*$*yt,ot-ct*U*$*yt,pt+xt*U*$*yt,ot+ct*U*$*yt,Y,!0),J+=A*yt}this.paths.length=0,this.paths[0]=this.v}},L([le],N),N}(),T=function(){function N(I,E){this.v=ue.newElement(),this.v.c=!0,this.localShapeCollection=Ho.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=I,this.comp=I.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(I),this.p=at.getProp(I,E.p,1,0,this),this.s=at.getProp(I,E.s,1,0,this),this.r=at.getProp(I,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var E=this.p.v[0],A=this.p.v[1],w=this.s.v[0]/2,$=this.s.v[1]/2,U=ke(w,$,this.r.v),Y=U*(1-me);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(E+w,A-$+U,E+w,A-$+U,E+w,A-$+Y,0,!0),this.v.setTripleAt(E+w,A+$-U,E+w,A+$-Y,E+w,A+$-U,1,!0),U!==0?(this.v.setTripleAt(E+w-U,A+$,E+w-U,A+$,E+w-Y,A+$,2,!0),this.v.setTripleAt(E-w+U,A+$,E-w+Y,A+$,E-w+U,A+$,3,!0),this.v.setTripleAt(E-w,A+$-U,E-w,A+$-U,E-w,A+$-Y,4,!0),this.v.setTripleAt(E-w,A-$+U,E-w,A-$+Y,E-w,A-$+U,5,!0),this.v.setTripleAt(E-w+U,A-$,E-w+U,A-$,E-w+Y,A-$,6,!0),this.v.setTripleAt(E+w-U,A-$,E+w-Y,A-$,E+w-U,A-$,7,!0)):(this.v.setTripleAt(E-w,A+$,E-w+Y,A+$,E-w,A+$,2),this.v.setTripleAt(E-w,A-$,E-w,A-$+Y,E-w,A-$,3))):(this.v.setTripleAt(E+w,A-$+U,E+w,A-$+Y,E+w,A-$+U,0,!0),U!==0?(this.v.setTripleAt(E+w-U,A-$,E+w-U,A-$,E+w-Y,A-$,1,!0),this.v.setTripleAt(E-w+U,A-$,E-w+Y,A-$,E-w+U,A-$,2,!0),this.v.setTripleAt(E-w,A-$+U,E-w,A-$+U,E-w,A-$+Y,3,!0),this.v.setTripleAt(E-w,A+$-U,E-w,A+$-Y,E-w,A+$-U,4,!0),this.v.setTripleAt(E-w+U,A+$,E-w+U,A+$,E-w+Y,A+$,5,!0),this.v.setTripleAt(E+w-U,A+$,E+w-Y,A+$,E+w-U,A+$,6,!0),this.v.setTripleAt(E+w,A+$-U,E+w,A+$-U,E+w,A+$-Y,7,!0)):(this.v.setTripleAt(E-w,A-$,E-w+Y,A-$,E-w,A-$,1,!0),this.v.setTripleAt(E-w,A+$,E-w,A+$-Y,E-w,A+$,2,!0),this.v.setTripleAt(E+w,A+$,E+w-Y,A+$,E+w,A+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},L([le],N),N}();function M(N,I,E){var A;if(E===3||E===4){var w=E===3?I.pt:I.ks,$=w.k;$.length?A=new k(N,I,E):A=new x(N,I,E)}else E===5?A=new T(N,I):E===6?A=new R(N,I):E===7&&(A=new H(N,I));return A.k&&N.addDynamicProperty(A),A}function D(){return x}function O(){return k}var V={};return V.getShapeProp=M,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=O,V}();var fe=function(){var e=Math.cos,r=Math.sin,s=Math.tan,l=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(f){if(f===0)return this;var y=e(f),G=r(f);return this._t(y,-G,0,0,G,y,0,0,0,0,1,0,0,0,0,1)}function v(f){if(f===0)return this;var y=e(f),G=r(f);return this._t(1,0,0,0,0,y,-G,0,0,G,y,0,0,0,0,1)}function x(f){if(f===0)return this;var y=e(f),G=r(f);return this._t(y,0,G,0,0,1,0,0,-G,0,y,0,0,0,0,1)}function g(f){if(f===0)return this;var y=e(f),G=r(f);return this._t(y,-G,0,0,G,y,0,0,0,0,1,0,0,0,0,1)}function k(f,y){return this._t(1,y,f,1,0,0)}function R(f,y){return this.shear(s(f),s(y))}function H(f,y){var G=e(y),F=r(y);return this._t(G,F,0,0,-F,G,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,s(f),1,0,0,0,0,1,0,0,0,0,1)._t(G,-F,0,0,F,G,0,0,0,0,1,0,0,0,0,1)}function T(f,y,G){return!G&&G!==0&&(G=1),f===1&&y===1&&G===1?this:this._t(f,0,0,0,0,y,0,0,0,0,G,0,0,0,0,1)}function M(f,y,G,F,nt,ft,Et,Lt,Rt,Jt,Le,wr,Re,de,Ue,Dt){return this.props[0]=f,this.props[1]=y,this.props[2]=G,this.props[3]=F,this.props[4]=nt,this.props[5]=ft,this.props[6]=Et,this.props[7]=Lt,this.props[8]=Rt,this.props[9]=Jt,this.props[10]=Le,this.props[11]=wr,this.props[12]=Re,this.props[13]=de,this.props[14]=Ue,this.props[15]=Dt,this}function D(f,y,G){return G=G||0,f!==0||y!==0||G!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,f,y,G,1):this}function O(f,y,G,F,nt,ft,Et,Lt,Rt,Jt,Le,wr,Re,de,Ue,Dt){var ht=this.props;if(f===1&&y===0&&G===0&&F===0&&nt===0&&ft===1&&Et===0&&Lt===0&&Rt===0&&Jt===0&&Le===1&&wr===0)return ht[12]=ht[12]*f+ht[15]*Re,ht[13]=ht[13]*ft+ht[15]*de,ht[14]=ht[14]*Le+ht[15]*Ue,ht[15]*=Dt,this._identityCalculated=!1,this;var qr=ht[0],Si=ht[1],Kr=ht[2],Nr=ht[3],Xr=ht[4],Zr=ht[5],Me=ht[6],_i=ht[7],Ii=ht[8],br=ht[9],Ci=ht[10],yr=ht[11],io=ht[12],wn=ht[13],Nn=ht[14],Ln=ht[15];return ht[0]=qr*f+Si*nt+Kr*Rt+Nr*Re,ht[1]=qr*y+Si*ft+Kr*Jt+Nr*de,ht[2]=qr*G+Si*Et+Kr*Le+Nr*Ue,ht[3]=qr*F+Si*Lt+Kr*wr+Nr*Dt,ht[4]=Xr*f+Zr*nt+Me*Rt+_i*Re,ht[5]=Xr*y+Zr*ft+Me*Jt+_i*de,ht[6]=Xr*G+Zr*Et+Me*Le+_i*Ue,ht[7]=Xr*F+Zr*Lt+Me*wr+_i*Dt,ht[8]=Ii*f+br*nt+Ci*Rt+yr*Re,ht[9]=Ii*y+br*ft+Ci*Jt+yr*de,ht[10]=Ii*G+br*Et+Ci*Le+yr*Ue,ht[11]=Ii*F+br*Lt+Ci*wr+yr*Dt,ht[12]=io*f+wn*nt+Nn*Rt+Ln*Re,ht[13]=io*y+wn*ft+Nn*Jt+Ln*de,ht[14]=io*G+wn*Et+Nn*Le+Ln*Ue,ht[15]=io*F+wn*Lt+Nn*wr+Ln*Dt,this._identityCalculated=!1,this}function V(f){var y=f.props;return this.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15])}function N(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function I(f){for(var y=0;y<16;){if(f.props[y]!==this.props[y])return!1;y+=1}return!0}function E(f){var y;for(y=0;y<16;y+=1)f.props[y]=this.props[y];return f}function A(f){var y;for(y=0;y<16;y+=1)this.props[y]=f[y]}function w(f,y,G){return{x:f*this.props[0]+y*this.props[4]+G*this.props[8]+this.props[12],y:f*this.props[1]+y*this.props[5]+G*this.props[9]+this.props[13],z:f*this.props[2]+y*this.props[6]+G*this.props[10]+this.props[14]}}function $(f,y,G){return f*this.props[0]+y*this.props[4]+G*this.props[8]+this.props[12]}function U(f,y,G){return f*this.props[1]+y*this.props[5]+G*this.props[9]+this.props[13]}function Y(f,y,G){return f*this.props[2]+y*this.props[6]+G*this.props[10]+this.props[14]}function J(){var f=this.props[0]*this.props[5]-this.props[1]*this.props[4],y=this.props[5]/f,G=-this.props[1]/f,F=-this.props[4]/f,nt=this.props[0]/f,ft=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/f,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/f,Lt=new fe;return Lt.props[0]=y,Lt.props[1]=G,Lt.props[4]=F,Lt.props[5]=nt,Lt.props[12]=ft,Lt.props[13]=Et,Lt}function yt(f){var y=this.getInverseMatrix();return y.applyToPointArray(f[0],f[1],f[2]||0)}function pt(f){var y,G=f.length,F=[];for(y=0;y<G;y+=1)F[y]=yt(f[y]);return F}function ot(f,y,G){var F=X("float32",6);if(this.isIdentity())F[0]=f[0],F[1]=f[1],F[2]=y[0],F[3]=y[1],F[4]=G[0],F[5]=G[1];else{var nt=this.props[0],ft=this.props[1],Et=this.props[4],Lt=this.props[5],Rt=this.props[12],Jt=this.props[13];F[0]=f[0]*nt+f[1]*Et+Rt,F[1]=f[0]*ft+f[1]*Lt+Jt,F[2]=y[0]*nt+y[1]*Et+Rt,F[3]=y[0]*ft+y[1]*Lt+Jt,F[4]=G[0]*nt+G[1]*Et+Rt,F[5]=G[0]*ft+G[1]*Lt+Jt}return F}function xt(f,y,G){var F;return this.isIdentity()?F=[f,y,G]:F=[f*this.props[0]+y*this.props[4]+G*this.props[8]+this.props[12],f*this.props[1]+y*this.props[5]+G*this.props[9]+this.props[13],f*this.props[2]+y*this.props[6]+G*this.props[10]+this.props[14]],F}function ct(f,y){if(this.isIdentity())return f+","+y;var G=this.props;return Math.round((f*G[0]+y*G[4]+G[12])*100)/100+","+Math.round((f*G[1]+y*G[5]+G[13])*100)/100}function Q(){for(var f=0,y=this.props,G="matrix3d(",F=1e4;f<16;)G+=l(y[f]*F)/F,G+=f===15?")":",",f+=1;return G}function S(f){var y=1e4;return f<1e-6&&f>0||f>-1e-6&&f<0?l(f*y)/y:f}function P(){var f=this.props,y=S(f[0]),G=S(f[1]),F=S(f[4]),nt=S(f[5]),ft=S(f[12]),Et=S(f[13]);return"matrix("+y+","+G+","+F+","+nt+","+ft+","+Et+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=v,this.rotateY=x,this.rotateZ=g,this.skew=R,this.skewFromAxis=H,this.shear=k,this.scale=T,this.setTransform=M,this.translate=D,this.transform=O,this.multiply=V,this.applyToPoint=w,this.applyToX=$,this.applyToY=U,this.applyToZ=Y,this.applyToPointArray=xt,this.applyToTriplePoints=ot,this.applyToPointStringified=ct,this.toCSS=Q,this.to2dCSS=P,this.clone=E,this.cloneFromProps=A,this.equals=I,this.inversePoints=pt,this.inversePoint=yt,this.getInverseMatrix=J,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function Tn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tn=function(s){return typeof s}:Tn=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Tn(e)}var Ot={},xn="__[STANDALONE]__",Tp="__[ANIMATIONDATA]__",xp="";function bb(e){m(e)}function Ap(){xn===!0?Qt.searchAnimations(Tp,xn,xp):Qt.searchAnimations()}function yb(e){eb(e)}function Eb(e){ob(e)}function Tb(e){return xn===!0&&(e.animationData=JSON.parse(Tp)),Qt.loadAnimation(e)}function xb(e){if(typeof e=="string")switch(e){case"high":un(200);break;default:case"medium":un(50);break;case"low":un(10);break}else!isNaN(e)&&e>1&&un(e);Hs()>=50?Ze(!1):Ze(!0)}function Ab(){return typeof navigator<"u"}function Sb(e,r){e==="expressions"&&ib(r)}function _b(e){switch(e){case"propertyFactory":return at;case"shapePropertyFactory":return En;case"matrix":return fe;default:return null}}Ot.play=Qt.play,Ot.pause=Qt.pause,Ot.setLocationHref=bb,Ot.togglePause=Qt.togglePause,Ot.setSpeed=Qt.setSpeed,Ot.setDirection=Qt.setDirection,Ot.stop=Qt.stop,Ot.searchAnimations=Ap,Ot.registerAnimation=Qt.registerAnimation,Ot.loadAnimation=Tb,Ot.setSubframeRendering=yb,Ot.resize=Qt.resize,Ot.goToAndStop=Qt.goToAndStop,Ot.destroy=Qt.destroy,Ot.setQuality=xb,Ot.inBrowser=Ab,Ot.installPlugin=Sb,Ot.freeze=Qt.freeze,Ot.unfreeze=Qt.unfreeze,Ot.setVolume=Qt.setVolume,Ot.mute=Qt.mute,Ot.unmute=Qt.unmute,Ot.getRegisteredAnimations=Qt.getRegisteredAnimations,Ot.useWebWorker=a,Ot.setIDPrefix=Eb,Ot.__getFactory=_b,Ot.version="5.12.2";function Ib(){document.readyState==="complete"&&(clearInterval(wb),Ap())}function Cb(e){for(var r=Sp.split("&"),s=0;s<r.length;s+=1){var l=r[s].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var Sp="";if(xn){var _p=document.getElementsByTagName("script"),kb=_p.length-1,Ip=_p[kb]||{src:""};Sp=Ip.src?Ip.src.replace(/^[^\?]+\??/,""):"",xp=Cb("renderer")}var wb=setInterval(Ib,100);try{!((typeof xa>"u"?"undefined":Tn(xa))==="object"&&typeof al<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ot)}catch{}var bi=function(){var e={},r={};e.registerModifier=s,e.getModifier=l;function s(h,c){r[h]||(r[h]=c)}function l(h,c,v){return new r[h](c,v)}return e}();function er(){}er.prototype.initModifierProperties=function(){},er.prototype.addShapeToModifier=function(){},er.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:Ho.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},er.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},er.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([le],er);function gr(){}L([er],gr),gr.prototype.initModifierProperties=function(e,r){this.s=at.getProp(e,r.s,0,.01,this),this.e=at.getProp(e,r.e,0,.01,this),this.o=at.getProp(e,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},gr.prototype.addShapeToModifier=function(e){e.pathsData=[]},gr.prototype.calculateShapeEdges=function(e,r,s,l,h){var c=[];r<=1?c.push({s:e,e:r}):e>=1?c.push({s:e-1,e:r-1}):(c.push({s:e,e:1}),c.push({s:0,e:r-1}));var v=[],x,g=c.length,k;for(x=0;x<g;x+=1)if(k=c[x],!(k.e*h<l||k.s*h>l+s)){var R,H;k.s*h<=l?R=0:R=(k.s*h-l)/s,k.e*h>=l+s?H=1:H=(k.e*h-l)/s,v.push([R,H])}return v.length||v.push([0,0]),v},gr.prototype.releasePathsData=function(e){var r,s=e.length;for(r=0;r<s;r+=1)vp.release(e[r]);return e.length=0,e},gr.prototype.processShapes=function(e){var r,s;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?r=1+l:this.s.v<0?r=0+l:r=this.s.v+l,this.e.v>1?s=1+l:this.e.v<0?s=0+l:s=this.e.v+l,r>s){var h=r;r=s,s=h}r=Math.round(r*1e4)*1e-4,s=Math.round(s*1e4)*1e-4,this.sValue=r,this.eValue=s}else r=this.sValue,s=this.eValue;var c,v,x=this.shapes.length,g,k,R,H,T,M=0;if(s===r)for(v=0;v<x;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(s===1&&r===0||s===0&&r===1){if(this._mdf)for(v=0;v<x;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var D=[],O,V;for(v=0;v<x;v+=1)if(O=this.shapes[v],!O.shape._mdf&&!this._mdf&&!e&&this.m!==2)O.shape.paths=O.localShapeCollection;else{if(c=O.shape.paths,k=c._length,T=0,!O.shape._mdf&&O.pathsData.length)T=O.totalShapeLength;else{for(R=this.releasePathsData(O.pathsData),g=0;g<k;g+=1)H=Cr.getSegmentsLength(c.shapes[g]),R.push(H),T+=H.totalLength;O.totalShapeLength=T,O.pathsData=R}M+=T,O.shape._mdf=!0}var N=r,I=s,E=0,A;for(v=x-1;v>=0;v-=1)if(O=this.shapes[v],O.shape._mdf){for(V=O.localShapeCollection,V.releaseShapes(),this.m===2&&x>1?(A=this.calculateShapeEdges(r,s,O.totalShapeLength,E,M),E+=O.totalShapeLength):A=[[N,I]],k=A.length,g=0;g<k;g+=1){N=A[g][0],I=A[g][1],D.length=0,I<=1?D.push({s:O.totalShapeLength*N,e:O.totalShapeLength*I}):N>=1?D.push({s:O.totalShapeLength*(N-1),e:O.totalShapeLength*(I-1)}):(D.push({s:O.totalShapeLength*N,e:O.totalShapeLength}),D.push({s:0,e:O.totalShapeLength*(I-1)}));var w=this.addShapes(O,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var $=O.shape.paths.shapes[O.shape.paths._length-1];if($.c){var U=w.pop();this.addPaths(w,V),w=this.addShapes(O,D[1],U)}else this.addPaths(w,V),w=this.addShapes(O,D[1])}this.addPaths(w,V)}}O.shape.paths=V}}},gr.prototype.addPaths=function(e,r){var s,l=e.length;for(s=0;s<l;s+=1)r.addShape(e[s])},gr.prototype.addSegment=function(e,r,s,l,h,c,v){h.setXYAt(r[0],r[1],"o",c),h.setXYAt(s[0],s[1],"i",c+1),v&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},gr.prototype.addSegmentFromArray=function(e,r,s,l){r.setXYAt(e[1],e[5],"o",s),r.setXYAt(e[2],e[6],"i",s+1),l&&r.setXYAt(e[0],e[4],"v",s),r.setXYAt(e[3],e[7],"v",s+1)},gr.prototype.addShapes=function(e,r,s){var l=e.pathsData,h=e.shape.paths.shapes,c,v=e.shape.paths._length,x,g,k=0,R,H,T,M,D=[],O,V=!0;for(s?(H=s._length,O=s._length):(s=ue.newElement(),H=0,O=0),D.push(s),c=0;c<v;c+=1){for(T=l[c].lengths,s.c=h[c].c,g=h[c].c?T.length:T.length+1,x=1;x<g;x+=1)if(R=T[x-1],k+R.addedLength<r.s)k+=R.addedLength,s.c=!1;else if(k>r.e){s.c=!1;break}else r.s<=k&&r.e>=k+R.addedLength?(this.addSegment(h[c].v[x-1],h[c].o[x-1],h[c].i[x],h[c].v[x],s,H,V),V=!1):(M=Cr.getNewSegment(h[c].v[x-1],h[c].v[x],h[c].o[x-1],h[c].i[x],(r.s-k)/R.addedLength,(r.e-k)/R.addedLength,T[x-1]),this.addSegmentFromArray(M,s,H,V),V=!1,s.c=!1),k+=R.addedLength,H+=1;if(h[c].c&&T.length){if(R=T[x-1],k<=r.e){var N=T[x-1].addedLength;r.s<=k&&r.e>=k+N?(this.addSegment(h[c].v[x-1],h[c].o[x-1],h[c].i[0],h[c].v[0],s,H,V),V=!1):(M=Cr.getNewSegment(h[c].v[x-1],h[c].v[0],h[c].o[x-1],h[c].i[0],(r.s-k)/N,(r.e-k)/N,T[x-1]),this.addSegmentFromArray(M,s,H,V),V=!1,s.c=!1)}else s.c=!1;k+=R.addedLength,H+=1}if(s._length&&(s.setXYAt(s.v[O][0],s.v[O][1],"i",O),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),k>r.e)break;c<v-1&&(s=ue.newElement(),V=!0,D.push(s),H=0)}return D};function qs(){}L([er],qs),qs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=at.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},qs.prototype.processPath=function(e,r){var s=r/100,l=[0,0],h=e._length,c=0;for(c=0;c<h;c+=1)l[0]+=e.v[c][0],l[1]+=e.v[c][1];l[0]/=h,l[1]/=h;var v=ue.newElement();v.c=e.c;var x,g,k,R,H,T;for(c=0;c<h;c+=1)x=e.v[c][0]+(l[0]-e.v[c][0])*s,g=e.v[c][1]+(l[1]-e.v[c][1])*s,k=e.o[c][0]+(l[0]-e.o[c][0])*-s,R=e.o[c][1]+(l[1]-e.o[c][1])*-s,H=e.i[c][0]+(l[0]-e.i[c][0])*-s,T=e.i[c][1]+(l[1]-e.i[c][1])*-s,v.setTripleAt(x,g,k,R,H,T,c);return v},qs.prototype.processShapes=function(e){var r,s,l=this.shapes.length,h,c,v=this.amount.v;if(v!==0){var x,g;for(s=0;s<l;s+=1){if(x=this.shapes[s],g=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(r[h],v));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Cd=function(){var e=[0,0];function r(g){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.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?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function s(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){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 R,H;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?(R=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),H=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?(R=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),H=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(R=this.p.pv,H=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){R=[],H=[];var T=this.px,M=this.py;T._caching.lastFrame+T.offsetTime<=T.keyframes[0].t?(R[0]=T.getValueAtTime((T.keyframes[0].t+.01)/k,0),R[1]=M.getValueAtTime((M.keyframes[0].t+.01)/k,0),H[0]=T.getValueAtTime(T.keyframes[0].t/k,0),H[1]=M.getValueAtTime(M.keyframes[0].t/k,0)):T._caching.lastFrame+T.offsetTime>=T.keyframes[T.keyframes.length-1].t?(R[0]=T.getValueAtTime(T.keyframes[T.keyframes.length-1].t/k,0),R[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/k,0),H[0]=T.getValueAtTime((T.keyframes[T.keyframes.length-1].t-.01)/k,0),H[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/k,0)):(R=[T.pv,M.pv],H[0]=T.getValueAtTime((T._caching.lastFrame+T.offsetTime-.01)/k,T.offsetTime),H[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/k,M.offsetTime))}else H=e,R=H;this.v.rotate(-Math.atan2(R[1]-H[1],R[0]-H[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function l(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function h(){}function c(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(g,k,R){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=k,this.v=new fe,this.pre=new fe,this.appliedTransformations=0,this.initDynamicPropertyContainer(R||g),k.p&&k.p.s?(this.px=at.getProp(g,k.p.x,0,0,this),this.py=at.getProp(g,k.p.y,0,0,this),k.p.z&&(this.pz=at.getProp(g,k.p.z,0,0,this))):this.p=at.getProp(g,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=at.getProp(g,k.rx,0,Ct,this),this.ry=at.getProp(g,k.ry,0,Ct,this),this.rz=at.getProp(g,k.rz,0,Ct,this),k.or.k[0].ti){var H,T=k.or.k.length;for(H=0;H<T;H+=1)k.or.k[H].to=null,k.or.k[H].ti=null}this.or=at.getProp(g,k.or,1,Ct,this),this.or.sh=!0}else this.r=at.getProp(g,k.r||{k:0},0,Ct,this);k.sk&&(this.sk=at.getProp(g,k.sk,0,Ct,this),this.sa=at.getProp(g,k.sa,0,Ct,this)),this.a=at.getProp(g,k.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(g,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=at.getProp(g,k.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}v.prototype={applyToMatrix:r,getValue:s,precalculateMatrix:l,autoOrient:h},L([le],v),v.prototype.addDynamicProperty=c,v.prototype._addDynamicProperty=le.prototype.addDynamicProperty;function x(g,k,R){return new v(g,k,R)}return{getTransformProperty:x}}();function kr(){}L([er],kr),kr.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=at.getProp(e,r.c,0,null,this),this.o=at.getProp(e,r.o,0,null,this),this.tr=Cd.getTransformProperty(e,r.tr,this),this.so=at.getProp(e,r.tr.so,0,.01,this),this.eo=at.getProp(e,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new fe,this.rMatrix=new fe,this.sMatrix=new fe,this.tMatrix=new fe,this.matrix=new fe},kr.prototype.applyTransforms=function(e,r,s,l,h,c){var v=c?-1:1,x=l.s.v[0]+(1-l.s.v[0])*(1-h),g=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*v*h,l.p.v[1]*v*h,l.p.v[2]),r.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),r.rotate(-l.r.v*v*h),r.translate(l.a.v[0],l.a.v[1],l.a.v[2]),s.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),s.scale(c?1/x:x,c?1/g:g),s.translate(l.a.v[0],l.a.v[1],l.a.v[2])},kr.prototype.init=function(e,r,s,l){for(this.elem=e,this.arr=r,this.pos=s,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[s]);s>0;)s-=1,this._elements.unshift(r[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},kr.prototype.resetElements=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},kr.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},kr.prototype.changeGroupRender=function(e,r){var s,l=e.length;for(s=0;s<l;s+=1)e[s]._render=r,e[s].ty==="gr"&&this.changeGroupRender(e[s].it,r)},kr.prototype.processShapes=function(e){var r,s,l,h,c,v=!1;if(this._mdf||e){var x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.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,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),v=!0}c=0;var k;for(l=0;l<=this._groups.length-1;l+=1){if(k=c<x,this._groups[l]._render=k,this.changeGroupRender(this._groups[l].it,k),!k){var R=this.elemsData[l].it,H=R[R.length-1];H.transform.op.v!==0?(H.transform.op._mdf=!0,H.transform.op.v=0):H.transform.op._mdf=!1}c+=1}this._currentCopies=x;var T=this.o.v,M=T%1,D=T>0?Math.floor(T):Math.ceil(T),O=this.pMatrix.props,V=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var I=0;if(T>0){for(;I<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),I+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),I+=M)}else if(T<0){for(;I>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),I-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),I-=M)}l=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,c=this._currentCopies;for(var E,A;c;){if(r=this.elemsData[l].it,s=r[r.length-1].transform.mProps.v.props,A=s.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)*(l/(this._currentCopies-1)),I!==0){for((l!==0&&h===1||l!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(V[0],V[1],V[2],V[3],V[4],V[5],V[6],V[7],V[8],V[9],V[10],V[11],V[12],V[13],V[14],V[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),this.matrix.transform(O[0],O[1],O[2],O[3],O[4],O[5],O[6],O[7],O[8],O[9],O[10],O[11],O[12],O[13],O[14],O[15]),E=0;E<A;E+=1)s[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<A;E+=1)s[E]=this.matrix.props[E];I+=1,c-=1,l+=h}}else for(c=this._currentCopies,l=0,h=1;c;)r=this.elemsData[l].it,s=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,l+=h;return v},kr.prototype.addShape=function(){};function Ks(){}L([er],Ks),Ks.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=at.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ks.prototype.processPath=function(e,r){var s=ue.newElement();s.c=e.c;var l,h=e._length,c,v,x,g,k,R,H=0,T,M,D,O,V,N;for(l=0;l<h;l+=1)c=e.v[l],x=e.o[l],v=e.i[l],c[0]===x[0]&&c[1]===x[1]&&c[0]===v[0]&&c[1]===v[1]?(l===0||l===h-1)&&!e.c?(s.setTripleAt(c[0],c[1],x[0],x[1],v[0],v[1],H),H+=1):(l===0?g=e.v[h-1]:g=e.v[l-1],k=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),R=k?Math.min(k/2,r)/k:0,V=c[0]+(g[0]-c[0])*R,T=V,N=c[1]-(c[1]-g[1])*R,M=N,D=T-(T-c[0])*me,O=M-(M-c[1])*me,s.setTripleAt(T,M,D,O,V,N,H),H+=1,l===h-1?g=e.v[0]:g=e.v[l+1],k=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),R=k?Math.min(k/2,r)/k:0,D=c[0]+(g[0]-c[0])*R,T=D,O=c[1]+(g[1]-c[1])*R,M=O,V=T-(T-c[0])*me,N=M-(M-c[1])*me,s.setTripleAt(T,M,D,O,V,N,H),H+=1):(s.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],H),H+=1);return s},Ks.prototype.processShapes=function(e){var r,s,l=this.shapes.length,h,c,v=this.rd.v;if(v!==0){var x,g;for(s=0;s<l;s+=1){if(x=this.shapes[s],g=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(r[h],v));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function An(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function kd(e){return Math.abs(e)<=1e-5}function Cp(e,r,s){return e*(1-s)+r*s}function yi(e,r,s){return[Cp(e[0],r[0],s),Cp(e[1],r[1],s)]}function Nb(e,r,s){if(e===0)return[];var l=r*r-4*e*s;if(l<0)return[];var h=-r/(2*e);if(l===0)return[h];var c=Math.sqrt(l)/(2*e);return[h-c,h+c]}function kp(e,r,s,l){return[-e+3*r-3*s+l,3*e-6*r+3*s,-3*e+3*r,e]}function wp(e){return new Wt(e,e,e,e,!1)}function Wt(e,r,s,l,h){h&&Yo(e,r)&&(r=yi(e,l,1/3)),h&&Yo(s,l)&&(s=yi(e,l,2/3));var c=kp(e[0],r[0],s[0],l[0]),v=kp(e[1],r[1],s[1],l[1]);this.a=[c[0],v[0]],this.b=[c[1],v[1]],this.c=[c[2],v[2]],this.d=[c[3],v[3]],this.points=[e,r,s,l]}Wt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Wt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Wt.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},Wt.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},Wt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(kd(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,s=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(s<0)return[];var l=Math.sqrt(s);return kd(l)?l>0&&l<1?[r]:[]:[r-l,r+l].filter(function(h){return h>0&&h<1})},Wt.prototype.split=function(e){if(e<=0)return[wp(this.points[0]),this];if(e>=1)return[this,wp(this.points[this.points.length-1])];var r=yi(this.points[0],this.points[1],e),s=yi(this.points[1],this.points[2],e),l=yi(this.points[2],this.points[3],e),h=yi(r,s,e),c=yi(s,l,e),v=yi(h,c,e);return[new Wt(this.points[0],r,h,v,!0),new Wt(v,c,l,this.points[3],!0)]};function Np(e,r){var s=e.points[0][r],l=e.points[e.points.length-1][r];if(s>l){var h=l;l=s,s=h}for(var c=Nb(3*e.a[r],2*e.b[r],e.c[r]),v=0;v<c.length;v+=1)if(c[v]>0&&c[v]<1){var x=e.point(c[v])[r];x<s?s=x:x>l&&(l=x)}return{min:s,max:l}}Wt.prototype.bounds=function(){return{x:Np(this,0),y:Np(this,1)}},Wt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Sn(e,r,s){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(r+s)/2,t1:r,t2:s}}function Lp(e){var r=e.bez.split(.5);return[Sn(r[0],e.t1,e.t),Sn(r[1],e.t,e.t2)]}function Lb(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function Xs(e,r,s,l,h,c){if(Lb(e,r)){if(s>=c||e.width<=l&&e.height<=l&&r.width<=l&&r.height<=l){h.push([e.t,r.t]);return}var v=Lp(e),x=Lp(r);Xs(v[0],x[0],s+1,l,h,c),Xs(v[0],x[1],s+1,l,h,c),Xs(v[1],x[0],s+1,l,h,c),Xs(v[1],x[1],s+1,l,h,c)}}Wt.prototype.intersections=function(e,r,s){r===void 0&&(r=2),s===void 0&&(s=7);var l=[];return Xs(Sn(this,0,1),Sn(e,0,1),0,r,l,s),l},Wt.shapeSegment=function(e,r){var s=(r+1)%e.length();return new Wt(e.v[r],e.o[r],e.i[s],e.v[s],!0)},Wt.shapeSegmentInverted=function(e,r){var s=(r+1)%e.length();return new Wt(e.v[s],e.i[s],e.o[r],e.v[r],!0)};function wd(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function _n(e,r,s,l){var h=[e[0],e[1],1],c=[r[0],r[1],1],v=[s[0],s[1],1],x=[l[0],l[1],1],g=wd(wd(h,c),wd(v,x));return kd(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function Go(e,r,s){return[e[0]+Math.cos(r)*s,e[1]-Math.sin(r)*s]}function Nd(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function Yo(e,r){return An(e[0],r[0])&&An(e[1],r[1])}function Zs(){}L([er],Zs),Zs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=at.getProp(e,r.s,0,null,this),this.frequency=at.getProp(e,r.r,0,null,this),this.pointsType=at.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Rp(e,r,s,l,h,c,v){var x=s-Math.PI/2,g=s+Math.PI/2,k=r[0]+Math.cos(s)*l*h,R=r[1]-Math.sin(s)*l*h;e.setTripleAt(k,R,k+Math.cos(x)*c,R-Math.sin(x)*c,k+Math.cos(g)*v,R-Math.sin(g)*v,e.length())}function Rb(e,r){var s=[r[0]-e[0],r[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*s[0]-Math.sin(l)*s[1],Math.sin(l)*s[0]+Math.cos(l)*s[1]];return h}function Mb(e,r){var s=r===0?e.length()-1:r-1,l=(r+1)%e.length(),h=e.v[s],c=e.v[l],v=Rb(h,c);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function Mp(e,r,s,l,h,c,v){var x=Mb(r,s),g=r.v[s%r._length],k=r.v[s===0?r._length-1:s-1],R=r.v[(s+1)%r._length],H=c===2?Math.sqrt(Math.pow(g[0]-k[0],2)+Math.pow(g[1]-k[1],2)):0,T=c===2?Math.sqrt(Math.pow(g[0]-R[0],2)+Math.pow(g[1]-R[1],2)):0;Rp(e,r.v[s%r._length],x,v,l,T/((h+1)*2),H/((h+1)*2),c)}function Ob(e,r,s,l,h,c){for(var v=0;v<l;v+=1){var x=(v+1)/(l+1),g=h===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(x),R=r.point(x);Rp(e,R,k,c,s,g/((l+1)*2),g/((l+1)*2),h),c=-c}return c}Zs.prototype.processPath=function(e,r,s,l){var h=e._length,c=ue.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var v=-1,x=Wt.shapeSegment(e,0);Mp(c,e,0,r,s,l,v);for(var g=0;g<h;g+=1)v=Ob(c,x,r,s,l,-v),g===h-1&&!e.c?x=null:x=Wt.shapeSegment(e,(g+1)%h),Mp(c,e,g+1,r,s,l,v);return c},Zs.prototype.processShapes=function(e){var r,s,l=this.shapes.length,h,c,v=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==0){var k,R;for(s=0;s<l;s+=1){if(k=this.shapes[s],R=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(R.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,h=0;h<c;h+=1)R.addShape(this.processPath(r[h],v,x,g));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ld(e,r,s){var l=Math.atan2(r[0]-e[0],r[1]-e[1]);return[Go(e,l,s),Go(r,l,s)]}function Wo(e,r){var s,l,h,c,v,x,g;g=Ld(e.points[0],e.points[1],r),s=g[0],l=g[1],g=Ld(e.points[1],e.points[2],r),h=g[0],c=g[1],g=Ld(e.points[2],e.points[3],r),v=g[0],x=g[1];var k=_n(s,l,h,c);k===null&&(k=l);var R=_n(v,x,h,c);return R===null&&(R=v),new Wt(s,k,R,x)}function Op(e,r,s,l,h){var c=r.points[3],v=s.points[0];if(l===3||Yo(c,v))return c;if(l===2){var x=-r.tangentAngle(1),g=-s.tangentAngle(0)+Math.PI,k=_n(c,Go(c,x+Math.PI/2,100),v,Go(v,x+Math.PI/2,100)),R=k?Nd(k,c):Nd(c,v)/2,H=Go(c,x,2*R*me);return e.setXYAt(H[0],H[1],"o",e.length()-1),H=Go(v,g,2*R*me),e.setTripleAt(v[0],v[1],v[0],v[1],H[0],H[1],e.length()),v}var T=Yo(c,r.points[2])?r.points[0]:r.points[2],M=Yo(v,s.points[1])?s.points[3]:s.points[1],D=_n(T,c,v,M);return D&&Nd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function Pp(e,r){var s=e.intersections(r);return s.length&&An(s[0][0],1)&&s.shift(),s.length?s[0]:null}function Dp(e,r){var s=e.slice(),l=r.slice(),h=Pp(e[e.length-1],r[0]);return h&&(s[e.length-1]=e[e.length-1].split(h[0])[0],l[0]=r[0].split(h[1])[1]),e.length>1&&r.length>1&&(h=Pp(e[0],r[r.length-1]),h)?[[e[0].split(h[0])[0]],[r[r.length-1].split(h[1])[1]]]:[s,l]}function Pb(e){for(var r,s=1;s<e.length;s+=1)r=Dp(e[s-1],e[s]),e[s-1]=r[0],e[s]=r[1];return e.length>1&&(r=Dp(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function $p(e,r){var s=e.inflectionPoints(),l,h,c,v;if(s.length===0)return[Wo(e,r)];if(s.length===1||An(s[1],1))return c=e.split(s[0]),l=c[0],h=c[1],[Wo(l,r),Wo(h,r)];c=e.split(s[0]),l=c[0];var x=(s[1]-s[0])/(1-s[0]);return c=c[1].split(x),v=c[0],h=c[1],[Wo(l,r),Wo(v,r),Wo(h,r)]}function Qs(){}L([er],Qs),Qs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=at.getProp(e,r.a,0,null,this),this.miterLimit=at.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Qs.prototype.processPath=function(e,r,s,l){var h=ue.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var v,x,g,k=[];for(v=0;v<c;v+=1)g=Wt.shapeSegment(e,v),k.push($p(g,r));if(!e.c)for(v=c-1;v>=0;v-=1)g=Wt.shapeSegmentInverted(e,v),k.push($p(g,r));k=Pb(k);var R=null,H=null;for(v=0;v<k.length;v+=1){var T=k[v];for(H&&(R=Op(h,H,T[0],s,l)),H=T[T.length-1],x=0;x<T.length;x+=1)g=T[x],R&&Yo(g.points[0],R)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],h.length()),h.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],h.length()),R=g.points[3]}return k.length&&Op(h,H,k[0][0],s,l),h},Qs.prototype.processShapes=function(e){var r,s,l=this.shapes.length,h,c,v=this.amount.v,x=this.miterLimit.v,g=this.lineJoin;if(v!==0){var k,R;for(s=0;s<l;s+=1){if(k=this.shapes[s],R=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(R.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,h=0;h<c;h+=1)R.addShape(this.processPath(r[h],v,g,x));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Fp(e){for(var r=e.fStyle?e.fStyle.split(" "):[],s="normal",l="normal",h=r.length,c,v=0;v<h;v+=1)switch(c=r[v].toLowerCase(),c){case"italic":l="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200";break;default:break}return{style:l,weight:e.fWeight||s}}var to=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},s=[];s=s.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var l=127988,h=917631,c=917601,v=917626,x=65039,g=8205,k=127462,R=127487,H=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function T(S){var P=S.split(","),f,y=P.length,G=[];for(f=0;f<y;f+=1)P[f]!=="sans-serif"&&P[f]!=="monospace"&&G.push(P[f]);return G.join(",")}function M(S,P){var f=C("span");f.setAttribute("aria-hidden",!0),f.style.fontFamily=P;var y=C("span");y.innerText="giItT1WQy@!-/#",f.style.position="absolute",f.style.left="-10000px",f.style.top="-10000px",f.style.fontSize="300px",f.style.fontVariant="normal",f.style.fontStyle="normal",f.style.fontWeight="normal",f.style.letterSpacing="0",f.appendChild(y),document.body.appendChild(f);var G=y.offsetWidth;return y.style.fontFamily=T(S)+", "+P,{node:y,w:G,parent:f}}function D(){var S,P=this.fonts.length,f,y,G=P;for(S=0;S<P;S+=1)this.fonts[S].loaded?G-=1:this.fonts[S].fOrigin==="n"||this.fonts[S].origin===0?this.fonts[S].loaded=!0:(f=this.fonts[S].monoCase.node,y=this.fonts[S].monoCase.w,f.offsetWidth!==y?(G-=1,this.fonts[S].loaded=!0):(f=this.fonts[S].sansCase.node,y=this.fonts[S].sansCase.w,f.offsetWidth!==y&&(G-=1,this.fonts[S].loaded=!0)),this.fonts[S].loaded&&(this.fonts[S].sansCase.parent.parentNode.removeChild(this.fonts[S].sansCase.parent),this.fonts[S].monoCase.parent.parentNode.removeChild(this.fonts[S].monoCase.parent)));G!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function O(S,P){var f=document.body&&P?"svg":"canvas",y,G=Fp(S);if(f==="svg"){var F=Tt("text");F.style.fontSize="100px",F.setAttribute("font-family",S.fFamily),F.setAttribute("font-style",G.style),F.setAttribute("font-weight",G.weight),F.textContent="1",S.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",S.fClass)):F.style.fontFamily=S.fFamily,P.appendChild(F),y=F}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=G.style+" "+G.weight+" 100px "+S.fFamily,y=nt}function ft(Et){return f==="svg"?(y.textContent=Et,y.getComputedTextLength()):y.measureText(Et).width}return{measureText:ft}}function V(S,P){if(!S){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=S.list;return}if(!document.body){this.isLoaded=!0,S.list.forEach(function(Le){Le.helper=O(Le),Le.cache={}}),this.fonts=S.list;return}var f=S.list,y,G=f.length,F=G;for(y=0;y<G;y+=1){var nt=!0,ft,Et;if(f[y].loaded=!1,f[y].monoCase=M(f[y].fFamily,"monospace"),f[y].sansCase=M(f[y].fFamily,"sans-serif"),!f[y].fPath)f[y].loaded=!0,F-=1;else if(f[y].fOrigin==="p"||f[y].origin===3){if(ft=document.querySelectorAll('style[f-forigin="p"][f-family="'+f[y].fFamily+'"], style[f-origin="3"][f-family="'+f[y].fFamily+'"]'),ft.length>0&&(nt=!1),nt){var Lt=C("style");Lt.setAttribute("f-forigin",f[y].fOrigin),Lt.setAttribute("f-origin",f[y].origin),Lt.setAttribute("f-family",f[y].fFamily),Lt.type="text/css",Lt.innerText="@font-face {font-family: "+f[y].fFamily+"; font-style: normal; src: url('"+f[y].fPath+"');}",P.appendChild(Lt)}}else if(f[y].fOrigin==="g"||f[y].origin===1){for(ft=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<ft.length;Et+=1)ft[Et].href.indexOf(f[y].fPath)!==-1&&(nt=!1);if(nt){var Rt=C("link");Rt.setAttribute("f-forigin",f[y].fOrigin),Rt.setAttribute("f-origin",f[y].origin),Rt.type="text/css",Rt.rel="stylesheet",Rt.href=f[y].fPath,document.body.appendChild(Rt)}}else if(f[y].fOrigin==="t"||f[y].origin===2){for(ft=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<ft.length;Et+=1)f[y].fPath===ft[Et].src&&(nt=!1);if(nt){var Jt=C("link");Jt.setAttribute("f-forigin",f[y].fOrigin),Jt.setAttribute("f-origin",f[y].origin),Jt.setAttribute("rel","stylesheet"),Jt.setAttribute("href",f[y].fPath),P.appendChild(Jt)}}f[y].helper=O(f[y],P),f[y].cache={},this.fonts.push(f[y])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function N(S){if(S){this.chars||(this.chars=[]);var P,f=S.length,y,G=this.chars.length,F;for(P=0;P<f;P+=1){for(y=0,F=!1;y<G;)this.chars[y].style===S[P].style&&this.chars[y].fFamily===S[P].fFamily&&this.chars[y].ch===S[P].ch&&(F=!0),y+=1;F||(this.chars.push(S[P]),G+=1)}}}function I(S,P,f){for(var y=0,G=this.chars.length;y<G;){if(this.chars[y].ch===S&&this.chars[y].style===P&&this.chars[y].fFamily===f)return this.chars[y];y+=1}return(typeof S=="string"&&S.charCodeAt(0)!==13||!S)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",S,P,f)),r}function E(S,P,f){var y=this.getFontByName(P),G=S;if(!y.cache[G]){var F=y.helper;if(S===" "){var nt=F.measureText("|"+S+"|"),ft=F.measureText("||");y.cache[G]=(nt-ft)/100}else y.cache[G]=F.measureText(S)/100}return y.cache[G]*f}function A(S){for(var P=0,f=this.fonts.length;P<f;){if(this.fonts[P].fName===S)return this.fonts[P];P+=1}return this.fonts[0]}function w(S){var P=0,f=S.charCodeAt(0);if(f>=55296&&f<=56319){var y=S.charCodeAt(1);y>=56320&&y<=57343&&(P=(f-55296)*1024+y-56320+65536)}return P}function $(S,P){var f=S.toString(16)+P.toString(16);return H.indexOf(f)!==-1}function U(S){return S===g}function Y(S){return S===x}function J(S){var P=w(S);return P>=k&&P<=R}function yt(S){return J(S.substr(0,2))&&J(S.substr(2,2))}function pt(S){return s.indexOf(S)!==-1}function ot(S,P){var f=w(S.substr(P,2));if(f!==l)return!1;var y=0;for(P+=2;y<5;){if(f=w(S.substr(P,2)),f<c||f>v)return!1;y+=1,P+=2}return w(S.substr(P,2))===h}function xt(){this.isLoaded=!0}var ct=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ct.isModifier=$,ct.isZeroWidthJoiner=U,ct.isFlagEmoji=yt,ct.isRegionalCode=J,ct.isCombinedCharacter=pt,ct.isRegionalFlag=ot,ct.isVariationSelector=Y,ct.BLACK_FLAG_CODE_POINT=l;var Q={addChars:N,addFonts:V,getCharData:I,getFontByName:A,measureText:E,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=Q,ct}();function Vp(e){this.animationData=e}Vp.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function Db(e){return new Vp(e)}function In(){}In.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,s=this.renderableComponents.length;for(r=0;r<s;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 Rd=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(r){return e[r]||""}}();function $b(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Fb(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Vb(e,r,s){this.p=at.getProp(r,e.v,1,0,s)}function zb(e,r,s){this.p=at.getProp(r,e.v,1,0,s)}function Bb(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Ub(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Hb(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Gb(){this.p={}}function zp(e,r){var s=e.ef||[];this.effectElements=[];var l,h=s.length,c;for(l=0;l<h;l+=1)c=new Js(s[l],r),this.effectElements.push(c)}function Js(e,r){this.init(e,r)}L([le],Js),Js.prototype.getValue=Js.prototype.iterateDynamicProperties,Js.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var s,l=this.data.ef.length,h,c=this.data.ef;for(s=0;s<l;s+=1){switch(h=null,c[s].ty){case 0:h=new $b(c[s],r,this);break;case 1:h=new Fb(c[s],r,this);break;case 2:h=new Vb(c[s],r,this);break;case 3:h=new zb(c[s],r,this);break;case 4:case 7:h=new Hb(c[s],r,this);break;case 10:h=new Bb(c[s],r,this);break;case 11:h=new Ub(c[s],r,this);break;case 5:h=new zp(c[s],r,this);break;default:h=new Gb(c[s],r,this);break}h&&this.effectElements.push(h)}};function Ei(){}Ei.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,s=this.data.masksProperties.length;r<s;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=pp();if(r){var s=r("layer"),l=r("effects"),h=r("shape"),c=r("text"),v=r("comp");this.layerInterface=s(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var x=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(x),this.data.ty===0||this.data.xt?this.compInterface=v(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=Rd(this.data.bm),s=this.baseElement||this.layerElement;s.style["mix-blend-mode"]=r},initBaseData:function(r,s,l){this.globalData=s,this.comp=l,this.data=r,this.layerId=we(),this.data.sr||(this.data.sr=1),this.effectsManager=new zp(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Ti(){}Ti.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,s){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(s||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function xi(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,s)}xi.prototype.prepareFrame=function(){},L([In,Ei,Ti],xi),xi.prototype.getBaseElement=function(){return null},xi.prototype.renderFrame=function(){},xi.prototype.destroy=function(){},xi.prototype.initExpressions=function(){var e=pp();if(e){var r=e("footage");this.layerInterface=r(this)}},xi.prototype.getFootageData=function(){return this.footageData};function Ne(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,s),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?at.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ne.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var s=this._volume*this._volumeMultiplier;this._previousVolume!==s&&(this._previousVolume=s,this.audio.volume(s))},L([In,Ei,Ti],Ne),Ne.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))},Ne.prototype.show=function(){},Ne.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ne.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ne.prototype.resume=function(){this._canPlay=!0},Ne.prototype.setRate=function(e){this.audio.rate(e)},Ne.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ne.prototype.getBaseElement=function(){return null},Ne.prototype.destroy=function(){},Ne.prototype.sourceRectAtTime=function(){},Ne.prototype.initExpressions=function(){};function ve(){}ve.prototype.checkLayers=function(e){var r,s=this.layers.length,l;for(this.completeLayers=!0,r=s-1;r>=0;r-=1)this.elements[r]||(l=this.layers[r],l.ip-l.st<=e-this.layers[r].st&&l.op-l.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ve.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},ve.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ve.prototype.createAudio=function(e){return new Ne(e,this.globalData,this)},ve.prototype.createFootage=function(e){return new xi(e,this.globalData,this)},ve.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},ve.prototype.includeLayers=function(e){this.completeLayers=!1;var r,s=e.length,l,h=this.layers.length;for(r=0;r<s;r+=1)for(l=0;l<h;){if(this.layers[l].id===e[r].id){this.layers[l]=e[r];break}l+=1}},ve.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},ve.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ve.prototype.buildElementParenting=function(e,r,s){for(var l=this.elements,h=this.layers,c=0,v=h.length;c<v;)h[c].ind==r&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(s.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,s):e.setHierarchy(s))),c+=1},ve.prototype.addPendingElement=function(e){this.pendingElements.push(e)},ve.prototype.searchExtraCompositions=function(e){var r,s=e.length;for(r=0;r<s;r+=1)if(e[r].xt){var l=this.createComp(e[r]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},ve.prototype.getElementById=function(e){var r,s=this.elements.length;for(r=0;r<s;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},ve.prototype.getElementByPath=function(e){var r=e.shift(),s;if(typeof r=="number")s=this.elements[r];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===r){s=this.elements[l];break}}return e.length===0?s:s.getElementByPath(e)},ve.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new to,this.globalData.slotManager=Db(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Yb={TRANSFORM_EFFECT:"transformEFfect"};function jo(){}jo.prototype={initTransform:function(){var r=new fe;this.finalTransform={mProp:this.data.ks?Cd.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,s=this.finalTransform.mat,l=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<h;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,s.cloneFromProps(r),l=0;l<h;l+=1)s.multiply(this.hierarchy[l].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var r=0,s=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<s;)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 l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),r=1;r<s;r+=1){var h=this.localTransforms[r].matrix;l.multiply(h)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<s;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Yb.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new fe;var s=0,l=r.length;for(s=0;s<l;s+=1)this.localTransforms.push(r[s])}}},globalToLocal:function(r){var s=[];s.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&s.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,v=s.length,x;for(c=0;c<v;c+=1)x=s[c].mat.applyToPointArray(0,0,0),r=[r[0]-x[0],r[1]-x[1],0];return r},mHelper:new fe};function eo(e,r,s){this.data=e,this.element=r,this.globalData=s,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,h,c=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(c),this.solidPath="";var v,x=this.masksProperties,g=0,k=[],R,H,T=we(),M,D,O,V,N="clipPath",I="clip-path";for(h=0;h<c;h+=1)if((x[h].mode!=="a"&&x[h].mode!=="n"||x[h].inv||x[h].o.k!==100||x[h].o.x)&&(N="mask",I="mask"),(x[h].mode==="s"||x[h].mode==="i")&&g===0?(M=Tt("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),k.push(M)):M=null,v=Tt("path"),x[h].mode==="n")this.viewData[h]={op:at.getProp(this.element,x[h].o,0,.01,this.element),prop:En.getShapeProp(this.element,x[h],3),elem:v,lastPath:""},l.appendChild(v);else{g+=1,v.setAttribute("fill",x[h].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var E;if(x[h].x.k!==0?(N="mask",I="mask",V=at.getProp(this.element,x[h].x,0,null,this.element),E=we(),D=Tt("filter"),D.setAttribute("id",E),O=Tt("feMorphology"),O.setAttribute("operator","erode"),O.setAttribute("in","SourceGraphic"),O.setAttribute("radius","0"),D.appendChild(O),l.appendChild(D),v.setAttribute("stroke",x[h].mode==="s"?"#000000":"#ffffff")):(O=null,V=null),this.storedData[h]={elem:v,x:V,expan:O,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},x[h].mode==="i"){H=k.length;var A=Tt("g");for(R=0;R<H;R+=1)A.appendChild(k[R]);var w=Tt("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",T+"_"+g),w.appendChild(v),l.appendChild(w),A.setAttribute("mask","url("+b()+"#"+T+"_"+g+")"),k.length=0,k.push(A)}else k.push(v);x[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:v,lastPath:"",op:at.getProp(this.element,x[h].o,0,.01,this.element),prop:En.getShapeProp(this.element,x[h],3),invRect:M},this.viewData[h].prop.k||this.drawPath(x[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=Tt(N),c=k.length,h=0;h<c;h+=1)this.maskElement.appendChild(k[h]);g>0&&(this.maskElement.setAttribute("id",T),this.element.maskedElement.setAttribute(I,"url("+b()+"#"+T+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}eo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},eo.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,s,l=this.masksProperties.length;for(s=0;s<l;s+=1)if((this.viewData[s].prop._mdf||e)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||e)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),this.masksProperties[s].mode!=="n"&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[s].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[s].x&&(this.storedData[s].x._mdf||e))){var h=this.storedData[s].expan;this.storedData[s].x.v<0?(this.storedData[s].lastOperator!=="erode"&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+b()+"#"+this.storedData[s].filterId+")")),h.setAttribute("radius",-this.storedData[s].x.v)):(this.storedData[s].lastOperator!=="dilate"&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",this.storedData[s].x.v*2))}},eo.prototype.getMaskelement=function(){return this.maskElement},eo.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},eo.prototype.drawPath=function(e,r,s){var l=" M"+r.v[0][0]+","+r.v[0][1],h,c;for(c=r._length,h=1;h<c;h+=1)l+=" C"+r.o[h-1][0]+","+r.o[h-1][1]+" "+r.i[h][0]+","+r.i[h][1]+" "+r.v[h][0]+","+r.v[h][1];if(r.c&&c>1&&(l+=" C"+r.o[h-1][0]+","+r.o[h-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),s.lastPath!==l){var v="";s.elem&&(r.c&&(v=e.inv?this.solidPath+l:l),s.elem.setAttribute("d",v)),s.lastPath=l}},eo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ta=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=s;function r(l,h){var c=Tt("filter");return c.setAttribute("id",l),h!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function s(){var l=Tt("feColorMatrix");return l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),l}return e}(),Bp=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),Cn={},Up="filter_result_";function Md(e){var r,s="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=we(),c=ta.createFilter(h,!0),v=0;this.filters=[];var x;for(r=0;r<l;r+=1){x=null;var g=e.data.ef[r].ty;if(Cn[g]){var k=Cn[g].effect;x=new k(c,e.effectsManager.effectElements[r],e,Up+v,s),s=Up+v,Cn[g].countsAsEffect&&(v+=1)}x&&this.filters.push(x)}v&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+b()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}Md.prototype.renderFrame=function(e){var r,s=this.filters.length;for(r=0;r<s;r+=1)this.filters[r].renderFrame(e)},Md.prototype.getEffects=function(e){var r,s=this.filters.length,l=[];for(r=0;r<s;r+=1)this.filters[r].type===e&&l.push(this.filters[r]);return l};function OA(e,r,s){Cn[e]={effect:r,countsAsEffect:s}}function ea(){}ea.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var s=Tt("g");s.setAttribute("id",this.layerId),s.appendChild(this.layerElement),r=s,this.globalData.defs.appendChild(s)}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 l=Tt("clipPath"),h=Tt("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=we();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var v=Tt("g");v.setAttribute("clip-path","url("+b()+"#"+c+")"),v.appendChild(this.layerElement),this.transformedElement=v,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+b()+"#"+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 eo(this.data,this,this.globalData),this.renderableEffectsManager=new Md(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var s=this.layerId+"_"+r,l,h,c,v;if(r===1||r===3){var x=Tt("mask");x.setAttribute("id",s),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!Bp.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),l=we(),h=ta.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(ta.createAlphaToLuminanceFilter()),v=Tt("g"),v.appendChild(c),x.appendChild(v),v.setAttribute("filter","url("+b()+"#"+l+")"))}else if(r===2){var g=Tt("mask");g.setAttribute("id",s),g.setAttribute("mask-type","alpha");var k=Tt("g");g.appendChild(k),l=we(),h=ta.createFilter(l);var R=Tt("feComponentTransfer");R.setAttribute("in","SourceGraphic"),h.appendChild(R);var H=Tt("feFuncA");H.setAttribute("type","table"),H.setAttribute("tableValues","1.0 0.0"),R.appendChild(H),this.globalData.defs.appendChild(h);var T=Tt("rect");T.setAttribute("width",this.comp.data.w),T.setAttribute("height",this.comp.data.h),T.setAttribute("x","0"),T.setAttribute("y","0"),T.setAttribute("fill","#ffffff"),T.setAttribute("opacity","0"),k.setAttribute("filter","url("+b()+"#"+l+")"),k.appendChild(T),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(c),Bp.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(ta.createAlphaToLuminanceFilter()),v=Tt("g"),k.appendChild(T),v.appendChild(this.layerElement),k.appendChild(v)),this.globalData.defs.appendChild(g)}this.matteMasks[r]=s}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+b()+"#"+r+")")}};function qo(){}qo.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 ra(){}(function(){var e={initElement:function(s,l,h){this.initFrame(),this.initBaseData(s,l,h),this.initTransform(s,l,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var s=this.baseElement||this.layerElement;s.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var s=this.baseElement||this.layerElement;s.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(s){this._mdf=!1,this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};L([In,K(e)],ra)})();function ia(e,r,s){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,s),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ei,jo,ea,qo,Ti,ra],ia),ia.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},ia.prototype.sourceRectAtTime=function(){return this.sourceRect};function Wb(e,r){this.elem=e,this.pos=r}function Hp(){}Hp.prototype={addShapeToModifiers:function(r){var s,l=this.shapeModifiers.length;for(s=0;s<l;s+=1)this.shapeModifiers[s].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var s=0,l=this.shapeModifiers.length;s<l;)if(this.shapeModifiers[s].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,s=this.shapes.length;for(r=0;r<s;r+=1)this.shapes[r].sh.reset();s=this.shapeModifiers.length;var l;for(r=s-1;r>=0&&(l=this.shapeModifiers[r].processShapes(this._isFirstFrame),!l);r-=1);}},searchProcessedElement:function(r){for(var s=this.processedElements,l=0,h=s.length;l<h;){if(s[l].elem===r)return s[l].pos;l+=1}return 0},addProcessedElement:function(r,s){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===r){l[h].pos=s;return}l.push(new Wb(r,s))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Gp={1:"butt",2:"round",3:"square"},Yp={1:"miter",2:"round",3:"bevel"};function Wp(e,r,s){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=s,this.lvl=r,this._isAnimated=!!s.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}Wp.prototype.setAsAnimated=function(){this._isAnimated=!0};function jp(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}jp.prototype.reset=function(){this.d="",this._mdf=!1};function kn(e,r,s,l){this.elem=e,this.frameId=-1,this.dataProps=tt(r.length),this.renderer=s,this.k=!1,this.dashStr="",this.dashArray=X("float32",r.length?r.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(l);var h,c=r.length||0,v;for(h=0;h<c;h+=1)v=at.getProp(e,r[h].v,0,0,this),this.k=v.k||this.k,this.dataProps[h]={n:r[h].n,p:v};this.k||this.getValue(!0),this._isAnimated=this.k}kn.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,s=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<s;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}},L([le],kn);function qp(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,r.o,0,.01,this),this.w=at.getProp(e,r.w,0,null,this),this.d=new kn(e,r.d||{},"svg",this),this.c=at.getProp(e,r.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}L([le],qp);function Kp(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,r.o,0,.01,this),this.c=at.getProp(e,r.c,1,255,this),this.style=s}L([le],Kp);function Xp(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=s}L([le],Xp);function oa(e,r,s){this.data=r,this.c=X("uint8c",r.p*4);var l=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=X("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(s),this.prop=at.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}oa.prototype.comparePoints=function(e,r){for(var s=0,l=this.o.length/2,h;s<l;){if(h=Math.abs(e[s*4]-e[r*4+s*2]),h>.01)return!1;s+=1}return!0},oa.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},oa.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,s=this.data.p*4,l,h;for(r=0;r<s;r+=1)l=r%4===0?100:255,h=Math.round(this.prop.v[r]*l),this.c[r]!==h&&(this.c[r]=h,this._cmdf=!e);if(this.o.length)for(s=this.prop.v.length,r=this.data.p*4;r<s;r+=1)l=r%2===0?100:1,h=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==h&&(this.o[r-this.data.p*4]=h,this._omdf=!e);this._mdf=!e}},L([le],oa);function Ko(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,s)}Ko.prototype.initGradientData=function(e,r,s){this.o=at.getProp(e,r.o,0,.01,this),this.s=at.getProp(e,r.s,1,null,this),this.e=at.getProp(e,r.e,1,null,this),this.h=at.getProp(e,r.h||{k:0},0,.01,this),this.a=at.getProp(e,r.a||{k:0},0,Ct,this),this.g=new oa(e,r.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,r),this.setGradientOpacity(r,s),this._isAnimated=!!this._isAnimated},Ko.prototype.setGradientData=function(e,r){var s=we(),l=Tt(r.t===1?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,v,x;for(x=r.g.p*4,v=0;v<x;v+=4)c=Tt("stop"),l.appendChild(c),h.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+b()+"#"+s+")"),this.gf=l,this.cst=h},Ko.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var s,l,h,c=Tt("mask"),v=Tt("path");c.appendChild(v);var x=we(),g=we();c.setAttribute("id",g);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",x),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),h=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var R=this.stops;for(l=e.g.p*4;l<h;l+=2)s=Tt("stop"),s.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(s),R.push(s);v.setAttribute(e.ty==="gf"?"fill":"stroke","url("+b()+"#"+x+")"),e.ty==="gs"&&(v.setAttribute("stroke-linecap",Gp[e.lc||2]),v.setAttribute("stroke-linejoin",Yp[e.lj||2]),e.lj===1&&v.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=c,this.ost=R,this.maskId=g,r.msElem=v}},L([le],Ko);function Zp(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(e,r.w,0,null,this),this.d=new kn(e,r.d||{},"svg",this),this.initGradientData(e,r,s),this._isAnimated=!!this._isAnimated}L([Ko,le],Zp);function jb(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function qb(e,r,s){this.transform={mProps:e,op:r,container:s},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Qp=function(r,s,l,h){if(s===0)return"";var c=r.o,v=r.i,x=r.v,g,k=" M"+h.applyToPointStringified(x[0][0],x[0][1]);for(g=1;g<s;g+=1)k+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[g][0],v[g][1])+" "+h.applyToPointStringified(x[g][0],x[g][1]);return l&&s&&(k+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[0][0],v[0][1])+" "+h.applyToPointStringified(x[0][0],x[0][1]),k+="z"),k},Kb=function(){var e=new fe,r=new fe,s={createRenderFunction:l};function l(H){switch(H.ty){case"fl":return x;case"gf":return k;case"gs":return g;case"st":return R;case"sh":case"el":case"rc":case"sr":return v;case"tr":return h;case"no":return c;default:return null}}function h(H,T,M){(M||T.transform.op._mdf)&&T.transform.container.setAttribute("opacity",T.transform.op.v),(M||T.transform.mProps._mdf)&&T.transform.container.setAttribute("transform",T.transform.mProps.v.to2dCSS())}function c(){}function v(H,T,M){var D,O,V,N,I,E,A=T.styles.length,w=T.lvl,$,U,Y,J;for(E=0;E<A;E+=1){if(N=T.sh._mdf||M,T.styles[E].lvl<w){for(U=r.reset(),Y=w-T.styles[E].lvl,J=T.transformers.length-1;!N&&Y>0;)N=T.transformers[J].mProps._mdf||N,Y-=1,J-=1;if(N)for(Y=w-T.styles[E].lvl,J=T.transformers.length-1;Y>0;)U.multiply(T.transformers[J].mProps.v),Y-=1,J-=1}else U=e;if($=T.sh.paths,O=$._length,N){for(V="",D=0;D<O;D+=1)I=$.shapes[D],I&&I._length&&(V+=Qp(I,I._length,I.c,U));T.caches[E]=V}else V=T.caches[E];T.styles[E].d+=H.hd===!0?"":V,T.styles[E]._mdf=N||T.styles[E]._mdf}}function x(H,T,M){var D=T.style;(T.c._mdf||M)&&D.pElem.setAttribute("fill","rgb("+ne(T.c.v[0])+","+ne(T.c.v[1])+","+ne(T.c.v[2])+")"),(T.o._mdf||M)&&D.pElem.setAttribute("fill-opacity",T.o.v)}function g(H,T,M){k(H,T,M),R(H,T,M)}function k(H,T,M){var D=T.gf,O=T.g._hasOpacity,V=T.s.v,N=T.e.v;if(T.o._mdf||M){var I=H.ty==="gf"?"fill-opacity":"stroke-opacity";T.style.pElem.setAttribute(I,T.o.v)}if(T.s._mdf||M){var E=H.t===1?"x1":"cx",A=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(A,V[1]),O&&!T.g._collapsable&&(T.of.setAttribute(E,V[0]),T.of.setAttribute(A,V[1]))}var w,$,U,Y;if(T.g._cmdf||M){w=T.cst;var J=T.g.c;for(U=w.length,$=0;$<U;$+=1)Y=w[$],Y.setAttribute("offset",J[$*4]+"%"),Y.setAttribute("stop-color","rgb("+J[$*4+1]+","+J[$*4+2]+","+J[$*4+3]+")")}if(O&&(T.g._omdf||M)){var yt=T.g.o;for(T.g._collapsable?w=T.cst:w=T.ost,U=w.length,$=0;$<U;$+=1)Y=w[$],T.g._collapsable||Y.setAttribute("offset",yt[$*2]+"%"),Y.setAttribute("stop-opacity",yt[$*2+1])}if(H.t===1)(T.e._mdf||M)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),O&&!T.g._collapsable&&(T.of.setAttribute("x2",N[0]),T.of.setAttribute("y2",N[1])));else{var pt;if((T.s._mdf||T.e._mdf||M)&&(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",pt),O&&!T.g._collapsable&&T.of.setAttribute("r",pt)),T.e._mdf||T.h._mdf||T.a._mdf||M){pt||(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)));var ot=Math.atan2(N[1]-V[1],N[0]-V[0]),xt=T.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=pt*xt,Q=Math.cos(ot+T.a.v)*ct+V[0],S=Math.sin(ot+T.a.v)*ct+V[1];D.setAttribute("fx",Q),D.setAttribute("fy",S),O&&!T.g._collapsable&&(T.of.setAttribute("fx",Q),T.of.setAttribute("fy",S))}}}function R(H,T,M){var D=T.style,O=T.d;O&&(O._mdf||M)&&O.dashStr&&(D.pElem.setAttribute("stroke-dasharray",O.dashStr),D.pElem.setAttribute("stroke-dashoffset",O.dashoffset[0])),T.c&&(T.c._mdf||M)&&D.pElem.setAttribute("stroke","rgb("+ne(T.c.v[0])+","+ne(T.c.v[1])+","+ne(T.c.v[2])+")"),(T.o._mdf||M)&&D.pElem.setAttribute("stroke-opacity",T.o.v),(T.w._mdf||M)&&(D.pElem.setAttribute("stroke-width",T.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",T.w.v))}return s}();function qt(e,r,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,s),this.prevViewData=[]}L([Ei,jo,ea,Hp,qo,Ti,ra],qt),qt.prototype.initSecondaryElement=function(){},qt.prototype.identityMatrix=new fe,qt.prototype.buildExpressionInterface=function(){},qt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},qt.prototype.filterUniqueShapes=function(){var e,r=this.shapes.length,s,l,h=this.stylesList.length,c,v=[],x=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],x=!1,v.length=0,e=0;e<r;e+=1)s=this.shapes[e],s.styles.indexOf(c)!==-1&&(v.push(s),x=s._isAnimated||x);v.length>1&&x&&this.setShapesAsAnimated(v)}},qt.prototype.setShapesAsAnimated=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r].setAsAnimated()},qt.prototype.createStyleElement=function(e,r){var s,l=new jp(e,r),h=l.pElem;if(e.ty==="st")s=new qp(this,e,l);else if(e.ty==="fl")s=new Kp(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?Ko:Zp;s=new c(this,e,l),this.globalData.defs.appendChild(s.gf),s.maskId&&(this.globalData.defs.appendChild(s.ms),this.globalData.defs.appendChild(s.of),h.setAttribute("mask","url("+b()+"#"+s.maskId+")"))}else e.ty==="no"&&(s=new Xp(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",Gp[e.lc||2]),h.setAttribute("stroke-linejoin",Yp[e.lj||2]),h.setAttribute("fill-opacity","0"),e.lj===1&&h.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&h.setAttribute("fill-rule","evenodd"),e.ln&&h.setAttribute("id",e.ln),e.cl&&h.setAttribute("class",e.cl),e.bm&&(h.style["mix-blend-mode"]=Rd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,s),s},qt.prototype.createGroupElement=function(e){var r=new jb;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=Rd(e.bm)),r},qt.prototype.createTransformElement=function(e,r){var s=Cd.getTransformProperty(this,e,this),l=new qb(s,s.o,r);return this.addToAnimatedContents(e,l),l},qt.prototype.createShapeElement=function(e,r,s){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=En.getShapeProp(this,e,l,this),c=new Wp(r,s,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},qt.prototype.addToAnimatedContents=function(e,r){for(var s=0,l=this.animatedContents.length;s<l;){if(this.animatedContents[s].element===r)return;s+=1}this.animatedContents.push({fn:Kb.createRenderFunction(e),element:r,data:e})},qt.prototype.setElementStyles=function(e){var r=e.styles,s,l=this.stylesList.length;for(s=0;s<l;s+=1)this.stylesList[s].closed||r.push(this.stylesList[s])},qt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},qt.prototype.searchShapes=function(e,r,s,l,h,c,v){var x=[].concat(c),g,k=e.length-1,R,H,T=[],M=[],D,O,V;for(g=k;g>=0;g-=1){if(V=this.searchProcessedElement(e[g]),V?r[g]=s[V-1]:e[g]._render=v,e[g].ty==="fl"||e[g].ty==="st"||e[g].ty==="gf"||e[g].ty==="gs"||e[g].ty==="no")V?r[g].style.closed=!1:r[g]=this.createStyleElement(e[g],h),e[g]._render&&r[g].style.pElem.parentNode!==l&&l.appendChild(r[g].style.pElem),T.push(r[g].style);else if(e[g].ty==="gr"){if(!V)r[g]=this.createGroupElement(e[g]);else for(H=r[g].it.length,R=0;R<H;R+=1)r[g].prevViewData[R]=r[g].it[R];this.searchShapes(e[g].it,r[g].it,r[g].prevViewData,r[g].gr,h+1,x,v),e[g]._render&&r[g].gr.parentNode!==l&&l.appendChild(r[g].gr)}else e[g].ty==="tr"?(V||(r[g]=this.createTransformElement(e[g],l)),D=r[g].transform,x.push(D)):e[g].ty==="sh"||e[g].ty==="rc"||e[g].ty==="el"||e[g].ty==="sr"?(V||(r[g]=this.createShapeElement(e[g],x,h)),this.setElementStyles(r[g])):e[g].ty==="tm"||e[g].ty==="rd"||e[g].ty==="ms"||e[g].ty==="pb"||e[g].ty==="zz"||e[g].ty==="op"?(V?(O=r[g],O.closed=!1):(O=bi.getModifier(e[g].ty),O.init(this,e[g]),r[g]=O,this.shapeModifiers.push(O)),M.push(O)):e[g].ty==="rp"&&(V?(O=r[g],O.closed=!0):(O=bi.getModifier(e[g].ty),r[g]=O,O.init(this,e,g,r),this.shapeModifiers.push(O),v=!1),M.push(O));this.addProcessedElement(e[g],g+1)}for(k=T.length,g=0;g<k;g+=1)T[g].closed=!0;for(k=M.length,g=0;g<k;g+=1)M[g].closed=!0},qt.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},qt.prototype.renderShape=function(){var e,r=this.animatedContents.length,s;for(e=0;e<r;e+=1)s=this.animatedContents[e],(this._isFirstFrame||s.element._isAnimated)&&s.data!==!0&&s.fn(s.data,s.element,this._isFirstFrame)},qt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Od(e,r,s,l,h,c){this.o=e,this.sw=r,this.sc=s,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!s,fc:!!l,m:!0,p:!0}}Od.prototype.update=function(e,r,s,l,h,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var v=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,v=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,v=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,v=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,v=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,v=!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,v=!0),v};function Ae(e,r){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Ae.prototype.defaultBoxWidth=[0,0],Ae.prototype.copyData=function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},Ae.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ae.prototype.searchProperty=function(){return this.searchKeyframes()},Ae.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ae.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Ae.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,h=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(l=0;l<h;l+=1)s!==this.keysIndex?c=this.effectsSequence[l](c,c.t):c=this.effectsSequence[l](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}},Ae.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,r=this.elem.comp.renderedFrame,s=0,l=e.length;s<=l-1&&!(s===l-1||e[s+1].t>r);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},Ae.prototype.buildFinalText=function(e){for(var r=[],s=0,l=e.length,h,c,v=!1,x=!1,g="";s<l;)v=x,x=!1,h=e.charCodeAt(s),g=e.charAt(s),to.isCombinedCharacter(h)?v=!0:h>=55296&&h<=56319?to.isRegionalFlag(e,s)?g=e.substr(s,14):(c=e.charCodeAt(s+1),c>=56320&&c<=57343&&(to.isModifier(h,c)?(g=e.substr(s,2),v=!0):to.isFlagEmoji(e.substr(s,4))?g=e.substr(s,4):g=e.substr(s,2))):h>56319?(c=e.charCodeAt(s+1),to.isVariationSelector(h)&&(v=!0)):to.isZeroWidthJoiner(h)&&(v=!0,x=!0),v?(r[r.length-1]+=g,v=!1):r.push(g),s+=g.length;return r},Ae.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,s=this.data,l=[],h,c,v,x=0,g,k=s.m.g,R=0,H=0,T=0,M=[],D=0,O=0,V,N,I=r.getFontByName(e.f),E,A=0,w=Fp(I);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var $=e.tr/1e3*e.finalSize,U;if(e.sz)for(var Y=!0,J=e.sz[0],yt=e.sz[1],pt,ot;Y;){ot=this.buildFinalText(e.t),pt=0,D=0,c=ot.length,$=e.tr/1e3*e.finalSize;var xt=-1;for(h=0;h<c;h+=1)U=ot[h].charCodeAt(0),v=!1,ot[h]===" "?xt=h:(U===13||U===3)&&(D=0,v=!0,pt+=e.finalLineHeight||e.finalSize*1.2),r.chars?(E=r.getCharData(ot[h],I.fStyle,I.fFamily),A=v?0:E.w*e.finalSize/100):A=r.measureText(ot[h],e.f,e.finalSize),D+A>J&&ot[h]!==" "?(xt===-1?c+=1:h=xt,pt+=e.finalLineHeight||e.finalSize*1.2,ot.splice(h,xt===h?1:0,"\r"),xt=-1,D=0):(D+=A,D+=$);pt+=I.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<pt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=ot,c=e.finalText.length,Y=!1)}D=-$,A=0;var ct=0,Q;for(h=0;h<c;h+=1)if(v=!1,Q=e.finalText[h],U=Q.charCodeAt(0),U===13||U===3?(ct=0,M.push(D),O=D>O?D:O,D=-2*$,g="",v=!0,T+=1):g=Q,r.chars?(E=r.getCharData(Q,I.fStyle,r.getFontByName(e.f).fFamily),A=v?0:E.w*e.finalSize/100):A=r.measureText(g,e.f,e.finalSize),Q===" "?ct+=A+$:(D+=A+$+ct,ct=0),l.push({l:A,an:A,add:R,n:v,anIndexes:[],val:g,line:T,animatorJustifyOffset:0}),k==2){if(R+=A,g===""||g===" "||h===c-1){for((g===""||g===" ")&&(R-=A);H<=h;)l[H].an=R,l[H].ind=x,l[H].extra=A,H+=1;x+=1,R=0}}else if(k==3){if(R+=A,g===""||h===c-1){for(g===""&&(R-=A);H<=h;)l[H].an=R,l[H].ind=x,l[H].extra=A,H+=1;R=0,x+=1}}else l[x].ind=x,l[x].extra=0,x+=1;if(e.l=l,O=D>O?D:O,M.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=O,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=M;var S=s.a,P,f;N=S.length;var y,G,F=[];for(V=0;V<N;V+=1){for(P=S[V],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),G=0,y=P.s.b,h=0;h<c;h+=1)f=l[h],f.anIndexes[V]=G,(y==1&&f.val!==""||y==2&&f.val!==""&&f.val!==" "||y==3&&(f.n||f.val==" "||h==c-1)||y==4&&(f.n||h==c-1))&&(P.s.rn===1&&F.push(G),G+=1);s.a[V].s.totalChars=G;var nt=-1,ft;if(P.s.rn===1)for(h=0;h<c;h+=1)f=l[h],nt!=f.anIndexes[V]&&(nt=f.anIndexes[V],ft=F.splice(Math.floor(Math.random()*F.length),1)[0]),f.anIndexes[V]=ft}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=I.ascent*e.finalSize/100},Ae.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var s=this.copyData({},this.data.d.k[r].s);s=this.copyData(s,e),this.data.d.k[r].s=s,this.recalculate(r),this.setCurrentData(s),this.elem.addDynamicProperty(this)},Ae.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},Ae.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ae.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Xb=function(){var e=Math.max,r=Math.min,s=Math.floor;function l(c,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=at.getProp(c,v.s||{k:0},0,0,this),"e"in v?this.e=at.getProp(c,v.e,0,0,this):this.e={v:100},this.o=at.getProp(c,v.o||{k:0},0,0,this),this.xe=at.getProp(c,v.xe||{k:0},0,0,this),this.ne=at.getProp(c,v.ne||{k:0},0,0,this),this.sm=at.getProp(c,v.sm||{k:100},0,0,this),this.a=at.getProp(c,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(v){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,g=0,k=1,R=1;this.ne.v>0?x=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:R=1+this.xe.v/100;var H=js.getBezierEasing(x,g,k,R).get,T=0,M=this.finalS,D=this.finalE,O=this.data.sh;if(O===2)D===M?T=v>=D?1:0:T=e(0,r(.5/(D-M)+(v-M)/(D-M),1)),T=H(T);else if(O===3)D===M?T=v>=D?0:1:T=1-e(0,r(.5/(D-M)+(v-M)/(D-M),1)),T=H(T);else if(O===4)D===M?T=0:(T=e(0,r(.5/(D-M)+(v-M)/(D-M),1)),T<.5?T*=2:T=1-2*(T-.5)),T=H(T);else if(O===5){if(D===M)T=0;else{var V=D-M;v=r(e(0,v+.5-M),D-M);var N=-V/2+v,I=V/2;T=Math.sqrt(1-N*N/(I*I))}T=H(T)}else O===6?(D===M?T=0:(v=r(e(0,v+.5-M),D-M),T=(1+Math.cos(Math.PI+Math.PI*2*v/(D-M)))/2),T=H(T)):(v>=s(M)&&(v-M<0?T=e(0,r(r(D,1)-(M-v),1)):T=e(0,r(D-v,1))),T=H(T));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var A=.5-E*.5;T<A?T=0:(T=(T-A)/E,T>1&&(T=1))}return T*this.a.v},getValue:function(v){this.iterateDynamicProperties(),this._mdf=v||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,v&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/x,k=this.s.v/x+g,R=this.e.v/x+g;if(k>R){var H=k;k=R,R=H}this.finalS=k,this.finalE=R}},L([le],l);function h(c,v,x){return new l(c,v,x)}return{getTextSelectorProp:h}}();function Zb(e,r,s){var l={propType:!1},h=at.getProp,c=r.a;this.a={r:c.r?h(e,c.r,0,Ct,s):l,rx:c.rx?h(e,c.rx,0,Ct,s):l,ry:c.ry?h(e,c.ry,0,Ct,s):l,sk:c.sk?h(e,c.sk,0,Ct,s):l,sa:c.sa?h(e,c.sa,0,Ct,s):l,s:c.s?h(e,c.s,1,.01,s):l,a:c.a?h(e,c.a,1,0,s):l,o:c.o?h(e,c.o,0,.01,s):l,p:c.p?h(e,c.p,1,0,s):l,sw:c.sw?h(e,c.sw,0,0,s):l,sc:c.sc?h(e,c.sc,1,0,s):l,fc:c.fc?h(e,c.fc,1,0,s):l,fh:c.fh?h(e,c.fh,0,0,s):l,fs:c.fs?h(e,c.fs,0,.01,s):l,fb:c.fb?h(e,c.fb,0,.01,s):l,t:c.t?h(e,c.t,0,0,s):l},this.s=Xb.getTextSelectorProp(e,r.s,s),this.s.t=r.s.t}function ro(e,r,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=s,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}ro.prototype.searchProperties=function(){var e,r=this._textData.a.length,s,l=at.getProp;for(e=0;e<r;e+=1)s=this._textData.a[e],this._animatorsData[e]=new Zb(this._elem,s,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=l(this._elem,this._textData.m.a,1,0,this)},ro.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var s=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,v=this._renderType,x=this.renderedLetters.length,g,k,R,H,T=e.l,M,D,O,V,N,I,E,A,w,$,U,Y,J,yt,pt;if(this._hasMaskedPath){if(pt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ot=pt.v;this._pathData.r.v&&(ot=ot.reverse()),M={tLength:0,segments:[]},H=ot._length-1;var xt;for(Y=0,R=0;R<H;R+=1)xt=Cr.buildBezierData(ot.v[R],ot.v[R+1],[ot.o[R][0]-ot.v[R][0],ot.o[R][1]-ot.v[R][1]],[ot.i[R+1][0]-ot.v[R+1][0],ot.i[R+1][1]-ot.v[R+1][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),Y+=xt.segmentLength;R=H,pt.v.c&&(xt=Cr.buildBezierData(ot.v[R],ot.v[0],[ot.o[R][0]-ot.v[R][0],ot.o[R][1]-ot.v[R][1]],[ot.i[0][0]-ot.v[0][0],ot.i[0][1]-ot.v[0][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),Y+=xt.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,D=this._pathData.f.v,E=0,I=1,V=0,N=!0,$=M.segments,D<0&&pt.v.c)for(M.tLength<Math.abs(D)&&(D=-Math.abs(D)%M.tLength),E=$.length-1,w=$[E].points,I=w.length-1;D<0;)D+=w[I].partialLength,I-=1,I<0&&(E-=1,w=$[E].points,I=w.length-1);w=$[E].points,A=w[I-1],O=w[I],U=O.partialLength}H=T.length,g=0,k=0;var ct=e.finalSize*1.2*.714,Q=!0,S,P,f,y,G;y=l.length;var F,nt=-1,ft,Et,Lt,Rt=D,Jt=E,Le=I,wr=-1,Re,de,Ue,Dt,ht,qr,Si,Kr,Nr="",Xr=this.defaultPropsArray,Zr;if(e.j===2||e.j===1){var Me=0,_i=0,Ii=e.j===2?-.5:-1,br=0,Ci=!0;for(R=0;R<H;R+=1)if(T[R].n){for(Me&&(Me+=_i);br<R;)T[br].animatorJustifyOffset=Me,br+=1;Me=0,Ci=!0}else{for(f=0;f<y;f+=1)S=l[f].a,S.t.propType&&(Ci&&e.j===2&&(_i+=S.t.v*Ii),P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?Me+=S.t.v*F[0]*Ii:Me+=S.t.v*F*Ii);Ci=!1}for(Me&&(Me+=_i);br<R;)T[br].animatorJustifyOffset=Me,br+=1}for(R=0;R<H;R+=1){if(c.reset(),Re=1,T[R].n)g=0,k+=e.yOffset,k+=Q?1:0,D=Rt,Q=!1,this._hasMaskedPath&&(E=Jt,I=Le,w=$[E].points,A=w[I-1],O=w[I],U=O.partialLength,V=0),Nr="",Kr="",qr="",Zr="",Xr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(wr!==T[R].line){switch(e.j){case 1:D+=Y-e.lineWidths[T[R].line];break;case 2:D+=(Y-e.lineWidths[T[R].line])/2;break;default:break}wr=T[R].line}nt!==T[R].ind&&(T[nt]&&(D+=T[nt].extra),D+=T[R].an/2,nt=T[R].ind),D+=s[0]*T[R].an*.005;var yr=0;for(f=0;f<y;f+=1)S=l[f].a,S.p.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?yr+=S.p.v[0]*F[0]:yr+=S.p.v[0]*F),S.a.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?yr+=S.a.v[0]*F[0]:yr+=S.a.v[0]*F);for(N=!0,this._pathData.a.v&&(D=T[0].an*.5+(Y-this._pathData.f.v-T[0].an*.5-T[T.length-1].an*.5)*nt/(H-1),D+=this._pathData.f.v);N;)V+U>=D+yr||!w?(J=(D+yr-V)/O.partialLength,Et=A.point[0]+(O.point[0]-A.point[0])*J,Lt=A.point[1]+(O.point[1]-A.point[1])*J,c.translate(-s[0]*T[R].an*.005,-(s[1]*ct)*.01),N=!1):w&&(V+=O.partialLength,I+=1,I>=w.length&&(I=0,E+=1,$[E]?w=$[E].points:pt.v.c?(I=0,E=0,w=$[E].points):(V-=O.partialLength,w=null)),w&&(A=O,O=w[I],U=O.partialLength));ft=T[R].an/2-T[R].add,c.translate(-ft,0,0)}else ft=T[R].an/2-T[R].add,c.translate(-ft,0,0),c.translate(-s[0]*T[R].an*.005,-s[1]*ct*.01,0);for(f=0;f<y;f+=1)S=l[f].a,S.t.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),(g!==0||e.j!==0)&&(this._hasMaskedPath?F.length?D+=S.t.v*F[0]:D+=S.t.v*F:F.length?g+=S.t.v*F[0]:g+=S.t.v*F));for(e.strokeWidthAnim&&(Ue=e.sw||0),e.strokeColorAnim&&(e.sc?de=[e.sc[0],e.sc[1],e.sc[2]]:de=[0,0,0]),e.fillColorAnim&&e.fc&&(Dt=[e.fc[0],e.fc[1],e.fc[2]]),f=0;f<y;f+=1)S=l[f].a,S.a.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?c.translate(-S.a.v[0]*F[0],-S.a.v[1]*F[1],S.a.v[2]*F[2]):c.translate(-S.a.v[0]*F,-S.a.v[1]*F,S.a.v[2]*F));for(f=0;f<y;f+=1)S=l[f].a,S.s.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?c.scale(1+(S.s.v[0]-1)*F[0],1+(S.s.v[1]-1)*F[1],1):c.scale(1+(S.s.v[0]-1)*F,1+(S.s.v[1]-1)*F,1));for(f=0;f<y;f+=1){if(S=l[f].a,P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),S.sk.propType&&(F.length?c.skewFromAxis(-S.sk.v*F[0],S.sa.v*F[1]):c.skewFromAxis(-S.sk.v*F,S.sa.v*F)),S.r.propType&&(F.length?c.rotateZ(-S.r.v*F[2]):c.rotateZ(-S.r.v*F)),S.ry.propType&&(F.length?c.rotateY(S.ry.v*F[1]):c.rotateY(S.ry.v*F)),S.rx.propType&&(F.length?c.rotateX(S.rx.v*F[0]):c.rotateX(S.rx.v*F)),S.o.propType&&(F.length?Re+=(S.o.v*F[0]-Re)*F[0]:Re+=(S.o.v*F-Re)*F),e.strokeWidthAnim&&S.sw.propType&&(F.length?Ue+=S.sw.v*F[0]:Ue+=S.sw.v*F),e.strokeColorAnim&&S.sc.propType)for(ht=0;ht<3;ht+=1)F.length?de[ht]+=(S.sc.v[ht]-de[ht])*F[0]:de[ht]+=(S.sc.v[ht]-de[ht])*F;if(e.fillColorAnim&&e.fc){if(S.fc.propType)for(ht=0;ht<3;ht+=1)F.length?Dt[ht]+=(S.fc.v[ht]-Dt[ht])*F[0]:Dt[ht]+=(S.fc.v[ht]-Dt[ht])*F;S.fh.propType&&(F.length?Dt=hp(Dt,S.fh.v*F[0]):Dt=hp(Dt,S.fh.v*F)),S.fs.propType&&(F.length?Dt=dp(Dt,S.fs.v*F[0]):Dt=dp(Dt,S.fs.v*F)),S.fb.propType&&(F.length?Dt=cp(Dt,S.fb.v*F[0]):Dt=cp(Dt,S.fb.v*F))}}for(f=0;f<y;f+=1)S=l[f].a,S.p.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,S.p.v[1]*F[0],-S.p.v[2]*F[1]):c.translate(0,S.p.v[1]*F,-S.p.v[2]*F):F.length?c.translate(S.p.v[0]*F[0],S.p.v[1]*F[1],-S.p.v[2]*F[2]):c.translate(S.p.v[0]*F,S.p.v[1]*F,-S.p.v[2]*F));if(e.strokeWidthAnim&&(qr=Ue<0?0:Ue),e.strokeColorAnim&&(Si="rgb("+Math.round(de[0]*255)+","+Math.round(de[1]*255)+","+Math.round(de[2]*255)+")"),e.fillColorAnim&&e.fc&&(Kr="rgb("+Math.round(Dt[0]*255)+","+Math.round(Dt[1]*255)+","+Math.round(Dt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,s[1]*ct*.01+k,0),this._pathData.p.v){yt=(O.point[1]-A.point[1])/(O.point[0]-A.point[0]);var io=Math.atan(yt)*180/Math.PI;O.point[0]<A.point[0]&&(io+=180),c.rotate(-io*Math.PI/180)}c.translate(Et,Lt,0),D-=s[0]*T[R].an*.005,T[R+1]&&nt!==T[R+1].ind&&(D+=T[R].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(g,k,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(T[R].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[R].line]),0,0);break;case 2:c.translate(T[R].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[R].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(ft,0,0),c.translate(s[0]*T[R].an*.005,s[1]*ct*.01,0),g+=T[R].l+e.tr*.001*e.finalSize}v==="html"?Nr=c.toCSS():v==="svg"?Nr=c.to2dCSS():Xr=[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]],Zr=Re}x<=R?(G=new Od(Zr,qr,Si,Kr,Nr,Xr),this.renderedLetters.push(G),x+=1,this.lettersChangedFlag=!0):(G=this.renderedLetters[R],this.lettersChangedFlag=G.update(Zr,qr,Si,Kr,Nr,Xr)||this.lettersChangedFlag)}}},ro.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ro.prototype.mHelper=new fe,ro.prototype.defaultPropsArray=[],L([le],ro);function rr(){}rr.prototype.initElement=function(e,r,s){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,s),this.textProperty=new Ae(this,e.t,this.dynamicProperties),this.textAnimator=new ro(e.t,this.renderType,this),this.initTransform(e,r,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},rr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},rr.prototype.createPathShape=function(e,r){var s,l=r.length,h,c="";for(s=0;s<l;s+=1)r[s].ty==="sh"&&(h=r[s].ks.k,c+=Qp(h,h.i.length,!0,e));return c},rr.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},rr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},rr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},rr.prototype.applyTextPropertiesToMatrix=function(e,r,s,l,h){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s])/2,0,0);break;default:break}r.translate(l,h,0)},rr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},rr.prototype.emptyProp=new Od,rr.prototype.destroy=function(){},rr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Qb={shapes:[]};function Wr(e,r,s){this.textSpans=[],this.renderType="svg",this.initElement(e,r,s)}L([Ei,jo,ea,qo,Ti,ra,rr],Wr),Wr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},Wr.prototype.buildTextContents=function(e){for(var r=0,s=e.length,l=[],h="";r<s;)e[r]==="\r"||e[r]===""?(l.push(h),h=""):h+=e[r],r+=1;return l.push(h),l},Wr.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var s=e.shapes[0];if(s.it){var l=s.it[s.it.length-1];l.s&&(l.s.k[0]=r,l.s.k[1]=r)}}return e},Wr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,s=this.textProperty.currentData;this.renderedLetters=tt(s?s.l.length:0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.finalSize);var l=this.globalData.fontManager.getFontByName(s.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=s.fWeight,c=s.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",s.t);var v=s.l||[],x=!!this.globalData.fontManager.chars;r=v.length;var g,k=this.mHelper,R="",H=this.data.singleShape,T=0,M=0,D=!0,O=s.tr*.001*s.finalSize;if(H&&!x&&!s.sz){var V=this.textContainer,N="start";switch(s.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",O);var I=this.buildTextContents(s.finalText);for(r=I.length,M=s.ps?s.ps[1]+s.ascent:0,e=0;e<r;e+=1)g=this.textSpans[e].span||Tt("tspan"),g.textContent=I[e],g.setAttribute("x",0),g.setAttribute("y",M),g.style.display="inherit",V.appendChild(g),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=g,M+=s.finalLineHeight;this.layerElement.appendChild(V)}else{var E=this.textSpans.length,A;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!x||!H||e===0){if(g=E>e?this.textSpans[e].span:Tt(x?"g":"text"),E<=e){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=g,x){var w=Tt("g");g.appendChild(w),this.textSpans[e].childSpan=w}this.textSpans[e].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(k.reset(),H&&(v[e].n&&(T=-O,M+=s.yOffset,M+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(s,k,v[e].line,T,M),T+=v[e].l||0,T+=O),x){A=this.globalData.fontManager.getCharData(s.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily);var $;if(A.t===1)$=new sa(A.data,this.globalData,this);else{var U=Qb;A.data&&A.data.shapes&&(U=this.buildShapeData(A.data,s.finalSize)),$=new qt(U,this.globalData,this)}if(this.textSpans[e].glyph){var Y=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(Y.layerElement),Y.destroy()}this.textSpans[e].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[e].childSpan.appendChild($.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else H&&g.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),g.textContent=v[e].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}H&&g&&g.setAttribute("d",R)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Wr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Wr.prototype.getValue=function(){var e,r=this.textSpans.length,s;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)s=this.textSpans[e].glyph,s&&(s.prepareFrame(this.comp.renderedFrame-this.data.st),s._mdf&&(this._mdf=!0))},Wr.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,r,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;r=l.length;var h,c,v;for(e=0;e<r;e+=1)l[e].n||(h=s[e],c=this.textSpans[e].span,v=this.textSpans[e].glyph,v&&v.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Pd(e,r,s){this.initElement(e,r,s)}L([ia],Pd),Pd.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Ai(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initFrame(),this.initTransform(e,r,s),this.initHierarchy()}Ai.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Ai.prototype.renderFrame=function(){},Ai.prototype.getBaseElement=function(){return null},Ai.prototype.destroy=function(){},Ai.prototype.sourceRectAtTime=function(){},Ai.prototype.hide=function(){},L([Ei,jo,qo,Ti],Ai);function re(){}L([ve],re),re.prototype.createNull=function(e){return new Ai(e,this.globalData,this)},re.prototype.createShape=function(e){return new qt(e,this.globalData,this)},re.prototype.createText=function(e){return new Wr(e,this.globalData,this)},re.prototype.createImage=function(e){return new ia(e,this.globalData,this)},re.prototype.createSolid=function(e){return new Pd(e,this.globalData,this)},re.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var s=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=we();s.setAttribute("id",h),s.appendChild(l),this.layerElement.setAttribute("clip-path","url("+b()+"#"+h+")"),r.appendChild(s),this.layers=e.layers,this.elements=tt(e.layers.length)},re.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},re.prototype.updateContainerSize=function(){},re.prototype.findIndexByInd=function(e){var r=0,s=this.layers.length;for(r=0;r<s;r+=1)if(this.layers[r].ind===e)return r;return-1},re.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var s=this.createItem(this.layers[e]);if(r[e]=s,mn()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(s),s.initExpressions()),this.appendElementInPos(s,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(s);else{var h=r[l],c=h.getMatte(this.layers[e].tt);s.setMatte(c)}}}},re.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,s=this.elements.length;r<s;){if(this.elements[r]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,h=this.elements[l],c=h.getMatte(this.layers[r].tt);e.setMatte(c);break}r+=1}}},re.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,s=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},re.prototype.appendElementInPos=function(e,r){var s=e.getBaseElement();if(s){for(var l=0,h;l<r;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(h=this.elements[l].getBaseElement()),l+=1;h?this.layerElement.insertBefore(s,h):this.layerElement.appendChild(s)}},re.prototype.hide=function(){this.layerElement.style.display="none"},re.prototype.show=function(){this.layerElement.style.display="block"};function jr(){}L([Ei,jo,qo,Ti,ra],jr),jr.prototype.initElement=function(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initTransform(e,r,s),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},jr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var s,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},jr.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},jr.prototype.setElements=function(e){this.elements=e},jr.prototype.getElements=function(){return this.elements},jr.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},jr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function sa(e,r,s){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(e,r,s),this.tm=e.tm?at.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}L([re,jr,ea],sa),sa.prototype.createComp=function(e){return new sa(e,this.globalData,this)};function Dd(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var s="";if(r&&r.title){var l=Tt("title"),h=we();l.setAttribute("id",h),l.textContent=r.title,this.svgElement.appendChild(l),s+=h}if(r&&r.description){var c=Tt("desc"),v=we();c.setAttribute("id",v),c.textContent=r.description,this.svgElement.appendChild(c),s+=" "+v}s&&this.svgElement.setAttribute("aria-labelledby",s);var x=Tt("defs");this.svgElement.appendChild(x);var g=Tt("g");this.svgElement.appendChild(g),this.layerElement=g,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:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return L([re],Dd),Dd.prototype.createComp=function(e){return new sa(e,this.globalData,this)},lb("svg",Dd),bi.registerModifier("tm",gr),bi.registerModifier("pb",qs),bi.registerModifier("rp",kr),bi.registerModifier("rd",Ks),bi.registerModifier("zz",Zs),bi.registerModifier("op",Qs),Ot})});var Rn=globalThis,Mn=Rn.ShadowRoot&&(Rn.ShadyCSS===void 0||Rn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fd=Symbol(),tm=new WeakMap,aa=class{constructor(o,t,i){if(this._$cssResult$=!0,i!==Fd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Mn&&o===void 0){let i=t!==void 0&&t.length===1;i&&(o=tm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),i&&tm.set(t,o))}return o}toString(){return this.cssText}},em=n=>new aa(typeof n=="string"?n:n+"",void 0,Fd),B=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((i,a,d)=>i+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+n[d+1],n[0]);return new aa(t,n,Fd)},Vd=(n,o)=>{if(Mn)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let i=document.createElement("style"),a=Rn.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=t.cssText,n.appendChild(i)}},On=Mn?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let i of o.cssRules)t+=i.cssText;return em(t)})(n):n;var{is:ay,defineProperty:ny,getOwnPropertyDescriptor:ly,getOwnPropertyNames:dy,getOwnPropertySymbols:cy,getPrototypeOf:hy}=Object,ki=globalThis,rm=ki.trustedTypes,py=rm?rm.emptyScript:"",zd=ki.reactiveElementPolyfillSupport,na=(n,o)=>n,la={toAttribute(n,o){switch(o){case Boolean:n=n?py:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Pn=(n,o)=>!ay(n,o),im={attribute:!0,type:String,converter:la,reflect:!1,hasChanged:Pn},om,sm;(om=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(sm=ki.litPropertyMetadata)!=null||(ki.litPropertyMetadata=new WeakMap);var Qr=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=im){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let i=Symbol(),a=this.getPropertyDescriptor(o,i,t);a!==void 0&&ny(this.prototype,o,a)}}static getPropertyDescriptor(o,t,i){var m;let{get:a,set:d}=(m=ly(this.prototype,o))!=null?m:{get(){return this[t]},set(b){this[t]=b}};return{get(){return a==null?void 0:a.call(this)},set(b){let C=a==null?void 0:a.call(this);d.call(this,b),this.requestUpdate(o,C,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:im}static _$Ei(){if(this.hasOwnProperty(na("elementProperties")))return;let o=hy(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(na("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(na("properties"))){let t=this.properties,i=[...dy(t),...cy(t)];for(let a of i)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[i,a]of t)this.elementProperties.set(i,a)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let a=this._$Eu(t,i);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let i=new Set(o.flat(1/0).reverse());for(let a of i)t.unshift(On(a))}else o!==void 0&&t.push(On(o));return t}static _$Eu(o,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((i=o.hostConnected)==null||i.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(o.set(i,this[i]),delete this[i]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Vd(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var a;return(a=i.hostConnected)==null?void 0:a.call(i)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(o,t,i){this._$AK(o,i)}_$EC(o,t){var d;let i=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,i);if(a!==void 0&&i.reflect===!0){let m=(((d=i.converter)==null?void 0:d.toAttribute)!==void 0?i.converter:la).toAttribute(t,i.type);this._$Em=o,m==null?this.removeAttribute(a):this.setAttribute(a,m),this._$Em=null}}_$AK(o,t){var d;let i=this.constructor,a=i._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let m=i.getPropertyOptions(a),b=typeof m.converter=="function"?{fromAttribute:m.converter}:((d=m.converter)==null?void 0:d.fromAttribute)!==void 0?m.converter:la;this._$Em=a,this[a]=b.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(o,t,i){var a;if(o!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(o)),!((a=i.hasChanged)!=null?a:Pn)(this[o],t))return;this.P(o,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,i){var a;this._$AL.has(o)||this._$AL.set(o,t),i.reflect===!0&&this._$Em!==o&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,b]of this._$Ep)this[m]=b;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[m,b]of d)b.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],b)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(a=this._$EO)==null||a.forEach(d=>{var m;return(m=d.hostUpdate)==null?void 0:m.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(i=>{var a;return(a=i.hostUpdated)==null?void 0:a.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},am;Qr.elementStyles=[],Qr.shadowRootOptions={mode:"open"},Qr[na("elementProperties")]=new Map,Qr[na("finalized")]=new Map,zd==null||zd({ReactiveElement:Qr}),((am=ki.reactiveElementVersions)!=null?am:ki.reactiveElementVersions=[]).push("2.0.4");var ca=globalThis,Dn=ca.trustedTypes,nm=Dn?Dn.createPolicy("lit-html",{createHTML:n=>n}):void 0,Hd="$lit$",Jr=`lit$${Math.random().toFixed(9).slice(2)}$`,Gd="?"+Jr,my=`<${Gd}>`,ao=document,ha=()=>ao.createComment(""),pa=n=>n===null||typeof n!="object"&&typeof n!="function",Yd=Array.isArray,um=n=>Yd(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Bd=`[
|
|
1
|
+
"use strict";(()=>{var Jb=Object.create;var $d=Object.defineProperty;var Jp=Object.getOwnPropertyDescriptor;var ty=Object.getOwnPropertyNames;var ey=Object.getPrototypeOf,ry=Object.prototype.hasOwnProperty;var iy=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var oy=(n,o,t,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of ty(o))!ry.call(n,a)&&a!==t&&$d(n,a,{get:()=>o[a],enumerable:!(i=Jp(o,a))||i.enumerable});return n};var sy=(n,o,t)=>(t=n!=null?Jb(ey(n)):{},oy(o||!n||!n.__esModule?$d(t,"default",{value:n,enumerable:!0}):t,n));var p=(n,o,t,i)=>{for(var a=i>1?void 0:i?Jp(o,t):o,d=n.length-1,m;d>=0;d--)(m=n[d])&&(a=(i?m(o,t,a):m(a))||a);return i&&a&&$d(o,t,a),a};var Zm=iy((xa,al)=>{typeof navigator<"u"&&function(n,o){typeof xa=="object"&&typeof al<"u"?al.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(xa,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,i=-999999,a=function(r){t=!!r},d=function(){return t},m=function(r){o=r},b=function(){return o};function C(e){return document.createElement(e)}function L(e,r){var s,l=e.length,h;for(s=0;s<l;s+=1){h=e[s].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(r.prototype[c]=h[c])}}function W(e,r){return Object.getOwnPropertyDescriptor(e,r)}function K(e){function r(){}return r.prototype=e,r}var rt=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(s){this.audios.push(s)},pause:function(){var s,l=this.audios.length;for(s=0;s<l;s+=1)this.audios[s].pause()},resume:function(){var s,l=this.audios.length;for(s=0;s<l;s+=1)this.audios[s].resume()},setRate:function(s){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].setRate(s)},createAudio:function(s){return this.audioFactory?this.audioFactory(s):window.Howl?new window.Howl({src:[s]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(s){this.audioFactory=s},setVolume:function(s){this._volume=s,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var s,l=this.audios.length;for(s=0;s<l;s+=1)this.audios[s].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(s,l){var h=0,c=[],v;switch(s){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(h=0;h<l;h+=1)c.push(v);return c}function r(s,l){return s==="float32"?new Float32Array(l):s==="int16"?new Int16Array(l):s==="uint8c"?new Uint8ClampedArray(l):e(s,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function et(e){return Array.apply(null,{length:e})}function lt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(s){return typeof s}:lt=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},lt(e)}var dt=!0,gt=null,At=null,Nt="",jt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Ut=Math.pow,Zt=Math.sqrt,ne=Math.floor,ur=Math.max,ke=Math.min,Xe={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r,s=e.length;for(r=0;r<s;r+=1)Xe[e[r]]=Math[e[r]]})();function fr(){return{}}Xe.random=Math.random,Xe.abs=function(e){var r=lt(e);if(r==="object"&&e.length){var s=et(e.length),l,h=e.length;for(l=0;l<h;l+=1)s[l]=Math.abs(e[l]);return s}return Math.abs(e)};var vr=150,Ct=Math.PI/180,me=.5519;function Ze(e){Vt=!!e}function Qe(e){return Vt?Math.round(e):e}function Je(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function tr(e,r,s,l){this.type=e,this.currentTime=r,this.totalTime=s,this.direction=l<0?-1:1}function pn(e,r){this.type=e,this.direction=r<0?-1:1}function ap(e,r,s,l){this.type=e,this.currentLoop=s,this.totalLoops=r,this.direction=l<0?-1:1}function np(e,r,s){this.type=e,this.firstFrame=r,this.totalFrames=s}function lp(e,r){this.type=e,this.target=r}function Jg(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function tb(e){this.type="configError",this.nativeError=e}function NA(e,r){this.type=e,this.nativeError=r}var we=function(){var e=0;return function(){return e+=1,Nt+"__lottie_element_"+e}}();function Sd(e,r,s){var l,h,c,v,x,g,k,R;switch(v=Math.floor(e*6),x=e*6-v,g=s*(1-r),k=s*(1-x*r),R=s*(1-(1-x)*r),v%6){case 0:l=s,h=R,c=g;break;case 1:l=k,h=s,c=g;break;case 2:l=g,h=s,c=R;break;case 3:l=g,h=k,c=s;break;case 4:l=R,h=g,c=s;break;case 5:l=s,h=g,c=k;break;default:break}return[l,h,c]}function _d(e,r,s){var l=Math.max(e,r,s),h=Math.min(e,r,s),c=l-h,v,x=l===0?0:c/l,g=l/255;switch(l){case h:v=0;break;case e:v=r-s+c*(r<s?6:0),v/=6*c;break;case r:v=s-e+c*2,v/=6*c;break;case s:v=e-r+c*4,v/=6*c;break;default:break}return[v,x,g]}function dp(e,r){var s=_d(e[0]*255,e[1]*255,e[2]*255);return s[1]+=r,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),Sd(s[0],s[1],s[2])}function cp(e,r){var s=_d(e[0]*255,e[1]*255,e[2]*255);return s[2]+=r,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),Sd(s[0],s[1],s[2])}function hp(e,r){var s=_d(e[0]*255,e[1]*255,e[2]*255);return s[0]+=r/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),Sd(s[0],s[1],s[2])}var LA=function(){var e=[],r,s;for(r=0;r<256;r+=1)s=r.toString(16),e[r]=s.length===1?"0"+s:s;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),eb=function(r){dt=!!r},rb=function(){return dt},ib=function(r){gt=r},mn=function(){return gt},RA=function(r){At=r},pp=function(){return At},un=function(r){vr=r},Hs=function(){return vr},ob=function(r){Nt=r},MA=function(){return Nt};function Tt(e){return document.createElementNS(n,e)}function fn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fn=function(s){return typeof s}:fn=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},fn(e)}var Gs=function(){var e=1,r=[],s,l,h={onmessage:function(){},postMessage:function(M){s({data:M})}},c={postMessage:function(M){h.onmessage({data:M})}};function v(T){if(window.Worker&&window.Blob&&d()){var M=new Blob(["var _workerSelf = self; self.onmessage = ",T.toString()],{type:"text/javascript"}),D=URL.createObjectURL(M);return new Worker(D)}return s=T,h}function x(){l||(l=v(function(M){function D(){function V(Q,S){var P,f,y=Q.length,G,F,nt,ft;for(f=0;f<y;f+=1)if(P=Q[f],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for(F=Et.length,G=0;G<F;G+=1)if(Et[G].pt.k.i)w(Et[G].pt.k);else for(ft=Et[G].pt.k.length,nt=0;nt<ft;nt+=1)Et[G].pt.k[nt].s&&w(Et[G].pt.k[nt].s[0]),Et[G].pt.k[nt].e&&w(Et[G].pt.k[nt].e[0])}P.ty===0?(P.layers=E(P.refId,S),V(P.layers,S)):P.ty===4?A(P.shapes):P.ty===5&&xt(P)}}function N(Q,S){if(Q){var P=0,f=Q.length;for(P=0;P<f;P+=1)Q[P].t===1&&(Q[P].data.layers=E(Q[P].data.refId,S),V(Q[P].data.layers,S))}}function I(Q,S){for(var P=0,f=S.length;P<f;){if(S[P].id===Q)return S[P];P+=1}return null}function E(Q,S){var P=I(Q,S);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function A(Q){var S,P=Q.length,f,y;for(S=P-1;S>=0;S-=1)if(Q[S].ty==="sh")if(Q[S].ks.k.i)w(Q[S].ks.k);else for(y=Q[S].ks.k.length,f=0;f<y;f+=1)Q[S].ks.k[f].s&&w(Q[S].ks.k[f].s[0]),Q[S].ks.k[f].e&&w(Q[S].ks.k[f].e[0]);else Q[S].ty==="gr"&&A(Q[S].it)}function w(Q){var S,P=Q.i.length;for(S=0;S<P;S+=1)Q.i[S][0]+=Q.v[S][0],Q.i[S][1]+=Q.v[S][1],Q.o[S][0]+=Q.v[S][0],Q.o[S][1]+=Q.v[S][1]}function $(Q,S){var P=S?S.split("."):[100,100,100];return Q[0]>P[0]?!0:P[0]>Q[0]?!1:Q[1]>P[1]?!0:P[1]>Q[1]?!1:Q[2]>P[2]?!0:P[2]>Q[2]?!1:null}var U=function(){var Q=[4,4,14];function S(f){var y=f.t.d;f.t.d={k:[{s:y,t:0}]}}function P(f){var y,G=f.length;for(y=0;y<G;y+=1)f[y].ty===5&&S(f[y])}return function(f){if($(Q,f.v)&&(P(f.layers),f.assets)){var y,G=f.assets.length;for(y=0;y<G;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),Y=function(){var Q=[4,7,99];return function(S){if(S.chars&&!$(Q,S.v)){var P,f=S.chars.length;for(P=0;P<f;P+=1){var y=S.chars[P];y.data&&y.data.shapes&&(A(y.data.shapes),y.data.ip=0,y.data.op=99999,y.data.st=0,y.data.sr=1,y.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},S.chars[P].t||(y.data.shapes.push({ty:"no"}),y.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),J=function(){var Q=[5,7,15];function S(f){var y=f.t.p;typeof y.a=="number"&&(y.a={a:0,k:y.a}),typeof y.p=="number"&&(y.p={a:0,k:y.p}),typeof y.r=="number"&&(y.r={a:0,k:y.r})}function P(f){var y,G=f.length;for(y=0;y<G;y+=1)f[y].ty===5&&S(f[y])}return function(f){if($(Q,f.v)&&(P(f.layers),f.assets)){var y,G=f.assets.length;for(y=0;y<G;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),yt=function(){var Q=[4,1,9];function S(f){var y,G=f.length,F,nt;for(y=0;y<G;y+=1)if(f[y].ty==="gr")S(f[y].it);else if(f[y].ty==="fl"||f[y].ty==="st")if(f[y].c.k&&f[y].c.k[0].i)for(nt=f[y].c.k.length,F=0;F<nt;F+=1)f[y].c.k[F].s&&(f[y].c.k[F].s[0]/=255,f[y].c.k[F].s[1]/=255,f[y].c.k[F].s[2]/=255,f[y].c.k[F].s[3]/=255),f[y].c.k[F].e&&(f[y].c.k[F].e[0]/=255,f[y].c.k[F].e[1]/=255,f[y].c.k[F].e[2]/=255,f[y].c.k[F].e[3]/=255);else f[y].c.k[0]/=255,f[y].c.k[1]/=255,f[y].c.k[2]/=255,f[y].c.k[3]/=255}function P(f){var y,G=f.length;for(y=0;y<G;y+=1)f[y].ty===4&&S(f[y].shapes)}return function(f){if($(Q,f.v)&&(P(f.layers),f.assets)){var y,G=f.assets.length;for(y=0;y<G;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),pt=function(){var Q=[4,4,18];function S(f){var y,G=f.length,F,nt;for(y=G-1;y>=0;y-=1)if(f[y].ty==="sh")if(f[y].ks.k.i)f[y].ks.k.c=f[y].closed;else for(nt=f[y].ks.k.length,F=0;F<nt;F+=1)f[y].ks.k[F].s&&(f[y].ks.k[F].s[0].c=f[y].closed),f[y].ks.k[F].e&&(f[y].ks.k[F].e[0].c=f[y].closed);else f[y].ty==="gr"&&S(f[y].it)}function P(f){var y,G,F=f.length,nt,ft,Et,Lt;for(G=0;G<F;G+=1){if(y=f[G],y.hasMask){var Rt=y.masksProperties;for(ft=Rt.length,nt=0;nt<ft;nt+=1)if(Rt[nt].pt.k.i)Rt[nt].pt.k.c=Rt[nt].cl;else for(Lt=Rt[nt].pt.k.length,Et=0;Et<Lt;Et+=1)Rt[nt].pt.k[Et].s&&(Rt[nt].pt.k[Et].s[0].c=Rt[nt].cl),Rt[nt].pt.k[Et].e&&(Rt[nt].pt.k[Et].e[0].c=Rt[nt].cl)}y.ty===4&&S(y.shapes)}}return function(f){if($(Q,f.v)&&(P(f.layers),f.assets)){var y,G=f.assets.length;for(y=0;y<G;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}();function ot(Q){Q.__complete||(yt(Q),U(Q),Y(Q),J(Q),pt(Q),V(Q.layers,Q.assets),N(Q.chars,Q.assets),Q.__complete=!0)}function xt(Q){Q.t.a.length===0&&"m"in Q.t.p}var ct={};return ct.completeData=ot,ct.checkColors=yt,ct.checkChars=Y,ct.checkPathProperties=J,ct.checkShapes=pt,ct.completeLayers=V,ct}if(c.dataManager||(c.dataManager=D()),c.assetLoader||(c.assetLoader=function(){function V(I){var E=I.getResponseHeader("content-type");return E&&I.responseType==="json"&&E.indexOf("json")!==-1||I.response&&fn(I.response)==="object"?I.response:I.response&&typeof I.response=="string"?JSON.parse(I.response):I.responseText?JSON.parse(I.responseText):null}function N(I,E,A,w){var $,U=new XMLHttpRequest;try{U.responseType="json"}catch{}U.onreadystatechange=function(){if(U.readyState===4)if(U.status===200)$=V(U),A($);else try{$=V(U),A($)}catch(Y){w&&w(Y)}};try{U.open(["G","E","T"].join(""),I,!0)}catch{U.open(["G","E","T"].join(""),E+"/"+I,!0)}U.send()}return{load:N}}()),M.data.type==="loadAnimation")c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})});else if(M.data.type==="complete"){var O=M.data.animation;c.dataManager.completeData(O),c.postMessage({id:M.data.id,payload:O,status:"success"})}else M.data.type==="loadData"&&c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})})}),l.onmessage=function(T){var M=T.data,D=M.id,O=r[D];r[D]=null,M.status==="success"?O.onComplete(M.payload):O.onError&&O.onError()})}function g(T,M){e+=1;var D="processId_"+e;return r[D]={onComplete:T,onError:M},D}function k(T,M,D){x();var O=g(M,D);l.postMessage({type:"loadAnimation",path:T,fullPath:window.location.origin+window.location.pathname,id:O})}function R(T,M,D){x();var O=g(M,D);l.postMessage({type:"loadData",path:T,fullPath:window.location.origin+window.location.pathname,id:O})}function H(T,M,D){x();var O=g(M,D);l.postMessage({type:"complete",animation:T,id:O})}return{loadAnimation:k,loadData:R,completeAnimation:H}}(),sb=function(){var e=function(){var N=C("canvas");N.width=1,N.height=1;var I=N.getContext("2d");return I.fillStyle="rgba(0,0,0,0)",I.fillRect(0,0,1,1),N}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(N,I,E){var A="";if(N.e)A=N.p;else if(I){var w=N.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),A=I+w}else A=E,A+=N.u?N.u:"",A+=N.p;return A}function h(N){var I=0,E=setInterval((function(){var A=N.getBBox();(A.width||I>500)&&(this._imageLoaded(),clearInterval(E)),I+=1}).bind(this),50)}function c(N){var I=l(N,this.assetsPath,this.path),E=Tt("image");jt?this.testImageLoaded(E):E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),E.setAttributeNS("http://www.w3.org/1999/xlink","href",I),this._elementHelper.append?this._elementHelper.append(E):this._elementHelper.appendChild(E);var A={img:E,assetData:N};return A}function v(N){var I=l(N,this.assetsPath,this.path),E=C("img");E.crossOrigin="anonymous",E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),E.src=I;var A={img:E,assetData:N};return A}function x(N){var I={assetData:N},E=l(N,this.assetsPath,this.path);return Gs.loadData(E,(function(A){I.img=A,this._footageLoaded()}).bind(this),(function(){I.img={},this._footageLoaded()}).bind(this)),I}function g(N,I){this.imagesLoadedCb=I;var E,A=N.length;for(E=0;E<A;E+=1)N[E].layers||(!N[E].t||N[E].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(N[E]))):N[E].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(N[E]))))}function k(N){this.path=N||""}function R(N){this.assetsPath=N||""}function H(N){for(var I=0,E=this.images.length;I<E;){if(this.images[I].assetData===N)return this.images[I].img;I+=1}return null}function T(){this.imagesLoadedCb=null,this.images.length=0}function M(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function O(N,I){N==="svg"?(this._elementHelper=I,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=r.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=x.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:g,setAssetsPath:R,setPath:k,loadedImages:M,loadedFootages:D,destroy:T,getAsset:H,createImgData:v,createImageData:c,imageLoaded:r,footageLoaded:s,setCacheType:O},V}();function mp(){}mp.prototype={triggerEvent:function(r,s){if(this._cbs[r])for(var l=this._cbs[r],h=0;h<l.length;h+=1)l[h](s)},addEventListener:function(r,s){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(s),(function(){this.removeEventListener(r,s)}).bind(this)},removeEventListener:function(r,s){if(!s)this._cbs[r]=null;else if(this._cbs[r]){for(var l=0,h=this._cbs[r].length;l<h;)this._cbs[r][l]===s&&(this._cbs[r].splice(l,1),l-=1,h-=1),l+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var ab=function(){function e(r){for(var s=r.split(`\r
|
|
2
|
+
`),l={},h,c=0,v=0;v<s.length;v+=1)h=s[v].split(":"),h.length===2&&(l[h[0]]=h[1].trim(),c+=1);if(c===0)throw new Error;return l}return function(r){for(var s=[],l=0;l<r.length;l+=1){var h=r[l],c={time:h.tm,duration:h.dr};try{c.payload=JSON.parse(r[l].cm)}catch{try{c.payload=e(r[l].cm)}catch{c.payload={name:r[l].cm}}}s.push(c)}return s}}(),nb=function(){function e(r){this.compositions.push(r)}return function(){function r(s){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===s)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),Ys={},lb=function(r,s){Ys[r]=s};function db(e){return Ys[e]}function cb(){if(Ys.canvas)return"canvas";for(var e in Ys)if(Ys[e])return e;return""}function Ws(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ws=function(s){return typeof s}:Ws=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ws(e)}var ut=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=we(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=rb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=nb(),this.imagePreloader=new sb,this.audioController=rt(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new tr("drawnFrame",0,0,0),this.expressionsPlugin=mn()};L([mp],ut),ut.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var s=db(r);this.renderer=new s(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Gs.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ut.prototype.onSetupError=function(){this.trigger("data_failed")},ut.prototype.setupAnimation=function(e){Gs.completeAnimation(e,this.configAnimation)},ut.prototype.setData=function(e,r){r&&Ws(r)!=="object"&&(r=JSON.parse(r));var s={wrapper:e,animationData:r},l=e.attributes;s.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",s.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:cb()||"canvas";var h=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";h==="false"?s.loop=!1:h==="true"?s.loop=!0:h!==""&&(s.loop=parseInt(h,10));var c=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;s.autoplay=c!=="false",s.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var v=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";v==="false"&&(s.prerender=!1),s.path?this.setParams(s):this.trigger("destroy")},ut.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,s,l=r.length,h=e.layers,c,v=h.length;for(c=0;c<v;c+=1)for(s=0;s<l;){if(r[s].id===h[c].id){r[s]=h[c];break}s+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,s=0;s<l;s+=1)this.animationData.assets.push(e.assets[s]);this.animationData.__complete=!1,Gs.completeAnimation(this.animationData,this.onSegmentComplete)},ut.prototype.onSegmentComplete=function(e){this.animationData=e;var r=mn();r&&r.initExpressions(this),this.loadNextSegment()},ut.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var s=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Gs.loadData(s,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ut.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ut.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ut.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ut.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=ab(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},ut.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ut.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=mn();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ut.prototype.resize=function(e,r){var s=typeof e=="number"?e:void 0,l=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(s,l)},ut.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ut.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")},ut.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ut.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ut.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ut.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ut.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ut.prototype.getMarkerData=function(e){for(var r,s=0;s<this.markers.length;s+=1)if(r=this.markers[s],r.payload&&r.payload.name===e)return r;return null},ut.prototype.goToAndStop=function(e,r,s){if(!(s&&this.name!==s)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&this.goToAndStop(h.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ut.prototype.goToAndPlay=function(e,r,s){if(!(s&&this.name!==s)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(l,r,s);this.play()}},ut.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,s=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(s=!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):(s=!0,r=0)):this.setCurrentRawFrameValue(r),s&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},ut.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},ut.prototype.setSegment=function(e,r){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?s=e:this.currentRawFrame+this.firstFrame>r&&(s=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},ut.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),Ws(e[0])==="object"){var s,l=e.length;for(s=0;s<l;s+=1)this.segments.push(e[s])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ut.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ut.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ut.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ut.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ut.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ut.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ut.prototype.setLoop=function(e){this.loop=e},ut.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},ut.prototype.getVolume=function(){return this.audioController.getVolume()},ut.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ut.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ut.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ut.prototype.getPath=function(){return this.path},ut.prototype.getAssetsPath=function(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var s=e.p;s.indexOf("images/")!==-1&&(s=s.split("/")[1]),r=this.assetsPath+s}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},ut.prototype.getAssetData=function(e){for(var r=0,s=this.assets.length;r<s;){if(e===this.assets[r].id)return this.assets[r];r+=1}return null},ut.prototype.hide=function(){this.renderer.hide()},ut.prototype.show=function(){this.renderer.show()},ut.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ut.prototype.updateDocumentData=function(e,r,s){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(r,s)}catch{}},ut.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new tr(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new ap(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new pn(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new np(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new lp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new tr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new ap(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new pn(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new np(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new lp(e,this))},ut.prototype.triggerRenderFrameError=function(e){var r=new Jg(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},ut.prototype.triggerConfigError=function(e){var r=new tb(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Qt=function(){var e={},r=[],s=0,l=0,h=0,c=!0,v=!1;function x(S){for(var P=0,f=S.target;P<l;)r[P].animation===f&&(r.splice(P,1),P-=1,l-=1,f.isPaused||H()),P+=1}function g(S,P){if(!S)return null;for(var f=0;f<l;){if(r[f].elem===S&&r[f].elem!==null)return r[f].animation;f+=1}var y=new ut;return T(y,S),y.setData(S,P),y}function k(){var S,P=r.length,f=[];for(S=0;S<P;S+=1)f.push(r[S].animation);return f}function R(){h+=1,yt()}function H(){h-=1}function T(S,P){S.addEventListener("destroy",x),S.addEventListener("_active",R),S.addEventListener("_idle",H),r.push({elem:P,animation:S}),l+=1}function M(S){var P=new ut;return T(P,null),P.setParams(S),P}function D(S,P){var f;for(f=0;f<l;f+=1)r[f].animation.setSpeed(S,P)}function O(S,P){var f;for(f=0;f<l;f+=1)r[f].animation.setDirection(S,P)}function V(S){var P;for(P=0;P<l;P+=1)r[P].animation.play(S)}function N(S){var P=S-s,f;for(f=0;f<l;f+=1)r[f].animation.advanceTime(P);s=S,h&&!v?window.requestAnimationFrame(N):c=!0}function I(S){s=S,window.requestAnimationFrame(N)}function E(S){var P;for(P=0;P<l;P+=1)r[P].animation.pause(S)}function A(S,P,f){var y;for(y=0;y<l;y+=1)r[y].animation.goToAndStop(S,P,f)}function w(S){var P;for(P=0;P<l;P+=1)r[P].animation.stop(S)}function $(S){var P;for(P=0;P<l;P+=1)r[P].animation.togglePause(S)}function U(S){var P;for(P=l-1;P>=0;P-=1)r[P].animation.destroy(S)}function Y(S,P,f){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),G,F=y.length;for(G=0;G<F;G+=1)f&&y[G].setAttribute("data-bm-type",f),g(y[G],S);if(P&&F===0){f||(f="svg");var nt=document.getElementsByTagName("body")[0];nt.innerText="";var ft=C("div");ft.style.width="100%",ft.style.height="100%",ft.setAttribute("data-bm-type",f),nt.appendChild(ft),g(ft,S)}}function J(){var S;for(S=0;S<l;S+=1)r[S].animation.resize()}function yt(){!v&&h&&c&&(window.requestAnimationFrame(I),c=!1)}function pt(){v=!0}function ot(){v=!1,yt()}function xt(S,P){var f;for(f=0;f<l;f+=1)r[f].animation.setVolume(S,P)}function ct(S){var P;for(P=0;P<l;P+=1)r[P].animation.mute(S)}function Q(S){var P;for(P=0;P<l;P+=1)r[P].animation.unmute(S)}return e.registerAnimation=g,e.loadAnimation=M,e.setSpeed=D,e.setDirection=O,e.play=V,e.pause=E,e.stop=w,e.togglePause=$,e.searchAnimations=Y,e.resize=J,e.goToAndStop=A,e.destroy=U,e.freeze=pt,e.unfreeze=ot,e.setVolume=xt,e.mute=ct,e.unmute=Q,e.getRegisteredAnimations=k,e}(),js=function(){var e={};e.getBezierEasing=s;var r={};function s(I,E,A,w,$){var U=$||("bez_"+I+"_"+E+"_"+A+"_"+w).replace(/\./g,"p");if(r[U])return r[U];var Y=new N([I,E,A,w]);return r[U]=Y,Y}var l=4,h=.001,c=1e-7,v=10,x=11,g=1/(x-1),k=typeof Float32Array=="function";function R(I,E){return 1-3*E+3*I}function H(I,E){return 3*E-6*I}function T(I){return 3*I}function M(I,E,A){return((R(E,A)*I+H(E,A))*I+T(E))*I}function D(I,E,A){return 3*R(E,A)*I*I+2*H(E,A)*I+T(E)}function O(I,E,A,w,$){var U,Y,J=0;do Y=E+(A-E)/2,U=M(Y,w,$)-I,U>0?A=Y:E=Y;while(Math.abs(U)>c&&++J<v);return Y}function V(I,E,A,w){for(var $=0;$<l;++$){var U=D(E,A,w);if(U===0)return E;var Y=M(E,A,w)-I;E-=Y/U}return E}function N(I){this._p=I,this._mSampleValues=k?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(E){var A=this._p[0],w=this._p[1],$=this._p[2],U=this._p[3];return this._precomputed||this._precompute(),A===w&&$===U?E:E===0?0:E===1?1:M(this._getTForX(E),w,U)},_precompute:function(){var E=this._p[0],A=this._p[1],w=this._p[2],$=this._p[3];this._precomputed=!0,(E!==A||w!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var E=this._p[0],A=this._p[2],w=0;w<x;++w)this._mSampleValues[w]=M(w*g,E,A)},_getTForX:function(E){for(var A=this._p[0],w=this._p[2],$=this._mSampleValues,U=0,Y=1,J=x-1;Y!==J&&$[Y]<=E;++Y)U+=g;--Y;var yt=(E-$[Y])/($[Y+1]-$[Y]),pt=U+yt*g,ot=D(pt,A,w);return ot>=h?V(E,pt,A,w):ot===0?pt:O(E,U,U+g,A,w)}},e}(),up=function(){function e(r){return r.concat(et(r.length))}return{double:e}}(),vn=function(){return function(e,r,s){var l=0,h=e,c=et(h),v={newElement:x,release:g};function x(){var k;return l?(l-=1,k=c[l]):k=r(),k}function g(k){l===h&&(c=up.double(c),h*=2),s&&s(k),c[l]=k,l+=1}return v}}(),fp=function(){function e(){return{addedLength:0,percents:X("float32",Hs()),lengths:X("float32",Hs())}}return vn(8,e)}(),vp=function(){function e(){return{lengths:[],totalLength:0}}function r(s){var l,h=s.lengths.length;for(l=0;l<h;l+=1)fp.release(s.lengths[l]);s.lengths.length=0}return vn(8,e,r)}();function hb(){var e=Math;function r(T,M,D,O,V,N){var I=T*O+M*V+D*N-V*O-N*T-D*M;return I>-.001&&I<.001}function s(T,M,D,O,V,N,I,E,A){if(D===0&&N===0&&A===0)return r(T,M,O,V,I,E);var w=e.sqrt(e.pow(O-T,2)+e.pow(V-M,2)+e.pow(N-D,2)),$=e.sqrt(e.pow(I-T,2)+e.pow(E-M,2)+e.pow(A-D,2)),U=e.sqrt(e.pow(I-O,2)+e.pow(E-V,2)+e.pow(A-N,2)),Y;return w>$?w>U?Y=w-$-U:Y=U-$-w:U>$?Y=U-$-w:Y=$-w-U,Y>-1e-4&&Y<1e-4}var l=function(){return function(T,M,D,O){var V=Hs(),N,I,E,A,w,$=0,U,Y=[],J=[],yt=fp.newElement();for(E=D.length,N=0;N<V;N+=1){for(w=N/(V-1),U=0,I=0;I<E;I+=1)A=Ut(1-w,3)*T[I]+3*Ut(1-w,2)*w*D[I]+3*(1-w)*Ut(w,2)*O[I]+Ut(w,3)*M[I],Y[I]=A,J[I]!==null&&(U+=Ut(Y[I]-J[I],2)),J[I]=Y[I];U&&(U=Zt(U),$+=U),yt.percents[N]=w,yt.lengths[N]=$}return yt.addedLength=$,yt}}();function h(T){var M=vp.newElement(),D=T.c,O=T.v,V=T.o,N=T.i,I,E=T._length,A=M.lengths,w=0;for(I=0;I<E-1;I+=1)A[I]=l(O[I],O[I+1],V[I],N[I+1]),w+=A[I].addedLength;return D&&E&&(A[I]=l(O[I],O[0],V[I],N[0]),w+=A[I].addedLength),M.totalLength=w,M}function c(T){this.segmentLength=0,this.points=new Array(T)}function v(T,M){this.partialLength=T,this.point=M}var x=function(){var T={};return function(M,D,O,V){var N=(M[0]+"_"+M[1]+"_"+D[0]+"_"+D[1]+"_"+O[0]+"_"+O[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!T[N]){var I=Hs(),E,A,w,$,U,Y=0,J,yt,pt=null;M.length===2&&(M[0]!==D[0]||M[1]!==D[1])&&r(M[0],M[1],D[0],D[1],M[0]+O[0],M[1]+O[1])&&r(M[0],M[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(I=2);var ot=new c(I);for(w=O.length,E=0;E<I;E+=1){for(yt=et(w),U=E/(I-1),J=0,A=0;A<w;A+=1)$=Ut(1-U,3)*M[A]+3*Ut(1-U,2)*U*(M[A]+O[A])+3*(1-U)*Ut(U,2)*(D[A]+V[A])+Ut(U,3)*D[A],yt[A]=$,pt!==null&&(J+=Ut(yt[A]-pt[A],2));J=Zt(J),Y+=J,ot.points[E]=new v(J,yt),pt=yt}ot.segmentLength=Y,T[N]=ot}return T[N]}}();function g(T,M){var D=M.percents,O=M.lengths,V=D.length,N=ne((V-1)*T),I=T*M.addedLength,E=0;if(N===V-1||N===0||I===O[N])return D[N];for(var A=O[N]>I?-1:1,w=!0;w;)if(O[N]<=I&&O[N+1]>I?(E=(I-O[N])/(O[N+1]-O[N]),w=!1):N+=A,N<0||N>=V-1){if(N===V-1)return D[N];w=!1}return D[N]+(D[N+1]-D[N])*E}function k(T,M,D,O,V,N){var I=g(V,N),E=1-I,A=e.round((E*E*E*T[0]+(I*E*E+E*I*E+E*E*I)*D[0]+(I*I*E+E*I*I+I*E*I)*O[0]+I*I*I*M[0])*1e3)/1e3,w=e.round((E*E*E*T[1]+(I*E*E+E*I*E+E*E*I)*D[1]+(I*I*E+E*I*I+I*E*I)*O[1]+I*I*I*M[1])*1e3)/1e3;return[A,w]}var R=X("float32",8);function H(T,M,D,O,V,N,I){V<0?V=0:V>1&&(V=1);var E=g(V,I);N=N>1?1:N;var A=g(N,I),w,$=T.length,U=1-E,Y=1-A,J=U*U*U,yt=E*U*U*3,pt=E*E*U*3,ot=E*E*E,xt=U*U*Y,ct=E*U*Y+U*E*Y+U*U*A,Q=E*E*Y+U*E*A+E*U*A,S=E*E*A,P=U*Y*Y,f=E*Y*Y+U*A*Y+U*Y*A,y=E*A*Y+U*A*A+E*Y*A,G=E*A*A,F=Y*Y*Y,nt=A*Y*Y+Y*A*Y+Y*Y*A,ft=A*A*Y+Y*A*A+A*Y*A,Et=A*A*A;for(w=0;w<$;w+=1)R[w*4]=e.round((J*T[w]+yt*D[w]+pt*O[w]+ot*M[w])*1e3)/1e3,R[w*4+1]=e.round((xt*T[w]+ct*D[w]+Q*O[w]+S*M[w])*1e3)/1e3,R[w*4+2]=e.round((P*T[w]+f*D[w]+y*O[w]+G*M[w])*1e3)/1e3,R[w*4+3]=e.round((F*T[w]+nt*D[w]+ft*O[w]+Et*M[w])*1e3)/1e3;return R}return{getSegmentsLength:h,getNewSegment:H,getPointInSegment:k,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:s}}var Cr=hb(),Qi=i,gp=Math.abs;function bp(e,r){var s=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=r.lastIndex,c=h,v=this.keyframes.length-1,x=!0,g,k,R;x;){if(g=this.keyframes[c],k=this.keyframes[c+1],c===v-1&&e>=k.t-s){g.h&&(g=k),h=0;break}if(k.t-s>e){h=c;break}c<v-1?c+=1:(h=0,x=!1)}R=this.keyframesMetadata[c]||{};var H,T,M,D,O,V,N=k.t-s,I=g.t-s,E;if(g.to){R.bezierData||(R.bezierData=Cr.buildBezierData(g.s,k.s||g.e,g.to,g.ti));var A=R.bezierData;if(e>=N||e<I){var w=e>=N?A.points.length-1:0;for(T=A.points[w].point.length,H=0;H<T;H+=1)l[H]=A.points[w].point[H]}else{R.__fnct?V=R.__fnct:(V=js.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,R.__fnct=V),M=V((e-I)/(N-I));var $=A.segmentLength*M,U,Y=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(O=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,D=A.points.length;x;){if(Y+=A.points[O].partialLength,$===0||M===0||O===A.points.length-1){for(T=A.points[O].point.length,H=0;H<T;H+=1)l[H]=A.points[O].point[H];break}else if($>=Y&&$<Y+A.points[O+1].partialLength){for(U=($-Y)/A.points[O+1].partialLength,T=A.points[O].point.length,H=0;H<T;H+=1)l[H]=A.points[O].point[H]+(A.points[O+1].point[H]-A.points[O].point[H])*U;break}O<D-1?O+=1:x=!1}r._lastPoint=O,r._lastAddedLength=Y-A.points[O].partialLength,r._lastKeyframeIndex=c}}else{var J,yt,pt,ot,xt;if(v=g.s.length,E=k.s||g.e,this.sh&&g.h!==1)if(e>=N)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=I)l[0]=g.s[0],l[1]=g.s[1],l[2]=g.s[2];else{var ct=yp(g.s),Q=yp(E),S=(e-I)/(N-I);mb(l,pb(ct,Q,S))}else for(c=0;c<v;c+=1)g.h!==1&&(e>=N?M=1:e<I?M=0:(g.o.x.constructor===Array?(R.__fnct||(R.__fnct=[]),R.__fnct[c]?V=R.__fnct[c]:(J=g.o.x[c]===void 0?g.o.x[0]:g.o.x[c],yt=g.o.y[c]===void 0?g.o.y[0]:g.o.y[c],pt=g.i.x[c]===void 0?g.i.x[0]:g.i.x[c],ot=g.i.y[c]===void 0?g.i.y[0]:g.i.y[c],V=js.getBezierEasing(J,yt,pt,ot).get,R.__fnct[c]=V)):R.__fnct?V=R.__fnct:(J=g.o.x,yt=g.o.y,pt=g.i.x,ot=g.i.y,V=js.getBezierEasing(J,yt,pt,ot).get,g.keyframeMetadata=V),M=V((e-I)/(N-I)))),E=k.s||g.e,xt=g.h===1?g.s[c]:g.s[c]+(E[c]-g.s[c])*M,this.propType==="multidimensional"?l[c]=xt:l=xt}return r.lastIndex=h,l}function pb(e,r,s){var l=[],h=e[0],c=e[1],v=e[2],x=e[3],g=r[0],k=r[1],R=r[2],H=r[3],T,M,D,O,V;return M=h*g+c*k+v*R+x*H,M<0&&(M=-M,g=-g,k=-k,R=-R,H=-H),1-M>1e-6?(T=Math.acos(M),D=Math.sin(T),O=Math.sin((1-s)*T)/D,V=Math.sin(s*T)/D):(O=1-s,V=s),l[0]=O*h+V*g,l[1]=O*c+V*k,l[2]=O*v+V*R,l[3]=O*x+V*H,l}function mb(e,r){var s=r[0],l=r[1],h=r[2],c=r[3],v=Math.atan2(2*l*c-2*s*h,1-2*l*l-2*h*h),x=Math.asin(2*s*l+2*h*c),g=Math.atan2(2*s*c-2*l*h,1-2*s*s-2*h*h);e[0]=v/Ct,e[1]=x/Ct,e[2]=g/Ct}function yp(e){var r=e[0]*Ct,s=e[1]*Ct,l=e[2]*Ct,h=Math.cos(r/2),c=Math.cos(s/2),v=Math.cos(l/2),x=Math.sin(r/2),g=Math.sin(s/2),k=Math.sin(l/2),R=h*c*v-x*g*k,H=x*g*v+h*c*k,T=x*c*v+h*g*k,M=h*g*v-x*c*k;return[H,T,M,R]}function Ep(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==Qi&&(this._caching.lastFrame>=s&&e>=s||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function gn(e){var r;if(this.propType==="unidimensional")r=e*this.mult,gp(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var s=0,l=this.v.length;s<l;)r=e[s]*this.mult,gp(this.v[s]-r)>1e-5&&(this.v[s]=r,this._mdf=!0),s+=1}function bn(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,r=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)s=this.effectsSequence[e](s);this.setVValue(s),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function yn(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ub(e,r,s,l){this.propType="unidimensional",this.mult=s||1,this.data=r,this.v=s?r.k*s:r.k,this.pv=r.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=bn,this.setVValue=gn,this.addEffect=yn}function fb(e,r,s,l){this.propType="multidimensional",this.mult=s||1,this.data=r,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,c=r.k.length;for(this.v=X("float32",c),this.pv=X("float32",c),this.vel=X("float32",c),h=0;h<c;h+=1)this.v[h]=r.k[h]*this.mult,this.pv[h]=r.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=bn,this.setVValue=gn,this.addEffect=yn}function vb(e,r,s,l){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:Qi,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=s||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=Qi,this.pv=Qi,this._isFirstFrame=!0,this.getValue=bn,this.setVValue=gn,this.interpolateValue=bp,this.effectsSequence=[Ep.bind(this)],this.addEffect=yn}function gb(e,r,s,l){this.propType="multidimensional";var h,c=r.k.length,v,x,g,k;for(h=0;h<c-1;h+=1)r.k[h].to&&r.k[h].s&&r.k[h+1]&&r.k[h+1].s&&(v=r.k[h].s,x=r.k[h+1].s,g=r.k[h].to,k=r.k[h].ti,(v.length===2&&!(v[0]===x[0]&&v[1]===x[1])&&Cr.pointOnLine2D(v[0],v[1],x[0],x[1],v[0]+g[0],v[1]+g[1])&&Cr.pointOnLine2D(v[0],v[1],x[0],x[1],x[0]+k[0],x[1]+k[1])||v.length===3&&!(v[0]===x[0]&&v[1]===x[1]&&v[2]===x[2])&&Cr.pointOnLine3D(v[0],v[1],v[2],x[0],x[1],x[2],v[0]+g[0],v[1]+g[1],v[2]+g[2])&&Cr.pointOnLine3D(v[0],v[1],v[2],x[0],x[1],x[2],x[0]+k[0],x[1]+k[1],x[2]+k[2]))&&(r.k[h].to=null,r.k[h].ti=null),v[0]===x[0]&&v[1]===x[1]&&g[0]===0&&g[1]===0&&k[0]===0&&k[1]===0&&(v.length===2||v[2]===x[2]&&g[2]===0&&k[2]===0)&&(r.k[h].to=null,r.k[h].ti=null));this.effectsSequence=[Ep.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=s||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=bn,this.setVValue=gn,this.interpolateValue=bp,this.frameId=-1;var R=r.k[0].s.length;for(this.v=X("float32",R),this.pv=X("float32",R),h=0;h<R;h+=1)this.v[h]=Qi,this.pv[h]=Qi;this._caching={lastFrame:Qi,lastIndex:0,value:X("float32",R)},this.addEffect=yn}var at=function(){function e(s,l,h,c,v){l.sid&&(l=s.globalData.slotManager.getProp(l));var x;if(!l.k.length)x=new ub(s,l,c,v);else if(typeof l.k[0]=="number")x=new fb(s,l,c,v);else switch(h){case 0:x=new vb(s,l,c,v);break;case 1:x=new gb(s,l,c,v);break;default:break}return x.effectsSequence.length&&v.addDynamicProperty(x),x}var r={getProp:e};return r}();function le(){}le.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,s=this.dynamicProperties.length;for(r=0;r<s;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 Ji=function(){function e(){return X("float32",2)}return vn(8,e)}();function Yr(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}Yr.prototype.setPathData=function(e,r){this.c=e,this.setLength(r);for(var s=0;s<r;)this.v[s]=Ji.newElement(),this.o[s]=Ji.newElement(),this.i[s]=Ji.newElement(),s+=1},Yr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Yr.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},Yr.prototype.setXYAt=function(e,r,s,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[l]||c[l]&&!h)&&(c[l]=Ji.newElement()),c[l][0]=e,c[l][1]=r},Yr.prototype.setTripleAt=function(e,r,s,l,h,c,v,x){this.setXYAt(e,r,"v",v,x),this.setXYAt(s,l,"o",v,x),this.setXYAt(h,c,"i",v,x)},Yr.prototype.reverse=function(){var e=new Yr;e.setPathData(this.c,this._length);var r=this.v,s=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],l[0][0],l[0][1],s[0][0],s[0][1],0,!1),h=1);var c=this._length-1,v=this._length,x;for(x=h;x<v;x+=1)e.setTripleAt(r[c][0],r[c][1],l[c][0],l[c][1],s[c][0],s[c][1],x,!1),c-=1;return e},Yr.prototype.length=function(){return this._length};var ue=function(){function e(){return new Yr}function r(h){var c=h._length,v;for(v=0;v<c;v+=1)Ji.release(h.v[v]),Ji.release(h.i[v]),Ji.release(h.o[v]),h.v[v]=null,h.i[v]=null,h.o[v]=null;h._length=0,h.c=!1}function s(h){var c=l.newElement(),v,x=h._length===void 0?h.v.length:h._length;for(c.setLength(x),c.c=h.c,v=0;v<x;v+=1)c.setTripleAt(h.v[v][0],h.v[v][1],h.o[v][0],h.o[v][1],h.i[v][0],h.i[v][1],v);return c}var l=vn(4,e,r);return l.clone=s,l}();function Id(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Id.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Id.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ue.release(this.shapes[e]);this._length=0};var Ho=function(){var e={newShapeCollection:h,release:c},r=0,s=4,l=et(s);function h(){var v;return r?(r-=1,v=l[r]):v=new Id,v}function c(v){var x,g=v._length;for(x=0;x<g;x+=1)ue.release(v.shapes[x]);v._length=0,r===s&&(l=up.double(l),s*=2),l[r]=v,r+=1}return e}(),En=function(){var e=-999999;function r(N,I,E){var A=E.lastIndex,w,$,U,Y,J,yt,pt,ot,xt,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)w=ct[0].s[0],U=!0,A=0;else if(N>=ct[ct.length-1].t-this.offsetTime)w=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],U=!0;else{for(var Q=A,S=ct.length-1,P=!0,f,y,G;P&&(f=ct[Q],y=ct[Q+1],!(y.t-this.offsetTime>N));)Q<S-1?Q+=1:P=!1;if(G=this.keyframesMetadata[Q]||{},U=f.h===1,A=Q,!U){if(N>=y.t-this.offsetTime)ot=1;else if(N<f.t-this.offsetTime)ot=0;else{var F;G.__fnct?F=G.__fnct:(F=js.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,G.__fnct=F),ot=F((N-(f.t-this.offsetTime))/(y.t-this.offsetTime-(f.t-this.offsetTime)))}$=y.s?y.s[0]:f.e[0]}w=f.s[0]}for(yt=I._length,pt=w.i[0].length,E.lastIndex=A,Y=0;Y<yt;Y+=1)for(J=0;J<pt;J+=1)xt=U?w.i[Y][J]:w.i[Y][J]+($.i[Y][J]-w.i[Y][J])*ot,I.i[Y][J]=xt,xt=U?w.o[Y][J]:w.o[Y][J]+($.o[Y][J]-w.o[Y][J])*ot,I.o[Y][J]=xt,xt=U?w.v[Y][J]:w.v[Y][J]+($.v[Y][J]-w.v[Y][J])*ot,I.v[Y][J]=xt}function s(){var N=this.comp.renderedFrame-this.offsetTime,I=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<I&&N<I||A>E&&N>E)||(this._caching.lastIndex=A<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function l(){this.paths=this.localShapeCollection}function h(N,I){if(N._length!==I._length||N.c!==I.c)return!1;var E,A=N._length;for(E=0;E<A;E+=1)if(N.v[E][0]!==I.v[E][0]||N.v[E][1]!==I.v[E][1]||N.o[E][0]!==I.o[E][0]||N.o[E][1]!==I.o[E][1]||N.i[E][0]!==I.i[E][0]||N.i[E][1]!==I.i[E][1])return!1;return!0}function c(N){h(this.v,N)||(this.v=ue.clone(N),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function v(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var I,E=this.effectsSequence.length;for(I=0;I<E;I+=1)N=this.effectsSequence[I](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(N,I,E){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=I,this.k=!1,this.kf=!1,this._mdf=!1;var A=E===3?I.pt.k:I.ks.k;this.v=ue.clone(A),this.pv=ue.clone(this.v),this.localShapeCollection=Ho.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function g(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}x.prototype.interpolateShape=r,x.prototype.getValue=v,x.prototype.setVValue=c,x.prototype.addEffect=g;function k(N,I,E){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=E===3?I.pt.k:I.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=ue.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ue.clone(this.v),this.localShapeCollection=Ho.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[s.bind(this)]}k.prototype.getValue=v,k.prototype.interpolateShape=r,k.prototype.setVValue=c,k.prototype.addEffect=g;var R=function(){var N=me;function I(E,A){this.v=ue.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ho.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=at.getProp(E,A.p,1,0,this),this.s=at.getProp(E,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return I.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var A=this.p.v[0],w=this.p.v[1],$=this.s.v[0]/2,U=this.s.v[1]/2,Y=this.d!==3,J=this.v;J.v[0][0]=A,J.v[0][1]=w-U,J.v[1][0]=Y?A+$:A-$,J.v[1][1]=w,J.v[2][0]=A,J.v[2][1]=w+U,J.v[3][0]=Y?A-$:A+$,J.v[3][1]=w,J.i[0][0]=Y?A-$*N:A+$*N,J.i[0][1]=w-U,J.i[1][0]=Y?A+$:A-$,J.i[1][1]=w-U*N,J.i[2][0]=Y?A+$*N:A-$*N,J.i[2][1]=w+U,J.i[3][0]=Y?A-$:A+$,J.i[3][1]=w+U*N,J.o[0][0]=Y?A+$*N:A-$*N,J.o[0][1]=w-U,J.o[1][0]=Y?A+$:A-$,J.o[1][1]=w+U*N,J.o[2][0]=Y?A-$*N:A+$*N,J.o[2][1]=w+U,J.o[3][0]=Y?A-$:A+$,J.o[3][1]=w-U*N}},L([le],I),I}(),H=function(){function N(I,E){this.v=ue.newElement(),this.v.setPathData(!0,0),this.elem=I,this.comp=I.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(I),E.sy===1?(this.ir=at.getProp(I,E.ir,0,0,this),this.is=at.getProp(I,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(I,E.pt,0,0,this),this.p=at.getProp(I,E.p,1,0,this),this.r=at.getProp(I,E.r,0,Ct,this),this.or=at.getProp(I,E.or,0,0,this),this.os=at.getProp(I,E.os,0,.01,this),this.localShapeCollection=Ho.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return N.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var E=Math.floor(this.pt.v)*2,A=Math.PI*2/E,w=!0,$=this.or.v,U=this.ir.v,Y=this.os.v,J=this.is.v,yt=2*Math.PI*$/(E*2),pt=2*Math.PI*U/(E*2),ot,xt,ct,Q,S=-Math.PI/2;S+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,ot=0;ot<E;ot+=1){xt=w?$:U,ct=w?Y:J,Q=w?yt:pt;var f=xt*Math.cos(S),y=xt*Math.sin(S),G=f===0&&y===0?0:y/Math.sqrt(f*f+y*y),F=f===0&&y===0?0:-f/Math.sqrt(f*f+y*y);f+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(f,y,f-G*Q*ct*P,y-F*Q*ct*P,f+G*Q*ct*P,y+F*Q*ct*P,ot,!0),w=!w,S+=A*P}},convertPolygonToPath:function(){var E=Math.floor(this.pt.v),A=Math.PI*2/E,w=this.or.v,$=this.os.v,U=2*Math.PI*w/(E*4),Y,J=-Math.PI*.5,yt=this.data.d===3?-1:1;for(J+=this.r.v,this.v._length=0,Y=0;Y<E;Y+=1){var pt=w*Math.cos(J),ot=w*Math.sin(J),xt=pt===0&&ot===0?0:ot/Math.sqrt(pt*pt+ot*ot),ct=pt===0&&ot===0?0:-pt/Math.sqrt(pt*pt+ot*ot);pt+=+this.p.v[0],ot+=+this.p.v[1],this.v.setTripleAt(pt,ot,pt-xt*U*$*yt,ot-ct*U*$*yt,pt+xt*U*$*yt,ot+ct*U*$*yt,Y,!0),J+=A*yt}this.paths.length=0,this.paths[0]=this.v}},L([le],N),N}(),T=function(){function N(I,E){this.v=ue.newElement(),this.v.c=!0,this.localShapeCollection=Ho.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=I,this.comp=I.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(I),this.p=at.getProp(I,E.p,1,0,this),this.s=at.getProp(I,E.s,1,0,this),this.r=at.getProp(I,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var E=this.p.v[0],A=this.p.v[1],w=this.s.v[0]/2,$=this.s.v[1]/2,U=ke(w,$,this.r.v),Y=U*(1-me);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(E+w,A-$+U,E+w,A-$+U,E+w,A-$+Y,0,!0),this.v.setTripleAt(E+w,A+$-U,E+w,A+$-Y,E+w,A+$-U,1,!0),U!==0?(this.v.setTripleAt(E+w-U,A+$,E+w-U,A+$,E+w-Y,A+$,2,!0),this.v.setTripleAt(E-w+U,A+$,E-w+Y,A+$,E-w+U,A+$,3,!0),this.v.setTripleAt(E-w,A+$-U,E-w,A+$-U,E-w,A+$-Y,4,!0),this.v.setTripleAt(E-w,A-$+U,E-w,A-$+Y,E-w,A-$+U,5,!0),this.v.setTripleAt(E-w+U,A-$,E-w+U,A-$,E-w+Y,A-$,6,!0),this.v.setTripleAt(E+w-U,A-$,E+w-Y,A-$,E+w-U,A-$,7,!0)):(this.v.setTripleAt(E-w,A+$,E-w+Y,A+$,E-w,A+$,2),this.v.setTripleAt(E-w,A-$,E-w,A-$+Y,E-w,A-$,3))):(this.v.setTripleAt(E+w,A-$+U,E+w,A-$+Y,E+w,A-$+U,0,!0),U!==0?(this.v.setTripleAt(E+w-U,A-$,E+w-U,A-$,E+w-Y,A-$,1,!0),this.v.setTripleAt(E-w+U,A-$,E-w+Y,A-$,E-w+U,A-$,2,!0),this.v.setTripleAt(E-w,A-$+U,E-w,A-$+U,E-w,A-$+Y,3,!0),this.v.setTripleAt(E-w,A+$-U,E-w,A+$-Y,E-w,A+$-U,4,!0),this.v.setTripleAt(E-w+U,A+$,E-w+U,A+$,E-w+Y,A+$,5,!0),this.v.setTripleAt(E+w-U,A+$,E+w-Y,A+$,E+w-U,A+$,6,!0),this.v.setTripleAt(E+w,A+$-U,E+w,A+$-U,E+w,A+$-Y,7,!0)):(this.v.setTripleAt(E-w,A-$,E-w+Y,A-$,E-w,A-$,1,!0),this.v.setTripleAt(E-w,A+$,E-w,A+$-Y,E-w,A+$,2,!0),this.v.setTripleAt(E+w,A+$,E+w-Y,A+$,E+w,A+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},L([le],N),N}();function M(N,I,E){var A;if(E===3||E===4){var w=E===3?I.pt:I.ks,$=w.k;$.length?A=new k(N,I,E):A=new x(N,I,E)}else E===5?A=new T(N,I):E===6?A=new R(N,I):E===7&&(A=new H(N,I));return A.k&&N.addDynamicProperty(A),A}function D(){return x}function O(){return k}var V={};return V.getShapeProp=M,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=O,V}();var fe=function(){var e=Math.cos,r=Math.sin,s=Math.tan,l=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(f){if(f===0)return this;var y=e(f),G=r(f);return this._t(y,-G,0,0,G,y,0,0,0,0,1,0,0,0,0,1)}function v(f){if(f===0)return this;var y=e(f),G=r(f);return this._t(1,0,0,0,0,y,-G,0,0,G,y,0,0,0,0,1)}function x(f){if(f===0)return this;var y=e(f),G=r(f);return this._t(y,0,G,0,0,1,0,0,-G,0,y,0,0,0,0,1)}function g(f){if(f===0)return this;var y=e(f),G=r(f);return this._t(y,-G,0,0,G,y,0,0,0,0,1,0,0,0,0,1)}function k(f,y){return this._t(1,y,f,1,0,0)}function R(f,y){return this.shear(s(f),s(y))}function H(f,y){var G=e(y),F=r(y);return this._t(G,F,0,0,-F,G,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,s(f),1,0,0,0,0,1,0,0,0,0,1)._t(G,-F,0,0,F,G,0,0,0,0,1,0,0,0,0,1)}function T(f,y,G){return!G&&G!==0&&(G=1),f===1&&y===1&&G===1?this:this._t(f,0,0,0,0,y,0,0,0,0,G,0,0,0,0,1)}function M(f,y,G,F,nt,ft,Et,Lt,Rt,Jt,Le,wr,Re,de,Ue,Dt){return this.props[0]=f,this.props[1]=y,this.props[2]=G,this.props[3]=F,this.props[4]=nt,this.props[5]=ft,this.props[6]=Et,this.props[7]=Lt,this.props[8]=Rt,this.props[9]=Jt,this.props[10]=Le,this.props[11]=wr,this.props[12]=Re,this.props[13]=de,this.props[14]=Ue,this.props[15]=Dt,this}function D(f,y,G){return G=G||0,f!==0||y!==0||G!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,f,y,G,1):this}function O(f,y,G,F,nt,ft,Et,Lt,Rt,Jt,Le,wr,Re,de,Ue,Dt){var ht=this.props;if(f===1&&y===0&&G===0&&F===0&&nt===0&&ft===1&&Et===0&&Lt===0&&Rt===0&&Jt===0&&Le===1&&wr===0)return ht[12]=ht[12]*f+ht[15]*Re,ht[13]=ht[13]*ft+ht[15]*de,ht[14]=ht[14]*Le+ht[15]*Ue,ht[15]*=Dt,this._identityCalculated=!1,this;var qr=ht[0],Si=ht[1],Kr=ht[2],Nr=ht[3],Xr=ht[4],Zr=ht[5],Me=ht[6],_i=ht[7],Ii=ht[8],br=ht[9],Ci=ht[10],yr=ht[11],io=ht[12],wn=ht[13],Nn=ht[14],Ln=ht[15];return ht[0]=qr*f+Si*nt+Kr*Rt+Nr*Re,ht[1]=qr*y+Si*ft+Kr*Jt+Nr*de,ht[2]=qr*G+Si*Et+Kr*Le+Nr*Ue,ht[3]=qr*F+Si*Lt+Kr*wr+Nr*Dt,ht[4]=Xr*f+Zr*nt+Me*Rt+_i*Re,ht[5]=Xr*y+Zr*ft+Me*Jt+_i*de,ht[6]=Xr*G+Zr*Et+Me*Le+_i*Ue,ht[7]=Xr*F+Zr*Lt+Me*wr+_i*Dt,ht[8]=Ii*f+br*nt+Ci*Rt+yr*Re,ht[9]=Ii*y+br*ft+Ci*Jt+yr*de,ht[10]=Ii*G+br*Et+Ci*Le+yr*Ue,ht[11]=Ii*F+br*Lt+Ci*wr+yr*Dt,ht[12]=io*f+wn*nt+Nn*Rt+Ln*Re,ht[13]=io*y+wn*ft+Nn*Jt+Ln*de,ht[14]=io*G+wn*Et+Nn*Le+Ln*Ue,ht[15]=io*F+wn*Lt+Nn*wr+Ln*Dt,this._identityCalculated=!1,this}function V(f){var y=f.props;return this.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15])}function N(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function I(f){for(var y=0;y<16;){if(f.props[y]!==this.props[y])return!1;y+=1}return!0}function E(f){var y;for(y=0;y<16;y+=1)f.props[y]=this.props[y];return f}function A(f){var y;for(y=0;y<16;y+=1)this.props[y]=f[y]}function w(f,y,G){return{x:f*this.props[0]+y*this.props[4]+G*this.props[8]+this.props[12],y:f*this.props[1]+y*this.props[5]+G*this.props[9]+this.props[13],z:f*this.props[2]+y*this.props[6]+G*this.props[10]+this.props[14]}}function $(f,y,G){return f*this.props[0]+y*this.props[4]+G*this.props[8]+this.props[12]}function U(f,y,G){return f*this.props[1]+y*this.props[5]+G*this.props[9]+this.props[13]}function Y(f,y,G){return f*this.props[2]+y*this.props[6]+G*this.props[10]+this.props[14]}function J(){var f=this.props[0]*this.props[5]-this.props[1]*this.props[4],y=this.props[5]/f,G=-this.props[1]/f,F=-this.props[4]/f,nt=this.props[0]/f,ft=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/f,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/f,Lt=new fe;return Lt.props[0]=y,Lt.props[1]=G,Lt.props[4]=F,Lt.props[5]=nt,Lt.props[12]=ft,Lt.props[13]=Et,Lt}function yt(f){var y=this.getInverseMatrix();return y.applyToPointArray(f[0],f[1],f[2]||0)}function pt(f){var y,G=f.length,F=[];for(y=0;y<G;y+=1)F[y]=yt(f[y]);return F}function ot(f,y,G){var F=X("float32",6);if(this.isIdentity())F[0]=f[0],F[1]=f[1],F[2]=y[0],F[3]=y[1],F[4]=G[0],F[5]=G[1];else{var nt=this.props[0],ft=this.props[1],Et=this.props[4],Lt=this.props[5],Rt=this.props[12],Jt=this.props[13];F[0]=f[0]*nt+f[1]*Et+Rt,F[1]=f[0]*ft+f[1]*Lt+Jt,F[2]=y[0]*nt+y[1]*Et+Rt,F[3]=y[0]*ft+y[1]*Lt+Jt,F[4]=G[0]*nt+G[1]*Et+Rt,F[5]=G[0]*ft+G[1]*Lt+Jt}return F}function xt(f,y,G){var F;return this.isIdentity()?F=[f,y,G]:F=[f*this.props[0]+y*this.props[4]+G*this.props[8]+this.props[12],f*this.props[1]+y*this.props[5]+G*this.props[9]+this.props[13],f*this.props[2]+y*this.props[6]+G*this.props[10]+this.props[14]],F}function ct(f,y){if(this.isIdentity())return f+","+y;var G=this.props;return Math.round((f*G[0]+y*G[4]+G[12])*100)/100+","+Math.round((f*G[1]+y*G[5]+G[13])*100)/100}function Q(){for(var f=0,y=this.props,G="matrix3d(",F=1e4;f<16;)G+=l(y[f]*F)/F,G+=f===15?")":",",f+=1;return G}function S(f){var y=1e4;return f<1e-6&&f>0||f>-1e-6&&f<0?l(f*y)/y:f}function P(){var f=this.props,y=S(f[0]),G=S(f[1]),F=S(f[4]),nt=S(f[5]),ft=S(f[12]),Et=S(f[13]);return"matrix("+y+","+G+","+F+","+nt+","+ft+","+Et+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=v,this.rotateY=x,this.rotateZ=g,this.skew=R,this.skewFromAxis=H,this.shear=k,this.scale=T,this.setTransform=M,this.translate=D,this.transform=O,this.multiply=V,this.applyToPoint=w,this.applyToX=$,this.applyToY=U,this.applyToZ=Y,this.applyToPointArray=xt,this.applyToTriplePoints=ot,this.applyToPointStringified=ct,this.toCSS=Q,this.to2dCSS=P,this.clone=E,this.cloneFromProps=A,this.equals=I,this.inversePoints=pt,this.inversePoint=yt,this.getInverseMatrix=J,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function Tn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tn=function(s){return typeof s}:Tn=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Tn(e)}var Ot={},xn="__[STANDALONE]__",Tp="__[ANIMATIONDATA]__",xp="";function bb(e){m(e)}function Ap(){xn===!0?Qt.searchAnimations(Tp,xn,xp):Qt.searchAnimations()}function yb(e){eb(e)}function Eb(e){ob(e)}function Tb(e){return xn===!0&&(e.animationData=JSON.parse(Tp)),Qt.loadAnimation(e)}function xb(e){if(typeof e=="string")switch(e){case"high":un(200);break;default:case"medium":un(50);break;case"low":un(10);break}else!isNaN(e)&&e>1&&un(e);Hs()>=50?Ze(!1):Ze(!0)}function Ab(){return typeof navigator<"u"}function Sb(e,r){e==="expressions"&&ib(r)}function _b(e){switch(e){case"propertyFactory":return at;case"shapePropertyFactory":return En;case"matrix":return fe;default:return null}}Ot.play=Qt.play,Ot.pause=Qt.pause,Ot.setLocationHref=bb,Ot.togglePause=Qt.togglePause,Ot.setSpeed=Qt.setSpeed,Ot.setDirection=Qt.setDirection,Ot.stop=Qt.stop,Ot.searchAnimations=Ap,Ot.registerAnimation=Qt.registerAnimation,Ot.loadAnimation=Tb,Ot.setSubframeRendering=yb,Ot.resize=Qt.resize,Ot.goToAndStop=Qt.goToAndStop,Ot.destroy=Qt.destroy,Ot.setQuality=xb,Ot.inBrowser=Ab,Ot.installPlugin=Sb,Ot.freeze=Qt.freeze,Ot.unfreeze=Qt.unfreeze,Ot.setVolume=Qt.setVolume,Ot.mute=Qt.mute,Ot.unmute=Qt.unmute,Ot.getRegisteredAnimations=Qt.getRegisteredAnimations,Ot.useWebWorker=a,Ot.setIDPrefix=Eb,Ot.__getFactory=_b,Ot.version="5.12.2";function Ib(){document.readyState==="complete"&&(clearInterval(wb),Ap())}function Cb(e){for(var r=Sp.split("&"),s=0;s<r.length;s+=1){var l=r[s].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var Sp="";if(xn){var _p=document.getElementsByTagName("script"),kb=_p.length-1,Ip=_p[kb]||{src:""};Sp=Ip.src?Ip.src.replace(/^[^\?]+\??/,""):"",xp=Cb("renderer")}var wb=setInterval(Ib,100);try{!((typeof xa>"u"?"undefined":Tn(xa))==="object"&&typeof al<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ot)}catch{}var bi=function(){var e={},r={};e.registerModifier=s,e.getModifier=l;function s(h,c){r[h]||(r[h]=c)}function l(h,c,v){return new r[h](c,v)}return e}();function er(){}er.prototype.initModifierProperties=function(){},er.prototype.addShapeToModifier=function(){},er.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:Ho.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},er.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},er.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([le],er);function gr(){}L([er],gr),gr.prototype.initModifierProperties=function(e,r){this.s=at.getProp(e,r.s,0,.01,this),this.e=at.getProp(e,r.e,0,.01,this),this.o=at.getProp(e,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},gr.prototype.addShapeToModifier=function(e){e.pathsData=[]},gr.prototype.calculateShapeEdges=function(e,r,s,l,h){var c=[];r<=1?c.push({s:e,e:r}):e>=1?c.push({s:e-1,e:r-1}):(c.push({s:e,e:1}),c.push({s:0,e:r-1}));var v=[],x,g=c.length,k;for(x=0;x<g;x+=1)if(k=c[x],!(k.e*h<l||k.s*h>l+s)){var R,H;k.s*h<=l?R=0:R=(k.s*h-l)/s,k.e*h>=l+s?H=1:H=(k.e*h-l)/s,v.push([R,H])}return v.length||v.push([0,0]),v},gr.prototype.releasePathsData=function(e){var r,s=e.length;for(r=0;r<s;r+=1)vp.release(e[r]);return e.length=0,e},gr.prototype.processShapes=function(e){var r,s;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?r=1+l:this.s.v<0?r=0+l:r=this.s.v+l,this.e.v>1?s=1+l:this.e.v<0?s=0+l:s=this.e.v+l,r>s){var h=r;r=s,s=h}r=Math.round(r*1e4)*1e-4,s=Math.round(s*1e4)*1e-4,this.sValue=r,this.eValue=s}else r=this.sValue,s=this.eValue;var c,v,x=this.shapes.length,g,k,R,H,T,M=0;if(s===r)for(v=0;v<x;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(s===1&&r===0||s===0&&r===1){if(this._mdf)for(v=0;v<x;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var D=[],O,V;for(v=0;v<x;v+=1)if(O=this.shapes[v],!O.shape._mdf&&!this._mdf&&!e&&this.m!==2)O.shape.paths=O.localShapeCollection;else{if(c=O.shape.paths,k=c._length,T=0,!O.shape._mdf&&O.pathsData.length)T=O.totalShapeLength;else{for(R=this.releasePathsData(O.pathsData),g=0;g<k;g+=1)H=Cr.getSegmentsLength(c.shapes[g]),R.push(H),T+=H.totalLength;O.totalShapeLength=T,O.pathsData=R}M+=T,O.shape._mdf=!0}var N=r,I=s,E=0,A;for(v=x-1;v>=0;v-=1)if(O=this.shapes[v],O.shape._mdf){for(V=O.localShapeCollection,V.releaseShapes(),this.m===2&&x>1?(A=this.calculateShapeEdges(r,s,O.totalShapeLength,E,M),E+=O.totalShapeLength):A=[[N,I]],k=A.length,g=0;g<k;g+=1){N=A[g][0],I=A[g][1],D.length=0,I<=1?D.push({s:O.totalShapeLength*N,e:O.totalShapeLength*I}):N>=1?D.push({s:O.totalShapeLength*(N-1),e:O.totalShapeLength*(I-1)}):(D.push({s:O.totalShapeLength*N,e:O.totalShapeLength}),D.push({s:0,e:O.totalShapeLength*(I-1)}));var w=this.addShapes(O,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var $=O.shape.paths.shapes[O.shape.paths._length-1];if($.c){var U=w.pop();this.addPaths(w,V),w=this.addShapes(O,D[1],U)}else this.addPaths(w,V),w=this.addShapes(O,D[1])}this.addPaths(w,V)}}O.shape.paths=V}}},gr.prototype.addPaths=function(e,r){var s,l=e.length;for(s=0;s<l;s+=1)r.addShape(e[s])},gr.prototype.addSegment=function(e,r,s,l,h,c,v){h.setXYAt(r[0],r[1],"o",c),h.setXYAt(s[0],s[1],"i",c+1),v&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},gr.prototype.addSegmentFromArray=function(e,r,s,l){r.setXYAt(e[1],e[5],"o",s),r.setXYAt(e[2],e[6],"i",s+1),l&&r.setXYAt(e[0],e[4],"v",s),r.setXYAt(e[3],e[7],"v",s+1)},gr.prototype.addShapes=function(e,r,s){var l=e.pathsData,h=e.shape.paths.shapes,c,v=e.shape.paths._length,x,g,k=0,R,H,T,M,D=[],O,V=!0;for(s?(H=s._length,O=s._length):(s=ue.newElement(),H=0,O=0),D.push(s),c=0;c<v;c+=1){for(T=l[c].lengths,s.c=h[c].c,g=h[c].c?T.length:T.length+1,x=1;x<g;x+=1)if(R=T[x-1],k+R.addedLength<r.s)k+=R.addedLength,s.c=!1;else if(k>r.e){s.c=!1;break}else r.s<=k&&r.e>=k+R.addedLength?(this.addSegment(h[c].v[x-1],h[c].o[x-1],h[c].i[x],h[c].v[x],s,H,V),V=!1):(M=Cr.getNewSegment(h[c].v[x-1],h[c].v[x],h[c].o[x-1],h[c].i[x],(r.s-k)/R.addedLength,(r.e-k)/R.addedLength,T[x-1]),this.addSegmentFromArray(M,s,H,V),V=!1,s.c=!1),k+=R.addedLength,H+=1;if(h[c].c&&T.length){if(R=T[x-1],k<=r.e){var N=T[x-1].addedLength;r.s<=k&&r.e>=k+N?(this.addSegment(h[c].v[x-1],h[c].o[x-1],h[c].i[0],h[c].v[0],s,H,V),V=!1):(M=Cr.getNewSegment(h[c].v[x-1],h[c].v[0],h[c].o[x-1],h[c].i[0],(r.s-k)/N,(r.e-k)/N,T[x-1]),this.addSegmentFromArray(M,s,H,V),V=!1,s.c=!1)}else s.c=!1;k+=R.addedLength,H+=1}if(s._length&&(s.setXYAt(s.v[O][0],s.v[O][1],"i",O),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),k>r.e)break;c<v-1&&(s=ue.newElement(),V=!0,D.push(s),H=0)}return D};function qs(){}L([er],qs),qs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=at.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},qs.prototype.processPath=function(e,r){var s=r/100,l=[0,0],h=e._length,c=0;for(c=0;c<h;c+=1)l[0]+=e.v[c][0],l[1]+=e.v[c][1];l[0]/=h,l[1]/=h;var v=ue.newElement();v.c=e.c;var x,g,k,R,H,T;for(c=0;c<h;c+=1)x=e.v[c][0]+(l[0]-e.v[c][0])*s,g=e.v[c][1]+(l[1]-e.v[c][1])*s,k=e.o[c][0]+(l[0]-e.o[c][0])*-s,R=e.o[c][1]+(l[1]-e.o[c][1])*-s,H=e.i[c][0]+(l[0]-e.i[c][0])*-s,T=e.i[c][1]+(l[1]-e.i[c][1])*-s,v.setTripleAt(x,g,k,R,H,T,c);return v},qs.prototype.processShapes=function(e){var r,s,l=this.shapes.length,h,c,v=this.amount.v;if(v!==0){var x,g;for(s=0;s<l;s+=1){if(x=this.shapes[s],g=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(r[h],v));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Cd=function(){var e=[0,0];function r(g){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.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?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function s(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){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 R,H;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?(R=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),H=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?(R=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),H=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(R=this.p.pv,H=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){R=[],H=[];var T=this.px,M=this.py;T._caching.lastFrame+T.offsetTime<=T.keyframes[0].t?(R[0]=T.getValueAtTime((T.keyframes[0].t+.01)/k,0),R[1]=M.getValueAtTime((M.keyframes[0].t+.01)/k,0),H[0]=T.getValueAtTime(T.keyframes[0].t/k,0),H[1]=M.getValueAtTime(M.keyframes[0].t/k,0)):T._caching.lastFrame+T.offsetTime>=T.keyframes[T.keyframes.length-1].t?(R[0]=T.getValueAtTime(T.keyframes[T.keyframes.length-1].t/k,0),R[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/k,0),H[0]=T.getValueAtTime((T.keyframes[T.keyframes.length-1].t-.01)/k,0),H[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/k,0)):(R=[T.pv,M.pv],H[0]=T.getValueAtTime((T._caching.lastFrame+T.offsetTime-.01)/k,T.offsetTime),H[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/k,M.offsetTime))}else H=e,R=H;this.v.rotate(-Math.atan2(R[1]-H[1],R[0]-H[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function l(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function h(){}function c(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(g,k,R){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=k,this.v=new fe,this.pre=new fe,this.appliedTransformations=0,this.initDynamicPropertyContainer(R||g),k.p&&k.p.s?(this.px=at.getProp(g,k.p.x,0,0,this),this.py=at.getProp(g,k.p.y,0,0,this),k.p.z&&(this.pz=at.getProp(g,k.p.z,0,0,this))):this.p=at.getProp(g,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=at.getProp(g,k.rx,0,Ct,this),this.ry=at.getProp(g,k.ry,0,Ct,this),this.rz=at.getProp(g,k.rz,0,Ct,this),k.or.k[0].ti){var H,T=k.or.k.length;for(H=0;H<T;H+=1)k.or.k[H].to=null,k.or.k[H].ti=null}this.or=at.getProp(g,k.or,1,Ct,this),this.or.sh=!0}else this.r=at.getProp(g,k.r||{k:0},0,Ct,this);k.sk&&(this.sk=at.getProp(g,k.sk,0,Ct,this),this.sa=at.getProp(g,k.sa,0,Ct,this)),this.a=at.getProp(g,k.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(g,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=at.getProp(g,k.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}v.prototype={applyToMatrix:r,getValue:s,precalculateMatrix:l,autoOrient:h},L([le],v),v.prototype.addDynamicProperty=c,v.prototype._addDynamicProperty=le.prototype.addDynamicProperty;function x(g,k,R){return new v(g,k,R)}return{getTransformProperty:x}}();function kr(){}L([er],kr),kr.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=at.getProp(e,r.c,0,null,this),this.o=at.getProp(e,r.o,0,null,this),this.tr=Cd.getTransformProperty(e,r.tr,this),this.so=at.getProp(e,r.tr.so,0,.01,this),this.eo=at.getProp(e,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new fe,this.rMatrix=new fe,this.sMatrix=new fe,this.tMatrix=new fe,this.matrix=new fe},kr.prototype.applyTransforms=function(e,r,s,l,h,c){var v=c?-1:1,x=l.s.v[0]+(1-l.s.v[0])*(1-h),g=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*v*h,l.p.v[1]*v*h,l.p.v[2]),r.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),r.rotate(-l.r.v*v*h),r.translate(l.a.v[0],l.a.v[1],l.a.v[2]),s.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),s.scale(c?1/x:x,c?1/g:g),s.translate(l.a.v[0],l.a.v[1],l.a.v[2])},kr.prototype.init=function(e,r,s,l){for(this.elem=e,this.arr=r,this.pos=s,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[s]);s>0;)s-=1,this._elements.unshift(r[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},kr.prototype.resetElements=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},kr.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},kr.prototype.changeGroupRender=function(e,r){var s,l=e.length;for(s=0;s<l;s+=1)e[s]._render=r,e[s].ty==="gr"&&this.changeGroupRender(e[s].it,r)},kr.prototype.processShapes=function(e){var r,s,l,h,c,v=!1;if(this._mdf||e){var x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.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,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),v=!0}c=0;var k;for(l=0;l<=this._groups.length-1;l+=1){if(k=c<x,this._groups[l]._render=k,this.changeGroupRender(this._groups[l].it,k),!k){var R=this.elemsData[l].it,H=R[R.length-1];H.transform.op.v!==0?(H.transform.op._mdf=!0,H.transform.op.v=0):H.transform.op._mdf=!1}c+=1}this._currentCopies=x;var T=this.o.v,M=T%1,D=T>0?Math.floor(T):Math.ceil(T),O=this.pMatrix.props,V=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var I=0;if(T>0){for(;I<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),I+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),I+=M)}else if(T<0){for(;I>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),I-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),I-=M)}l=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,c=this._currentCopies;for(var E,A;c;){if(r=this.elemsData[l].it,s=r[r.length-1].transform.mProps.v.props,A=s.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)*(l/(this._currentCopies-1)),I!==0){for((l!==0&&h===1||l!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(V[0],V[1],V[2],V[3],V[4],V[5],V[6],V[7],V[8],V[9],V[10],V[11],V[12],V[13],V[14],V[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),this.matrix.transform(O[0],O[1],O[2],O[3],O[4],O[5],O[6],O[7],O[8],O[9],O[10],O[11],O[12],O[13],O[14],O[15]),E=0;E<A;E+=1)s[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<A;E+=1)s[E]=this.matrix.props[E];I+=1,c-=1,l+=h}}else for(c=this._currentCopies,l=0,h=1;c;)r=this.elemsData[l].it,s=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,l+=h;return v},kr.prototype.addShape=function(){};function Ks(){}L([er],Ks),Ks.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=at.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ks.prototype.processPath=function(e,r){var s=ue.newElement();s.c=e.c;var l,h=e._length,c,v,x,g,k,R,H=0,T,M,D,O,V,N;for(l=0;l<h;l+=1)c=e.v[l],x=e.o[l],v=e.i[l],c[0]===x[0]&&c[1]===x[1]&&c[0]===v[0]&&c[1]===v[1]?(l===0||l===h-1)&&!e.c?(s.setTripleAt(c[0],c[1],x[0],x[1],v[0],v[1],H),H+=1):(l===0?g=e.v[h-1]:g=e.v[l-1],k=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),R=k?Math.min(k/2,r)/k:0,V=c[0]+(g[0]-c[0])*R,T=V,N=c[1]-(c[1]-g[1])*R,M=N,D=T-(T-c[0])*me,O=M-(M-c[1])*me,s.setTripleAt(T,M,D,O,V,N,H),H+=1,l===h-1?g=e.v[0]:g=e.v[l+1],k=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),R=k?Math.min(k/2,r)/k:0,D=c[0]+(g[0]-c[0])*R,T=D,O=c[1]+(g[1]-c[1])*R,M=O,V=T-(T-c[0])*me,N=M-(M-c[1])*me,s.setTripleAt(T,M,D,O,V,N,H),H+=1):(s.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],H),H+=1);return s},Ks.prototype.processShapes=function(e){var r,s,l=this.shapes.length,h,c,v=this.rd.v;if(v!==0){var x,g;for(s=0;s<l;s+=1){if(x=this.shapes[s],g=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(r[h],v));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function An(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function kd(e){return Math.abs(e)<=1e-5}function Cp(e,r,s){return e*(1-s)+r*s}function yi(e,r,s){return[Cp(e[0],r[0],s),Cp(e[1],r[1],s)]}function Nb(e,r,s){if(e===0)return[];var l=r*r-4*e*s;if(l<0)return[];var h=-r/(2*e);if(l===0)return[h];var c=Math.sqrt(l)/(2*e);return[h-c,h+c]}function kp(e,r,s,l){return[-e+3*r-3*s+l,3*e-6*r+3*s,-3*e+3*r,e]}function wp(e){return new Wt(e,e,e,e,!1)}function Wt(e,r,s,l,h){h&&Yo(e,r)&&(r=yi(e,l,1/3)),h&&Yo(s,l)&&(s=yi(e,l,2/3));var c=kp(e[0],r[0],s[0],l[0]),v=kp(e[1],r[1],s[1],l[1]);this.a=[c[0],v[0]],this.b=[c[1],v[1]],this.c=[c[2],v[2]],this.d=[c[3],v[3]],this.points=[e,r,s,l]}Wt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Wt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Wt.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},Wt.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},Wt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(kd(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,s=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(s<0)return[];var l=Math.sqrt(s);return kd(l)?l>0&&l<1?[r]:[]:[r-l,r+l].filter(function(h){return h>0&&h<1})},Wt.prototype.split=function(e){if(e<=0)return[wp(this.points[0]),this];if(e>=1)return[this,wp(this.points[this.points.length-1])];var r=yi(this.points[0],this.points[1],e),s=yi(this.points[1],this.points[2],e),l=yi(this.points[2],this.points[3],e),h=yi(r,s,e),c=yi(s,l,e),v=yi(h,c,e);return[new Wt(this.points[0],r,h,v,!0),new Wt(v,c,l,this.points[3],!0)]};function Np(e,r){var s=e.points[0][r],l=e.points[e.points.length-1][r];if(s>l){var h=l;l=s,s=h}for(var c=Nb(3*e.a[r],2*e.b[r],e.c[r]),v=0;v<c.length;v+=1)if(c[v]>0&&c[v]<1){var x=e.point(c[v])[r];x<s?s=x:x>l&&(l=x)}return{min:s,max:l}}Wt.prototype.bounds=function(){return{x:Np(this,0),y:Np(this,1)}},Wt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Sn(e,r,s){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(r+s)/2,t1:r,t2:s}}function Lp(e){var r=e.bez.split(.5);return[Sn(r[0],e.t1,e.t),Sn(r[1],e.t,e.t2)]}function Lb(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function Xs(e,r,s,l,h,c){if(Lb(e,r)){if(s>=c||e.width<=l&&e.height<=l&&r.width<=l&&r.height<=l){h.push([e.t,r.t]);return}var v=Lp(e),x=Lp(r);Xs(v[0],x[0],s+1,l,h,c),Xs(v[0],x[1],s+1,l,h,c),Xs(v[1],x[0],s+1,l,h,c),Xs(v[1],x[1],s+1,l,h,c)}}Wt.prototype.intersections=function(e,r,s){r===void 0&&(r=2),s===void 0&&(s=7);var l=[];return Xs(Sn(this,0,1),Sn(e,0,1),0,r,l,s),l},Wt.shapeSegment=function(e,r){var s=(r+1)%e.length();return new Wt(e.v[r],e.o[r],e.i[s],e.v[s],!0)},Wt.shapeSegmentInverted=function(e,r){var s=(r+1)%e.length();return new Wt(e.v[s],e.i[s],e.o[r],e.v[r],!0)};function wd(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function _n(e,r,s,l){var h=[e[0],e[1],1],c=[r[0],r[1],1],v=[s[0],s[1],1],x=[l[0],l[1],1],g=wd(wd(h,c),wd(v,x));return kd(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function Go(e,r,s){return[e[0]+Math.cos(r)*s,e[1]-Math.sin(r)*s]}function Nd(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function Yo(e,r){return An(e[0],r[0])&&An(e[1],r[1])}function Zs(){}L([er],Zs),Zs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=at.getProp(e,r.s,0,null,this),this.frequency=at.getProp(e,r.r,0,null,this),this.pointsType=at.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Rp(e,r,s,l,h,c,v){var x=s-Math.PI/2,g=s+Math.PI/2,k=r[0]+Math.cos(s)*l*h,R=r[1]-Math.sin(s)*l*h;e.setTripleAt(k,R,k+Math.cos(x)*c,R-Math.sin(x)*c,k+Math.cos(g)*v,R-Math.sin(g)*v,e.length())}function Rb(e,r){var s=[r[0]-e[0],r[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*s[0]-Math.sin(l)*s[1],Math.sin(l)*s[0]+Math.cos(l)*s[1]];return h}function Mb(e,r){var s=r===0?e.length()-1:r-1,l=(r+1)%e.length(),h=e.v[s],c=e.v[l],v=Rb(h,c);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function Mp(e,r,s,l,h,c,v){var x=Mb(r,s),g=r.v[s%r._length],k=r.v[s===0?r._length-1:s-1],R=r.v[(s+1)%r._length],H=c===2?Math.sqrt(Math.pow(g[0]-k[0],2)+Math.pow(g[1]-k[1],2)):0,T=c===2?Math.sqrt(Math.pow(g[0]-R[0],2)+Math.pow(g[1]-R[1],2)):0;Rp(e,r.v[s%r._length],x,v,l,T/((h+1)*2),H/((h+1)*2),c)}function Ob(e,r,s,l,h,c){for(var v=0;v<l;v+=1){var x=(v+1)/(l+1),g=h===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(x),R=r.point(x);Rp(e,R,k,c,s,g/((l+1)*2),g/((l+1)*2),h),c=-c}return c}Zs.prototype.processPath=function(e,r,s,l){var h=e._length,c=ue.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var v=-1,x=Wt.shapeSegment(e,0);Mp(c,e,0,r,s,l,v);for(var g=0;g<h;g+=1)v=Ob(c,x,r,s,l,-v),g===h-1&&!e.c?x=null:x=Wt.shapeSegment(e,(g+1)%h),Mp(c,e,g+1,r,s,l,v);return c},Zs.prototype.processShapes=function(e){var r,s,l=this.shapes.length,h,c,v=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==0){var k,R;for(s=0;s<l;s+=1){if(k=this.shapes[s],R=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(R.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,h=0;h<c;h+=1)R.addShape(this.processPath(r[h],v,x,g));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ld(e,r,s){var l=Math.atan2(r[0]-e[0],r[1]-e[1]);return[Go(e,l,s),Go(r,l,s)]}function Wo(e,r){var s,l,h,c,v,x,g;g=Ld(e.points[0],e.points[1],r),s=g[0],l=g[1],g=Ld(e.points[1],e.points[2],r),h=g[0],c=g[1],g=Ld(e.points[2],e.points[3],r),v=g[0],x=g[1];var k=_n(s,l,h,c);k===null&&(k=l);var R=_n(v,x,h,c);return R===null&&(R=v),new Wt(s,k,R,x)}function Op(e,r,s,l,h){var c=r.points[3],v=s.points[0];if(l===3||Yo(c,v))return c;if(l===2){var x=-r.tangentAngle(1),g=-s.tangentAngle(0)+Math.PI,k=_n(c,Go(c,x+Math.PI/2,100),v,Go(v,x+Math.PI/2,100)),R=k?Nd(k,c):Nd(c,v)/2,H=Go(c,x,2*R*me);return e.setXYAt(H[0],H[1],"o",e.length()-1),H=Go(v,g,2*R*me),e.setTripleAt(v[0],v[1],v[0],v[1],H[0],H[1],e.length()),v}var T=Yo(c,r.points[2])?r.points[0]:r.points[2],M=Yo(v,s.points[1])?s.points[3]:s.points[1],D=_n(T,c,v,M);return D&&Nd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function Pp(e,r){var s=e.intersections(r);return s.length&&An(s[0][0],1)&&s.shift(),s.length?s[0]:null}function Dp(e,r){var s=e.slice(),l=r.slice(),h=Pp(e[e.length-1],r[0]);return h&&(s[e.length-1]=e[e.length-1].split(h[0])[0],l[0]=r[0].split(h[1])[1]),e.length>1&&r.length>1&&(h=Pp(e[0],r[r.length-1]),h)?[[e[0].split(h[0])[0]],[r[r.length-1].split(h[1])[1]]]:[s,l]}function Pb(e){for(var r,s=1;s<e.length;s+=1)r=Dp(e[s-1],e[s]),e[s-1]=r[0],e[s]=r[1];return e.length>1&&(r=Dp(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function $p(e,r){var s=e.inflectionPoints(),l,h,c,v;if(s.length===0)return[Wo(e,r)];if(s.length===1||An(s[1],1))return c=e.split(s[0]),l=c[0],h=c[1],[Wo(l,r),Wo(h,r)];c=e.split(s[0]),l=c[0];var x=(s[1]-s[0])/(1-s[0]);return c=c[1].split(x),v=c[0],h=c[1],[Wo(l,r),Wo(v,r),Wo(h,r)]}function Qs(){}L([er],Qs),Qs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=at.getProp(e,r.a,0,null,this),this.miterLimit=at.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Qs.prototype.processPath=function(e,r,s,l){var h=ue.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var v,x,g,k=[];for(v=0;v<c;v+=1)g=Wt.shapeSegment(e,v),k.push($p(g,r));if(!e.c)for(v=c-1;v>=0;v-=1)g=Wt.shapeSegmentInverted(e,v),k.push($p(g,r));k=Pb(k);var R=null,H=null;for(v=0;v<k.length;v+=1){var T=k[v];for(H&&(R=Op(h,H,T[0],s,l)),H=T[T.length-1],x=0;x<T.length;x+=1)g=T[x],R&&Yo(g.points[0],R)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],h.length()),h.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],h.length()),R=g.points[3]}return k.length&&Op(h,H,k[0][0],s,l),h},Qs.prototype.processShapes=function(e){var r,s,l=this.shapes.length,h,c,v=this.amount.v,x=this.miterLimit.v,g=this.lineJoin;if(v!==0){var k,R;for(s=0;s<l;s+=1){if(k=this.shapes[s],R=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(R.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,h=0;h<c;h+=1)R.addShape(this.processPath(r[h],v,g,x));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Fp(e){for(var r=e.fStyle?e.fStyle.split(" "):[],s="normal",l="normal",h=r.length,c,v=0;v<h;v+=1)switch(c=r[v].toLowerCase(),c){case"italic":l="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200";break;default:break}return{style:l,weight:e.fWeight||s}}var to=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},s=[];s=s.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var l=127988,h=917631,c=917601,v=917626,x=65039,g=8205,k=127462,R=127487,H=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function T(S){var P=S.split(","),f,y=P.length,G=[];for(f=0;f<y;f+=1)P[f]!=="sans-serif"&&P[f]!=="monospace"&&G.push(P[f]);return G.join(",")}function M(S,P){var f=C("span");f.setAttribute("aria-hidden",!0),f.style.fontFamily=P;var y=C("span");y.innerText="giItT1WQy@!-/#",f.style.position="absolute",f.style.left="-10000px",f.style.top="-10000px",f.style.fontSize="300px",f.style.fontVariant="normal",f.style.fontStyle="normal",f.style.fontWeight="normal",f.style.letterSpacing="0",f.appendChild(y),document.body.appendChild(f);var G=y.offsetWidth;return y.style.fontFamily=T(S)+", "+P,{node:y,w:G,parent:f}}function D(){var S,P=this.fonts.length,f,y,G=P;for(S=0;S<P;S+=1)this.fonts[S].loaded?G-=1:this.fonts[S].fOrigin==="n"||this.fonts[S].origin===0?this.fonts[S].loaded=!0:(f=this.fonts[S].monoCase.node,y=this.fonts[S].monoCase.w,f.offsetWidth!==y?(G-=1,this.fonts[S].loaded=!0):(f=this.fonts[S].sansCase.node,y=this.fonts[S].sansCase.w,f.offsetWidth!==y&&(G-=1,this.fonts[S].loaded=!0)),this.fonts[S].loaded&&(this.fonts[S].sansCase.parent.parentNode.removeChild(this.fonts[S].sansCase.parent),this.fonts[S].monoCase.parent.parentNode.removeChild(this.fonts[S].monoCase.parent)));G!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function O(S,P){var f=document.body&&P?"svg":"canvas",y,G=Fp(S);if(f==="svg"){var F=Tt("text");F.style.fontSize="100px",F.setAttribute("font-family",S.fFamily),F.setAttribute("font-style",G.style),F.setAttribute("font-weight",G.weight),F.textContent="1",S.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",S.fClass)):F.style.fontFamily=S.fFamily,P.appendChild(F),y=F}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=G.style+" "+G.weight+" 100px "+S.fFamily,y=nt}function ft(Et){return f==="svg"?(y.textContent=Et,y.getComputedTextLength()):y.measureText(Et).width}return{measureText:ft}}function V(S,P){if(!S){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=S.list;return}if(!document.body){this.isLoaded=!0,S.list.forEach(function(Le){Le.helper=O(Le),Le.cache={}}),this.fonts=S.list;return}var f=S.list,y,G=f.length,F=G;for(y=0;y<G;y+=1){var nt=!0,ft,Et;if(f[y].loaded=!1,f[y].monoCase=M(f[y].fFamily,"monospace"),f[y].sansCase=M(f[y].fFamily,"sans-serif"),!f[y].fPath)f[y].loaded=!0,F-=1;else if(f[y].fOrigin==="p"||f[y].origin===3){if(ft=document.querySelectorAll('style[f-forigin="p"][f-family="'+f[y].fFamily+'"], style[f-origin="3"][f-family="'+f[y].fFamily+'"]'),ft.length>0&&(nt=!1),nt){var Lt=C("style");Lt.setAttribute("f-forigin",f[y].fOrigin),Lt.setAttribute("f-origin",f[y].origin),Lt.setAttribute("f-family",f[y].fFamily),Lt.type="text/css",Lt.innerText="@font-face {font-family: "+f[y].fFamily+"; font-style: normal; src: url('"+f[y].fPath+"');}",P.appendChild(Lt)}}else if(f[y].fOrigin==="g"||f[y].origin===1){for(ft=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<ft.length;Et+=1)ft[Et].href.indexOf(f[y].fPath)!==-1&&(nt=!1);if(nt){var Rt=C("link");Rt.setAttribute("f-forigin",f[y].fOrigin),Rt.setAttribute("f-origin",f[y].origin),Rt.type="text/css",Rt.rel="stylesheet",Rt.href=f[y].fPath,document.body.appendChild(Rt)}}else if(f[y].fOrigin==="t"||f[y].origin===2){for(ft=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<ft.length;Et+=1)f[y].fPath===ft[Et].src&&(nt=!1);if(nt){var Jt=C("link");Jt.setAttribute("f-forigin",f[y].fOrigin),Jt.setAttribute("f-origin",f[y].origin),Jt.setAttribute("rel","stylesheet"),Jt.setAttribute("href",f[y].fPath),P.appendChild(Jt)}}f[y].helper=O(f[y],P),f[y].cache={},this.fonts.push(f[y])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function N(S){if(S){this.chars||(this.chars=[]);var P,f=S.length,y,G=this.chars.length,F;for(P=0;P<f;P+=1){for(y=0,F=!1;y<G;)this.chars[y].style===S[P].style&&this.chars[y].fFamily===S[P].fFamily&&this.chars[y].ch===S[P].ch&&(F=!0),y+=1;F||(this.chars.push(S[P]),G+=1)}}}function I(S,P,f){for(var y=0,G=this.chars.length;y<G;){if(this.chars[y].ch===S&&this.chars[y].style===P&&this.chars[y].fFamily===f)return this.chars[y];y+=1}return(typeof S=="string"&&S.charCodeAt(0)!==13||!S)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",S,P,f)),r}function E(S,P,f){var y=this.getFontByName(P),G=S;if(!y.cache[G]){var F=y.helper;if(S===" "){var nt=F.measureText("|"+S+"|"),ft=F.measureText("||");y.cache[G]=(nt-ft)/100}else y.cache[G]=F.measureText(S)/100}return y.cache[G]*f}function A(S){for(var P=0,f=this.fonts.length;P<f;){if(this.fonts[P].fName===S)return this.fonts[P];P+=1}return this.fonts[0]}function w(S){var P=0,f=S.charCodeAt(0);if(f>=55296&&f<=56319){var y=S.charCodeAt(1);y>=56320&&y<=57343&&(P=(f-55296)*1024+y-56320+65536)}return P}function $(S,P){var f=S.toString(16)+P.toString(16);return H.indexOf(f)!==-1}function U(S){return S===g}function Y(S){return S===x}function J(S){var P=w(S);return P>=k&&P<=R}function yt(S){return J(S.substr(0,2))&&J(S.substr(2,2))}function pt(S){return s.indexOf(S)!==-1}function ot(S,P){var f=w(S.substr(P,2));if(f!==l)return!1;var y=0;for(P+=2;y<5;){if(f=w(S.substr(P,2)),f<c||f>v)return!1;y+=1,P+=2}return w(S.substr(P,2))===h}function xt(){this.isLoaded=!0}var ct=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ct.isModifier=$,ct.isZeroWidthJoiner=U,ct.isFlagEmoji=yt,ct.isRegionalCode=J,ct.isCombinedCharacter=pt,ct.isRegionalFlag=ot,ct.isVariationSelector=Y,ct.BLACK_FLAG_CODE_POINT=l;var Q={addChars:N,addFonts:V,getCharData:I,getFontByName:A,measureText:E,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=Q,ct}();function Vp(e){this.animationData=e}Vp.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function Db(e){return new Vp(e)}function In(){}In.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,s=this.renderableComponents.length;for(r=0;r<s;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 Rd=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(r){return e[r]||""}}();function $b(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Fb(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Vb(e,r,s){this.p=at.getProp(r,e.v,1,0,s)}function zb(e,r,s){this.p=at.getProp(r,e.v,1,0,s)}function Bb(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Ub(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Hb(e,r,s){this.p=at.getProp(r,e.v,0,0,s)}function Gb(){this.p={}}function zp(e,r){var s=e.ef||[];this.effectElements=[];var l,h=s.length,c;for(l=0;l<h;l+=1)c=new Js(s[l],r),this.effectElements.push(c)}function Js(e,r){this.init(e,r)}L([le],Js),Js.prototype.getValue=Js.prototype.iterateDynamicProperties,Js.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var s,l=this.data.ef.length,h,c=this.data.ef;for(s=0;s<l;s+=1){switch(h=null,c[s].ty){case 0:h=new $b(c[s],r,this);break;case 1:h=new Fb(c[s],r,this);break;case 2:h=new Vb(c[s],r,this);break;case 3:h=new zb(c[s],r,this);break;case 4:case 7:h=new Hb(c[s],r,this);break;case 10:h=new Bb(c[s],r,this);break;case 11:h=new Ub(c[s],r,this);break;case 5:h=new zp(c[s],r,this);break;default:h=new Gb(c[s],r,this);break}h&&this.effectElements.push(h)}};function Ei(){}Ei.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,s=this.data.masksProperties.length;r<s;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=pp();if(r){var s=r("layer"),l=r("effects"),h=r("shape"),c=r("text"),v=r("comp");this.layerInterface=s(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var x=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(x),this.data.ty===0||this.data.xt?this.compInterface=v(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=Rd(this.data.bm),s=this.baseElement||this.layerElement;s.style["mix-blend-mode"]=r},initBaseData:function(r,s,l){this.globalData=s,this.comp=l,this.data=r,this.layerId=we(),this.data.sr||(this.data.sr=1),this.effectsManager=new zp(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Ti(){}Ti.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,s){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(s||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function xi(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,s)}xi.prototype.prepareFrame=function(){},L([In,Ei,Ti],xi),xi.prototype.getBaseElement=function(){return null},xi.prototype.renderFrame=function(){},xi.prototype.destroy=function(){},xi.prototype.initExpressions=function(){var e=pp();if(e){var r=e("footage");this.layerInterface=r(this)}},xi.prototype.getFootageData=function(){return this.footageData};function Ne(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,s),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?at.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ne.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var s=this._volume*this._volumeMultiplier;this._previousVolume!==s&&(this._previousVolume=s,this.audio.volume(s))},L([In,Ei,Ti],Ne),Ne.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))},Ne.prototype.show=function(){},Ne.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ne.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ne.prototype.resume=function(){this._canPlay=!0},Ne.prototype.setRate=function(e){this.audio.rate(e)},Ne.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ne.prototype.getBaseElement=function(){return null},Ne.prototype.destroy=function(){},Ne.prototype.sourceRectAtTime=function(){},Ne.prototype.initExpressions=function(){};function ve(){}ve.prototype.checkLayers=function(e){var r,s=this.layers.length,l;for(this.completeLayers=!0,r=s-1;r>=0;r-=1)this.elements[r]||(l=this.layers[r],l.ip-l.st<=e-this.layers[r].st&&l.op-l.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ve.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},ve.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ve.prototype.createAudio=function(e){return new Ne(e,this.globalData,this)},ve.prototype.createFootage=function(e){return new xi(e,this.globalData,this)},ve.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},ve.prototype.includeLayers=function(e){this.completeLayers=!1;var r,s=e.length,l,h=this.layers.length;for(r=0;r<s;r+=1)for(l=0;l<h;){if(this.layers[l].id===e[r].id){this.layers[l]=e[r];break}l+=1}},ve.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},ve.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ve.prototype.buildElementParenting=function(e,r,s){for(var l=this.elements,h=this.layers,c=0,v=h.length;c<v;)h[c].ind==r&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(s.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,s):e.setHierarchy(s))),c+=1},ve.prototype.addPendingElement=function(e){this.pendingElements.push(e)},ve.prototype.searchExtraCompositions=function(e){var r,s=e.length;for(r=0;r<s;r+=1)if(e[r].xt){var l=this.createComp(e[r]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},ve.prototype.getElementById=function(e){var r,s=this.elements.length;for(r=0;r<s;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},ve.prototype.getElementByPath=function(e){var r=e.shift(),s;if(typeof r=="number")s=this.elements[r];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===r){s=this.elements[l];break}}return e.length===0?s:s.getElementByPath(e)},ve.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new to,this.globalData.slotManager=Db(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Yb={TRANSFORM_EFFECT:"transformEFfect"};function jo(){}jo.prototype={initTransform:function(){var r=new fe;this.finalTransform={mProp:this.data.ks?Cd.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,s=this.finalTransform.mat,l=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<h;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,s.cloneFromProps(r),l=0;l<h;l+=1)s.multiply(this.hierarchy[l].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var r=0,s=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<s;)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 l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),r=1;r<s;r+=1){var h=this.localTransforms[r].matrix;l.multiply(h)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<s;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Yb.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new fe;var s=0,l=r.length;for(s=0;s<l;s+=1)this.localTransforms.push(r[s])}}},globalToLocal:function(r){var s=[];s.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&s.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,v=s.length,x;for(c=0;c<v;c+=1)x=s[c].mat.applyToPointArray(0,0,0),r=[r[0]-x[0],r[1]-x[1],0];return r},mHelper:new fe};function eo(e,r,s){this.data=e,this.element=r,this.globalData=s,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,h,c=this.masksProperties?this.masksProperties.length:0;this.viewData=et(c),this.solidPath="";var v,x=this.masksProperties,g=0,k=[],R,H,T=we(),M,D,O,V,N="clipPath",I="clip-path";for(h=0;h<c;h+=1)if((x[h].mode!=="a"&&x[h].mode!=="n"||x[h].inv||x[h].o.k!==100||x[h].o.x)&&(N="mask",I="mask"),(x[h].mode==="s"||x[h].mode==="i")&&g===0?(M=Tt("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),k.push(M)):M=null,v=Tt("path"),x[h].mode==="n")this.viewData[h]={op:at.getProp(this.element,x[h].o,0,.01,this.element),prop:En.getShapeProp(this.element,x[h],3),elem:v,lastPath:""},l.appendChild(v);else{g+=1,v.setAttribute("fill",x[h].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var E;if(x[h].x.k!==0?(N="mask",I="mask",V=at.getProp(this.element,x[h].x,0,null,this.element),E=we(),D=Tt("filter"),D.setAttribute("id",E),O=Tt("feMorphology"),O.setAttribute("operator","erode"),O.setAttribute("in","SourceGraphic"),O.setAttribute("radius","0"),D.appendChild(O),l.appendChild(D),v.setAttribute("stroke",x[h].mode==="s"?"#000000":"#ffffff")):(O=null,V=null),this.storedData[h]={elem:v,x:V,expan:O,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},x[h].mode==="i"){H=k.length;var A=Tt("g");for(R=0;R<H;R+=1)A.appendChild(k[R]);var w=Tt("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",T+"_"+g),w.appendChild(v),l.appendChild(w),A.setAttribute("mask","url("+b()+"#"+T+"_"+g+")"),k.length=0,k.push(A)}else k.push(v);x[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:v,lastPath:"",op:at.getProp(this.element,x[h].o,0,.01,this.element),prop:En.getShapeProp(this.element,x[h],3),invRect:M},this.viewData[h].prop.k||this.drawPath(x[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=Tt(N),c=k.length,h=0;h<c;h+=1)this.maskElement.appendChild(k[h]);g>0&&(this.maskElement.setAttribute("id",T),this.element.maskedElement.setAttribute(I,"url("+b()+"#"+T+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}eo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},eo.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,s,l=this.masksProperties.length;for(s=0;s<l;s+=1)if((this.viewData[s].prop._mdf||e)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||e)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),this.masksProperties[s].mode!=="n"&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[s].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[s].x&&(this.storedData[s].x._mdf||e))){var h=this.storedData[s].expan;this.storedData[s].x.v<0?(this.storedData[s].lastOperator!=="erode"&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+b()+"#"+this.storedData[s].filterId+")")),h.setAttribute("radius",-this.storedData[s].x.v)):(this.storedData[s].lastOperator!=="dilate"&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",this.storedData[s].x.v*2))}},eo.prototype.getMaskelement=function(){return this.maskElement},eo.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},eo.prototype.drawPath=function(e,r,s){var l=" M"+r.v[0][0]+","+r.v[0][1],h,c;for(c=r._length,h=1;h<c;h+=1)l+=" C"+r.o[h-1][0]+","+r.o[h-1][1]+" "+r.i[h][0]+","+r.i[h][1]+" "+r.v[h][0]+","+r.v[h][1];if(r.c&&c>1&&(l+=" C"+r.o[h-1][0]+","+r.o[h-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),s.lastPath!==l){var v="";s.elem&&(r.c&&(v=e.inv?this.solidPath+l:l),s.elem.setAttribute("d",v)),s.lastPath=l}},eo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ta=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=s;function r(l,h){var c=Tt("filter");return c.setAttribute("id",l),h!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function s(){var l=Tt("feColorMatrix");return l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),l}return e}(),Bp=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),Cn={},Up="filter_result_";function Md(e){var r,s="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=we(),c=ta.createFilter(h,!0),v=0;this.filters=[];var x;for(r=0;r<l;r+=1){x=null;var g=e.data.ef[r].ty;if(Cn[g]){var k=Cn[g].effect;x=new k(c,e.effectsManager.effectElements[r],e,Up+v,s),s=Up+v,Cn[g].countsAsEffect&&(v+=1)}x&&this.filters.push(x)}v&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+b()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}Md.prototype.renderFrame=function(e){var r,s=this.filters.length;for(r=0;r<s;r+=1)this.filters[r].renderFrame(e)},Md.prototype.getEffects=function(e){var r,s=this.filters.length,l=[];for(r=0;r<s;r+=1)this.filters[r].type===e&&l.push(this.filters[r]);return l};function OA(e,r,s){Cn[e]={effect:r,countsAsEffect:s}}function ea(){}ea.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var s=Tt("g");s.setAttribute("id",this.layerId),s.appendChild(this.layerElement),r=s,this.globalData.defs.appendChild(s)}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 l=Tt("clipPath"),h=Tt("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=we();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var v=Tt("g");v.setAttribute("clip-path","url("+b()+"#"+c+")"),v.appendChild(this.layerElement),this.transformedElement=v,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+b()+"#"+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 eo(this.data,this,this.globalData),this.renderableEffectsManager=new Md(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var s=this.layerId+"_"+r,l,h,c,v;if(r===1||r===3){var x=Tt("mask");x.setAttribute("id",s),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!Bp.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),l=we(),h=ta.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(ta.createAlphaToLuminanceFilter()),v=Tt("g"),v.appendChild(c),x.appendChild(v),v.setAttribute("filter","url("+b()+"#"+l+")"))}else if(r===2){var g=Tt("mask");g.setAttribute("id",s),g.setAttribute("mask-type","alpha");var k=Tt("g");g.appendChild(k),l=we(),h=ta.createFilter(l);var R=Tt("feComponentTransfer");R.setAttribute("in","SourceGraphic"),h.appendChild(R);var H=Tt("feFuncA");H.setAttribute("type","table"),H.setAttribute("tableValues","1.0 0.0"),R.appendChild(H),this.globalData.defs.appendChild(h);var T=Tt("rect");T.setAttribute("width",this.comp.data.w),T.setAttribute("height",this.comp.data.h),T.setAttribute("x","0"),T.setAttribute("y","0"),T.setAttribute("fill","#ffffff"),T.setAttribute("opacity","0"),k.setAttribute("filter","url("+b()+"#"+l+")"),k.appendChild(T),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(c),Bp.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(ta.createAlphaToLuminanceFilter()),v=Tt("g"),k.appendChild(T),v.appendChild(this.layerElement),k.appendChild(v)),this.globalData.defs.appendChild(g)}this.matteMasks[r]=s}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+b()+"#"+r+")")}};function qo(){}qo.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 ra(){}(function(){var e={initElement:function(s,l,h){this.initFrame(),this.initBaseData(s,l,h),this.initTransform(s,l,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var s=this.baseElement||this.layerElement;s.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var s=this.baseElement||this.layerElement;s.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(s){this._mdf=!1,this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};L([In,K(e)],ra)})();function ia(e,r,s){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,s),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ei,jo,ea,qo,Ti,ra],ia),ia.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},ia.prototype.sourceRectAtTime=function(){return this.sourceRect};function Wb(e,r){this.elem=e,this.pos=r}function Hp(){}Hp.prototype={addShapeToModifiers:function(r){var s,l=this.shapeModifiers.length;for(s=0;s<l;s+=1)this.shapeModifiers[s].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var s=0,l=this.shapeModifiers.length;s<l;)if(this.shapeModifiers[s].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,s=this.shapes.length;for(r=0;r<s;r+=1)this.shapes[r].sh.reset();s=this.shapeModifiers.length;var l;for(r=s-1;r>=0&&(l=this.shapeModifiers[r].processShapes(this._isFirstFrame),!l);r-=1);}},searchProcessedElement:function(r){for(var s=this.processedElements,l=0,h=s.length;l<h;){if(s[l].elem===r)return s[l].pos;l+=1}return 0},addProcessedElement:function(r,s){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===r){l[h].pos=s;return}l.push(new Wb(r,s))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Gp={1:"butt",2:"round",3:"square"},Yp={1:"miter",2:"round",3:"bevel"};function Wp(e,r,s){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=s,this.lvl=r,this._isAnimated=!!s.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}Wp.prototype.setAsAnimated=function(){this._isAnimated=!0};function jp(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}jp.prototype.reset=function(){this.d="",this._mdf=!1};function kn(e,r,s,l){this.elem=e,this.frameId=-1,this.dataProps=et(r.length),this.renderer=s,this.k=!1,this.dashStr="",this.dashArray=X("float32",r.length?r.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(l);var h,c=r.length||0,v;for(h=0;h<c;h+=1)v=at.getProp(e,r[h].v,0,0,this),this.k=v.k||this.k,this.dataProps[h]={n:r[h].n,p:v};this.k||this.getValue(!0),this._isAnimated=this.k}kn.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,s=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<s;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}},L([le],kn);function qp(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,r.o,0,.01,this),this.w=at.getProp(e,r.w,0,null,this),this.d=new kn(e,r.d||{},"svg",this),this.c=at.getProp(e,r.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}L([le],qp);function Kp(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,r.o,0,.01,this),this.c=at.getProp(e,r.c,1,255,this),this.style=s}L([le],Kp);function Xp(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=s}L([le],Xp);function oa(e,r,s){this.data=r,this.c=X("uint8c",r.p*4);var l=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=X("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(s),this.prop=at.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}oa.prototype.comparePoints=function(e,r){for(var s=0,l=this.o.length/2,h;s<l;){if(h=Math.abs(e[s*4]-e[r*4+s*2]),h>.01)return!1;s+=1}return!0},oa.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},oa.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,s=this.data.p*4,l,h;for(r=0;r<s;r+=1)l=r%4===0?100:255,h=Math.round(this.prop.v[r]*l),this.c[r]!==h&&(this.c[r]=h,this._cmdf=!e);if(this.o.length)for(s=this.prop.v.length,r=this.data.p*4;r<s;r+=1)l=r%2===0?100:1,h=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==h&&(this.o[r-this.data.p*4]=h,this._omdf=!e);this._mdf=!e}},L([le],oa);function Ko(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,s)}Ko.prototype.initGradientData=function(e,r,s){this.o=at.getProp(e,r.o,0,.01,this),this.s=at.getProp(e,r.s,1,null,this),this.e=at.getProp(e,r.e,1,null,this),this.h=at.getProp(e,r.h||{k:0},0,.01,this),this.a=at.getProp(e,r.a||{k:0},0,Ct,this),this.g=new oa(e,r.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,r),this.setGradientOpacity(r,s),this._isAnimated=!!this._isAnimated},Ko.prototype.setGradientData=function(e,r){var s=we(),l=Tt(r.t===1?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,v,x;for(x=r.g.p*4,v=0;v<x;v+=4)c=Tt("stop"),l.appendChild(c),h.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+b()+"#"+s+")"),this.gf=l,this.cst=h},Ko.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var s,l,h,c=Tt("mask"),v=Tt("path");c.appendChild(v);var x=we(),g=we();c.setAttribute("id",g);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",x),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),h=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var R=this.stops;for(l=e.g.p*4;l<h;l+=2)s=Tt("stop"),s.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(s),R.push(s);v.setAttribute(e.ty==="gf"?"fill":"stroke","url("+b()+"#"+x+")"),e.ty==="gs"&&(v.setAttribute("stroke-linecap",Gp[e.lc||2]),v.setAttribute("stroke-linejoin",Yp[e.lj||2]),e.lj===1&&v.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=c,this.ost=R,this.maskId=g,r.msElem=v}},L([le],Ko);function Zp(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(e,r.w,0,null,this),this.d=new kn(e,r.d||{},"svg",this),this.initGradientData(e,r,s),this._isAnimated=!!this._isAnimated}L([Ko,le],Zp);function jb(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function qb(e,r,s){this.transform={mProps:e,op:r,container:s},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Qp=function(r,s,l,h){if(s===0)return"";var c=r.o,v=r.i,x=r.v,g,k=" M"+h.applyToPointStringified(x[0][0],x[0][1]);for(g=1;g<s;g+=1)k+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[g][0],v[g][1])+" "+h.applyToPointStringified(x[g][0],x[g][1]);return l&&s&&(k+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[0][0],v[0][1])+" "+h.applyToPointStringified(x[0][0],x[0][1]),k+="z"),k},Kb=function(){var e=new fe,r=new fe,s={createRenderFunction:l};function l(H){switch(H.ty){case"fl":return x;case"gf":return k;case"gs":return g;case"st":return R;case"sh":case"el":case"rc":case"sr":return v;case"tr":return h;case"no":return c;default:return null}}function h(H,T,M){(M||T.transform.op._mdf)&&T.transform.container.setAttribute("opacity",T.transform.op.v),(M||T.transform.mProps._mdf)&&T.transform.container.setAttribute("transform",T.transform.mProps.v.to2dCSS())}function c(){}function v(H,T,M){var D,O,V,N,I,E,A=T.styles.length,w=T.lvl,$,U,Y,J;for(E=0;E<A;E+=1){if(N=T.sh._mdf||M,T.styles[E].lvl<w){for(U=r.reset(),Y=w-T.styles[E].lvl,J=T.transformers.length-1;!N&&Y>0;)N=T.transformers[J].mProps._mdf||N,Y-=1,J-=1;if(N)for(Y=w-T.styles[E].lvl,J=T.transformers.length-1;Y>0;)U.multiply(T.transformers[J].mProps.v),Y-=1,J-=1}else U=e;if($=T.sh.paths,O=$._length,N){for(V="",D=0;D<O;D+=1)I=$.shapes[D],I&&I._length&&(V+=Qp(I,I._length,I.c,U));T.caches[E]=V}else V=T.caches[E];T.styles[E].d+=H.hd===!0?"":V,T.styles[E]._mdf=N||T.styles[E]._mdf}}function x(H,T,M){var D=T.style;(T.c._mdf||M)&&D.pElem.setAttribute("fill","rgb("+ne(T.c.v[0])+","+ne(T.c.v[1])+","+ne(T.c.v[2])+")"),(T.o._mdf||M)&&D.pElem.setAttribute("fill-opacity",T.o.v)}function g(H,T,M){k(H,T,M),R(H,T,M)}function k(H,T,M){var D=T.gf,O=T.g._hasOpacity,V=T.s.v,N=T.e.v;if(T.o._mdf||M){var I=H.ty==="gf"?"fill-opacity":"stroke-opacity";T.style.pElem.setAttribute(I,T.o.v)}if(T.s._mdf||M){var E=H.t===1?"x1":"cx",A=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(A,V[1]),O&&!T.g._collapsable&&(T.of.setAttribute(E,V[0]),T.of.setAttribute(A,V[1]))}var w,$,U,Y;if(T.g._cmdf||M){w=T.cst;var J=T.g.c;for(U=w.length,$=0;$<U;$+=1)Y=w[$],Y.setAttribute("offset",J[$*4]+"%"),Y.setAttribute("stop-color","rgb("+J[$*4+1]+","+J[$*4+2]+","+J[$*4+3]+")")}if(O&&(T.g._omdf||M)){var yt=T.g.o;for(T.g._collapsable?w=T.cst:w=T.ost,U=w.length,$=0;$<U;$+=1)Y=w[$],T.g._collapsable||Y.setAttribute("offset",yt[$*2]+"%"),Y.setAttribute("stop-opacity",yt[$*2+1])}if(H.t===1)(T.e._mdf||M)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),O&&!T.g._collapsable&&(T.of.setAttribute("x2",N[0]),T.of.setAttribute("y2",N[1])));else{var pt;if((T.s._mdf||T.e._mdf||M)&&(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",pt),O&&!T.g._collapsable&&T.of.setAttribute("r",pt)),T.e._mdf||T.h._mdf||T.a._mdf||M){pt||(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)));var ot=Math.atan2(N[1]-V[1],N[0]-V[0]),xt=T.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=pt*xt,Q=Math.cos(ot+T.a.v)*ct+V[0],S=Math.sin(ot+T.a.v)*ct+V[1];D.setAttribute("fx",Q),D.setAttribute("fy",S),O&&!T.g._collapsable&&(T.of.setAttribute("fx",Q),T.of.setAttribute("fy",S))}}}function R(H,T,M){var D=T.style,O=T.d;O&&(O._mdf||M)&&O.dashStr&&(D.pElem.setAttribute("stroke-dasharray",O.dashStr),D.pElem.setAttribute("stroke-dashoffset",O.dashoffset[0])),T.c&&(T.c._mdf||M)&&D.pElem.setAttribute("stroke","rgb("+ne(T.c.v[0])+","+ne(T.c.v[1])+","+ne(T.c.v[2])+")"),(T.o._mdf||M)&&D.pElem.setAttribute("stroke-opacity",T.o.v),(T.w._mdf||M)&&(D.pElem.setAttribute("stroke-width",T.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",T.w.v))}return s}();function qt(e,r,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,s),this.prevViewData=[]}L([Ei,jo,ea,Hp,qo,Ti,ra],qt),qt.prototype.initSecondaryElement=function(){},qt.prototype.identityMatrix=new fe,qt.prototype.buildExpressionInterface=function(){},qt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},qt.prototype.filterUniqueShapes=function(){var e,r=this.shapes.length,s,l,h=this.stylesList.length,c,v=[],x=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],x=!1,v.length=0,e=0;e<r;e+=1)s=this.shapes[e],s.styles.indexOf(c)!==-1&&(v.push(s),x=s._isAnimated||x);v.length>1&&x&&this.setShapesAsAnimated(v)}},qt.prototype.setShapesAsAnimated=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r].setAsAnimated()},qt.prototype.createStyleElement=function(e,r){var s,l=new jp(e,r),h=l.pElem;if(e.ty==="st")s=new qp(this,e,l);else if(e.ty==="fl")s=new Kp(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?Ko:Zp;s=new c(this,e,l),this.globalData.defs.appendChild(s.gf),s.maskId&&(this.globalData.defs.appendChild(s.ms),this.globalData.defs.appendChild(s.of),h.setAttribute("mask","url("+b()+"#"+s.maskId+")"))}else e.ty==="no"&&(s=new Xp(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",Gp[e.lc||2]),h.setAttribute("stroke-linejoin",Yp[e.lj||2]),h.setAttribute("fill-opacity","0"),e.lj===1&&h.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&h.setAttribute("fill-rule","evenodd"),e.ln&&h.setAttribute("id",e.ln),e.cl&&h.setAttribute("class",e.cl),e.bm&&(h.style["mix-blend-mode"]=Rd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,s),s},qt.prototype.createGroupElement=function(e){var r=new jb;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=Rd(e.bm)),r},qt.prototype.createTransformElement=function(e,r){var s=Cd.getTransformProperty(this,e,this),l=new qb(s,s.o,r);return this.addToAnimatedContents(e,l),l},qt.prototype.createShapeElement=function(e,r,s){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=En.getShapeProp(this,e,l,this),c=new Wp(r,s,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},qt.prototype.addToAnimatedContents=function(e,r){for(var s=0,l=this.animatedContents.length;s<l;){if(this.animatedContents[s].element===r)return;s+=1}this.animatedContents.push({fn:Kb.createRenderFunction(e),element:r,data:e})},qt.prototype.setElementStyles=function(e){var r=e.styles,s,l=this.stylesList.length;for(s=0;s<l;s+=1)this.stylesList[s].closed||r.push(this.stylesList[s])},qt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},qt.prototype.searchShapes=function(e,r,s,l,h,c,v){var x=[].concat(c),g,k=e.length-1,R,H,T=[],M=[],D,O,V;for(g=k;g>=0;g-=1){if(V=this.searchProcessedElement(e[g]),V?r[g]=s[V-1]:e[g]._render=v,e[g].ty==="fl"||e[g].ty==="st"||e[g].ty==="gf"||e[g].ty==="gs"||e[g].ty==="no")V?r[g].style.closed=!1:r[g]=this.createStyleElement(e[g],h),e[g]._render&&r[g].style.pElem.parentNode!==l&&l.appendChild(r[g].style.pElem),T.push(r[g].style);else if(e[g].ty==="gr"){if(!V)r[g]=this.createGroupElement(e[g]);else for(H=r[g].it.length,R=0;R<H;R+=1)r[g].prevViewData[R]=r[g].it[R];this.searchShapes(e[g].it,r[g].it,r[g].prevViewData,r[g].gr,h+1,x,v),e[g]._render&&r[g].gr.parentNode!==l&&l.appendChild(r[g].gr)}else e[g].ty==="tr"?(V||(r[g]=this.createTransformElement(e[g],l)),D=r[g].transform,x.push(D)):e[g].ty==="sh"||e[g].ty==="rc"||e[g].ty==="el"||e[g].ty==="sr"?(V||(r[g]=this.createShapeElement(e[g],x,h)),this.setElementStyles(r[g])):e[g].ty==="tm"||e[g].ty==="rd"||e[g].ty==="ms"||e[g].ty==="pb"||e[g].ty==="zz"||e[g].ty==="op"?(V?(O=r[g],O.closed=!1):(O=bi.getModifier(e[g].ty),O.init(this,e[g]),r[g]=O,this.shapeModifiers.push(O)),M.push(O)):e[g].ty==="rp"&&(V?(O=r[g],O.closed=!0):(O=bi.getModifier(e[g].ty),r[g]=O,O.init(this,e,g,r),this.shapeModifiers.push(O),v=!1),M.push(O));this.addProcessedElement(e[g],g+1)}for(k=T.length,g=0;g<k;g+=1)T[g].closed=!0;for(k=M.length,g=0;g<k;g+=1)M[g].closed=!0},qt.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},qt.prototype.renderShape=function(){var e,r=this.animatedContents.length,s;for(e=0;e<r;e+=1)s=this.animatedContents[e],(this._isFirstFrame||s.element._isAnimated)&&s.data!==!0&&s.fn(s.data,s.element,this._isFirstFrame)},qt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Od(e,r,s,l,h,c){this.o=e,this.sw=r,this.sc=s,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!s,fc:!!l,m:!0,p:!0}}Od.prototype.update=function(e,r,s,l,h,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var v=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,v=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,v=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,v=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,v=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,v=!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,v=!0),v};function Ae(e,r){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Ae.prototype.defaultBoxWidth=[0,0],Ae.prototype.copyData=function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},Ae.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ae.prototype.searchProperty=function(){return this.searchKeyframes()},Ae.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ae.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Ae.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,h=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(l=0;l<h;l+=1)s!==this.keysIndex?c=this.effectsSequence[l](c,c.t):c=this.effectsSequence[l](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}},Ae.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,r=this.elem.comp.renderedFrame,s=0,l=e.length;s<=l-1&&!(s===l-1||e[s+1].t>r);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},Ae.prototype.buildFinalText=function(e){for(var r=[],s=0,l=e.length,h,c,v=!1,x=!1,g="";s<l;)v=x,x=!1,h=e.charCodeAt(s),g=e.charAt(s),to.isCombinedCharacter(h)?v=!0:h>=55296&&h<=56319?to.isRegionalFlag(e,s)?g=e.substr(s,14):(c=e.charCodeAt(s+1),c>=56320&&c<=57343&&(to.isModifier(h,c)?(g=e.substr(s,2),v=!0):to.isFlagEmoji(e.substr(s,4))?g=e.substr(s,4):g=e.substr(s,2))):h>56319?(c=e.charCodeAt(s+1),to.isVariationSelector(h)&&(v=!0)):to.isZeroWidthJoiner(h)&&(v=!0,x=!0),v?(r[r.length-1]+=g,v=!1):r.push(g),s+=g.length;return r},Ae.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,s=this.data,l=[],h,c,v,x=0,g,k=s.m.g,R=0,H=0,T=0,M=[],D=0,O=0,V,N,I=r.getFontByName(e.f),E,A=0,w=Fp(I);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var $=e.tr/1e3*e.finalSize,U;if(e.sz)for(var Y=!0,J=e.sz[0],yt=e.sz[1],pt,ot;Y;){ot=this.buildFinalText(e.t),pt=0,D=0,c=ot.length,$=e.tr/1e3*e.finalSize;var xt=-1;for(h=0;h<c;h+=1)U=ot[h].charCodeAt(0),v=!1,ot[h]===" "?xt=h:(U===13||U===3)&&(D=0,v=!0,pt+=e.finalLineHeight||e.finalSize*1.2),r.chars?(E=r.getCharData(ot[h],I.fStyle,I.fFamily),A=v?0:E.w*e.finalSize/100):A=r.measureText(ot[h],e.f,e.finalSize),D+A>J&&ot[h]!==" "?(xt===-1?c+=1:h=xt,pt+=e.finalLineHeight||e.finalSize*1.2,ot.splice(h,xt===h?1:0,"\r"),xt=-1,D=0):(D+=A,D+=$);pt+=I.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<pt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=ot,c=e.finalText.length,Y=!1)}D=-$,A=0;var ct=0,Q;for(h=0;h<c;h+=1)if(v=!1,Q=e.finalText[h],U=Q.charCodeAt(0),U===13||U===3?(ct=0,M.push(D),O=D>O?D:O,D=-2*$,g="",v=!0,T+=1):g=Q,r.chars?(E=r.getCharData(Q,I.fStyle,r.getFontByName(e.f).fFamily),A=v?0:E.w*e.finalSize/100):A=r.measureText(g,e.f,e.finalSize),Q===" "?ct+=A+$:(D+=A+$+ct,ct=0),l.push({l:A,an:A,add:R,n:v,anIndexes:[],val:g,line:T,animatorJustifyOffset:0}),k==2){if(R+=A,g===""||g===" "||h===c-1){for((g===""||g===" ")&&(R-=A);H<=h;)l[H].an=R,l[H].ind=x,l[H].extra=A,H+=1;x+=1,R=0}}else if(k==3){if(R+=A,g===""||h===c-1){for(g===""&&(R-=A);H<=h;)l[H].an=R,l[H].ind=x,l[H].extra=A,H+=1;R=0,x+=1}}else l[x].ind=x,l[x].extra=0,x+=1;if(e.l=l,O=D>O?D:O,M.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=O,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=M;var S=s.a,P,f;N=S.length;var y,G,F=[];for(V=0;V<N;V+=1){for(P=S[V],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),G=0,y=P.s.b,h=0;h<c;h+=1)f=l[h],f.anIndexes[V]=G,(y==1&&f.val!==""||y==2&&f.val!==""&&f.val!==" "||y==3&&(f.n||f.val==" "||h==c-1)||y==4&&(f.n||h==c-1))&&(P.s.rn===1&&F.push(G),G+=1);s.a[V].s.totalChars=G;var nt=-1,ft;if(P.s.rn===1)for(h=0;h<c;h+=1)f=l[h],nt!=f.anIndexes[V]&&(nt=f.anIndexes[V],ft=F.splice(Math.floor(Math.random()*F.length),1)[0]),f.anIndexes[V]=ft}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=I.ascent*e.finalSize/100},Ae.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var s=this.copyData({},this.data.d.k[r].s);s=this.copyData(s,e),this.data.d.k[r].s=s,this.recalculate(r),this.setCurrentData(s),this.elem.addDynamicProperty(this)},Ae.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},Ae.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ae.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Xb=function(){var e=Math.max,r=Math.min,s=Math.floor;function l(c,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=at.getProp(c,v.s||{k:0},0,0,this),"e"in v?this.e=at.getProp(c,v.e,0,0,this):this.e={v:100},this.o=at.getProp(c,v.o||{k:0},0,0,this),this.xe=at.getProp(c,v.xe||{k:0},0,0,this),this.ne=at.getProp(c,v.ne||{k:0},0,0,this),this.sm=at.getProp(c,v.sm||{k:100},0,0,this),this.a=at.getProp(c,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(v){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,g=0,k=1,R=1;this.ne.v>0?x=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:R=1+this.xe.v/100;var H=js.getBezierEasing(x,g,k,R).get,T=0,M=this.finalS,D=this.finalE,O=this.data.sh;if(O===2)D===M?T=v>=D?1:0:T=e(0,r(.5/(D-M)+(v-M)/(D-M),1)),T=H(T);else if(O===3)D===M?T=v>=D?0:1:T=1-e(0,r(.5/(D-M)+(v-M)/(D-M),1)),T=H(T);else if(O===4)D===M?T=0:(T=e(0,r(.5/(D-M)+(v-M)/(D-M),1)),T<.5?T*=2:T=1-2*(T-.5)),T=H(T);else if(O===5){if(D===M)T=0;else{var V=D-M;v=r(e(0,v+.5-M),D-M);var N=-V/2+v,I=V/2;T=Math.sqrt(1-N*N/(I*I))}T=H(T)}else O===6?(D===M?T=0:(v=r(e(0,v+.5-M),D-M),T=(1+Math.cos(Math.PI+Math.PI*2*v/(D-M)))/2),T=H(T)):(v>=s(M)&&(v-M<0?T=e(0,r(r(D,1)-(M-v),1)):T=e(0,r(D-v,1))),T=H(T));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var A=.5-E*.5;T<A?T=0:(T=(T-A)/E,T>1&&(T=1))}return T*this.a.v},getValue:function(v){this.iterateDynamicProperties(),this._mdf=v||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,v&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/x,k=this.s.v/x+g,R=this.e.v/x+g;if(k>R){var H=k;k=R,R=H}this.finalS=k,this.finalE=R}},L([le],l);function h(c,v,x){return new l(c,v,x)}return{getTextSelectorProp:h}}();function Zb(e,r,s){var l={propType:!1},h=at.getProp,c=r.a;this.a={r:c.r?h(e,c.r,0,Ct,s):l,rx:c.rx?h(e,c.rx,0,Ct,s):l,ry:c.ry?h(e,c.ry,0,Ct,s):l,sk:c.sk?h(e,c.sk,0,Ct,s):l,sa:c.sa?h(e,c.sa,0,Ct,s):l,s:c.s?h(e,c.s,1,.01,s):l,a:c.a?h(e,c.a,1,0,s):l,o:c.o?h(e,c.o,0,.01,s):l,p:c.p?h(e,c.p,1,0,s):l,sw:c.sw?h(e,c.sw,0,0,s):l,sc:c.sc?h(e,c.sc,1,0,s):l,fc:c.fc?h(e,c.fc,1,0,s):l,fh:c.fh?h(e,c.fh,0,0,s):l,fs:c.fs?h(e,c.fs,0,.01,s):l,fb:c.fb?h(e,c.fb,0,.01,s):l,t:c.t?h(e,c.t,0,0,s):l},this.s=Xb.getTextSelectorProp(e,r.s,s),this.s.t=r.s.t}function ro(e,r,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=s,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}ro.prototype.searchProperties=function(){var e,r=this._textData.a.length,s,l=at.getProp;for(e=0;e<r;e+=1)s=this._textData.a[e],this._animatorsData[e]=new Zb(this._elem,s,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=l(this._elem,this._textData.m.a,1,0,this)},ro.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var s=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,v=this._renderType,x=this.renderedLetters.length,g,k,R,H,T=e.l,M,D,O,V,N,I,E,A,w,$,U,Y,J,yt,pt;if(this._hasMaskedPath){if(pt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ot=pt.v;this._pathData.r.v&&(ot=ot.reverse()),M={tLength:0,segments:[]},H=ot._length-1;var xt;for(Y=0,R=0;R<H;R+=1)xt=Cr.buildBezierData(ot.v[R],ot.v[R+1],[ot.o[R][0]-ot.v[R][0],ot.o[R][1]-ot.v[R][1]],[ot.i[R+1][0]-ot.v[R+1][0],ot.i[R+1][1]-ot.v[R+1][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),Y+=xt.segmentLength;R=H,pt.v.c&&(xt=Cr.buildBezierData(ot.v[R],ot.v[0],[ot.o[R][0]-ot.v[R][0],ot.o[R][1]-ot.v[R][1]],[ot.i[0][0]-ot.v[0][0],ot.i[0][1]-ot.v[0][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),Y+=xt.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,D=this._pathData.f.v,E=0,I=1,V=0,N=!0,$=M.segments,D<0&&pt.v.c)for(M.tLength<Math.abs(D)&&(D=-Math.abs(D)%M.tLength),E=$.length-1,w=$[E].points,I=w.length-1;D<0;)D+=w[I].partialLength,I-=1,I<0&&(E-=1,w=$[E].points,I=w.length-1);w=$[E].points,A=w[I-1],O=w[I],U=O.partialLength}H=T.length,g=0,k=0;var ct=e.finalSize*1.2*.714,Q=!0,S,P,f,y,G;y=l.length;var F,nt=-1,ft,Et,Lt,Rt=D,Jt=E,Le=I,wr=-1,Re,de,Ue,Dt,ht,qr,Si,Kr,Nr="",Xr=this.defaultPropsArray,Zr;if(e.j===2||e.j===1){var Me=0,_i=0,Ii=e.j===2?-.5:-1,br=0,Ci=!0;for(R=0;R<H;R+=1)if(T[R].n){for(Me&&(Me+=_i);br<R;)T[br].animatorJustifyOffset=Me,br+=1;Me=0,Ci=!0}else{for(f=0;f<y;f+=1)S=l[f].a,S.t.propType&&(Ci&&e.j===2&&(_i+=S.t.v*Ii),P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?Me+=S.t.v*F[0]*Ii:Me+=S.t.v*F*Ii);Ci=!1}for(Me&&(Me+=_i);br<R;)T[br].animatorJustifyOffset=Me,br+=1}for(R=0;R<H;R+=1){if(c.reset(),Re=1,T[R].n)g=0,k+=e.yOffset,k+=Q?1:0,D=Rt,Q=!1,this._hasMaskedPath&&(E=Jt,I=Le,w=$[E].points,A=w[I-1],O=w[I],U=O.partialLength,V=0),Nr="",Kr="",qr="",Zr="",Xr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(wr!==T[R].line){switch(e.j){case 1:D+=Y-e.lineWidths[T[R].line];break;case 2:D+=(Y-e.lineWidths[T[R].line])/2;break;default:break}wr=T[R].line}nt!==T[R].ind&&(T[nt]&&(D+=T[nt].extra),D+=T[R].an/2,nt=T[R].ind),D+=s[0]*T[R].an*.005;var yr=0;for(f=0;f<y;f+=1)S=l[f].a,S.p.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?yr+=S.p.v[0]*F[0]:yr+=S.p.v[0]*F),S.a.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?yr+=S.a.v[0]*F[0]:yr+=S.a.v[0]*F);for(N=!0,this._pathData.a.v&&(D=T[0].an*.5+(Y-this._pathData.f.v-T[0].an*.5-T[T.length-1].an*.5)*nt/(H-1),D+=this._pathData.f.v);N;)V+U>=D+yr||!w?(J=(D+yr-V)/O.partialLength,Et=A.point[0]+(O.point[0]-A.point[0])*J,Lt=A.point[1]+(O.point[1]-A.point[1])*J,c.translate(-s[0]*T[R].an*.005,-(s[1]*ct)*.01),N=!1):w&&(V+=O.partialLength,I+=1,I>=w.length&&(I=0,E+=1,$[E]?w=$[E].points:pt.v.c?(I=0,E=0,w=$[E].points):(V-=O.partialLength,w=null)),w&&(A=O,O=w[I],U=O.partialLength));ft=T[R].an/2-T[R].add,c.translate(-ft,0,0)}else ft=T[R].an/2-T[R].add,c.translate(-ft,0,0),c.translate(-s[0]*T[R].an*.005,-s[1]*ct*.01,0);for(f=0;f<y;f+=1)S=l[f].a,S.t.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),(g!==0||e.j!==0)&&(this._hasMaskedPath?F.length?D+=S.t.v*F[0]:D+=S.t.v*F:F.length?g+=S.t.v*F[0]:g+=S.t.v*F));for(e.strokeWidthAnim&&(Ue=e.sw||0),e.strokeColorAnim&&(e.sc?de=[e.sc[0],e.sc[1],e.sc[2]]:de=[0,0,0]),e.fillColorAnim&&e.fc&&(Dt=[e.fc[0],e.fc[1],e.fc[2]]),f=0;f<y;f+=1)S=l[f].a,S.a.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?c.translate(-S.a.v[0]*F[0],-S.a.v[1]*F[1],S.a.v[2]*F[2]):c.translate(-S.a.v[0]*F,-S.a.v[1]*F,S.a.v[2]*F));for(f=0;f<y;f+=1)S=l[f].a,S.s.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),F.length?c.scale(1+(S.s.v[0]-1)*F[0],1+(S.s.v[1]-1)*F[1],1):c.scale(1+(S.s.v[0]-1)*F,1+(S.s.v[1]-1)*F,1));for(f=0;f<y;f+=1){if(S=l[f].a,P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),S.sk.propType&&(F.length?c.skewFromAxis(-S.sk.v*F[0],S.sa.v*F[1]):c.skewFromAxis(-S.sk.v*F,S.sa.v*F)),S.r.propType&&(F.length?c.rotateZ(-S.r.v*F[2]):c.rotateZ(-S.r.v*F)),S.ry.propType&&(F.length?c.rotateY(S.ry.v*F[1]):c.rotateY(S.ry.v*F)),S.rx.propType&&(F.length?c.rotateX(S.rx.v*F[0]):c.rotateX(S.rx.v*F)),S.o.propType&&(F.length?Re+=(S.o.v*F[0]-Re)*F[0]:Re+=(S.o.v*F-Re)*F),e.strokeWidthAnim&&S.sw.propType&&(F.length?Ue+=S.sw.v*F[0]:Ue+=S.sw.v*F),e.strokeColorAnim&&S.sc.propType)for(ht=0;ht<3;ht+=1)F.length?de[ht]+=(S.sc.v[ht]-de[ht])*F[0]:de[ht]+=(S.sc.v[ht]-de[ht])*F;if(e.fillColorAnim&&e.fc){if(S.fc.propType)for(ht=0;ht<3;ht+=1)F.length?Dt[ht]+=(S.fc.v[ht]-Dt[ht])*F[0]:Dt[ht]+=(S.fc.v[ht]-Dt[ht])*F;S.fh.propType&&(F.length?Dt=hp(Dt,S.fh.v*F[0]):Dt=hp(Dt,S.fh.v*F)),S.fs.propType&&(F.length?Dt=dp(Dt,S.fs.v*F[0]):Dt=dp(Dt,S.fs.v*F)),S.fb.propType&&(F.length?Dt=cp(Dt,S.fb.v*F[0]):Dt=cp(Dt,S.fb.v*F))}}for(f=0;f<y;f+=1)S=l[f].a,S.p.propType&&(P=l[f].s,F=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,S.p.v[1]*F[0],-S.p.v[2]*F[1]):c.translate(0,S.p.v[1]*F,-S.p.v[2]*F):F.length?c.translate(S.p.v[0]*F[0],S.p.v[1]*F[1],-S.p.v[2]*F[2]):c.translate(S.p.v[0]*F,S.p.v[1]*F,-S.p.v[2]*F));if(e.strokeWidthAnim&&(qr=Ue<0?0:Ue),e.strokeColorAnim&&(Si="rgb("+Math.round(de[0]*255)+","+Math.round(de[1]*255)+","+Math.round(de[2]*255)+")"),e.fillColorAnim&&e.fc&&(Kr="rgb("+Math.round(Dt[0]*255)+","+Math.round(Dt[1]*255)+","+Math.round(Dt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,s[1]*ct*.01+k,0),this._pathData.p.v){yt=(O.point[1]-A.point[1])/(O.point[0]-A.point[0]);var io=Math.atan(yt)*180/Math.PI;O.point[0]<A.point[0]&&(io+=180),c.rotate(-io*Math.PI/180)}c.translate(Et,Lt,0),D-=s[0]*T[R].an*.005,T[R+1]&&nt!==T[R+1].ind&&(D+=T[R].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(g,k,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(T[R].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[R].line]),0,0);break;case 2:c.translate(T[R].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[R].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(ft,0,0),c.translate(s[0]*T[R].an*.005,s[1]*ct*.01,0),g+=T[R].l+e.tr*.001*e.finalSize}v==="html"?Nr=c.toCSS():v==="svg"?Nr=c.to2dCSS():Xr=[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]],Zr=Re}x<=R?(G=new Od(Zr,qr,Si,Kr,Nr,Xr),this.renderedLetters.push(G),x+=1,this.lettersChangedFlag=!0):(G=this.renderedLetters[R],this.lettersChangedFlag=G.update(Zr,qr,Si,Kr,Nr,Xr)||this.lettersChangedFlag)}}},ro.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ro.prototype.mHelper=new fe,ro.prototype.defaultPropsArray=[],L([le],ro);function rr(){}rr.prototype.initElement=function(e,r,s){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,s),this.textProperty=new Ae(this,e.t,this.dynamicProperties),this.textAnimator=new ro(e.t,this.renderType,this),this.initTransform(e,r,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},rr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},rr.prototype.createPathShape=function(e,r){var s,l=r.length,h,c="";for(s=0;s<l;s+=1)r[s].ty==="sh"&&(h=r[s].ks.k,c+=Qp(h,h.i.length,!0,e));return c},rr.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},rr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},rr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},rr.prototype.applyTextPropertiesToMatrix=function(e,r,s,l,h){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s])/2,0,0);break;default:break}r.translate(l,h,0)},rr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},rr.prototype.emptyProp=new Od,rr.prototype.destroy=function(){},rr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Qb={shapes:[]};function Wr(e,r,s){this.textSpans=[],this.renderType="svg",this.initElement(e,r,s)}L([Ei,jo,ea,qo,Ti,ra,rr],Wr),Wr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},Wr.prototype.buildTextContents=function(e){for(var r=0,s=e.length,l=[],h="";r<s;)e[r]==="\r"||e[r]===""?(l.push(h),h=""):h+=e[r],r+=1;return l.push(h),l},Wr.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var s=e.shapes[0];if(s.it){var l=s.it[s.it.length-1];l.s&&(l.s.k[0]=r,l.s.k[1]=r)}}return e},Wr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,s=this.textProperty.currentData;this.renderedLetters=et(s?s.l.length:0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.finalSize);var l=this.globalData.fontManager.getFontByName(s.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=s.fWeight,c=s.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",s.t);var v=s.l||[],x=!!this.globalData.fontManager.chars;r=v.length;var g,k=this.mHelper,R="",H=this.data.singleShape,T=0,M=0,D=!0,O=s.tr*.001*s.finalSize;if(H&&!x&&!s.sz){var V=this.textContainer,N="start";switch(s.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",O);var I=this.buildTextContents(s.finalText);for(r=I.length,M=s.ps?s.ps[1]+s.ascent:0,e=0;e<r;e+=1)g=this.textSpans[e].span||Tt("tspan"),g.textContent=I[e],g.setAttribute("x",0),g.setAttribute("y",M),g.style.display="inherit",V.appendChild(g),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=g,M+=s.finalLineHeight;this.layerElement.appendChild(V)}else{var E=this.textSpans.length,A;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!x||!H||e===0){if(g=E>e?this.textSpans[e].span:Tt(x?"g":"text"),E<=e){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=g,x){var w=Tt("g");g.appendChild(w),this.textSpans[e].childSpan=w}this.textSpans[e].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(k.reset(),H&&(v[e].n&&(T=-O,M+=s.yOffset,M+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(s,k,v[e].line,T,M),T+=v[e].l||0,T+=O),x){A=this.globalData.fontManager.getCharData(s.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily);var $;if(A.t===1)$=new sa(A.data,this.globalData,this);else{var U=Qb;A.data&&A.data.shapes&&(U=this.buildShapeData(A.data,s.finalSize)),$=new qt(U,this.globalData,this)}if(this.textSpans[e].glyph){var Y=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(Y.layerElement),Y.destroy()}this.textSpans[e].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[e].childSpan.appendChild($.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else H&&g.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),g.textContent=v[e].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}H&&g&&g.setAttribute("d",R)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Wr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Wr.prototype.getValue=function(){var e,r=this.textSpans.length,s;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)s=this.textSpans[e].glyph,s&&(s.prepareFrame(this.comp.renderedFrame-this.data.st),s._mdf&&(this._mdf=!0))},Wr.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,r,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;r=l.length;var h,c,v;for(e=0;e<r;e+=1)l[e].n||(h=s[e],c=this.textSpans[e].span,v=this.textSpans[e].glyph,v&&v.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Pd(e,r,s){this.initElement(e,r,s)}L([ia],Pd),Pd.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Ai(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initFrame(),this.initTransform(e,r,s),this.initHierarchy()}Ai.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Ai.prototype.renderFrame=function(){},Ai.prototype.getBaseElement=function(){return null},Ai.prototype.destroy=function(){},Ai.prototype.sourceRectAtTime=function(){},Ai.prototype.hide=function(){},L([Ei,jo,qo,Ti],Ai);function re(){}L([ve],re),re.prototype.createNull=function(e){return new Ai(e,this.globalData,this)},re.prototype.createShape=function(e){return new qt(e,this.globalData,this)},re.prototype.createText=function(e){return new Wr(e,this.globalData,this)},re.prototype.createImage=function(e){return new ia(e,this.globalData,this)},re.prototype.createSolid=function(e){return new Pd(e,this.globalData,this)},re.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var s=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=we();s.setAttribute("id",h),s.appendChild(l),this.layerElement.setAttribute("clip-path","url("+b()+"#"+h+")"),r.appendChild(s),this.layers=e.layers,this.elements=et(e.layers.length)},re.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},re.prototype.updateContainerSize=function(){},re.prototype.findIndexByInd=function(e){var r=0,s=this.layers.length;for(r=0;r<s;r+=1)if(this.layers[r].ind===e)return r;return-1},re.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var s=this.createItem(this.layers[e]);if(r[e]=s,mn()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(s),s.initExpressions()),this.appendElementInPos(s,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(s);else{var h=r[l],c=h.getMatte(this.layers[e].tt);s.setMatte(c)}}}},re.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,s=this.elements.length;r<s;){if(this.elements[r]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,h=this.elements[l],c=h.getMatte(this.layers[r].tt);e.setMatte(c);break}r+=1}}},re.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,s=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},re.prototype.appendElementInPos=function(e,r){var s=e.getBaseElement();if(s){for(var l=0,h;l<r;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(h=this.elements[l].getBaseElement()),l+=1;h?this.layerElement.insertBefore(s,h):this.layerElement.appendChild(s)}},re.prototype.hide=function(){this.layerElement.style.display="none"},re.prototype.show=function(){this.layerElement.style.display="block"};function jr(){}L([Ei,jo,qo,Ti,ra],jr),jr.prototype.initElement=function(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initTransform(e,r,s),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},jr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var s,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},jr.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},jr.prototype.setElements=function(e){this.elements=e},jr.prototype.getElements=function(){return this.elements},jr.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},jr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function sa(e,r,s){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(e,r,s),this.tm=e.tm?at.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}L([re,jr,ea],sa),sa.prototype.createComp=function(e){return new sa(e,this.globalData,this)};function Dd(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var s="";if(r&&r.title){var l=Tt("title"),h=we();l.setAttribute("id",h),l.textContent=r.title,this.svgElement.appendChild(l),s+=h}if(r&&r.description){var c=Tt("desc"),v=we();c.setAttribute("id",v),c.textContent=r.description,this.svgElement.appendChild(c),s+=" "+v}s&&this.svgElement.setAttribute("aria-labelledby",s);var x=Tt("defs");this.svgElement.appendChild(x);var g=Tt("g");this.svgElement.appendChild(g),this.layerElement=g,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:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return L([re],Dd),Dd.prototype.createComp=function(e){return new sa(e,this.globalData,this)},lb("svg",Dd),bi.registerModifier("tm",gr),bi.registerModifier("pb",qs),bi.registerModifier("rp",kr),bi.registerModifier("rd",Ks),bi.registerModifier("zz",Zs),bi.registerModifier("op",Qs),Ot})});var Rn=globalThis,Mn=Rn.ShadowRoot&&(Rn.ShadyCSS===void 0||Rn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fd=Symbol(),tm=new WeakMap,aa=class{constructor(o,t,i){if(this._$cssResult$=!0,i!==Fd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Mn&&o===void 0){let i=t!==void 0&&t.length===1;i&&(o=tm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),i&&tm.set(t,o))}return o}toString(){return this.cssText}},em=n=>new aa(typeof n=="string"?n:n+"",void 0,Fd),B=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((i,a,d)=>i+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+n[d+1],n[0]);return new aa(t,n,Fd)},Vd=(n,o)=>{if(Mn)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let i=document.createElement("style"),a=Rn.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=t.cssText,n.appendChild(i)}},On=Mn?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let i of o.cssRules)t+=i.cssText;return em(t)})(n):n;var{is:ay,defineProperty:ny,getOwnPropertyDescriptor:ly,getOwnPropertyNames:dy,getOwnPropertySymbols:cy,getPrototypeOf:hy}=Object,ki=globalThis,rm=ki.trustedTypes,py=rm?rm.emptyScript:"",zd=ki.reactiveElementPolyfillSupport,na=(n,o)=>n,la={toAttribute(n,o){switch(o){case Boolean:n=n?py:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Pn=(n,o)=>!ay(n,o),im={attribute:!0,type:String,converter:la,reflect:!1,hasChanged:Pn},om,sm;(om=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(sm=ki.litPropertyMetadata)!=null||(ki.litPropertyMetadata=new WeakMap);var Qr=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=im){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let i=Symbol(),a=this.getPropertyDescriptor(o,i,t);a!==void 0&&ny(this.prototype,o,a)}}static getPropertyDescriptor(o,t,i){var m;let{get:a,set:d}=(m=ly(this.prototype,o))!=null?m:{get(){return this[t]},set(b){this[t]=b}};return{get(){return a==null?void 0:a.call(this)},set(b){let C=a==null?void 0:a.call(this);d.call(this,b),this.requestUpdate(o,C,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:im}static _$Ei(){if(this.hasOwnProperty(na("elementProperties")))return;let o=hy(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(na("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(na("properties"))){let t=this.properties,i=[...dy(t),...cy(t)];for(let a of i)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[i,a]of t)this.elementProperties.set(i,a)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let a=this._$Eu(t,i);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let i=new Set(o.flat(1/0).reverse());for(let a of i)t.unshift(On(a))}else o!==void 0&&t.push(On(o));return t}static _$Eu(o,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((i=o.hostConnected)==null||i.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(o.set(i,this[i]),delete this[i]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Vd(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var a;return(a=i.hostConnected)==null?void 0:a.call(i)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(o,t,i){this._$AK(o,i)}_$EC(o,t){var d;let i=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,i);if(a!==void 0&&i.reflect===!0){let m=(((d=i.converter)==null?void 0:d.toAttribute)!==void 0?i.converter:la).toAttribute(t,i.type);this._$Em=o,m==null?this.removeAttribute(a):this.setAttribute(a,m),this._$Em=null}}_$AK(o,t){var d;let i=this.constructor,a=i._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let m=i.getPropertyOptions(a),b=typeof m.converter=="function"?{fromAttribute:m.converter}:((d=m.converter)==null?void 0:d.fromAttribute)!==void 0?m.converter:la;this._$Em=a,this[a]=b.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(o,t,i){var a;if(o!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(o)),!((a=i.hasChanged)!=null?a:Pn)(this[o],t))return;this.P(o,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,i){var a;this._$AL.has(o)||this._$AL.set(o,t),i.reflect===!0&&this._$Em!==o&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,b]of this._$Ep)this[m]=b;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[m,b]of d)b.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],b)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(a=this._$EO)==null||a.forEach(d=>{var m;return(m=d.hostUpdate)==null?void 0:m.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(i=>{var a;return(a=i.hostUpdated)==null?void 0:a.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},am;Qr.elementStyles=[],Qr.shadowRootOptions={mode:"open"},Qr[na("elementProperties")]=new Map,Qr[na("finalized")]=new Map,zd==null||zd({ReactiveElement:Qr}),((am=ki.reactiveElementVersions)!=null?am:ki.reactiveElementVersions=[]).push("2.0.4");var ca=globalThis,Dn=ca.trustedTypes,nm=Dn?Dn.createPolicy("lit-html",{createHTML:n=>n}):void 0,Hd="$lit$",Jr=`lit$${Math.random().toFixed(9).slice(2)}$`,Gd="?"+Jr,my=`<${Gd}>`,ao=document,ha=()=>ao.createComment(""),pa=n=>n===null||typeof n!="object"&&typeof n!="function",Yd=Array.isArray,um=n=>Yd(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Bd=`[
|
|
3
3
|
\f\r]`,da=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lm=/-->/g,dm=/>/g,oo=RegExp(`>|${Bd}(?:([^\\s"'>=/]+)(${Bd}*=${Bd}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),cm=/'/g,hm=/"/g,fm=/^(?:script|style|textarea|title)$/i,Wd=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),_=Wd(1),zA=Wd(2),BA=Wd(3),ge=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),pm=new WeakMap,so=ao.createTreeWalker(ao,129);function vm(n,o){if(!Yd(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return nm!==void 0?nm.createHTML(o):o}var gm=(n,o)=>{let t=n.length-1,i=[],a,d=o===2?"<svg>":o===3?"<math>":"",m=da;for(let b=0;b<t;b++){let C=n[b],L,W,K=-1,rt=0;for(;rt<C.length&&(m.lastIndex=rt,W=m.exec(C),W!==null);)rt=m.lastIndex,m===da?W[1]==="!--"?m=lm:W[1]!==void 0?m=dm:W[2]!==void 0?(fm.test(W[2])&&(a=RegExp("</"+W[2],"g")),m=oo):W[3]!==void 0&&(m=oo):m===oo?W[0]===">"?(m=a!=null?a:da,K=-1):W[1]===void 0?K=-2:(K=m.lastIndex-W[2].length,L=W[1],m=W[3]===void 0?oo:W[3]==='"'?hm:cm):m===hm||m===cm?m=oo:m===lm||m===dm?m=da:(m=oo,a=void 0);let X=m===oo&&n[b+1].startsWith("/>")?" ":"";d+=m===da?C+my:K>=0?(i.push(L),C.slice(0,K)+Hd+C.slice(K)+Jr+X):C+Jr+(K===-2?b:X)}return[vm(n,d+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},ma=class n{constructor({strings:o,_$litType$:t},i){let a;this.parts=[];let d=0,m=0,b=o.length-1,C=this.parts,[L,W]=gm(o,t);if(this.el=n.createElement(L,i),so.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(a=so.nextNode())!==null&&C.length<b;){if(a.nodeType===1){if(a.hasAttributes())for(let K of a.getAttributeNames())if(K.endsWith(Hd)){let rt=W[m++],X=a.getAttribute(K).split(Jr),tt=/([.?@])?(.*)/.exec(rt);C.push({type:1,index:d,name:tt[2],strings:X,ctor:tt[1]==="."?Fn:tt[1]==="?"?Vn:tt[1]==="@"?zn:lo}),a.removeAttribute(K)}else K.startsWith(Jr)&&(C.push({type:6,index:d}),a.removeAttribute(K));if(fm.test(a.tagName)){let K=a.textContent.split(Jr),rt=K.length-1;if(rt>0){a.textContent=Dn?Dn.emptyScript:"";for(let X=0;X<rt;X++)a.append(K[X],ha()),so.nextNode(),C.push({type:2,index:++d});a.append(K[rt],ha())}}}else if(a.nodeType===8)if(a.data===Gd)C.push({type:2,index:d});else{let K=-1;for(;(K=a.data.indexOf(Jr,K+1))!==-1;)C.push({type:7,index:d}),K+=Jr.length-1}d++}}static createElement(o,t){let i=ao.createElement("template");return i.innerHTML=o,i}};function no(n,o,t=n,i){var m,b,C;if(o===ge)return o;let a=i!==void 0?(m=t.o)==null?void 0:m[i]:t.l,d=pa(o)?void 0:o._$litDirective$;return(a==null?void 0:a.constructor)!==d&&((b=a==null?void 0:a._$AO)==null||b.call(a,!1),d===void 0?a=void 0:(a=new d(n),a._$AT(n,t,i)),i!==void 0?((C=t.o)!=null?C:t.o=[])[i]=a:t.l=a),a!==void 0&&(o=no(n,a._$AS(n,o.values),a,i)),o}var $n=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var L;let{el:{content:t},parts:i}=this._$AD,a=((L=o==null?void 0:o.creationScope)!=null?L:ao).importNode(t,!0);so.currentNode=a;let d=so.nextNode(),m=0,b=0,C=i[0];for(;C!==void 0;){if(m===C.index){let W;C.type===2?W=new Xo(d,d.nextSibling,this,o):C.type===1?W=new C.ctor(d,C.name,C.strings,this,o):C.type===6&&(W=new Bn(d,this,o)),this._$AV.push(W),C=i[++b]}m!==(C==null?void 0:C.index)&&(d=so.nextNode(),m++)}return so.currentNode=ao,a}p(o){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,t),t+=i.strings.length-2):i._$AI(o[t])),t++}},Xo=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,i,a){var d;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=i,this.options=a,this.v=(d=a==null?void 0:a.isConnected)!=null?d:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=no(this,o,t),pa(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==ge&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):um(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!==j&&pa(this._$AH)?this._$AA.nextSibling.data=o:this.T(ao.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:i}=o,a=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=ma.createElement(vm(i.h,i.h[0]),this.options)),i);if(((d=this._$AH)==null?void 0:d._$AD)===a)this._$AH.p(t);else{let m=new $n(a,this),b=m.u(this.options);m.p(t),this.T(b),this._$AH=m}}_$AC(o){let t=pm.get(o.strings);return t===void 0&&pm.set(o.strings,t=new ma(o)),t}k(o){Yd(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,a=0;for(let d of o)a===t.length?t.push(i=new n(this.O(ha()),this.O(ha()),this,this.options)):i=t[a],i._$AI(d),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},lo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,i,a,d){this.type=1,this._$AH=j,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=d,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=j}_$AI(o,t=this,i,a){let d=this.strings,m=!1;if(d===void 0)o=no(this,o,t,0),m=!pa(o)||o!==this._$AH&&o!==ge,m&&(this._$AH=o);else{let b=o,C,L;for(o=d[0],C=0;C<d.length-1;C++)L=no(this,b[i+C],t,C),L===ge&&(L=this._$AH[C]),m||(m=!pa(L)||L!==this._$AH[C]),L===j?o=j:o!==j&&(o+=(L!=null?L:"")+d[C+1]),this._$AH[C]=L}m&&!a&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Fn=class extends lo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},Vn=class extends lo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},zn=class extends lo{constructor(o,t,i,a,d){super(o,t,i,a,d),this.type=5}_$AI(o,t=this){var m;if((o=(m=no(this,o,t,0))!=null?m:j)===ge)return;let i=this._$AH,a=o===j&&i!==j||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,d=o!==j&&(i===j||a);a&&this.element.removeEventListener(this.name,this,i),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,o):this._$AH.handleEvent(o)}},Bn=class{constructor(o,t,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){no(this,o)}},bm={M:Hd,P:Jr,A:Gd,C:1,L:gm,R:$n,D:um,V:no,I:Xo,H:lo,N:Vn,U:zn,B:Fn,F:Bn},Ud=ca.litHtmlPolyfillSupport,mm;Ud==null||Ud(ma,Xo),((mm=ca.litHtmlVersions)!=null?mm:ca.litHtmlVersions=[]).push("3.2.0");var ym=(n,o,t)=>{var d,m;let i=(d=t==null?void 0:t.renderBefore)!=null?d:o,a=i._$litPart$;if(a===void 0){let b=(m=t==null?void 0:t.renderBefore)!=null?m:null;i._$litPart$=a=new Xo(o.insertBefore(ha(),b),b,void 0,t!=null?t:{})}return a._$AI(n),a};var wi=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,i;let o=super.createRenderRoot();return(i=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=ym(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return ge}},Em;wi._$litElement$=!0,wi.finalized=!0,(Em=globalThis.litElementHydrateSupport)==null||Em.call(globalThis,{LitElement:wi});var jd=globalThis.litElementPolyfillSupport;jd==null||jd({LitElement:wi});var Tm;((Tm=globalThis.litElementVersions)!=null?Tm:globalThis.litElementVersions=[]).push("4.1.0");var uy={attribute:!0,type:String,converter:la,reflect:!1,hasChanged:Pn},fy=(n=uy,o,t)=>{let{kind:i,metadata:a}=t,d=globalThis.litPropertyMetadata.get(a);if(d===void 0&&globalThis.litPropertyMetadata.set(a,d=new Map),d.set(t.name,n),i==="accessor"){let{name:m}=t;return{set(b){let C=o.get.call(this);o.set.call(this,b),this.requestUpdate(m,C,n)},init(b){return b!==void 0&&this.P(m,void 0,n),b}}}if(i==="setter"){let{name:m}=t;return function(b){let C=this[m];o.call(this,b),this.requestUpdate(m,C,n)}}throw Error("Unsupported decorator location: "+i)};function u(n){return(o,t)=>typeof t=="object"?fy(n,o,t):((i,a,d)=>{let m=a.hasOwnProperty(d);return a.constructor.createProperty(d,m?{...i,wrapped:!0}:i),m?Object.getOwnPropertyDescriptor(a,d):void 0})(n,o,t)}function vt(n){return u({...n,state:!0,attribute:!1})}var Lr=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function ir(n,o){return(t,i,a)=>{let d=m=>{var b,C;return(C=(b=m.renderRoot)==null?void 0:b.querySelector(n))!=null?C:null};if(o){let{get:m,set:b}=typeof i=="object"?t:a!=null?a:(()=>{let C=Symbol();return{get(){return this[C]},set(L){this[C]=L}}})();return Lr(t,i,{get(){let C=m.call(this);return C===void 0&&(C=d(this),(C!==null||this.hasUpdated)&&b.call(this,C)),C}})}return Lr(t,i,{get(){return d(this)}})}}var qd;function xm(n){return(o,t)=>Lr(o,t,{get(){var i;return((i=this.renderRoot)!=null?i:qd!=null?qd:qd=document.createDocumentFragment()).querySelectorAll(n)}})}function Pt(n){return(o,t)=>{let{slot:i,selector:a}=n!=null?n:{},d="slot"+(i?`[name=${i}]`:":not([name])");return Lr(o,t,{get(){var C,L;let m=(C=this.renderRoot)==null?void 0:C.querySelector(d),b=(L=m==null?void 0:m.assignedElements(n))!=null?L:[];return a===void 0?b:b.filter(W=>W.matches(a))}})}}function Un(n){return(o,t)=>{let{slot:i}=n!=null?n:{},a="slot"+(i?`[name=${i}]`:":not([name])");return Lr(o,t,{get(){var m,b;let d=(m=this.renderRoot)==null?void 0:m.querySelector(a);return(b=d==null?void 0:d.assignedNodes(n))!=null?b:[]}})}}var vy={PREFIX:"mdc",SEPARATOR:"-"},gy={NAMESPACE:vy},Kd=gy;var by=n=>[Kd.NAMESPACE.PREFIX,n].join(Kd.NAMESPACE.SEPARATOR),z={constructTagName:by};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var Am=z.constructTagName("buttonsimple"),co={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Zo={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},ua={SIZE:co[32],TYPE:Zo.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var ti=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},fa={40:40,32:32,28:28,24:24},or={64:64,52:52,20:20,...fa},ho={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Qo={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Oe={VARIANT:$t.PRIMARY,SIZE:fa[32],COLOR:ho.DEFAULT,TYPE_INTERNAL:Qo.ICON,TYPE:Zo.BUTTON,INVERTED:!1};var Hn=n=>{class o extends n{constructor(){super(...arguments);this.variant=Oe.VARIANT;this.color=Oe.COLOR;this.typeInternal=Oe.TYPE_INTERNAL}setVariant(a){this.setAttribute("variant",Object.values($t).includes(a)?a:Oe.VARIANT)}setColor(a){!Object.values(ho).includes(a)||this.variant===$t.TERTIARY?this.setAttribute("color",`${Oe.COLOR}`):this.setAttribute("color",a)}setSize(a){let m=this.typeInternal===Qo.ICON?Object.values(or).includes(a)&&!(a===or[20]&&this.variant!==$t.TERTIARY):Object.values(fa).includes(a);this.setAttribute("size",m?`${a}`:`${Oe.SIZE}`)}inferButtonType(){var L,W,K,rt,X,tt;let a=(W=(L=this.shadowRoot)==null?void 0:L.querySelector("slot:not([name])"))==null?void 0:W.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,d=(rt=(K=this.shadowRoot)==null?void 0:K.querySelector('slot[name="prefix"]'))==null?void 0:rt.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,m=this.prefixIcon||d&&d>0,b=(tt=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,C=this.postfixIcon||b&&b>0;a&&(m||C)?(this.typeInternal=Qo.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(m||C)?(this.typeInternal=Qo.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Qo.PILL,this.setAttribute("data-btn-type","pill"))}}return p([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),p([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),p([u({type:String})],o.prototype,"variant",2),p([u({type:String})],o.prototype,"color",2),p([vt()],o.prototype,"typeInternal",2),o};var Sm=B`
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),cm=/'/g,hm=/"/g,fm=/^(?:script|style|textarea|title)$/i,Wd=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),_=Wd(1),zA=Wd(2),BA=Wd(3),ge=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),pm=new WeakMap,so=ao.createTreeWalker(ao,129);function vm(n,o){if(!Yd(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return nm!==void 0?nm.createHTML(o):o}var gm=(n,o)=>{let t=n.length-1,i=[],a,d=o===2?"<svg>":o===3?"<math>":"",m=da;for(let b=0;b<t;b++){let C=n[b],L,W,K=-1,rt=0;for(;rt<C.length&&(m.lastIndex=rt,W=m.exec(C),W!==null);)rt=m.lastIndex,m===da?W[1]==="!--"?m=lm:W[1]!==void 0?m=dm:W[2]!==void 0?(fm.test(W[2])&&(a=RegExp("</"+W[2],"g")),m=oo):W[3]!==void 0&&(m=oo):m===oo?W[0]===">"?(m=a!=null?a:da,K=-1):W[1]===void 0?K=-2:(K=m.lastIndex-W[2].length,L=W[1],m=W[3]===void 0?oo:W[3]==='"'?hm:cm):m===hm||m===cm?m=oo:m===lm||m===dm?m=da:(m=oo,a=void 0);let X=m===oo&&n[b+1].startsWith("/>")?" ":"";d+=m===da?C+my:K>=0?(i.push(L),C.slice(0,K)+Hd+C.slice(K)+Jr+X):C+Jr+(K===-2?b:X)}return[vm(n,d+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},ma=class n{constructor({strings:o,_$litType$:t},i){let a;this.parts=[];let d=0,m=0,b=o.length-1,C=this.parts,[L,W]=gm(o,t);if(this.el=n.createElement(L,i),so.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(a=so.nextNode())!==null&&C.length<b;){if(a.nodeType===1){if(a.hasAttributes())for(let K of a.getAttributeNames())if(K.endsWith(Hd)){let rt=W[m++],X=a.getAttribute(K).split(Jr),et=/([.?@])?(.*)/.exec(rt);C.push({type:1,index:d,name:et[2],strings:X,ctor:et[1]==="."?Fn:et[1]==="?"?Vn:et[1]==="@"?zn:lo}),a.removeAttribute(K)}else K.startsWith(Jr)&&(C.push({type:6,index:d}),a.removeAttribute(K));if(fm.test(a.tagName)){let K=a.textContent.split(Jr),rt=K.length-1;if(rt>0){a.textContent=Dn?Dn.emptyScript:"";for(let X=0;X<rt;X++)a.append(K[X],ha()),so.nextNode(),C.push({type:2,index:++d});a.append(K[rt],ha())}}}else if(a.nodeType===8)if(a.data===Gd)C.push({type:2,index:d});else{let K=-1;for(;(K=a.data.indexOf(Jr,K+1))!==-1;)C.push({type:7,index:d}),K+=Jr.length-1}d++}}static createElement(o,t){let i=ao.createElement("template");return i.innerHTML=o,i}};function no(n,o,t=n,i){var m,b,C;if(o===ge)return o;let a=i!==void 0?(m=t.o)==null?void 0:m[i]:t.l,d=pa(o)?void 0:o._$litDirective$;return(a==null?void 0:a.constructor)!==d&&((b=a==null?void 0:a._$AO)==null||b.call(a,!1),d===void 0?a=void 0:(a=new d(n),a._$AT(n,t,i)),i!==void 0?((C=t.o)!=null?C:t.o=[])[i]=a:t.l=a),a!==void 0&&(o=no(n,a._$AS(n,o.values),a,i)),o}var $n=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var L;let{el:{content:t},parts:i}=this._$AD,a=((L=o==null?void 0:o.creationScope)!=null?L:ao).importNode(t,!0);so.currentNode=a;let d=so.nextNode(),m=0,b=0,C=i[0];for(;C!==void 0;){if(m===C.index){let W;C.type===2?W=new Xo(d,d.nextSibling,this,o):C.type===1?W=new C.ctor(d,C.name,C.strings,this,o):C.type===6&&(W=new Bn(d,this,o)),this._$AV.push(W),C=i[++b]}m!==(C==null?void 0:C.index)&&(d=so.nextNode(),m++)}return so.currentNode=ao,a}p(o){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,t),t+=i.strings.length-2):i._$AI(o[t])),t++}},Xo=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,i,a){var d;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=i,this.options=a,this.v=(d=a==null?void 0:a.isConnected)!=null?d:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=no(this,o,t),pa(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==ge&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):um(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!==j&&pa(this._$AH)?this._$AA.nextSibling.data=o:this.T(ao.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:i}=o,a=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=ma.createElement(vm(i.h,i.h[0]),this.options)),i);if(((d=this._$AH)==null?void 0:d._$AD)===a)this._$AH.p(t);else{let m=new $n(a,this),b=m.u(this.options);m.p(t),this.T(b),this._$AH=m}}_$AC(o){let t=pm.get(o.strings);return t===void 0&&pm.set(o.strings,t=new ma(o)),t}k(o){Yd(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,a=0;for(let d of o)a===t.length?t.push(i=new n(this.O(ha()),this.O(ha()),this,this.options)):i=t[a],i._$AI(d),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},lo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,i,a,d){this.type=1,this._$AH=j,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=d,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=j}_$AI(o,t=this,i,a){let d=this.strings,m=!1;if(d===void 0)o=no(this,o,t,0),m=!pa(o)||o!==this._$AH&&o!==ge,m&&(this._$AH=o);else{let b=o,C,L;for(o=d[0],C=0;C<d.length-1;C++)L=no(this,b[i+C],t,C),L===ge&&(L=this._$AH[C]),m||(m=!pa(L)||L!==this._$AH[C]),L===j?o=j:o!==j&&(o+=(L!=null?L:"")+d[C+1]),this._$AH[C]=L}m&&!a&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Fn=class extends lo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},Vn=class extends lo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},zn=class extends lo{constructor(o,t,i,a,d){super(o,t,i,a,d),this.type=5}_$AI(o,t=this){var m;if((o=(m=no(this,o,t,0))!=null?m:j)===ge)return;let i=this._$AH,a=o===j&&i!==j||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,d=o!==j&&(i===j||a);a&&this.element.removeEventListener(this.name,this,i),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,o):this._$AH.handleEvent(o)}},Bn=class{constructor(o,t,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){no(this,o)}},bm={M:Hd,P:Jr,A:Gd,C:1,L:gm,R:$n,D:um,V:no,I:Xo,H:lo,N:Vn,U:zn,B:Fn,F:Bn},Ud=ca.litHtmlPolyfillSupport,mm;Ud==null||Ud(ma,Xo),((mm=ca.litHtmlVersions)!=null?mm:ca.litHtmlVersions=[]).push("3.2.0");var ym=(n,o,t)=>{var d,m;let i=(d=t==null?void 0:t.renderBefore)!=null?d:o,a=i._$litPart$;if(a===void 0){let b=(m=t==null?void 0:t.renderBefore)!=null?m:null;i._$litPart$=a=new Xo(o.insertBefore(ha(),b),b,void 0,t!=null?t:{})}return a._$AI(n),a};var wi=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,i;let o=super.createRenderRoot();return(i=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=ym(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return ge}},Em;wi._$litElement$=!0,wi.finalized=!0,(Em=globalThis.litElementHydrateSupport)==null||Em.call(globalThis,{LitElement:wi});var jd=globalThis.litElementPolyfillSupport;jd==null||jd({LitElement:wi});var Tm;((Tm=globalThis.litElementVersions)!=null?Tm:globalThis.litElementVersions=[]).push("4.1.0");var uy={attribute:!0,type:String,converter:la,reflect:!1,hasChanged:Pn},fy=(n=uy,o,t)=>{let{kind:i,metadata:a}=t,d=globalThis.litPropertyMetadata.get(a);if(d===void 0&&globalThis.litPropertyMetadata.set(a,d=new Map),d.set(t.name,n),i==="accessor"){let{name:m}=t;return{set(b){let C=o.get.call(this);o.set.call(this,b),this.requestUpdate(m,C,n)},init(b){return b!==void 0&&this.P(m,void 0,n),b}}}if(i==="setter"){let{name:m}=t;return function(b){let C=this[m];o.call(this,b),this.requestUpdate(m,C,n)}}throw Error("Unsupported decorator location: "+i)};function u(n){return(o,t)=>typeof t=="object"?fy(n,o,t):((i,a,d)=>{let m=a.hasOwnProperty(d);return a.constructor.createProperty(d,m?{...i,wrapped:!0}:i),m?Object.getOwnPropertyDescriptor(a,d):void 0})(n,o,t)}function vt(n){return u({...n,state:!0,attribute:!1})}var Lr=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function ir(n,o){return(t,i,a)=>{let d=m=>{var b,C;return(C=(b=m.renderRoot)==null?void 0:b.querySelector(n))!=null?C:null};if(o){let{get:m,set:b}=typeof i=="object"?t:a!=null?a:(()=>{let C=Symbol();return{get(){return this[C]},set(L){this[C]=L}}})();return Lr(t,i,{get(){let C=m.call(this);return C===void 0&&(C=d(this),(C!==null||this.hasUpdated)&&b.call(this,C)),C}})}return Lr(t,i,{get(){return d(this)}})}}var qd;function xm(n){return(o,t)=>Lr(o,t,{get(){var i;return((i=this.renderRoot)!=null?i:qd!=null?qd:qd=document.createDocumentFragment()).querySelectorAll(n)}})}function Pt(n){return(o,t)=>{let{slot:i,selector:a}=n!=null?n:{},d="slot"+(i?`[name=${i}]`:":not([name])");return Lr(o,t,{get(){var C,L;let m=(C=this.renderRoot)==null?void 0:C.querySelector(d),b=(L=m==null?void 0:m.assignedElements(n))!=null?L:[];return a===void 0?b:b.filter(W=>W.matches(a))}})}}function Un(n){return(o,t)=>{let{slot:i}=n!=null?n:{},a="slot"+(i?`[name=${i}]`:":not([name])");return Lr(o,t,{get(){var m,b;let d=(m=this.renderRoot)==null?void 0:m.querySelector(a);return(b=d==null?void 0:d.assignedNodes(n))!=null?b:[]}})}}var vy={PREFIX:"mdc",SEPARATOR:"-"},gy={NAMESPACE:vy},Kd=gy;var by=n=>[Kd.NAMESPACE.PREFIX,n].join(Kd.NAMESPACE.SEPARATOR),z={constructTagName:by};var tt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var Am=z.constructTagName("buttonsimple"),co={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Zo={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},ua={SIZE:co[32],TYPE:Zo.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var ti=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},fa={40:40,32:32,28:28,24:24},or={64:64,52:52,20:20,...fa},ho={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Qo={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Oe={VARIANT:$t.PRIMARY,SIZE:fa[32],COLOR:ho.DEFAULT,TYPE_INTERNAL:Qo.ICON,TYPE:Zo.BUTTON,INVERTED:!1};var Hn=n=>{class o extends n{constructor(){super(...arguments);this.variant=Oe.VARIANT;this.color=Oe.COLOR;this.typeInternal=Oe.TYPE_INTERNAL}setVariant(a){this.setAttribute("variant",Object.values($t).includes(a)?a:Oe.VARIANT)}setColor(a){!Object.values(ho).includes(a)||this.variant===$t.TERTIARY?this.setAttribute("color",`${Oe.COLOR}`):this.setAttribute("color",a)}setSize(a){let m=this.typeInternal===Qo.ICON?Object.values(or).includes(a)&&!(a===or[20]&&this.variant!==$t.TERTIARY):Object.values(fa).includes(a);this.setAttribute("size",m?`${a}`:`${Oe.SIZE}`)}inferButtonType(){var L,W,K,rt,X,et;let a=(W=(L=this.shadowRoot)==null?void 0:L.querySelector("slot:not([name])"))==null?void 0:W.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,d=(rt=(K=this.shadowRoot)==null?void 0:K.querySelector('slot[name="prefix"]'))==null?void 0:rt.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,m=this.prefixIcon||d&&d>0,b=(et=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:et.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,C=this.postfixIcon||b&&b>0;a&&(m||C)?(this.typeInternal=Qo.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(m||C)?(this.typeInternal=Qo.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Qo.PILL,this.setAttribute("data-btn-type","pill"))}}return p([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),p([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),p([u({type:String})],o.prototype,"variant",2),p([u({type:String})],o.prototype,"color",2),p([vt()],o.prototype,"typeInternal",2),o};var Sm=B`
|
|
5
5
|
:host {
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
}
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
:host::part(postfix-icon) {
|
|
417
417
|
flex-shrink: 0;
|
|
418
418
|
}
|
|
419
|
-
`,wm=[Ty];var po=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(i=>!t.includes(i)).join("-")};var ei=class extends Hn(ie){constructor(){super(...arguments);this.size=Oe.SIZE;this.inverted=Oe.INVERTED;this.role=
|
|
419
|
+
`,wm=[Ty];var po=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(i=>!t.includes(i)).join("-")};var ei=class extends Hn(ie){constructor(){super(...arguments);this.size=Oe.SIZE;this.inverted=Oe.INVERTED;this.role=tt.BUTTON}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${po(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${po(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return _`
|
|
420
420
|
<slot name="prefix" part="prefix">
|
|
421
421
|
${this.prefixFilledIconName?_` <mdc-icon
|
|
422
422
|
name="${this.prefixFilledIconName}"
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
width: 100%;
|
|
448
448
|
fill: var(--mdc-icon-fill-color);
|
|
449
449
|
}
|
|
450
|
-
`,...St()],Rm=_y;var ga={},Mm=async n=>(ga[n]===void 0&&(ga[n]=new Map),{async set(o,t){ga[n].set(o.url,await t.text())},async get(o){return ga[n].get(o.url)},async delete(o){ga[n].delete(o.url)}}),Om=async n=>{let o=await caches.open(n);return{set:async(t,i)=>{await o.put(t,i)},get:async t=>{let i=await o.match(t);return i==null?void 0:i.text()},delete:async t=>{await o.delete(t)}}},Xn=async(n,o)=>o==="in-memory-cache"?Mm(n):Om(n);var Pm=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Dm=async({url:n,name:o,fileExtension:t,cacheStrategy:i,cacheName:a,renewSignal:d})=>{let m=d(),b=new Request(`${n}/${o}.${t}`,{signal:m});return!a||!i||!["in-memory-cache","web-cache-api"].includes(i)?Pm(b).then(C=>C.text()):Xn(a,i).then(C=>C.get(b).then(L=>L||Pm(b.clone()).then(W=>{var K;return W.status<400&&W.headers.has("content-type")?(K=C.set)==null?void 0:K.call(C,b,W.clone()).then(()=>W.text()):W.text()})).catch(L=>{throw new Error(`Error in caching the Icon ${o}, ${L}`)}))};var $m=z.constructTagName("icon"),Zd={NAME:void 0,SIZE:1};var Ge=class extends q{constructor(){super();this.name=Zd.NAME;this.ariaLabel=null;this.
|
|
450
|
+
`,...St()],Rm=_y;var ga={},Mm=async n=>(ga[n]===void 0&&(ga[n]=new Map),{async set(o,t){ga[n].set(o.url,await t.text())},async get(o){return ga[n].get(o.url)},async delete(o){ga[n].delete(o.url)}}),Om=async n=>{let o=await caches.open(n);return{set:async(t,i)=>{await o.put(t,i)},get:async t=>{let i=await o.match(t);return i==null?void 0:i.text()},delete:async t=>{await o.delete(t)}}},Xn=async(n,o)=>o==="in-memory-cache"?Mm(n):Om(n);var Pm=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Dm=async({url:n,name:o,fileExtension:t,cacheStrategy:i,cacheName:a,renewSignal:d})=>{let m=d(),b=new Request(`${n}/${o}.${t}`,{signal:m});return!a||!i||!["in-memory-cache","web-cache-api"].includes(i)?Pm(b).then(C=>C.text()):Xn(a,i).then(C=>C.get(b).then(L=>L||Pm(b.clone()).then(W=>{var K;return W.status<400&&W.headers.has("content-type")?(K=C.set)==null?void 0:K.call(C,b,W.clone()).then(()=>W.text()):W.text()})).catch(L=>{throw new Error(`Error in caching the Icon ${o}, ${L}`)}))};var $m=z.constructTagName("icon"),Zd={NAME:void 0,SIZE:1};var Ge=class extends q{constructor(){super();this.name=Zd.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=De.consume({host:this,context:va.Context});this.abortController=new AbortController}prepareIconElement(t){let i=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&i.setAttribute("data-name",this.name),i.setAttribute("part","icon"),i.setAttribute("aria-hidden","true"),i}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:i,url:a,cacheName:d,iconSet:m,cacheStrategy:b}=this.iconProviderContext.value;if(m==="custom-icons"&&a&&i&&this.name){let C=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return Dm({url:a,name:this.name,fileExtension:i,cacheName:d,cacheStrategy:b,renewSignal:C}).then(L=>{let W=this.prepareIconElement(L);this.handleIconLoadedSuccess(W)}).catch(L=>{this.handleIconLoadedFailure(L)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(C=>{this.handleIconLoadedSuccess(C.default())}).catch(C=>{this.handleIconLoadedFailure(C)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let i=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(i)}handleIconLoadedFailure(t){let i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let i=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",i)}}get computedIconSize(){var t,i;return(i=(t=this.size)!=null?t:this.sizeFromContext)!=null?i:Zd.SIZE}updated(t){var i,a,d,m;super.updated(t),t.has("name")&&this.getIconData().catch(b=>{b.name!=="AbortError"&&this.onerror&&this.onerror(b)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((i=this.iconProviderContext.value)==null?void 0:i.lengthUnit)&&(this.lengthUnitFromContext=(a=this.iconProviderContext.value)==null?void 0:a.lengthUnit,this.updateSize()),this.sizeFromContext!==((d=this.iconProviderContext.value)==null?void 0:d.size)&&(this.sizeFromContext=(m=this.iconProviderContext.value)==null?void 0:m.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.iconData} `}};Ge.styles=[...q.styles,...Rm],p([vt()],Ge.prototype,"iconData",2),p([vt()],Ge.prototype,"lengthUnitFromContext",2),p([vt()],Ge.prototype,"sizeFromContext",2),p([u({type:String,reflect:!0})],Ge.prototype,"name",2),p([u({type:Number})],Ge.prototype,"size",2),p([u({type:String,attribute:"length-unit"})],Ge.prototype,"lengthUnit",2),p([u({type:String,attribute:"aria-label"})],Ge.prototype,"ariaLabel",2),p([u({type:String,attribute:"aria-labelledby"})],Ge.prototype,"ariaLabelledby",2),p([vt()],Ge.prototype,"abortController",2);var Qd=Ge;Qd.register($m);var Iy=Qd;mo.register(ti);var Cy=mo;var Fm=B`
|
|
451
451
|
:host::part(text) {
|
|
452
452
|
font-size: unset;
|
|
453
453
|
font-weight: unset;
|
|
@@ -822,13 +822,13 @@
|
|
|
822
822
|
class="mdc-focus-ring"
|
|
823
823
|
@click="${this.handleHeaderClick}"
|
|
824
824
|
@keydown="${this.handleKeyDown}"
|
|
825
|
-
role="${
|
|
825
|
+
role="${tt.HEADING}"
|
|
826
826
|
aria-level="${this.dataAriaLevel}"
|
|
827
827
|
tabindex="${this.disabled?-1:0}"
|
|
828
828
|
>
|
|
829
829
|
<div
|
|
830
830
|
part="header-button-section"
|
|
831
|
-
role="${
|
|
831
|
+
role="${tt.BUTTON}"
|
|
832
832
|
aria-expanded="${this.expanded}"
|
|
833
833
|
aria-controls="${this.bodySectionId}"
|
|
834
834
|
>
|
|
@@ -842,7 +842,7 @@
|
|
|
842
842
|
id="${this.bodySectionId}"
|
|
843
843
|
aria-labelledby="${this.headSectionId}"
|
|
844
844
|
part="body-section"
|
|
845
|
-
role="${
|
|
845
|
+
role="${tt.REGION}"
|
|
846
846
|
>
|
|
847
847
|
<slot></slot>
|
|
848
848
|
</div>`:j}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Mi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Mi.SIZE),t.has("variant")&&!this.variant&&(this.variant=Mi.VARIANT)}render(){return _` ${this.renderHeader()} ${this.renderBody()} `}};Or.styles=[...q.styles,...Um],p([u({type:String,reflect:!0})],Or.prototype,"size",2),p([u({type:String,reflect:!0})],Or.prototype,"variant",2),p([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Or.prototype,"dataAriaLevel",2),p([u({type:Boolean,reflect:!0})],Or.prototype,"expanded",2),p([u({type:String,reflect:!0,attribute:"header-text"})],Or.prototype,"headerText",2),p([u({type:String,attribute:"prefix-icon"})],Or.prototype,"prefixIcon",2);var is=Or;var Dy=B`
|
|
@@ -863,7 +863,7 @@
|
|
|
863
863
|
<div part="header-section">
|
|
864
864
|
<div part="leading-header">
|
|
865
865
|
${this.renderIcon(this.prefixIcon)}
|
|
866
|
-
<div role="${
|
|
866
|
+
<div role="${tt.HEADING}" aria-level="${this.dataAriaLevel}">${this.renderHeadingText()}</div>
|
|
867
867
|
<slot name="leading-controls"></slot>
|
|
868
868
|
</div>
|
|
869
869
|
<div part="trailing-header">
|
|
@@ -1036,7 +1036,7 @@
|
|
|
1036
1036
|
:host svg {
|
|
1037
1037
|
display: block;
|
|
1038
1038
|
}
|
|
1039
|
-
`],Qm=qy;var Jm=z.constructTagName("animation"),nl={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var si=class extends q{constructor(){super(...arguments);this.name=nl.NAME;this.loop=nl.LOOP;this.autoplay=nl.AUTO_PLAY;this.ariaLabel=null;this.
|
|
1039
|
+
`],Qm=qy;var Jm=z.constructTagName("animation"),nl={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var si=class extends q{constructor(){super(...arguments);this.name=nl.NAME;this.loop=nl.LOOP;this.autoplay=nl.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=ol();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=tu.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}getAnimationData(){this.name&&dc[this.name]?import(`@momentum-design/animations/dist/lottie${dc[this.name].replace(/^\.\/lottie/,"")}`).then(i=>this.onLoadSuccessHandler(i.default)).catch(i=>this.onLoadFailHandler(i)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?tt.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return _`<div aria-hidden="true" ${sl(this.containerRef)}></div>`}};si.styles=[...q.styles,...Qm],p([u({type:String,reflect:!0})],si.prototype,"name",2),p([u({type:String,reflect:!0})],si.prototype,"loop",2),p([u({type:Boolean,reflect:!0})],si.prototype,"autoplay",2),p([u({type:String,attribute:"aria-label"})],si.prototype,"ariaLabel",2),p([u({type:String,attribute:"aria-labelledby"})],si.prototype,"ariaLabelledby",2);var cc=si;cc.register(Jm);var Ky=cc;var ls=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};ls.stack=new Set,ls.currentKeydownListener=null;var ll=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(a){this.isFocusTrapActivated=a}activateFocusTrap(){this.setIsFocusTrapActivated(!0),ls.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),ls.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:d,height:m}=a.getBoundingClientRect(),{offsetWidth:b,offsetHeight:C}=a;return b+C+m+d===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:d,opacity:m,visibility:b}=a.style;return d==="none"||m==="0"||b==="hidden"||b==="collapse"}hasComputedHidden(a){let d=getComputedStyle(a);return d.visibility==="hidden"||d.height==="0"||d.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isDisabled(a){return a.disabled}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)||this.isDisabled(a)?!1:this.isInteractiveElement(a)}findFocusable(a,d=new Set){a instanceof HTMLElement&&this.isFocusable(a)&&d.add(a);let m=[];return a.children.length?m=Array.from(a.children):a instanceof HTMLElement&&a.shadowRoot&&(m=Array.from(a.shadowRoot.children)),m.forEach(b=>{let C=b;this.isFocusable(C)&&d.add(C),C.shadowRoot?this.findFocusable(C.shadowRoot,d):C.tagName==="SLOT"?C.assignedElements({flatten:!0}).forEach(W=>{W instanceof HTMLElement&&this.findFocusable(W,d)}):this.findFocusable(C,d)}),[...d]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus({preventScroll:!0}))}calculateNextIndex(a,d){let{length:m}=this.focusableElements;if(a===-1)return d>0?0:m-1;let b=a+d;return this.shouldFocusTrapWrap?(b<0&&(b=m-1),b>=m&&(b=0)):(b<0&&(b=0),b>=m&&(b=m-1)),b}getDeepActiveElement(){var d;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((d=a.shadowRoot)!=null&&d.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(d=>this.isEqualFocusNode(a,d))}isEqualFocusNode(a,d){return a.nodeType>=0?d.isEqualNode(a)&&d===a:!1}trapFocus(a){if(this.setFocusableElements(),this.focusableElements.length===0)return;let d=this.getDeepActiveElement(),m=this.findElement(d);a.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let C=this.focusableElements[this.focusTrapIndex];C.tagName!=="IFRAME"&&C&&(a.preventDefault(),C.focus())}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&this.trapFocus(a)}}return p([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var dl=n=>{class o extends n{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var cl=z.constructTagName("link"),hl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},pl={LARGE:1,MIDSIZE:.875,SMALL:.75},eu={LINK_SIZE:hl.LARGE};var ru=z.constructTagName("card"),hc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Xy={HORIZONTAL:"horizontal",VERTICAL:"vertical"},oe={VARIANT:hc.BORDER,ORIENTATION:Xy.VERTICAL,TITLE_TYPE:st.HEADING_SMALL_BOLD,SUBTITLE_TYPE:st.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:cl,BUTTON:ti};var ds=n=>{class o extends n{updateFooterButtonColors(i){let a=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];a==null||a.forEach(d=>{i===hc.PROMOTIONAL?d.setAttribute("color",ho.PROMOTIONAL):d.setAttribute("color",ho.DEFAULT)})}handleFooterSlot(i,a){var m,b,C;let d=[];i===oe.LINK&&((m=this.footerLink)!=null&&m.length)?d=this.footerLink:i===oe.BUTTON&&a===$t.PRIMARY&&((b=this.footerButtonPrimary)!=null&&b.length)?d=this.footerButtonPrimary:i===oe.BUTTON&&a===$t.SECONDARY&&((C=this.footerButtonSecondary)!=null&&C.length)&&(d=this.footerButtonSecondary);for(let L=1;L<d.length;L+=1)d[L].remove();d.forEach(L=>{L.matches(i)||L.remove(),a&&L.setAttribute("variant",a)})}renderFooter(){return _` <slot name="footer">
|
|
1040
1040
|
<div part="footer">
|
|
1041
1041
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(oe.LINK)}></slot>
|
|
1042
1042
|
<slot
|
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
mdc-text::part(text) {
|
|
1202
1202
|
margin: 0;
|
|
1203
1203
|
}
|
|
1204
|
-
`,ou=[Zy];var Ht=class extends ml(dl(ll(ds(q)))){constructor(){super(...arguments);this.id="";this.visible=sr.VISIBLE;this.zIndex=sr.Z_INDEX;this.size=sr.SIZE;this.variant=sr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.
|
|
1204
|
+
`,ou=[Zy];var Ht=class extends ml(dl(ll(ds(q)))){constructor(){super(...arguments);this.id="";this.visible=sr.VISIBLE;this.zIndex=sr.Z_INDEX;this.size=sr.SIZE;this.variant=sr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=sr.HEADER_TAG_NAME;this.descriptionTagName=sr.DESCRIPTION_TAG_NAME;this.role=sr.ROLE;this.disableAriaHasPopup=sr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=sr.FOCUS_TRAP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(t.preventDefault(),t.stopPropagation(),this.closeDialog())}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,i;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(i=this.deactivateFocusTrap)==null||i.call(this),this.focusBackToTrigger(),Pi.onDestroyedDialog(this)}applyZIndex(){var t;this.style.setProperty("z-index",`${this.zIndex}`),(t=this.backdropElement)==null||t.style.setProperty("z-index",`${this.zIndex-1}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Pi.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerId")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.setupAriaHasPopup()),t.has("visible")){let i=t.get("visible");await this.isOpenUpdated(i,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=sr.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,i;this.disableAriaHasPopup||(i=this.triggerElement)==null||i.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerId&&this.setAttribute("aria-describedby",this.triggerId))}closeDialog(){Pi.onCloseDialog(this,!1)}async isOpenUpdated(t,i){var a,d,m,b,C;t!==i&&(i&&!t?(this.lastActiveElement=document.activeElement,this.removeBackdrop(),this.createBackdrop("dialog"),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((a=this.activateFocusTrap)==null||a.call(this)),(d=this.setInitialFocus)==null||d.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),Pi.onShowDialog(this)):!i&&t&&(this.removeBackdrop(),(b=this.triggerElement)==null||b.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(C=this.deactivateFocusTrap)==null||C.call(this),this.focusBackToTrigger(),Pi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?_` <div part="header-section">
|
|
1205
1205
|
<div part="header">
|
|
1206
1206
|
<slot name="header-prefix"></slot>
|
|
1207
1207
|
<mdc-text
|
|
@@ -1232,7 +1232,7 @@
|
|
|
1232
1232
|
@click="${this.closeDialog}"
|
|
1233
1233
|
></mdc-button>
|
|
1234
1234
|
${this.renderBody()} ${this.renderFooter()}
|
|
1235
|
-
`}};Ht.styles=[...q.styles,...ou],p([u({type:String,reflect:!0})],Ht.prototype,"id",2),p([u({type:String,reflect:!0})],Ht.prototype,"triggerId",2),p([u({type:Boolean,reflect:!0})],Ht.prototype,"visible",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],Ht.prototype,"zIndex",2),p([u({type:String,reflect:!0})],Ht.prototype,"size",2),p([u({type:String,reflect:!0})],Ht.prototype,"variant",2),p([u({type:String,attribute:"close-button-aria-label"})],Ht.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-label"})],Ht.prototype,"ariaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Ht.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],Ht.prototype,"
|
|
1235
|
+
`}};Ht.styles=[...q.styles,...ou],p([u({type:String,reflect:!0})],Ht.prototype,"id",2),p([u({type:String,reflect:!0})],Ht.prototype,"triggerId",2),p([u({type:Boolean,reflect:!0})],Ht.prototype,"visible",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],Ht.prototype,"zIndex",2),p([u({type:String,reflect:!0})],Ht.prototype,"size",2),p([u({type:String,reflect:!0})],Ht.prototype,"variant",2),p([u({type:String,attribute:"close-button-aria-label"})],Ht.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-label"})],Ht.prototype,"ariaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Ht.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],Ht.prototype,"ariaDescribedby",2),p([u({type:String,reflect:!0,attribute:"aria-description"})],Ht.prototype,"ariaDescription",2),p([u({type:String,reflect:!0,attribute:"header-text"})],Ht.prototype,"headerText",2),p([u({type:String,reflect:!0,attribute:"description-text"})],Ht.prototype,"descriptionText",2),p([u({type:String,reflect:!0,attribute:"header-tag-name"})],Ht.prototype,"headerTagName",2),p([u({type:String,reflect:!0,attribute:"description-tag-name"})],Ht.prototype,"descriptionTagName",2),p([u({type:String,reflect:!0})],Ht.prototype,"role",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Ht.prototype,"disableAriaHasPopup",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Ht.prototype,"focusTrap",2);var cs=Ht;var Qy=B`
|
|
1236
1236
|
:host {
|
|
1237
1237
|
--mdc-announcementdialog-illustration-background-color: var(--mds-color-theme-background-solid-secondary-normal);
|
|
1238
1238
|
|
|
@@ -1309,7 +1309,7 @@
|
|
|
1309
1309
|
height: var(--mdc-illustration-size);
|
|
1310
1310
|
width: var(--mdc-illustration-size);
|
|
1311
1311
|
}
|
|
1312
|
-
`],du=Jy;var cu=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),hu=async({url:n,name:o,fileExtension:t,cacheStrategy:i,cacheName:a,renewSignal:d})=>{let m=d(),b=new Request(`${n}/${o}.${t}`,{signal:m});return!a||!i||!["in-memory-cache","web-cache-api"].includes(i)?cu(b).then(C=>C.text()):Xn(a,i).then(C=>C.get(b).then(L=>L||cu(b.clone()).then(W=>{var K;return W.status<400&&W.headers.has("content-type")?(K=C.set)==null?void 0:K.call(C,b,W.clone()).then(()=>W.text()):W.text()})).catch(L=>{throw new Error(`Error in caching the Illustration ${o}, ${L}`)}))};var pu=z.constructTagName("illustration"),mu={NAME:void 0};var ai=class extends q{constructor(){super();this.name=mu.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=De.consume({host:this,context:Sa.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let i=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&i.setAttribute("data-name",this.name),i.setAttribute("part","illustration"),i.setAttribute("aria-hidden","true"),i}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:i,url:a,cacheName:d,illustrationSet:m,cacheStrategy:b}=this.illustrationProviderContext.value;if(m==="custom-illustrations"&&a&&i&&this.name){let C=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return hu({url:a,name:this.name,fileExtension:i,cacheName:d,cacheStrategy:b,renewSignal:C}).then(L=>{let W=this.prepareIllustrationElement(L);this.handleIllustrationLoadedSuccess(W)}).catch(L=>{this.handleIllustrationLoadedFailure(L)})}if(m==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(C=>{this.handleIllustrationLoadedSuccess(C.default())}).catch(C=>{this.handleIllustrationLoadedFailure(C)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let i=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(i)}handleIllustrationLoadedFailure(t){let i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(i=>{i.name!=="AbortError"&&this.onerror&&this.onerror(i)}),(t.has("ariaLabel")||t.has("
|
|
1312
|
+
`],du=Jy;var cu=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),hu=async({url:n,name:o,fileExtension:t,cacheStrategy:i,cacheName:a,renewSignal:d})=>{let m=d(),b=new Request(`${n}/${o}.${t}`,{signal:m});return!a||!i||!["in-memory-cache","web-cache-api"].includes(i)?cu(b).then(C=>C.text()):Xn(a,i).then(C=>C.get(b).then(L=>L||cu(b.clone()).then(W=>{var K;return W.status<400&&W.headers.has("content-type")?(K=C.set)==null?void 0:K.call(C,b,W.clone()).then(()=>W.text()):W.text()})).catch(L=>{throw new Error(`Error in caching the Illustration ${o}, ${L}`)}))};var pu=z.constructTagName("illustration"),mu={NAME:void 0};var ai=class extends q{constructor(){super();this.name=mu.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=De.consume({host:this,context:Sa.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let i=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&i.setAttribute("data-name",this.name),i.setAttribute("part","illustration"),i.setAttribute("aria-hidden","true"),i}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:i,url:a,cacheName:d,illustrationSet:m,cacheStrategy:b}=this.illustrationProviderContext.value;if(m==="custom-illustrations"&&a&&i&&this.name){let C=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return hu({url:a,name:this.name,fileExtension:i,cacheName:d,cacheStrategy:b,renewSignal:C}).then(L=>{let W=this.prepareIllustrationElement(L);this.handleIllustrationLoadedSuccess(W)}).catch(L=>{this.handleIllustrationLoadedFailure(L)})}if(m==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(C=>{this.handleIllustrationLoadedSuccess(C.default())}).catch(C=>{this.handleIllustrationLoadedFailure(C)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let i=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(i)}handleIllustrationLoadedFailure(t){let i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(i=>{i.name!=="AbortError"&&this.onerror&&this.onerror(i)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?tt.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.illustrationData} `}};ai.styles=[...q.styles,...du],p([vt()],ai.prototype,"illustrationData",2),p([u({type:String,reflect:!0})],ai.prototype,"name",2),p([u({type:String,attribute:"aria-label"})],ai.prototype,"ariaLabel",2),p([u({type:String,attribute:"aria-labelledby"})],ai.prototype,"ariaLabelledby",2),p([vt()],ai.prototype,"abortController",2);var uc=ai;uc.register(pu);var tE=uc;mc.register(au);var eE=mc;var rE=B`
|
|
1313
1313
|
:host {
|
|
1314
1314
|
--mdc-appheader-height: 4rem;
|
|
1315
1315
|
}
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
:host::part(presence) {
|
|
1659
1659
|
z-index: 2;
|
|
1660
1660
|
}
|
|
1661
|
-
`,...St()],_u=dE;var Ia=class extends bl(Kt(ie)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=
|
|
1661
|
+
`,...St()],_u=dE;var Ia=class extends bl(Kt(ie)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=tt.BUTTON,this.type=Oe.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(zt).includes(t)?`${t}`:ps.SIZE.toString())}render(){return _`
|
|
1662
1662
|
<div part="overlay" aria-hidden="true"></div>
|
|
1663
1663
|
<mdc-avatar
|
|
1664
1664
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
|
@@ -1760,7 +1760,7 @@
|
|
|
1760
1760
|
>
|
|
1761
1761
|
${this.getCounterText(this.maxCounter,this.counter)}
|
|
1762
1762
|
</mdc-text>
|
|
1763
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=
|
|
1763
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Ec).includes(this.variant)&&(this.variant=$i.VARIANT);let{iconName:t,type:i}=this;switch(i){case ar.ICON:return this.getBadgeIcon(t||"");case ar.COUNTER:return this.getBadgeCounterText();case ar.SUCCESS:return this.getBadgeIcon(yl.SUCCESS_ICON_NAME);case ar.WARNING:return this.getBadgeIcon(yl.WARNING_ICON_NAME);case ar.ERROR:return this.getBadgeIcon(yl.ERROR_ICON_NAME);case ar.DOT:default:return this.type=ar.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Dr.styles=[...q.styles,...ku],p([u({type:String,reflect:!0})],Dr.prototype,"type",2),p([u({type:String,reflect:!0})],Dr.prototype,"variant",2),p([u({type:Number})],Dr.prototype,"counter",2),p([u({type:Number,attribute:"max-counter",reflect:!0})],Dr.prototype,"maxCounter",2),p([u({type:Boolean})],Dr.prototype,"overlay",2),p([u({type:String,attribute:"aria-label"})],Dr.prototype,"ariaLabel",2);var Tc=Dr;Tc.register(Cu);var pE=Tc;var mE=B`
|
|
1764
1764
|
:host {
|
|
1765
1765
|
display: block;
|
|
1766
1766
|
height: 100%;
|
|
@@ -2269,7 +2269,7 @@
|
|
|
2269
2269
|
:host([disabled])::part(check-icon) {
|
|
2270
2270
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
2271
2271
|
}
|
|
2272
|
-
`,Gu=[wE,...St()];var vs=class extends Bt(Rr(Er)){constructor(){super();this.checked=!1;this.selectionType=Sl.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.toggleOnEnter.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=
|
|
2272
|
+
`,Gu=[wE,...St()];var vs=class extends Bt(Rr(Er)){constructor(){super();this.checked=!1;this.selectionType=Sl.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.toggleOnEnter.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}toggleOnEnter(t){t.key===Z.ENTER&&this.toggleChecked()}toggleOnSpace(t){t.key===Z.SPACE&&this.toggleChecked()}renderSelection(){let t=this.checked?Cc.CHECKED:Cc.DEFAULT;switch(this.selectionType){case Al.CHECK:return _`<mdc-icon
|
|
2273
2273
|
part="check check-icon"
|
|
2274
2274
|
size="${Sl.ICON_SIZE}"
|
|
2275
2275
|
length-unit="${Sl.ICON_LENGTH_UNIT}"
|
|
@@ -2425,7 +2425,7 @@
|
|
|
2425
2425
|
:host([disabled])::part(image) {
|
|
2426
2426
|
opacity: 0.5;
|
|
2427
2427
|
}
|
|
2428
|
-
`,Xu=[ME,...St()];var gs=class extends Bt(Rr(Er)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.toggleOnEnter.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=
|
|
2428
|
+
`,Xu=[ME,...St()];var gs=class extends Bt(Rr(Er)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.toggleOnEnter.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(i=>{i.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,i){t[i].focus(),t[i].toggleChecked()}toggleOnEnter(t){if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(m=>!m.disabled),d=a.indexOf(this);if(["ArrowDown","ArrowRight"].includes(t.key)){let m=(d+1)%a.length;this.updateCardRadio(a,m)}else if(["ArrowUp","ArrowLeft"].includes(t.key)){let m=(d-1+a.length)%a.length;this.updateCardRadio(a,m)}t.key===Z.ENTER&&this.toggleChecked()}toggleOnSpace(t){t.key===Z.SPACE&&this.toggleChecked()}renderHeader(){return this.cardTitle?_`<div part="header">
|
|
2429
2429
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2430
2430
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
|
2431
2431
|
</div>`:j}render(){return _`
|
|
@@ -2534,7 +2534,7 @@
|
|
|
2534
2534
|
}
|
|
2535
2535
|
}
|
|
2536
2536
|
`],Zu=OE;var go=class extends Bt(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return _` <slot></slot>
|
|
2537
|
-
<span part="radio-icon" class="radio-icon"></span>`}};go.styles=[...q.styles,...Zu],p([u({type:Boolean,reflect:!0})],go.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],go.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],go.prototype,"softDisabled",2);var Lc=go;var Qu=z.constructTagName("staticradio");Lc.register(Qu);var PE=Lc;Nc.register(Il);var DE=Nc;var Fr=Math.min,_e=Math.max,La=Math.round,Ra=Math.floor,Tr=n=>({x:n,y:n}),$E={left:"right",right:"left",bottom:"top",top:"bottom"},FE={start:"end",end:"start"};function kl(n,o,t){return _e(n,Fr(o,t))}function bo(n,o){return typeof n=="function"?n(o):n}function li(n){return n.split("-")[0]}function yo(n){return n.split("-")[1]}function Rc(n){return n==="x"?"y":"x"}function wl(n){return n==="y"?"height":"width"}var VE=new Set(["top","bottom"]);function Vr(n){return VE.has(li(n))?"y":"x"}function Nl(n){return Rc(Vr(n))}function ef(n,o,t){t===void 0&&(t=!1);let i=yo(n),a=Nl(n),d=wl(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Na(m)),[m,Na(m)]}function rf(n){let o=Na(n);return[Cl(n),o,Cl(o)]}function Cl(n){return n.replace(/start|end/g,o=>FE[o])}var Ju=["left","right"],tf=["right","left"],zE=["top","bottom"],BE=["bottom","top"];function UE(n,o,t){switch(n){case"top":case"bottom":return t?o?tf:Ju:o?Ju:tf;case"left":case"right":return o?zE:BE;default:return[]}}function of(n,o,t,i){let a=yo(n),d=UE(li(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(Cl)))),d}function Na(n){return n.replace(/left|right|bottom|top/g,o=>$E[o])}function HE(n){return{top:0,right:0,bottom:0,left:0,...n}}function Mc(n){return typeof n!="number"?HE(n):{top:n,right:n,bottom:n,left:n}}function Eo(n){let{x:o,y:t,width:i,height:a}=n;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function sf(n,o,t){let{reference:i,floating:a}=n,d=Vr(o),m=Nl(o),b=wl(m),C=li(o),L=d==="y",W=i.x+i.width/2-a.width/2,K=i.y+i.height/2-a.height/2,rt=i[b]/2-a[b]/2,X;switch(C){case"top":X={x:W,y:i.y-a.height};break;case"bottom":X={x:W,y:i.y+i.height};break;case"right":X={x:i.x+i.width,y:K};break;case"left":X={x:i.x-a.width,y:K};break;default:X={x:i.x,y:i.y}}switch(yo(o)){case"start":X[m]-=rt*(t&&L?-1:1);break;case"end":X[m]+=rt*(t&&L?-1:1);break}return X}var af=async(n,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:m}=t,b=d.filter(Boolean),C=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:a}),{x:W,y:K}=sf(L,i,C),rt=i,X={},tt=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:gt}=b[lt],{x:At,y:Nt,data:jt,reset:Vt}=await gt({x:W,y:K,initialPlacement:i,placement:rt,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,K=Nt!=null?Nt:K,X={...X,[dt]:{...X[dt],...jt}},Vt&&tt<=50&&(tt++,typeof Vt=="object"&&(Vt.placement&&(rt=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):Vt.rects),{x:W,y:K}=sf(L,rt,C)),lt=-1)}return{x:W,y:K,placement:rt,strategy:a,middlewareData:X}};async function Ll(n,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:d,rects:m,elements:b,strategy:C}=n,{boundary:L="clippingAncestors",rootBoundary:W="viewport",elementContext:K="floating",altBoundary:rt=!1,padding:X=0}=bo(o,n),tt=Mc(X),dt=b[rt?K==="floating"?"reference":"floating":K],gt=Eo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(b.floating)),boundary:L,rootBoundary:W,strategy:C})),At=K==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Nt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),jt=await(d.isElement==null?void 0:d.isElement(Nt))?await(d.getScale==null?void 0:d.getScale(Nt))||{x:1,y:1}:{x:1,y:1},Vt=Eo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:Nt,strategy:C}):At);return{top:(gt.top-Vt.top+tt.top)/jt.y,bottom:(Vt.bottom-gt.bottom+tt.bottom)/jt.y,left:(gt.left-Vt.left+tt.left)/jt.x,right:(Vt.right-gt.right+tt.right)/jt.x}}var nf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:i,placement:a,rects:d,platform:m,elements:b,middlewareData:C}=o,{element:L,padding:W=0}=bo(n,o)||{};if(L==null)return{};let K=Mc(W),rt={x:t,y:i},X=Nl(a),tt=wl(X),lt=await m.getDimensions(L),dt=X==="y",gt=dt?"top":"left",At=dt?"bottom":"right",Nt=dt?"clientHeight":"clientWidth",jt=d.reference[tt]+d.reference[X]-rt[X]-d.floating[tt],Vt=rt[X]-d.reference[X],Ut=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Ut?Ut[Nt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Ut)))&&(Zt=b.floating[Nt]||d.floating[tt]);let ne=jt/2-Vt/2,ur=Zt/2-lt[tt]/2-1,ke=Fr(K[gt],ur),Xe=Fr(K[At],ur),fr=ke,vr=Zt-lt[tt]-Xe,Ct=Zt/2-lt[tt]/2+ne,me=kl(fr,Ct,vr),Ze=!C.arrow&&yo(a)!=null&&Ct!==me&&d.reference[tt]/2-(Ct<fr?ke:Xe)-lt[tt]/2<0,Qe=Ze?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:rt[X]+Qe,data:{[X]:me,centerOffset:Ct-me-Qe,...Ze&&{alignmentOffset:Qe}},reset:Ze}}});var lf=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,i;let{placement:a,middlewareData:d,rects:m,initialPlacement:b,platform:C,elements:L}=o,{mainAxis:W=!0,crossAxis:K=!0,fallbackPlacements:rt,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:lt=!0,...dt}=bo(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=li(a),At=Vr(b),Nt=li(b)===b,jt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),Vt=rt||(Nt||!lt?[Na(b)]:rf(b)),Ut=tt!=="none";!rt&&Ut&&Vt.push(...of(b,lt,tt,jt));let Zt=[b,...Vt],ne=await Ll(o,dt),ur=[],ke=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(ne[gt]),K){let Ct=ef(a,m,jt);ur.push(ne[Ct[0]],ne[Ct[1]])}if(ke=[...ke,{placement:a,overflows:ur}],!ur.every(Ct=>Ct<=0)){var Xe,fr;let Ct=(((Xe=d.flip)==null?void 0:Xe.index)||0)+1,me=Zt[Ct];if(me&&(!(K==="alignment"?At!==Vr(me):!1)||ke.every(Je=>Je.overflows[0]>0&&Vr(Je.placement)===At)))return{data:{index:Ct,overflows:ke},reset:{placement:me}};let Ze=(fr=ke.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:fr.placement;if(!Ze)switch(X){case"bestFit":{var vr;let Qe=(vr=ke.filter(Je=>{if(Ut){let tr=Vr(Je.placement);return tr===At||tr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(tr=>tr>0).reduce((tr,pn)=>tr+pn,0)]).sort((Je,tr)=>Je[1]-tr[1])[0])==null?void 0:vr[0];Qe&&(Ze=Qe);break}case"initialPlacement":Ze=b;break}if(a!==Ze)return{reset:{placement:Ze}}}return{}}}};var GE=new Set(["left","top"]);async function YE(n,o){let{placement:t,platform:i,elements:a}=n,d=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=li(t),b=yo(t),C=Vr(t)==="y",L=GE.has(m)?-1:1,W=d&&C?-1:1,K=bo(o,n),{mainAxis:rt,crossAxis:X,alignmentAxis:tt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return b&&typeof tt=="number"&&(X=b==="end"?tt*-1:tt),C?{x:X*W,y:rt*L}:{x:rt*L,y:X*W}}var df=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,i;let{x:a,y:d,placement:m,middlewareData:b}=o,C=await YE(o,n);return m===((t=b.offset)==null?void 0:t.placement)&&(i=b.arrow)!=null&&i.alignmentOffset?{}:{x:a+C.x,y:d+C.y,data:{...C,placement:m}}}}},cf=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:b={fn:dt=>{let{x:gt,y:At}=dt;return{x:gt,y:At}}},...C}=bo(n,o),L={x:t,y:i},W=await Ll(o,C),K=Vr(li(a)),rt=Rc(K),X=L[rt],tt=L[K];if(d){let dt=rt==="y"?"top":"left",gt=rt==="y"?"bottom":"right",At=X+W[dt],Nt=X-W[gt];X=kl(At,X,Nt)}if(m){let dt=K==="y"?"top":"left",gt=K==="y"?"bottom":"right",At=tt+W[dt],Nt=tt-W[gt];tt=kl(At,tt,Nt)}let lt=b.fn({...o,[rt]:X,[K]:tt});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[rt]:d,[K]:m}}}}}};var hf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,i;let{placement:a,rects:d,platform:m,elements:b}=o,{apply:C=()=>{},...L}=bo(n,o),W=await Ll(o,L),K=li(a),rt=yo(a),X=Vr(a)==="y",{width:tt,height:lt}=d.floating,dt,gt;K==="top"||K==="bottom"?(dt=K,gt=rt===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(gt=K,dt=rt==="end"?"top":"bottom");let At=lt-W.top-W.bottom,Nt=tt-W.left-W.right,jt=Fr(lt-W[dt],At),Vt=Fr(tt-W[gt],Nt),Ut=!o.middlewareData.shift,Zt=jt,ne=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=Nt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Ut&&!rt){let ke=_e(W.left,0),Xe=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?ne=tt-2*(ke!==0||Xe!==0?ke+Xe:_e(W.left,W.right)):Zt=lt-2*(fr!==0||vr!==0?fr+vr:_e(W.top,W.bottom))}await C({...o,availableWidth:ne,availableHeight:Zt});let ur=await m.getDimensions(b.floating);return tt!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Rl(){return typeof window<"u"}function To(n){return mf(n)?(n.nodeName||"").toLowerCase():"#document"}function Fe(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function xr(n){var o;return(o=(mf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function mf(n){return Rl()?n instanceof Node||n instanceof Fe(n).Node:!1}function nr(n){return Rl()?n instanceof Element||n instanceof Fe(n).Element:!1}function Ar(n){return Rl()?n instanceof HTMLElement||n instanceof Fe(n).HTMLElement:!1}function pf(n){return!Rl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fe(n).ShadowRoot}var WE=new Set(["inline","contents"]);function ys(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!WE.has(a)}var jE=new Set(["table","td","th"]);function uf(n){return jE.has(To(n))}var qE=[":popover-open",":modal"];function Ma(n){return qE.some(o=>{try{return n.matches(o)}catch{return!1}})}var KE=["transform","translate","scale","rotate","perspective"],XE=["transform","translate","scale","rotate","perspective","filter"],ZE=["paint","layout","strict","content"];function Ml(n){let o=Ol(),t=nr(n)?lr(n):n;return KE.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||XE.some(i=>(t.willChange||"").includes(i))||ZE.some(i=>(t.contain||"").includes(i))}function ff(n){let o=di(n);for(;Ar(o)&&!xo(o);){if(Ml(o))return o;if(Ma(o))return null;o=di(o)}return null}function Ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var QE=new Set(["html","body","#document"]);function xo(n){return QE.has(To(n))}function lr(n){return Fe(n).getComputedStyle(n)}function Oa(n){return nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function di(n){if(To(n)==="html")return n;let o=n.assignedSlot||n.parentNode||pf(n)&&n.host||xr(n);return pf(o)?o.host:o}function vf(n){let o=di(n);return xo(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&ys(o)?o:vf(o)}function bs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=vf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=Fe(a);if(d){let b=Pl(m);return o.concat(m,m.visualViewport||[],ys(a)?a:[],b&&t?bs(b):[])}return o.concat(a,bs(a,[],t))}function Pl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function yf(n){let o=lr(n),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=Ar(n),d=a?n.offsetWidth:t,m=a?n.offsetHeight:i,b=La(t)!==d||La(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Pc(n){return nr(n)?n:n.contextElement}function Es(n){let o=Pc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=yf(o),m=(d?La(t.width):t.width)/i,b=(d?La(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var JE=Tr(0);function Ef(n){let o=Fe(n);return!Ol()||!o.visualViewport?JE:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function tT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Fe(n)?!1:o}function Ao(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Pc(n),m=Tr(1);o&&(i?nr(i)&&(m=Es(i)):m=Es(n));let b=tT(d,t,i)?Ef(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,K=a.height/m.y;if(d){let rt=Fe(d),X=i&&nr(i)?Fe(i):i,tt=rt,lt=Pl(tt);for(;lt&&i&&X!==tt;){let dt=Es(lt),gt=lt.getBoundingClientRect(),At=lr(lt),Nt=gt.left+(lt.clientLeft+parseFloat(At.paddingLeft))*dt.x,jt=gt.top+(lt.clientTop+parseFloat(At.paddingTop))*dt.y;C*=dt.x,L*=dt.y,W*=dt.x,K*=dt.y,C+=Nt,L+=jt,tt=Fe(lt),lt=Pl(tt)}}return Eo({width:W,height:K,x:C,y:L})}function Dc(n,o){let t=Oa(n).scrollLeft;return o?o.left+t:Ao(xr(n)).left+t}function Tf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:Dc(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function eT(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Ma(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),K=Ar(i);if((K||!K&&!d)&&((To(i)!=="body"||ys(m))&&(C=Oa(i)),Ar(i))){let X=Ao(i);L=Es(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let rt=m&&!K&&!d?Tf(m,C,!0):Tr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-C.scrollLeft*L.x+W.x+rt.x,y:t.y*L.y-C.scrollTop*L.y+W.y+rt.y}}function rT(n){return Array.from(n.getClientRects())}function iT(n){let o=xr(n),t=Oa(n),i=n.ownerDocument.body,a=_e(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=_e(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+Dc(n),b=-t.scrollTop;return lr(i).direction==="rtl"&&(m+=_e(o.clientWidth,i.clientWidth)-a),{width:a,height:d,x:m,y:b}}function oT(n,o){let t=Fe(n),i=xr(n),a=t.visualViewport,d=i.clientWidth,m=i.clientHeight,b=0,C=0;if(a){d=a.width,m=a.height;let L=Ol();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var sT=new Set(["absolute","fixed"]);function aT(n,o){let t=Ao(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?Es(n):Tr(1),m=n.clientWidth*d.x,b=n.clientHeight*d.y,C=a*d.x,L=i*d.y;return{width:m,height:b,x:C,y:L}}function gf(n,o,t){let i;if(o==="viewport")i=oT(n,t);else if(o==="document")i=iT(xr(n));else if(nr(o))i=aT(o,t);else{let a=Ef(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Eo(i)}function xf(n,o){let t=di(n);return t===o||!nr(t)||xo(t)?!1:lr(t).position==="fixed"||xf(t,o)}function nT(n,o){let t=o.get(n);if(t)return t;let i=bs(n,[],!1).filter(b=>nr(b)&&To(b)!=="body"),a=null,d=lr(n).position==="fixed",m=d?di(n):n;for(;nr(m)&&!xo(m);){let b=lr(m),C=Ml(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&sT.has(a.position)||ys(m)&&!C&&xf(n,m))?i=i.filter(W=>W!==m):a=b,m=di(m)}return o.set(n,i),i}function lT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Ma(o)?[]:nT(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let K=gf(o,W,a);return L.top=_e(K.top,L.top),L.right=Fr(K.right,L.right),L.bottom=Fr(K.bottom,L.bottom),L.left=_e(K.left,L.left),L},gf(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function dT(n){let{width:o,height:t}=yf(n);return{width:o,height:t}}function cT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=Ao(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=Dc(a)}if(i||!i&&!d)if((To(o)!=="body"||ys(a))&&(b=Oa(o)),i){let X=Ao(o,!0,d,o);C.x=X.x+o.clientLeft,C.y=X.y+o.clientTop}else a&&L();d&&!i&&a&&L();let W=a&&!i&&!d?Tf(a,b):Tr(0),K=m.left+b.scrollLeft-C.x-W.x,rt=m.top+b.scrollTop-C.y-W.y;return{x:K,y:rt,width:m.width,height:m.height}}function Oc(n){return lr(n).position==="static"}function bf(n,o){if(!Ar(n)||lr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return xr(n)===t&&(t=t.ownerDocument.body),t}function Af(n,o){let t=Fe(n);if(Ma(n))return t;if(!Ar(n)){let a=di(n);for(;a&&!xo(a);){if(nr(a)&&!Oc(a))return a;a=di(a)}return t}let i=bf(n,o);for(;i&&uf(i)&&Oc(i);)i=bf(i,o);return i&&xo(i)&&Oc(i)&&!Ml(i)?t:i||ff(n)||t}var hT=async function(n){let o=this.getOffsetParent||Af,t=this.getDimensions,i=await t(n.floating);return{reference:cT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function pT(n){return lr(n).direction==="rtl"}var mT={convertOffsetParentRelativeRectToViewportRelativeRect:eT,getDocumentElement:xr,getClippingRect:lT,getOffsetParent:Af,getElementRects:hT,getClientRects:rT,getDimensions:dT,getScale:Es,isElement:nr,isRTL:pT};function Sf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function uT(n,o){let t=null,i,a=xr(n);function d(){var b;clearTimeout(i),(b=t)==null||b.disconnect(),t=null}function m(b,C){b===void 0&&(b=!1),C===void 0&&(C=1),d();let L=n.getBoundingClientRect(),{left:W,top:K,width:rt,height:X}=L;if(b||o(),!rt||!X)return;let tt=Ra(K),lt=Ra(a.clientWidth-(W+rt)),dt=Ra(a.clientHeight-(K+X)),gt=Ra(W),Nt={rootMargin:-tt+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:_e(0,Fr(1,C))||1},jt=!0;function Vt(Ut){let Zt=Ut[0].intersectionRatio;if(Zt!==C){if(!jt)return m();Zt?m(!1,Zt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}Zt===1&&!Sf(L,n.getBoundingClientRect())&&m(),jt=!1}try{t=new IntersectionObserver(Vt,{...Nt,root:a.ownerDocument})}catch{t=new IntersectionObserver(Vt,Nt)}t.observe(n)}return m(!0),d}function _f(n,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:C=!1}=i,L=Pc(n),W=a||d?[...L?bs(L):[],...bs(o)]:[];W.forEach(gt=>{a&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let K=L&&b?uT(L,t):null,rt=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[At]=gt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(rt),rt=requestAnimationFrame(()=>{var Nt;(Nt=X)==null||Nt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let tt,lt=C?Ao(n):null;C&&dt();function dt(){let gt=Ao(n);lt&&!Sf(lt,gt)&&t(),lt=gt,tt=requestAnimationFrame(dt)}return t(),()=>{var gt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),K==null||K(),(gt=X)==null||gt.disconnect(),X=null,C&&cancelAnimationFrame(tt)}}var If=df;var Cf=cf,kf=lf,wf=hf;var Nf=nf;var Lf=(n,o,t)=>{let i=new Map,a={platform:mT,...t},d={...a.platform,_c:i};return af(n,o,{...a,platform:d})};var Rf=z.constructTagName("popover"),kt={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"},ci={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},So={TONAL:"tonal",CONTRAST:"contrast"},fT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:kt.BOTTOM,TRIGGER:ci.CLICK,COLOR:So.TONAL,STRATEGY:fT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,IS_BACKDROP_INVISIBLE:!0};var hi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var $c=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(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ie=new $c;var vT=B`
|
|
2537
|
+
<span part="radio-icon" class="radio-icon"></span>`}};go.styles=[...q.styles,...Zu],p([u({type:Boolean,reflect:!0})],go.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],go.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],go.prototype,"softDisabled",2);var Lc=go;var Qu=z.constructTagName("staticradio");Lc.register(Qu);var PE=Lc;Nc.register(Il);var DE=Nc;var Fr=Math.min,_e=Math.max,La=Math.round,Ra=Math.floor,Tr=n=>({x:n,y:n}),$E={left:"right",right:"left",bottom:"top",top:"bottom"},FE={start:"end",end:"start"};function kl(n,o,t){return _e(n,Fr(o,t))}function bo(n,o){return typeof n=="function"?n(o):n}function li(n){return n.split("-")[0]}function yo(n){return n.split("-")[1]}function Rc(n){return n==="x"?"y":"x"}function wl(n){return n==="y"?"height":"width"}var VE=new Set(["top","bottom"]);function Vr(n){return VE.has(li(n))?"y":"x"}function Nl(n){return Rc(Vr(n))}function ef(n,o,t){t===void 0&&(t=!1);let i=yo(n),a=Nl(n),d=wl(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Na(m)),[m,Na(m)]}function rf(n){let o=Na(n);return[Cl(n),o,Cl(o)]}function Cl(n){return n.replace(/start|end/g,o=>FE[o])}var Ju=["left","right"],tf=["right","left"],zE=["top","bottom"],BE=["bottom","top"];function UE(n,o,t){switch(n){case"top":case"bottom":return t?o?tf:Ju:o?Ju:tf;case"left":case"right":return o?zE:BE;default:return[]}}function of(n,o,t,i){let a=yo(n),d=UE(li(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(Cl)))),d}function Na(n){return n.replace(/left|right|bottom|top/g,o=>$E[o])}function HE(n){return{top:0,right:0,bottom:0,left:0,...n}}function Mc(n){return typeof n!="number"?HE(n):{top:n,right:n,bottom:n,left:n}}function Eo(n){let{x:o,y:t,width:i,height:a}=n;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function sf(n,o,t){let{reference:i,floating:a}=n,d=Vr(o),m=Nl(o),b=wl(m),C=li(o),L=d==="y",W=i.x+i.width/2-a.width/2,K=i.y+i.height/2-a.height/2,rt=i[b]/2-a[b]/2,X;switch(C){case"top":X={x:W,y:i.y-a.height};break;case"bottom":X={x:W,y:i.y+i.height};break;case"right":X={x:i.x+i.width,y:K};break;case"left":X={x:i.x-a.width,y:K};break;default:X={x:i.x,y:i.y}}switch(yo(o)){case"start":X[m]-=rt*(t&&L?-1:1);break;case"end":X[m]+=rt*(t&&L?-1:1);break}return X}var af=async(n,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:m}=t,b=d.filter(Boolean),C=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:a}),{x:W,y:K}=sf(L,i,C),rt=i,X={},et=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:gt}=b[lt],{x:At,y:Nt,data:jt,reset:Vt}=await gt({x:W,y:K,initialPlacement:i,placement:rt,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,K=Nt!=null?Nt:K,X={...X,[dt]:{...X[dt],...jt}},Vt&&et<=50&&(et++,typeof Vt=="object"&&(Vt.placement&&(rt=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):Vt.rects),{x:W,y:K}=sf(L,rt,C)),lt=-1)}return{x:W,y:K,placement:rt,strategy:a,middlewareData:X}};async function Ll(n,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:d,rects:m,elements:b,strategy:C}=n,{boundary:L="clippingAncestors",rootBoundary:W="viewport",elementContext:K="floating",altBoundary:rt=!1,padding:X=0}=bo(o,n),et=Mc(X),dt=b[rt?K==="floating"?"reference":"floating":K],gt=Eo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(b.floating)),boundary:L,rootBoundary:W,strategy:C})),At=K==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Nt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),jt=await(d.isElement==null?void 0:d.isElement(Nt))?await(d.getScale==null?void 0:d.getScale(Nt))||{x:1,y:1}:{x:1,y:1},Vt=Eo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:Nt,strategy:C}):At);return{top:(gt.top-Vt.top+et.top)/jt.y,bottom:(Vt.bottom-gt.bottom+et.bottom)/jt.y,left:(gt.left-Vt.left+et.left)/jt.x,right:(Vt.right-gt.right+et.right)/jt.x}}var nf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:i,placement:a,rects:d,platform:m,elements:b,middlewareData:C}=o,{element:L,padding:W=0}=bo(n,o)||{};if(L==null)return{};let K=Mc(W),rt={x:t,y:i},X=Nl(a),et=wl(X),lt=await m.getDimensions(L),dt=X==="y",gt=dt?"top":"left",At=dt?"bottom":"right",Nt=dt?"clientHeight":"clientWidth",jt=d.reference[et]+d.reference[X]-rt[X]-d.floating[et],Vt=rt[X]-d.reference[X],Ut=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Ut?Ut[Nt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Ut)))&&(Zt=b.floating[Nt]||d.floating[et]);let ne=jt/2-Vt/2,ur=Zt/2-lt[et]/2-1,ke=Fr(K[gt],ur),Xe=Fr(K[At],ur),fr=ke,vr=Zt-lt[et]-Xe,Ct=Zt/2-lt[et]/2+ne,me=kl(fr,Ct,vr),Ze=!C.arrow&&yo(a)!=null&&Ct!==me&&d.reference[et]/2-(Ct<fr?ke:Xe)-lt[et]/2<0,Qe=Ze?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:rt[X]+Qe,data:{[X]:me,centerOffset:Ct-me-Qe,...Ze&&{alignmentOffset:Qe}},reset:Ze}}});var lf=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,i;let{placement:a,middlewareData:d,rects:m,initialPlacement:b,platform:C,elements:L}=o,{mainAxis:W=!0,crossAxis:K=!0,fallbackPlacements:rt,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:lt=!0,...dt}=bo(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=li(a),At=Vr(b),Nt=li(b)===b,jt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),Vt=rt||(Nt||!lt?[Na(b)]:rf(b)),Ut=et!=="none";!rt&&Ut&&Vt.push(...of(b,lt,et,jt));let Zt=[b,...Vt],ne=await Ll(o,dt),ur=[],ke=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(ne[gt]),K){let Ct=ef(a,m,jt);ur.push(ne[Ct[0]],ne[Ct[1]])}if(ke=[...ke,{placement:a,overflows:ur}],!ur.every(Ct=>Ct<=0)){var Xe,fr;let Ct=(((Xe=d.flip)==null?void 0:Xe.index)||0)+1,me=Zt[Ct];if(me&&(!(K==="alignment"?At!==Vr(me):!1)||ke.every(Je=>Je.overflows[0]>0&&Vr(Je.placement)===At)))return{data:{index:Ct,overflows:ke},reset:{placement:me}};let Ze=(fr=ke.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:fr.placement;if(!Ze)switch(X){case"bestFit":{var vr;let Qe=(vr=ke.filter(Je=>{if(Ut){let tr=Vr(Je.placement);return tr===At||tr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(tr=>tr>0).reduce((tr,pn)=>tr+pn,0)]).sort((Je,tr)=>Je[1]-tr[1])[0])==null?void 0:vr[0];Qe&&(Ze=Qe);break}case"initialPlacement":Ze=b;break}if(a!==Ze)return{reset:{placement:Ze}}}return{}}}};var GE=new Set(["left","top"]);async function YE(n,o){let{placement:t,platform:i,elements:a}=n,d=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=li(t),b=yo(t),C=Vr(t)==="y",L=GE.has(m)?-1:1,W=d&&C?-1:1,K=bo(o,n),{mainAxis:rt,crossAxis:X,alignmentAxis:et}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return b&&typeof et=="number"&&(X=b==="end"?et*-1:et),C?{x:X*W,y:rt*L}:{x:rt*L,y:X*W}}var df=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,i;let{x:a,y:d,placement:m,middlewareData:b}=o,C=await YE(o,n);return m===((t=b.offset)==null?void 0:t.placement)&&(i=b.arrow)!=null&&i.alignmentOffset?{}:{x:a+C.x,y:d+C.y,data:{...C,placement:m}}}}},cf=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:b={fn:dt=>{let{x:gt,y:At}=dt;return{x:gt,y:At}}},...C}=bo(n,o),L={x:t,y:i},W=await Ll(o,C),K=Vr(li(a)),rt=Rc(K),X=L[rt],et=L[K];if(d){let dt=rt==="y"?"top":"left",gt=rt==="y"?"bottom":"right",At=X+W[dt],Nt=X-W[gt];X=kl(At,X,Nt)}if(m){let dt=K==="y"?"top":"left",gt=K==="y"?"bottom":"right",At=et+W[dt],Nt=et-W[gt];et=kl(At,et,Nt)}let lt=b.fn({...o,[rt]:X,[K]:et});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[rt]:d,[K]:m}}}}}};var hf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,i;let{placement:a,rects:d,platform:m,elements:b}=o,{apply:C=()=>{},...L}=bo(n,o),W=await Ll(o,L),K=li(a),rt=yo(a),X=Vr(a)==="y",{width:et,height:lt}=d.floating,dt,gt;K==="top"||K==="bottom"?(dt=K,gt=rt===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(gt=K,dt=rt==="end"?"top":"bottom");let At=lt-W.top-W.bottom,Nt=et-W.left-W.right,jt=Fr(lt-W[dt],At),Vt=Fr(et-W[gt],Nt),Ut=!o.middlewareData.shift,Zt=jt,ne=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=Nt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Ut&&!rt){let ke=_e(W.left,0),Xe=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?ne=et-2*(ke!==0||Xe!==0?ke+Xe:_e(W.left,W.right)):Zt=lt-2*(fr!==0||vr!==0?fr+vr:_e(W.top,W.bottom))}await C({...o,availableWidth:ne,availableHeight:Zt});let ur=await m.getDimensions(b.floating);return et!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Rl(){return typeof window<"u"}function To(n){return mf(n)?(n.nodeName||"").toLowerCase():"#document"}function Fe(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function xr(n){var o;return(o=(mf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function mf(n){return Rl()?n instanceof Node||n instanceof Fe(n).Node:!1}function nr(n){return Rl()?n instanceof Element||n instanceof Fe(n).Element:!1}function Ar(n){return Rl()?n instanceof HTMLElement||n instanceof Fe(n).HTMLElement:!1}function pf(n){return!Rl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fe(n).ShadowRoot}var WE=new Set(["inline","contents"]);function ys(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!WE.has(a)}var jE=new Set(["table","td","th"]);function uf(n){return jE.has(To(n))}var qE=[":popover-open",":modal"];function Ma(n){return qE.some(o=>{try{return n.matches(o)}catch{return!1}})}var KE=["transform","translate","scale","rotate","perspective"],XE=["transform","translate","scale","rotate","perspective","filter"],ZE=["paint","layout","strict","content"];function Ml(n){let o=Ol(),t=nr(n)?lr(n):n;return KE.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||XE.some(i=>(t.willChange||"").includes(i))||ZE.some(i=>(t.contain||"").includes(i))}function ff(n){let o=di(n);for(;Ar(o)&&!xo(o);){if(Ml(o))return o;if(Ma(o))return null;o=di(o)}return null}function Ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var QE=new Set(["html","body","#document"]);function xo(n){return QE.has(To(n))}function lr(n){return Fe(n).getComputedStyle(n)}function Oa(n){return nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function di(n){if(To(n)==="html")return n;let o=n.assignedSlot||n.parentNode||pf(n)&&n.host||xr(n);return pf(o)?o.host:o}function vf(n){let o=di(n);return xo(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&ys(o)?o:vf(o)}function bs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=vf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=Fe(a);if(d){let b=Pl(m);return o.concat(m,m.visualViewport||[],ys(a)?a:[],b&&t?bs(b):[])}return o.concat(a,bs(a,[],t))}function Pl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function yf(n){let o=lr(n),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=Ar(n),d=a?n.offsetWidth:t,m=a?n.offsetHeight:i,b=La(t)!==d||La(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Pc(n){return nr(n)?n:n.contextElement}function Es(n){let o=Pc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=yf(o),m=(d?La(t.width):t.width)/i,b=(d?La(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var JE=Tr(0);function Ef(n){let o=Fe(n);return!Ol()||!o.visualViewport?JE:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function tT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Fe(n)?!1:o}function Ao(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Pc(n),m=Tr(1);o&&(i?nr(i)&&(m=Es(i)):m=Es(n));let b=tT(d,t,i)?Ef(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,K=a.height/m.y;if(d){let rt=Fe(d),X=i&&nr(i)?Fe(i):i,et=rt,lt=Pl(et);for(;lt&&i&&X!==et;){let dt=Es(lt),gt=lt.getBoundingClientRect(),At=lr(lt),Nt=gt.left+(lt.clientLeft+parseFloat(At.paddingLeft))*dt.x,jt=gt.top+(lt.clientTop+parseFloat(At.paddingTop))*dt.y;C*=dt.x,L*=dt.y,W*=dt.x,K*=dt.y,C+=Nt,L+=jt,et=Fe(lt),lt=Pl(et)}}return Eo({width:W,height:K,x:C,y:L})}function Dc(n,o){let t=Oa(n).scrollLeft;return o?o.left+t:Ao(xr(n)).left+t}function Tf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:Dc(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function eT(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Ma(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),K=Ar(i);if((K||!K&&!d)&&((To(i)!=="body"||ys(m))&&(C=Oa(i)),Ar(i))){let X=Ao(i);L=Es(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let rt=m&&!K&&!d?Tf(m,C,!0):Tr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-C.scrollLeft*L.x+W.x+rt.x,y:t.y*L.y-C.scrollTop*L.y+W.y+rt.y}}function rT(n){return Array.from(n.getClientRects())}function iT(n){let o=xr(n),t=Oa(n),i=n.ownerDocument.body,a=_e(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=_e(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+Dc(n),b=-t.scrollTop;return lr(i).direction==="rtl"&&(m+=_e(o.clientWidth,i.clientWidth)-a),{width:a,height:d,x:m,y:b}}function oT(n,o){let t=Fe(n),i=xr(n),a=t.visualViewport,d=i.clientWidth,m=i.clientHeight,b=0,C=0;if(a){d=a.width,m=a.height;let L=Ol();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var sT=new Set(["absolute","fixed"]);function aT(n,o){let t=Ao(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?Es(n):Tr(1),m=n.clientWidth*d.x,b=n.clientHeight*d.y,C=a*d.x,L=i*d.y;return{width:m,height:b,x:C,y:L}}function gf(n,o,t){let i;if(o==="viewport")i=oT(n,t);else if(o==="document")i=iT(xr(n));else if(nr(o))i=aT(o,t);else{let a=Ef(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Eo(i)}function xf(n,o){let t=di(n);return t===o||!nr(t)||xo(t)?!1:lr(t).position==="fixed"||xf(t,o)}function nT(n,o){let t=o.get(n);if(t)return t;let i=bs(n,[],!1).filter(b=>nr(b)&&To(b)!=="body"),a=null,d=lr(n).position==="fixed",m=d?di(n):n;for(;nr(m)&&!xo(m);){let b=lr(m),C=Ml(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&sT.has(a.position)||ys(m)&&!C&&xf(n,m))?i=i.filter(W=>W!==m):a=b,m=di(m)}return o.set(n,i),i}function lT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Ma(o)?[]:nT(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let K=gf(o,W,a);return L.top=_e(K.top,L.top),L.right=Fr(K.right,L.right),L.bottom=Fr(K.bottom,L.bottom),L.left=_e(K.left,L.left),L},gf(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function dT(n){let{width:o,height:t}=yf(n);return{width:o,height:t}}function cT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=Ao(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=Dc(a)}if(i||!i&&!d)if((To(o)!=="body"||ys(a))&&(b=Oa(o)),i){let X=Ao(o,!0,d,o);C.x=X.x+o.clientLeft,C.y=X.y+o.clientTop}else a&&L();d&&!i&&a&&L();let W=a&&!i&&!d?Tf(a,b):Tr(0),K=m.left+b.scrollLeft-C.x-W.x,rt=m.top+b.scrollTop-C.y-W.y;return{x:K,y:rt,width:m.width,height:m.height}}function Oc(n){return lr(n).position==="static"}function bf(n,o){if(!Ar(n)||lr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return xr(n)===t&&(t=t.ownerDocument.body),t}function Af(n,o){let t=Fe(n);if(Ma(n))return t;if(!Ar(n)){let a=di(n);for(;a&&!xo(a);){if(nr(a)&&!Oc(a))return a;a=di(a)}return t}let i=bf(n,o);for(;i&&uf(i)&&Oc(i);)i=bf(i,o);return i&&xo(i)&&Oc(i)&&!Ml(i)?t:i||ff(n)||t}var hT=async function(n){let o=this.getOffsetParent||Af,t=this.getDimensions,i=await t(n.floating);return{reference:cT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function pT(n){return lr(n).direction==="rtl"}var mT={convertOffsetParentRelativeRectToViewportRelativeRect:eT,getDocumentElement:xr,getClippingRect:lT,getOffsetParent:Af,getElementRects:hT,getClientRects:rT,getDimensions:dT,getScale:Es,isElement:nr,isRTL:pT};function Sf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function uT(n,o){let t=null,i,a=xr(n);function d(){var b;clearTimeout(i),(b=t)==null||b.disconnect(),t=null}function m(b,C){b===void 0&&(b=!1),C===void 0&&(C=1),d();let L=n.getBoundingClientRect(),{left:W,top:K,width:rt,height:X}=L;if(b||o(),!rt||!X)return;let et=Ra(K),lt=Ra(a.clientWidth-(W+rt)),dt=Ra(a.clientHeight-(K+X)),gt=Ra(W),Nt={rootMargin:-et+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:_e(0,Fr(1,C))||1},jt=!0;function Vt(Ut){let Zt=Ut[0].intersectionRatio;if(Zt!==C){if(!jt)return m();Zt?m(!1,Zt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}Zt===1&&!Sf(L,n.getBoundingClientRect())&&m(),jt=!1}try{t=new IntersectionObserver(Vt,{...Nt,root:a.ownerDocument})}catch{t=new IntersectionObserver(Vt,Nt)}t.observe(n)}return m(!0),d}function _f(n,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:C=!1}=i,L=Pc(n),W=a||d?[...L?bs(L):[],...bs(o)]:[];W.forEach(gt=>{a&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let K=L&&b?uT(L,t):null,rt=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[At]=gt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(rt),rt=requestAnimationFrame(()=>{var Nt;(Nt=X)==null||Nt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let et,lt=C?Ao(n):null;C&&dt();function dt(){let gt=Ao(n);lt&&!Sf(lt,gt)&&t(),lt=gt,et=requestAnimationFrame(dt)}return t(),()=>{var gt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),K==null||K(),(gt=X)==null||gt.disconnect(),X=null,C&&cancelAnimationFrame(et)}}var If=df;var Cf=cf,kf=lf,wf=hf;var Nf=nf;var Lf=(n,o,t)=>{let i=new Map,a={platform:mT,...t},d={...a.platform,_c:i};return af(n,o,{...a,platform:d})};var Rf=z.constructTagName("popover"),kt={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"},ci={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},So={TONAL:"tonal",CONTRAST:"contrast"},fT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:kt.BOTTOM,TRIGGER:ci.CLICK,COLOR:So.TONAL,STRATEGY:fT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:tt.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,IS_BACKDROP_INVISIBLE:!0};var hi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var $c=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(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ie=new $c;var vT=B`
|
|
2538
2538
|
:host {
|
|
2539
2539
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2540
2540
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2656,7 +2656,7 @@
|
|
|
2656
2656
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2657
2657
|
border-bottom-left-radius: 100%;
|
|
2658
2658
|
}
|
|
2659
|
-
`,Mf=[vT];var $l=z.constructTagName("popoverportal"),Dl=class extends q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Fl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(i=>{let a=parseInt(i,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${i}`);return a});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let i=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=i,t.style.bottom=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${a}px`,t.style.width=i,t.style.right=`calc(-1.5 * (${i}))`;break;case"right":t.style.height=`${a}px`,t.style.width=i,t.style.left=`calc(-0.5 * (${i}))`;break;case"bottom":default:t.style.height=i,t.style.top=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&!Array.from(i.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement($l),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),i.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,i;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((i=this.popover.triggerElement)==null?void 0:i.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,i;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(i=this.popover.triggerElement)==null||i.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var W;if(!this.popover.arrowElement)return;let i=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[i],{x:d,y:m}=o,b=this.popover.arrowElement.getBoundingClientRect(),C=(W=this.popover.arrowElement.offsetParent)==null?void 0:W.getBoundingClientRect();if(!this.arrowPixelChange){let K=C!=null&&C[a]?12-Math.abs(b[a]-C[a]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",i),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var It=class extends ml(dl(ll(q))){constructor(){super();this.id="";this.triggerID="";this.trigger=_t.TRIGGER;this.placement=_t.PLACEMENT;this.color=_t.COLOR;this.visible=_t.VISIBLE;this.offset=_t.OFFSET;this.boundary=_t.BOUNDARY;this.boundaryRoot=_t.BOUNDARY_ROOT;this.focusTrap=_t.FOCUS_TRAP;this.preventScroll=_t.PREVENT_SCROLL;this.showArrow=_t.ARROW;this.closeButton=_t.CLOSE_BUTTON;this.interactive=_t.INTERACTIVE;this.delay=_t.DELAY;this.hideOnEscape=_t.HIDE_ON_ESCAPE;this.propagateEventOnEscape=_t.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=_t.HIDE_ON_BLUR;this.hideOnOutsideClick=_t.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=_t.FOCUS_BACK;this.backdrop=_t.BACKDROP;this.isBackdropInvisible=_t.IS_BACKDROP_INVISIBLE;this.flip=_t.FLIP;this.size=_t.SIZE;this.zIndex=_t.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=_t.STRATEGY;this.role=_t.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=_t.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipClosed=_t.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.parseTrigger=()=>{var d;let a=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(ci).includes(m)).length>0?this.trigger:_t.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ie.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),d=this.backdropElement?i.includes(this.backdropElement):!1;(!a||d)&&(this.hide(),hi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),hi.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{this.isEventFromTrigger(t)&&(this.isHovered||this.hide())};this.handleFocusIn=t=>{var i;this.isEventFromTrigger(t)&&((i=this.triggerElement)!=null&&i.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSuppressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let i=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),a=this.boundaryRoot,d=[Cf({boundary:i,rootBoundary:a,padding:this.boundaryPadding})],m=this.offset;if(this.flip&&d.push(kf({boundary:i,rootBoundary:a})),this.size){let b=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},C=this.renderRoot.querySelector('[part="popover-content"]');d.push(wf({boundary:i,rootBoundary:a,apply({availableHeight:L}){C&&(Object.assign(C.style,{maxHeight:`${L}px`,overflowY:"auto"}),b(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let b=this.arrowElement.offsetHeight,C=Math.sqrt(2*b**2)/2;m+=C,d.push(Nf({element:this.arrowElement,padding:12}))}d.push(If(m)),this.floatingUICleanupFunction=_f(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let C=this.adjustPlacementForRtl(this.placement),{x:L,y:W,middlewareData:K,placement:rt}=await Lf(b,this,{placement:C,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,W),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,rt),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(rt)})};this.utils=new Fl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(i=>i!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),hi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.style.zIndex=`${this.zIndex}`,this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,i;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(i=this.floatingUICleanupFunction)==null||i.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),hi.onDestroyedPopover(this),Ie.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let i=t.get("visible")||!1;await this.isOpenUpdated(i,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(kt).includes(this.placement)?this.placement:_t.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(So).includes(this.color)?this.color:_t.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,i){var d,m;let{triggerElement:a}=this;t===i||!a||(i&&!this.shouldSuppressOpening?(Ie.peek()!==this&&Ie.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(a)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var b,C;this.interactive&&this.focusTrap&&((b=this.activateFocusTrap)==null||b.call(this),(C=this.setInitialFocus)==null||C.call(this))},0),hi.onShowPopover(this)):(Ie.peek()===this&&Ie.pop(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(a),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(a==null||a.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),hi.onHidePopover(this)))}isEventFromTrigger(t){var i;return this.triggerID?t.composed?t.composedPath().some(a=>(a==null?void 0:a.id)===this.triggerID):((i=t.target)==null?void 0:i.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case kt.LEFT:return kt.RIGHT;case kt.LEFT_START:return kt.RIGHT_START;case kt.LEFT_END:return kt.RIGHT_END;case kt.RIGHT:return kt.LEFT;case kt.RIGHT_START:return kt.LEFT_START;case kt.RIGHT_END:return kt.LEFT_END;default:return t}}render(){return _`
|
|
2659
|
+
`,Mf=[vT];var $l=z.constructTagName("popoverportal"),Dl=class extends q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Fl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(i=>{let a=parseInt(i,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${i}`);return a});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let i=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=i,t.style.bottom=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${a}px`,t.style.width=i,t.style.right=`calc(-1.5 * (${i}))`;break;case"right":t.style.height=`${a}px`,t.style.width=i,t.style.left=`calc(-0.5 * (${i}))`;break;case"bottom":default:t.style.height=i,t.style.top=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&!Array.from(i.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement($l),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),i.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,i;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((i=this.popover.triggerElement)==null?void 0:i.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,i;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(i=this.popover.triggerElement)==null||i.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var W;if(!this.popover.arrowElement)return;let i=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[i],{x:d,y:m}=o,b=this.popover.arrowElement.getBoundingClientRect(),C=(W=this.popover.arrowElement.offsetParent)==null?void 0:W.getBoundingClientRect();if(!this.arrowPixelChange){let K=C!=null&&C[a]?12-Math.abs(b[a]-C[a]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",i),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var It=class extends ml(dl(ll(q))){constructor(){super();this.id="";this.triggerID="";this.trigger=_t.TRIGGER;this.placement=_t.PLACEMENT;this.color=_t.COLOR;this.visible=_t.VISIBLE;this.offset=_t.OFFSET;this.boundary=_t.BOUNDARY;this.boundaryRoot=_t.BOUNDARY_ROOT;this.focusTrap=_t.FOCUS_TRAP;this.preventScroll=_t.PREVENT_SCROLL;this.showArrow=_t.ARROW;this.closeButton=_t.CLOSE_BUTTON;this.interactive=_t.INTERACTIVE;this.delay=_t.DELAY;this.hideOnEscape=_t.HIDE_ON_ESCAPE;this.propagateEventOnEscape=_t.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=_t.HIDE_ON_BLUR;this.hideOnOutsideClick=_t.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=_t.FOCUS_BACK;this.backdrop=_t.BACKDROP;this.isBackdropInvisible=_t.IS_BACKDROP_INVISIBLE;this.flip=_t.FLIP;this.size=_t.SIZE;this.zIndex=_t.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=_t.STRATEGY;this.role=_t.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=_t.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipClosed=_t.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.parseTrigger=()=>{var d;let a=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(ci).includes(m)).length>0?this.trigger:_t.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ie.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),d=this.backdropElement?i.includes(this.backdropElement):!1;(!a||d)&&(this.hide(),hi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),hi.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{this.isEventFromTrigger(t)&&(this.isHovered||this.hide())};this.handleFocusIn=t=>{var i;this.isEventFromTrigger(t)&&((i=this.triggerElement)!=null&&i.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSuppressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let i=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),a=this.boundaryRoot,d=[Cf({boundary:i,rootBoundary:a,padding:this.boundaryPadding})],m=this.offset;if(this.flip&&d.push(kf({boundary:i,rootBoundary:a})),this.size){let b=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},C=this.renderRoot.querySelector('[part="popover-content"]');d.push(wf({boundary:i,rootBoundary:a,apply({availableHeight:L}){C&&(Object.assign(C.style,{maxHeight:`${L}px`,overflowY:"auto"}),b(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let b=this.arrowElement.offsetHeight,C=Math.sqrt(2*b**2)/2;m+=C,d.push(Nf({element:this.arrowElement,padding:12}))}d.push(If(m)),this.floatingUICleanupFunction=_f(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let C=this.adjustPlacementForRtl(this.placement),{x:L,y:W,middlewareData:K,placement:rt}=await Lf(b,this,{placement:C,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,W),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,rt),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(rt)})};this.utils=new Fl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(i=>i!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),hi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.style.zIndex=`${this.zIndex}`,this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,i;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(i=this.floatingUICleanupFunction)==null||i.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),hi.onDestroyedPopover(this),Ie.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let i=t.get("visible")||!1;await this.isOpenUpdated(i,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(kt).includes(this.placement)?this.placement:_t.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(So).includes(this.color)?this.color:_t.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,i){var d,m;let{triggerElement:a}=this;t===i||!a||(i&&!this.shouldSuppressOpening?(Ie.peek()!==this&&Ie.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(a)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var b,C;this.interactive&&this.focusTrap&&((b=this.activateFocusTrap)==null||b.call(this),(C=this.setInitialFocus)==null||C.call(this))},0),hi.onShowPopover(this)):(Ie.peek()===this&&Ie.pop(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(a),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(a==null||a.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),hi.onHidePopover(this)))}isEventFromTrigger(t){var i;return this.triggerID?t.composed?t.composedPath().some(a=>(a==null?void 0:a.id)===this.triggerID):((i=t.target)==null?void 0:i.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case kt.LEFT:return kt.RIGHT;case kt.LEFT_START:return kt.RIGHT_START;case kt.LEFT_END:return kt.RIGHT_END;case kt.RIGHT:return kt.LEFT;case kt.RIGHT_START:return kt.LEFT_START;case kt.RIGHT_END:return kt.LEFT_END;default:return t}}render(){return _`
|
|
2660
2660
|
<div part="popover-hover-bridge"></div>
|
|
2661
2661
|
${this.closeButton?_` <mdc-button
|
|
2662
2662
|
part="popover-close"
|
|
@@ -3010,7 +3010,7 @@
|
|
|
3010
3010
|
${this.label?_`<mdc-text part="label" type="${Vl.TEXT_TYPE}" tagname="${Vl.TAG_NAME}"
|
|
3011
3011
|
>${this.label}</mdc-text
|
|
3012
3012
|
>`:j}
|
|
3013
|
-
`}};Ts.styles=[...q.styles,...Hf],p([u({type:String,reflect:!0})],Ts.prototype,"color",2),p([u({type:String})],Ts.prototype,"label",2);var Pa=Ts;var Gf=z.constructTagName("chip"),xs={COLOR:Bc.DEFAULT,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:co[24],ROLE:
|
|
3013
|
+
`}};Ts.styles=[...q.styles,...Hf],p([u({type:String,reflect:!0})],Ts.prototype,"color",2),p([u({type:String})],Ts.prototype,"label",2);var Pa=Ts;var Gf=z.constructTagName("chip"),xs={COLOR:Bc.DEFAULT,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:co[24],ROLE:tt.BUTTON};var IT=B`
|
|
3014
3014
|
:host {
|
|
3015
3015
|
cursor: pointer;
|
|
3016
3016
|
height: 1.5rem;
|
|
@@ -3351,7 +3351,7 @@
|
|
|
3351
3351
|
`,Xf=[PT];var Gl=class extends Gt(se){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0}render(){var t;return _`
|
|
3352
3352
|
<div
|
|
3353
3353
|
part="container"
|
|
3354
|
-
role="${this.isRadio?
|
|
3354
|
+
role="${this.isRadio?tt.RADIOGROUP:tt.GROUP}"
|
|
3355
3355
|
aria-labelledby="${Mt.HEADING_ID}"
|
|
3356
3356
|
aria-describedby="${it(this.helpText?Mt.HELPER_TEXT_ID:"")}"
|
|
3357
3357
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
@@ -3643,7 +3643,7 @@
|
|
|
3643
3643
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
|
3644
3644
|
}
|
|
3645
3645
|
`,rv=[UT];var Ba=class extends Kt($r){constructor(){super(...arguments);this.size=eu.LINK_SIZE}getIconSize(){switch(this.size){case hl.SMALL:return pl.SMALL;case hl.MIDSIZE:return pl.MIDSIZE;default:return pl.LARGE}}renderAnchorContent(){return _` <slot></slot>
|
|
3646
|
-
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:j}`}};Ba.styles=[...$r.styles,...rv],p([u({type:String,reflect:!0})],Ba.prototype,"size",2);var Zc=Ba;Zc.register(cl);var HT=Zc;var iv=z.constructTagName("linkbutton"),Cs={12:12,14:14,16:16},ks={SIZE:Cs[16],ROLE:
|
|
3646
|
+
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:j}`}};Ba.styles=[...$r.styles,...rv],p([u({type:String,reflect:!0})],Ba.prototype,"size",2);var Zc=Ba;Zc.register(cl);var HT=Zc;var iv=z.constructTagName("linkbutton"),Cs={12:12,14:14,16:16},ks={SIZE:Cs[16],ROLE:tt.BUTTON,INLINE:us.INLINE,INVERTED:us.INVERTED};var ov=n=>{switch(n){case Cs[12]:return .75;case Cs[14]:return .875;default:return 1}};var GT=B`
|
|
3647
3647
|
:host {
|
|
3648
3648
|
gap: 0.25rem;
|
|
3649
3649
|
cursor: pointer;
|
|
@@ -3760,7 +3760,7 @@
|
|
|
3760
3760
|
scroll-padding-top: 0.25rem;
|
|
3761
3761
|
scroll-padding-bottom: 0.25rem;
|
|
3762
3762
|
}
|
|
3763
|
-
`,lv=[qT];var dv=z.constructTagName("list");var Jc={LOOP:"true",INITIAL_FOCUS:0};var Ns=class extends ws(Ui(q)){constructor(){super();this.loop=Jc.LOOP;this.initialFocus=Jc.INITIAL_FOCUS;this.handleCreatedEvent=t=>{let i=t.target;this.isValidItem(i)&&(i.tabIndex=-1)};this.handleDestroyEvent=t=>{let i=t.detail.originalTarget;if(!this.isValidItem(i)||i.tabIndex!==0)return;let a=this.navItems.findIndex(m=>m===i);if(a===-1)return;let d=a+1;d>=this.navItems.length&&(d=a-1),this.resetTabIndexes(d)};this.handleModifiedEvent=t=>{let i=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(i);break;case"disabled":this.itemsStore.delete(i);break;default:break}};this.addEventListener(Yt.CREATED,this.handleCreatedEvent),this.addEventListener(Yt.MODIFIED,this.handleModifiedEvent),this.addEventListener(Yt.DESTROYED,this.handleDestroyEvent),this.itemsStore=new Br(this,{isValidItem:this.isValidItem})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",
|
|
3763
|
+
`,lv=[qT];var dv=z.constructTagName("list");var Jc={LOOP:"true",INITIAL_FOCUS:0};var Ns=class extends ws(Ui(q)){constructor(){super();this.loop=Jc.LOOP;this.initialFocus=Jc.INITIAL_FOCUS;this.handleCreatedEvent=t=>{let i=t.target;this.isValidItem(i)&&(i.tabIndex=-1)};this.handleDestroyEvent=t=>{let i=t.detail.originalTarget;if(!this.isValidItem(i)||i.tabIndex!==0)return;let a=this.navItems.findIndex(m=>m===i);if(a===-1)return;let d=a+1;d>=this.navItems.length&&(d=a-1),this.resetTabIndexes(d)};this.handleModifiedEvent=t=>{let i=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(i);break;case"disabled":this.itemsStore.delete(i);break;default:break}};this.addEventListener(Yt.CREATED,this.handleCreatedEvent),this.addEventListener(Yt.MODIFIED,this.handleModifiedEvent),this.addEventListener(Yt.DESTROYED,this.handleDestroyEvent),this.itemsStore=new Br(this,{isValidItem:this.isValidItem})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.LIST)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Kl}:not([disabled])`)}render(){return _`
|
|
3764
3764
|
<slot name="list-header"></slot>
|
|
3765
3765
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
3766
3766
|
<slot part="container" role="presentation"></slot>
|
|
@@ -3919,7 +3919,7 @@
|
|
|
3919
3919
|
flex-direction: row;
|
|
3920
3920
|
flex-shrink: 0;
|
|
3921
3921
|
}
|
|
3922
|
-
`,mv=[ZT,...St()];var We=class extends Bt(Rr(pv(q))){constructor(){super();this.variant=av.VARIANT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||
|
|
3922
|
+
`,mv=[ZT,...St()];var We=class extends Bt(Rr(pv(q))){constructor(){super();this.variant=av.VARIANT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||tt.LISTITEM}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){(t.key===Z.ENTER||t.key===Z.SPACE)&&this.triggerClickEvent(t)&&t.preventDefault()}triggerClickEvent(t){if(t.target!==this&&document.activeElement===t.target)return!1;let a=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});return this.dispatchEvent(a),!0}getText(t,i,a){return _`
|
|
3923
3923
|
<slot name="${t}">
|
|
3924
3924
|
${a?_`<mdc-text part="${t}" type="${i}" tagname="${mt.SPAN}">${a}</mdc-text>`:j}
|
|
3925
3925
|
</slot>
|
|
@@ -3988,7 +3988,7 @@
|
|
|
3988
3988
|
:host([aria-orientation='vertical']) {
|
|
3989
3989
|
flex-direction: column;
|
|
3990
3990
|
}
|
|
3991
|
-
`,yv=[ex];var Wa=class extends q{constructor(){super(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var o;super.connectedCallback(),this.role=
|
|
3991
|
+
`,yv=[ex];var Wa=class extends q{constructor(){super(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var o;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=bv.ORIENTATION,await this.updateComplete,(o=this.menusections)==null||o.forEach(t=>{t.setAttribute("divider-variant","gradient")})}get menuItems(){var d,m;let o=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),t=(m=o==null?void 0:o.assignedElements({flatten:!0}))!=null?m:[],i=[],a=b=>{b.role===tt.MENUITEM&&!b.hasAttribute("disabled")?i.push(b):b.tagName.toLowerCase()===ui&&Array.from(b.children).forEach(a)};return t.forEach(a),i}getVisibleSubMenusOfItems(o){let t=[];return!o||o.length===0||o.forEach(i=>{var m;let a=i.getAttribute("id");if(!a)return;let d=(m=document.querySelector)==null?void 0:m.call(document,`${te}[triggerid="${a}"]`);d&&d.visible&&t.push(d)}),t}getAllPopovers(){var a,d;if(!this.menuItems.length)return[];let o=(d=(a=this.menuItems[0])==null?void 0:a.closest(Gi))!=null?d:this;if(!o)return[];let t=[],i=m=>{m.querySelectorAll(`${te}`).forEach(b=>{t.push(b)}),m.querySelectorAll("slot").forEach(b=>{b.assignedElements({flatten:!0}).forEach(i)})};return i(o),t}update(o){super.update(o)}firstUpdated(o){super.firstUpdated(o),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}handleClick(o){let t=o.target;if(!t||!this.isTopLevelMenuItem(t))return;let i=this.menuItems.filter(d=>d!==t);this.getVisibleSubMenusOfItems(i).forEach(d=>{d.hide()})}resetTabIndexAndSetActiveTabIndex(o){o.forEach((t,i)=>{let a=i===0?"0":"-1";t==null||t.setAttribute("tabindex",a)})}getCurrentIndex(o){return this.menuItems.findIndex(t=>t===o||t===o.parentElement)}getSubmenu(o){if(o)return this.getAllPopovers().find(t=>t.getAttribute("triggerid")===o)}showSubmenu(o){if(!o||!this.menuItems.find(a=>a.getAttribute("id")===o))return;let i=this.getSubmenu(o);i&&i.show()}updatePopoverPlacement(){let o=kt.RIGHT_START;this.getAllPopovers().forEach(t=>{t.setAttribute("placement",o)})}updateTabIndexAndFocus(o,t,i){var a,d,m;i<0||t<0||(t!==i&&((a=o[t])==null||a.setAttribute("tabindex","-1"),(d=o[i])==null||d.setAttribute("tabindex","0")),(m=o[i])==null||m.focus())}navigateToMenuItem(o,t,i=!1){var m;let{length:a}=this.menuItems;if(a===0)return;let d=o;if(d=t==="prev"?(o-1+a)%a:(o+1)%a,this.updateTabIndexAndFocus(this.menuItems,o,d),i){let b=(m=this.menuItems[d])==null?void 0:m.getAttribute("id");this.getSubmenu(b)&&!this.menuItems[d].hasAttribute("soft-disabled")&&this.showSubmenu(b)}}getKeyWithDirectionFix(o){return window.getComputedStyle(this).direction==="rtl"?o===Z.ARROW_LEFT?Z.ARROW_RIGHT:o===Z.ARROW_RIGHT?Z.ARROW_LEFT:o:o}isTopLevelMenuItem(o){var d;let t=o.parentElement;if(!t||o.role!==tt.MENUITEM)return!1;let i=t.tagName.toLowerCase(),a=(d=t.parentElement)==null?void 0:d.tagName.toLowerCase();return i===Ya||i===Gi||i===ui&&(a===Ya||a===Gi)}isNestedMenuItem(o){return!!o.closest(te)&&o.role===tt.MENUITEM}async closeAllMenuPopovers(){let o=[];for(;Ie.peek();){let t=Ie.pop();t&&(t.hide(),o.push(t))}await Promise.all(o.map(t=>t.updateComplete))}async crossMenubarNavigationOnLeft(o){if(o.role===tt.MENUITEM){let i=o.closest(te),a=i==null?void 0:i.getAttribute("triggerid"),d=this.menuItems.find(m=>m.getAttribute("id")===a);if(d){this.isTopLevelMenuItem(d)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let m=this.getCurrentIndex(d);this.navigateToMenuItem(m,"prev",!0)}}}async crossMenubarNavigationOnRight(o){if(this.isTopLevelMenuItem(o)&&this.getSubmenu(o.id)&&!o.hasAttribute("soft-disabled"))this.showSubmenu(o.id);else if(this.isNestedMenuItem(o)&&!this.getSubmenu(o.id)){await this.closeAllMenuPopovers();let t=this.getParentMenuItemIndex(o);t>=0&&this.navigateToMenuItem(t,"next",!0)}}getParentMenuItemIndex(o){let t=o.parentElement;for(;t;){if(t.tagName.toLowerCase()===te){let i=t.getAttribute("triggerid"),a=this.menuItems.find(d=>d.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(d=>d===a):this.getParentMenuItemIndex(a)}t=t.parentElement}return-1}async handleKeyDown(o){let t=this.getCurrentIndex(o.target);switch(this.getKeyWithDirectionFix(o.key)){case Z.HOME:this.updateTabIndexAndFocus(this.menuItems,t,0);break;case Z.END:this.updateTabIndexAndFocus(this.menuItems,t,this.menuItems.length-1);break;case Z.ARROW_LEFT:{let a=t>=0?this.menuItems[t]:o.target;await this.crossMenubarNavigationOnLeft(a);break}case Z.ARROW_RIGHT:{let a=t>=0?this.menuItems[t]:o.target;await this.crossMenubarNavigationOnRight(a);break}case Z.ARROW_UP:{this.navigateToMenuItem(t,"prev"),o.preventDefault();break}case Z.ARROW_DOWN:{this.navigateToMenuItem(t,"next"),o.preventDefault();break}default:break}}render(){return _`<slot role="${tt.GROUP}"></slot>`}};Wa.styles=[...q.styles,...yv],p([Pt({selector:"mdc-menusection",flatten:!0})],Wa.prototype,"menusections",2);var sh=Wa;sh.register(Ya);var rx=sh;var ja=z.constructTagName("menuitem"),qa={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},ah={POSITIVE:"positive",NEGATIVE:"negative"},nh={LEADING:"leading",TRAILING:"trailing"};var ix=B`
|
|
3992
3992
|
:host(:dir(rtl))::part(trailing-arrow),
|
|
3993
3993
|
:host(:dir(rtl))::part(leading-arrow) {
|
|
3994
3994
|
transform: rotate(180deg);
|
|
@@ -3997,7 +3997,7 @@
|
|
|
3997
3997
|
:host::part(leading-arrow) {
|
|
3998
3998
|
--mdc-icon-size: 1.25rem;
|
|
3999
3999
|
}
|
|
4000
|
-
`,Ev=[ix];var Yi=class extends mi{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){o.key===Z.ENTER&&(this.triggerClickEvent(o),o.preventDefault())}handleKeyUp(o){o.key===Z.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=
|
|
4000
|
+
`,Ev=[ix];var Yi=class extends mi{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){o.key===Z.ENTER&&(this.triggerClickEvent(o),o.preventDefault())}handleKeyUp(o){o.key===Z.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEM,this.variant=Ua.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===ah.NEGATIVE?qa.LEFT:qa.RIGHT;return _`
|
|
4001
4001
|
<slot
|
|
4002
4002
|
name="trailing-controls"
|
|
4003
4003
|
@click=${this.stopEventPropagation}
|
|
@@ -4141,14 +4141,14 @@
|
|
|
4141
4141
|
:host([color='contrast'])::part(popover-content) {
|
|
4142
4142
|
color: var(--mdc-tooltip-text-color-contrast);
|
|
4143
4143
|
}
|
|
4144
|
-
`,_v=[lx];var Ls=class extends Ve{constructor(){super(...arguments);this.tooltipType=ji.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ji.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ji.OFFSET,this.placement=this.placement||ji.PLACEMENT,this.role=
|
|
4144
|
+
`,_v=[lx];var Ls=class extends Ve{constructor(){super(...arguments);this.tooltipType=ji.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ji.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ji.OFFSET,this.placement=this.placement||ji.PLACEMENT,this.role=tt.TOOLTIP,this.trigger="mouseenter focusin",this.preventScroll=!1,this.flip=!0,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var t,i;return((i=(t=this.defaultSlotNodes)==null?void 0:t.map(a=>a.textContent).join(" "))==null?void 0:i.trim())||""}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(je).includes(t)?t:ji.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Ee()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case je.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case je.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(kt).includes(this.placement)||(this.placement=ji.PLACEMENT)}onTooltipTypeUpdated(t){let i=t.get("tooltipType");if(Object.values(je).includes(this.tooltipType)||this.setTooltipType(ji.TOOLTIP_TYPE),this.triggerElement){let a=this.getTooltipText();switch(this.tooltipType){case je.DESCRIPTION:i===je.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case je.LABEL:i===je.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:i===je.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):i===je.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==je.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}};Ls.styles=[...Ve.styles,..._v],p([u({type:String,attribute:"tooltip-type",reflect:!0})],Ls.prototype,"tooltipType",2),p([Un()],Ls.prototype,"defaultSlotNodes",2);var ch=Ls;ch.register(Ka);var dx=ch;var Rs=oi(class extends Pr{constructor(n){var o;if(super(n),n.type!==Ye.ATTRIBUTE||n.name!=="class"||((o=n.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var i,a;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(let d in o)o[d]&&!((i=this.nt)!=null&&i.has(d))&&this.st.add(d);return this.render(o)}let t=n.element.classList;for(let d of this.st)d in o||(t.remove(d),this.st.delete(d));for(let d in o){let m=!!o[d];m===this.st.has(d)||(a=this.nt)!=null&&a.has(d)||(m?(t.add(d),this.st.add(d)):(t.remove(d),this.st.delete(d)))}return ge}});var Iv=z.constructTagName("toggle"),Xa={DEFAULT:"default",COMPACT:"compact"};var hh={SIZE:Xa.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Cv=n=>{class o extends n{constructor(){super(...arguments);this.controlTypeProviderContext=De.consume({host:this,context:Yc.Context})}willUpdate(){this.controlType&&Ul.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Bl.CONTROL_TYPE)}}return p([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var Zl=z.constructTagName("menuitemcheckbox"),Za={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},kv={INDICATOR:Za.CHECKBOX};var cx=B`
|
|
4145
4145
|
:host::part(checkmark-icon) {
|
|
4146
4146
|
--mdc-icon-fill-color: currentColor;
|
|
4147
4147
|
}
|
|
4148
4148
|
:host .hidden-checkmark {
|
|
4149
4149
|
visibility: hidden;
|
|
4150
4150
|
}
|
|
4151
|
-
`,wv=[cx];var Ms=class extends Cv(hr){constructor(){super();this.checked=!1;this.indicator=kv.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=
|
|
4151
|
+
`,wv=[cx];var Ms=class extends Cv(hr){constructor(){super();this.checked=!1;this.indicator=kv.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===Za.CHECKBOX?_`
|
|
4152
4152
|
<mdc-staticcheckbox
|
|
4153
4153
|
slot="leading-controls"
|
|
4154
4154
|
?checked="${this.checked}"
|
|
@@ -4197,7 +4197,7 @@
|
|
|
4197
4197
|
:host .hidden-checkmark {
|
|
4198
4198
|
visibility: hidden;
|
|
4199
4199
|
}
|
|
4200
|
-
`,Lv=[px];var Os=class extends hr{constructor(){super();this.checked=!1;this.indicator=Nv.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=
|
|
4200
|
+
`,Lv=[px];var Os=class extends hr{constructor(){super();this.checked=!1;this.indicator=Nv.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${ui}, ${te}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(i=>{i!==this&&i.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.checked||(this.updateOtherRadiosCheckedState(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===Jl.RADIO?_`
|
|
4201
4201
|
<mdc-staticradio
|
|
4202
4202
|
slot="leading-controls"
|
|
4203
4203
|
?checked="${this.checked}"
|
|
@@ -4239,7 +4239,7 @@
|
|
|
4239
4239
|
::slotted(mdc-divider) {
|
|
4240
4240
|
margin-block: 0.25rem;
|
|
4241
4241
|
}
|
|
4242
|
-
`,Pv=[ux];var Qa=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===
|
|
4242
|
+
`,Pv=[ux];var Qa=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===tt.MENUITEM||o===tt.MENUITEMCHECKBOX||o===tt.MENUITEMRADIO},uh=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===te};var Ja=class extends Ve{constructor(){super();this.placement=oh.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(Ie.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),d=this.backdropElement?i.includes(this.backdropElement):!1;(!a||d)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var i;(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||!this.isEventFromTrigger(t)||(this.visible?this.hide():this.show())};this.handleItemCreation=t=>{let i=t.target;Qa(i)&&(t.stopImmediatePropagation(),i.addEventListener("destroyed",this.handleItemChangeEvent),i.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(i=>i.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let i=!1;this.collectMenuItems();let a=t.target,d=this.getCurrentIndex(a);if(d===-1)return;this.resetTabIndexes(d);let m=window.getComputedStyle(this).direction==="rtl";switch(this.resolveDirectionKey(t.key,m)){case Z.HOME:{this.resetTabIndexAndSetFocus(0,d),i=!0;break}case Z.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,d),i=!0;break}case Z.ARROW_DOWN:{let C=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(C,d),i=!0;break}case Z.ARROW_UP:{let C=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(C,d),i=!0;break}case Z.ARROW_RIGHT:{let C=this.getSubMenuPopoverOfTarget(a);C&&(C.show(),i=!0);break}case Z.ARROW_LEFT:{uh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),i=!0);break}case Z.ESCAPE:{this.resetTabIndexAndSetFocus(0,d),i=!0;break}case Z.ENTER:{this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),i=!0);break}case Z.SPACE:{i=!0;break}default:break}i&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let i=!1,a=t.target;switch(t.key){case Z.SPACE:{a.matches(`${Ql}, ${Zl}`)||this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),i=!0);break}default:break}i&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("click",this.handleMouseClick),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var a,d;let i=t.getAttribute("id");return i?(d=(a=this.parentElement)==null?void 0:a.querySelector)==null?void 0:d.call(a,`${te}[triggerid="${i}"]`):null}collectMenuItems(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),i=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=i.map(d=>d.tagName.toLowerCase()===ui?Array.from(d.children).filter(m=>Qa(m)):Qa(d)?d:[]).flat().filter(d=>!!d&&!d.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(d=>this.getSubMenuPopoverOfTarget(d))}getOpenSubMenusOfItems(t){let i=[];return!t||t.length===0||t.forEach(a=>{let d=this.getSubMenuPopoverOfTarget(a);d&&d.visible&&i.push(d)}),i}connectedCallback(){super.connectedCallback(),this.role=tt.MENU,this.ariaOrientation=oh.ORIENTATION,this.backdrop=!1,this.color=So.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,i){return t===i||!this.triggerElement?Promise.resolve():(i&&(this.backdrop=![ja,qi].includes(this.triggerElement.tagName.toLowerCase())),i===!1&&this.menuItemsWithSubMenus.forEach(a=>{let d=this.getSubMenuPopoverOfTarget(a);d&&d.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,i))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(i=>i.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(i=>i===t)}resetTabIndexAndSetFocus(t,i){t!==i&&(this.menuItems[i].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){for(;Ie.peek()!==t&&uh(Ie.peek());){let i=Ie.pop();if(i)i.hide();else break}}closeOtherSubMenusOnSameLevel(t){let i=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(i).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(ja)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let i=t.target;if(t.stopPropagation(),!(!Qa(i)||!t.isTrusted)){if(this.getSubMenuPopoverOfTarget(i)){this.closeOtherSubMenusOnSameLevel(i);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(i)}}resolveDirectionKey(t,i){if(!i)return t;switch(t){case Z.ARROW_LEFT:return Z.ARROW_RIGHT;case Z.ARROW_RIGHT:return Z.ARROW_LEFT;default:return t}}};Ja.styles=[...Ve.styles,...Pv],p([u({type:String,reflect:!0})],Ja.prototype,"placement",2);var fh=Ja;fh.register(te);var fx=fh;var td=class{constructor(o,t,i){this.variant=o,this.expanded=t,this.parentNavTooltipText=i}hasSiblingWithTriggerId(o){var a,d;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((d=(a=o==null?void 0:o.parentElement)==null?void 0:a.children)!=null?d:[]).some(m=>m!==o&&m.tagName.toLowerCase()===te&&m.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],i=o;for(;i;){let a=i==null?void 0:i.closest(te);if(!a)break;let d=a.getAttribute("triggerid");if(!d)break;let m=document.getElementById(d);if(m&&m.tagName.toLowerCase()===qi)t.push(m),i=m;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),i=(o==null?void 0:o.disableAriaCurrent)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||i||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(b=>{b.removeAttribute("tooltip-text"),b.removeAttribute("tooltip-placement"),b.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",kt.BOTTOM),m.setAttribute("active","")})}};td.context=Gi;var ed=td;var vx=B`
|
|
4243
4243
|
:host {
|
|
4244
4244
|
--mdc-sidenavigation-expanded-width: 15rem;
|
|
4245
4245
|
--mdc-sidenavigation-collapsed-width: 4.5rem;
|
|
@@ -4309,7 +4309,7 @@
|
|
|
4309
4309
|
:host::part(vertical-divider-button) {
|
|
4310
4310
|
z-index: var(--mdc-sidenavigation-vertical-divider-button-z-index);
|
|
4311
4311
|
}
|
|
4312
|
-
`,Dv=[vx];var fi=class extends Pe{constructor(){super({context:ed.context,initialValue:new ed(Xl.VARIANT,!0)});this.variant=Xl.VARIANT;this.footerText="";this.handleNestedNavMenuItemActiveChange=t=>{var i;if((i=this.context)!=null&&i.value){let a=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(a)}};this.findNav=(t,i)=>t.find(a=>a.navId===i);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=
|
|
4312
|
+
`,Dv=[vx];var fi=class extends Pe{constructor(){super({context:ed.context,initialValue:new ed(Xl.VARIANT,!0)});this.variant=Xl.VARIANT;this.footerText="";this.handleNestedNavMenuItemActiveChange=t=>{var i;if((i=this.context)!=null&&i.value){let a=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(a)}};this.findNav=(t,i)=>t.find(a=>a.navId===i);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.NAVIGATION}static get Context(){return ed.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.variant){case Ur.FIXED_EXPANDED:this.expanded=!0;break;case Ur.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),this.variant===Ur.FLEXIBLE&&this.expanded===void 0&&(this.expanded=!0,this.updateContext())}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.parentNavTooltipText!==this.parentNavTooltipText)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.parentNavTooltipText=this.parentNavTooltipText,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${qi}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(Ur).includes(t)?t:Xl.VARIANT)}toggleSideNavigation(){this.expanded=!this.expanded,this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){t.key===Z.SPACE&&t.preventDefault()}render(){var t;return this.variant===Ur.HIDDEN?_``:_`
|
|
4313
4313
|
<div part="side-navigation-container" id="side-nav-container">
|
|
4314
4314
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
|
4315
4315
|
<slot name="scrollable-section">
|
|
@@ -4366,7 +4366,7 @@
|
|
|
4366
4366
|
:host(:dir(rtl))::part(align-header) {
|
|
4367
4367
|
padding-right: 1.75rem;
|
|
4368
4368
|
}
|
|
4369
|
-
`,$v=[gx];var Hr=class extends q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=gv.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=De.consume({host:this,context:Mo.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",
|
|
4369
|
+
`,$v=[gx];var Hr=class extends q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=gv.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=De.consume({host:this,context:Mo.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.GROUP)}update(t){var d;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let i=(d=this.sideNavigationContext)==null?void 0:d.value;if(!i)return;let{expanded:a}=i;this.hideHeaderText=!a}renderHeader(){var t,i;return this.headerText?_` <mdc-listheader
|
|
4370
4370
|
part="header ${(i=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&i.expanded?"align-header":""}"
|
|
4371
4371
|
header-text="${this.headerText}"
|
|
4372
4372
|
prefix-icon="${it(this.prefixIcon)}"
|
|
@@ -4575,12 +4575,12 @@
|
|
|
4575
4575
|
>
|
|
4576
4576
|
`:j;return _`
|
|
4577
4577
|
<div
|
|
4578
|
-
role="${
|
|
4578
|
+
role="${tt.GROUP}"
|
|
4579
4579
|
aria-labelledby="${this.label?bh:""}"
|
|
4580
4580
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
4581
4581
|
>
|
|
4582
4582
|
${o}
|
|
4583
|
-
<slot role="${
|
|
4583
|
+
<slot role="${tt.PRESENTATION}"></slot>
|
|
4584
4584
|
</div>
|
|
4585
4585
|
`}};Ps.styles=[...q.styles,...zv],p([u({type:String,reflect:!0})],Ps.prototype,"label",2),p([Pt({selector:pr})],Ps.prototype,"options",2);var yh=Ps;yh.register(tn);var xx=yh;var Ax=[Li,B`
|
|
4586
4586
|
:host {
|
|
@@ -4611,7 +4611,7 @@
|
|
|
4611
4611
|
:host([data-hidden]) {
|
|
4612
4612
|
display: none;
|
|
4613
4613
|
}
|
|
4614
|
-
`],Bv=Ax;var Oo=class extends xe(mi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=
|
|
4614
|
+
`],Bv=Ax;var Oo=class extends xe(mi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=tt.OPTION,this.variant=Ua.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,i){return _` <mdc-icon length-unit="rem" slot="${t}" name="${i}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Vv):j;return _`
|
|
4615
4615
|
<div part="leading">
|
|
4616
4616
|
<slot name="leading-controls">
|
|
4617
4617
|
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):j}
|
|
@@ -4709,7 +4709,7 @@
|
|
|
4709
4709
|
`],Gv=Cx;var Do=class extends Gt(cr){constructor(){super(...arguments);this.variant=Hv.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var d;let t=this.getValidationVariant(),i=this.clampedValue>0&&this.clampedValue<100,a=this.error?"100":`${this.clampedValue}`;return _`
|
|
4710
4710
|
<div
|
|
4711
4711
|
part="progress-container ${i?"gap":""}"
|
|
4712
|
-
role="${
|
|
4712
|
+
role="${tt.PROGRESSBAR}"
|
|
4713
4713
|
aria-valuenow="${this.clampedValue}"
|
|
4714
4714
|
aria-valuemin="0"
|
|
4715
4715
|
aria-valuemax="100"
|
|
@@ -4776,7 +4776,7 @@
|
|
|
4776
4776
|
`,Kv=[wx];var od=class extends en{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var d;let o=Sh(this.clampedValue),t=Wv(this.clampedValue),i=jv(this.clampedValue),a=qv(this.clampedValue,o);return _`
|
|
4777
4777
|
<div
|
|
4778
4778
|
part="spinner-container ${this.variant}"
|
|
4779
|
-
role="${
|
|
4779
|
+
role="${tt.PROGRESSBAR}"
|
|
4780
4780
|
aria-valuenow="${this.clampedValue}"
|
|
4781
4781
|
aria-valuemin="0"
|
|
4782
4782
|
aria-valuemax="100"
|
|
@@ -4894,7 +4894,7 @@
|
|
|
4894
4894
|
id="${this.inputId}"
|
|
4895
4895
|
part="radio-input"
|
|
4896
4896
|
type="radio"
|
|
4897
|
-
role="${
|
|
4897
|
+
role="${tt.RADIO}"
|
|
4898
4898
|
?autofocus="${this.autofocus}"
|
|
4899
4899
|
name="${it(this.name)}"
|
|
4900
4900
|
value="${it(this.value)}"
|
|
@@ -5076,12 +5076,12 @@
|
|
|
5076
5076
|
@keydown="${this.handleKeydownCombobox}"
|
|
5077
5077
|
tabindex="${this.disabled?"-1":"0"}"
|
|
5078
5078
|
class="${this.disabled?"":"mdc-focus-ring"}"
|
|
5079
|
-
role="${
|
|
5079
|
+
role="${tt.COMBOBOX}"
|
|
5080
5080
|
aria-controls="${eg}"
|
|
5081
5081
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
5082
5082
|
aria-labelledby="${this.label?Mt.HEADING_ID:""}"
|
|
5083
5083
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
|
5084
|
-
aria-haspopup="${
|
|
5084
|
+
aria-haspopup="${tt.LISTBOX}"
|
|
5085
5085
|
aria-required="${this.required?"true":"false"}"
|
|
5086
5086
|
aria-invalid="${this.helpTextType===Ft.ERROR?"true":"false"}"
|
|
5087
5087
|
aria-disabled="${it(this.disabled||this.softDisabled)}"
|
|
@@ -5147,7 +5147,7 @@
|
|
|
5147
5147
|
</mdc-popover>
|
|
5148
5148
|
</div>
|
|
5149
5149
|
${this.renderHelperText()}
|
|
5150
|
-
`}};Ke.styles=[...se.styles,...rg],p([u({type:String})],Ke.prototype,"placeholder",2),p([u({type:String,reflect:!0})],Ke.prototype,"placement",2),p([u({type:String,reflect:!0,attribute:"boundary"})],Ke.prototype,"boundary",2),p([u({type:String,reflect:!0,attribute:"strategy"})],Ke.prototype,"strategy",2),p([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Ke.prototype,"popoverZIndex",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ke.prototype,"backdropAppendTo",2),p([ir(`[id="${ad}"]`)],Ke.prototype,"visualCombobox",2),p([vt()],Ke.prototype,"selectedOption",2),p([vt()],Ke.prototype,"displayPopover",2);var Nh=Ke;Nh.register(tg);var $x=Nh;var Lh=class extends q{connectedCallback(){super.connectedCallback(),this.role=
|
|
5150
|
+
`}};Ke.styles=[...se.styles,...rg],p([u({type:String})],Ke.prototype,"placeholder",2),p([u({type:String,reflect:!0})],Ke.prototype,"placement",2),p([u({type:String,reflect:!0,attribute:"boundary"})],Ke.prototype,"boundary",2),p([u({type:String,reflect:!0,attribute:"strategy"})],Ke.prototype,"strategy",2),p([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Ke.prototype,"popoverZIndex",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ke.prototype,"backdropAppendTo",2),p([ir(`[id="${ad}"]`)],Ke.prototype,"visualCombobox",2),p([vt()],Ke.prototype,"selectedOption",2),p([vt()],Ke.prototype,"displayPopover",2);var Nh=Ke;Nh.register(tg);var $x=Nh;var Lh=class extends q{connectedCallback(){super.connectedCallback(),this.role=tt.LISTBOX}createRenderRoot(){return this}},Rh=Lh;var nd=z.constructTagName("selectlistbox");Rh.register(nd);var Fx=Rh;Mo.register(Gi);var Vx=Mo;var ig=z.constructTagName("skeleton"),og={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},sg={VARIANT:og.RECTANGULAR};var zx=B`
|
|
5151
5151
|
:host {
|
|
5152
5152
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
5153
5153
|
--mdc-skeleton-height: 100%;
|
|
@@ -5248,7 +5248,7 @@
|
|
|
5248
5248
|
stroke-dashoffset: -292;
|
|
5249
5249
|
}
|
|
5250
5250
|
}
|
|
5251
|
-
`],ng=Ux;var lg=z.constructTagName("spinner"),Hx={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Gx={STANDALONE:"standalone",BUTTON:"button"},ld={VARIANT:Gx.STANDALONE,SIZE:Hx.MIDSIZE,INVERTED:!1};var Ki=class extends q{constructor(){super(...arguments);this.inverted=ld.INVERTED;this.size=ld.SIZE;this.ariaLabel=null;this.variant=ld.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?
|
|
5251
|
+
`],ng=Ux;var lg=z.constructTagName("spinner"),Hx={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Gx={STANDALONE:"standalone",BUTTON:"button"},ld={VARIANT:Gx.STANDALONE,SIZE:Hx.MIDSIZE,INVERTED:!1};var Ki=class extends q{constructor(){super(...arguments);this.inverted=ld.INVERTED;this.size=ld.SIZE;this.ariaLabel=null;this.variant=ld.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?tt.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return _`
|
|
5252
5252
|
<svg part="container" viewBox="0 0 100 100">
|
|
5253
5253
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
|
5254
5254
|
</svg>
|
|
@@ -5289,7 +5289,7 @@
|
|
|
5289
5289
|
padding-top: 0.9375rem;
|
|
5290
5290
|
margin: 0 -3rem;
|
|
5291
5291
|
}
|
|
5292
|
-
`,hg=[bt,qx];var Ds=class extends Pe{constructor(){super({context:pd.context,initialValue:new pd(nn.ORIENTATION,nn.VARIANT)});this.orientation=nn.ORIENTATION;this.variant=nn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=
|
|
5292
|
+
`,hg=[bt,qx];var Ds=class extends Pe{constructor(){super({context:pd.context,initialValue:new pd(nn.ORIENTATION,nn.VARIANT)});this.orientation=nn.ORIENTATION;this.variant=nn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}static get Context(){return pd.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return _` <slot></slot> `}};Ds.styles=[...q.styles,...hg],p([u({type:String,reflect:!0})],Ds.prototype,"orientation",2),p([u({type:String,reflect:!0})],Ds.prototype,"variant",2);var Fo=Ds;Fo.register(cd);var Kx=Fo;var Xx=B`
|
|
5293
5293
|
:host {
|
|
5294
5294
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
|
5295
5295
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -5481,7 +5481,7 @@
|
|
|
5481
5481
|
:host([status='error-incomplete']:active) {
|
|
5482
5482
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
|
5483
5483
|
}
|
|
5484
|
-
`,mg=[bt,Qx,...St()];var gi=class extends Rr(q){constructor(){super();this.variant=Fh.VARIANT;this.status=Fh.STATUS;this.label="";this.stepperContext=De.consume({host:this,context:Fo.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var a;super.updated(t);let i=(a=this.stepperContext)==null?void 0:a.value;!i||!i.variant||(this.variant=i.variant)}connectedCallback(){super.connectedCallback(),this.role=
|
|
5484
|
+
`,mg=[bt,Qx,...St()];var gi=class extends Rr(q){constructor(){super();this.variant=Fh.VARIANT;this.status=Fh.STATUS;this.label="";this.stepperContext=De.consume({host:this,context:Fo.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var a;super.updated(t);let i=(a=this.stepperContext)==null?void 0:a.value;!i||!i.variant||(this.variant=i.variant)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTITEM}handleKeyDown(t){[Z.ENTER,Z.SPACE].includes(t.key)&&(this.classList.add("pressed"),t.key===Z.ENTER&&this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){[Z.ENTER,Z.SPACE].includes(t.key)&&(this.classList.remove("pressed"),t.key===Z.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===vi.COMPLETED?_`<mdc-icon part="status-icon" name=${dd.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===vi.ERROR_CURRENT||this.status===vi.CURRENT?_`<mdc-icon part="status-icon" name=${dd.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===vi.NOT_STARTED||this.status===vi.ERROR_INCOMPLETE)?_`<mdc-text part="step-number" tagname=${mt.SPAN} type=${st.BODY_MIDSIZE_REGULAR}
|
|
5485
5485
|
>${this.stepNumber}</mdc-text
|
|
5486
5486
|
>`:j}renderHelpText(){if(!this.helpText)return j;let t=_`<mdc-text
|
|
5487
5487
|
part="help-text"
|
|
@@ -5747,7 +5747,7 @@
|
|
|
5747
5747
|
background-color: var(--mdc-tab-pill-active-background-color-disabled);
|
|
5748
5748
|
color: var(--mdc-tab-pill-active-color-disabled);
|
|
5749
5749
|
}
|
|
5750
|
-
`,...St()],fg=tA;var Xi=class extends Kt(ie){constructor(){super(...arguments);this.active=md.ACTIVE;this.variant=md.VARIANT;this.handleTabActiveChange=t=>{let i=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(i)}}connectedCallback(){super.connectedCallback(),this.role=
|
|
5750
|
+
`,...St()],fg=tA;var Xi=class extends Kt(ie){constructor(){super(...arguments);this.active=md.ACTIVE;this.variant=md.VARIANT;this.handleTabActiveChange=t=>{let i=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(i)}}connectedCallback(){super.connectedCallback(),this.role=tt.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${po(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(Bh).includes(t)?t:md.VARIANT)}setActive(t,i){super.setActive(t,i),this.modifyIconName(i)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return _`
|
|
5751
5751
|
<div part="container">
|
|
5752
5752
|
<slot name="prefix">
|
|
5753
5753
|
${this.iconName?_` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:j}
|
|
@@ -5799,7 +5799,7 @@
|
|
|
5799
5799
|
aria-label="Scroll tabs ${d===Fs.FORWARD?t:i}"
|
|
5800
5800
|
@click="${()=>this.scrollTabs(d)}"
|
|
5801
5801
|
></mdc-button>`:j}`;return _` ${a("backward")}
|
|
5802
|
-
<div part="container" role="${
|
|
5802
|
+
<div part="container" role="${tt.TABLIST}" tabindex="-1" aria-label="${it(this.dataAriaLabel)}">
|
|
5803
5803
|
<slot></slot>
|
|
5804
5804
|
</div>
|
|
5805
5805
|
${a(Fs.FORWARD)}`}};_r.styles=[...q.styles,...vg],p([u({type:String,attribute:"active-tab-id",reflect:!0})],_r.prototype,"activeTabId",2),p([u({type:String,attribute:"data-aria-label"})],_r.prototype,"dataAriaLabel",2),p([ir('[part="container"]')],_r.prototype,"tabsContainer",2),p([ir("mdc-button:not(:focus-visible)")],_r.prototype,"notFocusedArrowButton",2),p([Pt({selector:"mdc-tab"})],_r.prototype,"tabs",2),p([vt()],_r.prototype,"showForwardArrowButton",2),p([vt()],_r.prototype,"showBackwardArrowButton",2);var Gh=_r;Gh.register(gg);var iA=Gh;var Tg=z.constructTagName("textarea"),Yh={HARD:"hard",SOFT:"soft"},xg={OFF:"off",ON:"on"},fd={CHARACTER_COUNTER_TYPE:st.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Yh.SOFT};var oA=[B`
|
|
@@ -6204,7 +6204,7 @@
|
|
|
6204
6204
|
id="${this.inputId}"
|
|
6205
6205
|
type="checkbox"
|
|
6206
6206
|
part="toggle-input"
|
|
6207
|
-
role="${
|
|
6207
|
+
role="${tt.CHECKBOX}"
|
|
6208
6208
|
?required="${this.required}"
|
|
6209
6209
|
name="${it(this.name)}"
|
|
6210
6210
|
value="${it(this.value)}"
|
|
@@ -6220,10 +6220,10 @@
|
|
|
6220
6220
|
/>
|
|
6221
6221
|
</mdc-statictoggle>
|
|
6222
6222
|
${this.renderLabel()} ${this.renderHelperText()}
|
|
6223
|
-
`}};zs.styles=[...cr.styles,...Ng],p([u({type:Boolean,reflect:!0})],zs.prototype,"checked",2),p([u({type:String,reflect:!0})],zs.prototype,"size",2);var Zh=zs;Zh.register(Iv);var mA=Zh;function zo(n,o,t){var d;let i=(d=t.initialDeps)!=null?d:[],a;return()=>{var m,b,C,L;let W;t.key&&((m=t.debug)!=null&&m.call(t))&&(W=Date.now());let K=n();if(!(K.length!==i.length||K.some((
|
|
6223
|
+
`}};zs.styles=[...cr.styles,...Ng],p([u({type:Boolean,reflect:!0})],zs.prototype,"checked",2),p([u({type:String,reflect:!0})],zs.prototype,"size",2);var Zh=zs;Zh.register(Iv);var mA=Zh;function zo(n,o,t){var d;let i=(d=t.initialDeps)!=null?d:[],a;return()=>{var m,b,C,L;let W;t.key&&((m=t.debug)!=null&&m.call(t))&&(W=Date.now());let K=n();if(!(K.length!==i.length||K.some((et,lt)=>i[lt]!==et)))return a;i=K;let X;if(t.key&&((b=t.debug)!=null&&b.call(t))&&(X=Date.now()),a=o(...K),t.key&&((C=t.debug)!=null&&C.call(t))){let et=Math.round((Date.now()-W)*100)/100,lt=Math.round((Date.now()-X)*100)/100,dt=lt/16,gt=(At,Nt)=>{for(At=String(At);At.length<Nt;)At=" "+At;return At};console.info(`%c\u23F1 ${gt(lt,5)} /${gt(et,5)} ms`,`
|
|
6224
6224
|
font-size: .6rem;
|
|
6225
6225
|
font-weight: bold;
|
|
6226
|
-
color: hsl(${Math.max(0,Math.min(120-120*dt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(L=t==null?void 0:t.onChange)==null||L.call(t,a),a}}function Ed(n,o){if(n===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return n}var Lg=(n,o)=>Math.abs(n-o)<1,Rg=(n,o,t)=>{let i;return function(...a){n.clearTimeout(i),i=n.setTimeout(()=>o.apply(this,a),t)}};var uA=n=>n,fA=n=>{let o=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),i=[];for(let a=o;a<=t;a++)i.push(a);return i},Og=(n,o)=>{let t=n.scrollElement;if(!t)return;let i=n.targetWindow;if(!i)return;let a=m=>{let{width:b,height:C}=m;o({width:Math.round(b),height:Math.round(C)})};if(a(t.getBoundingClientRect()),!i.ResizeObserver)return()=>{};let d=new i.ResizeObserver(m=>{let b=m[0];if(b!=null&&b.borderBoxSize){let C=b.borderBoxSize[0];if(C){a({width:C.inlineSize,height:C.blockSize});return}}a(t.getBoundingClientRect())});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},Mg={passive:!0};var vA=typeof window>"u"?!0:"onscrollend"in window,Pg=(n,o)=>{let t=n.scrollElement;if(!t)return;let i=n.targetWindow;if(!i)return;let a=0,d=n.options.useScrollendEvent&&vA?()=>{}:Rg(i,()=>{o(a,!1)},n.options.isScrollingResetDelay),m=L=>()=>{let{horizontal:W,isRtl:K}=n.options;a=W?t.scrollLeft*(K&&-1||1):t.scrollTop,d(),o(a,L)},b=m(!0),C=m(!1);return C(),t.addEventListener("scroll",b,Mg),t.addEventListener("scrollend",C,Mg),()=>{t.removeEventListener("scroll",b),t.removeEventListener("scrollend",C)}};var gA=(n,o,t)=>{if(o!=null&&o.borderBoxSize){let i=o.borderBoxSize[0];if(i)return Math.round(i[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(n.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var Dg=(n,{adjustments:o=0,behavior:t},i)=>{var a,d;let m=n+o;(d=(a=i.scrollElement)==null?void 0:a.scrollTo)==null||d.call(a,{[i.options.horizontal?"left":"top"]:m,behavior:t})},Td=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 t=null,i=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(a=>{a.forEach(d=>{this._measureElement(d.target,d)})}));return{disconnect:()=>{var a;(a=i())==null||a.disconnect(),t=null},observe:a=>{var d;return(d=i())==null?void 0:d.observe(a,{box:"border-box"})},unobserve:a=>{var d;return(d=i())==null?void 0:d.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([i,a])=>{typeof a>"u"&&delete t[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:uA,rangeExtractor:fA,onChange:()=>{},measureElement:gA,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var i,a;(a=(i=this.options).onChange)==null||a.call(i,this,t)},this.maybeNotify=zo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;var t;let i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(a=(t=this.scrollElement)==null?void 0:t.window)!=null?a:null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,m)=>{this.scrollAdjustments=0,this.scrollDirection=m?this.getScrollOffset()<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=m,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,i)=>{let a=new Map,d=new Map;for(let m=i-1;m>=0;m--){let b=t[m];if(a.has(b.lane))continue;let C=d.get(b.lane);if(C==null||b.end>C.end?d.set(b.lane,b):b.end<C.end&&a.set(b.lane,!0),a.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((m,b)=>m.end===b.end?m.index-b.index:m.end-b.end)[0]:void 0},this.getMeasurementOptions=zo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,i,a,d,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:i,scrollMargin:a,getItemKey:d,enabled:m}),{key:!1}),this.getMeasurements=zo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:i,scrollMargin:a,getItemKey:d,enabled:m},b)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(W=>{this.itemSizeCache.set(W.key,W.size)}));let C=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let L=this.measurementsCache.slice(0,C);for(let W=C;W<t;W++){let K=d(W),rt=this.options.lanes===1?L[W-1]:this.getFurthestMeasurement(L,W),X=rt?rt.end+this.options.gap:i+a,tt=b.get(K),lt=typeof tt=="number"?tt:this.options.estimateSize(W),dt=X+lt,gt=rt?rt.lane:W%this.options.lanes;L[W]={index:W,start:X,size:lt,end:dt,key:K,lane:gt}}return this.measurementsCache=L,L},{key:!1,debug:()=>this.options.debug}),this.calculateRange=zo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,i,a)=>this.range=t.length>0&&i>0?bA({measurements:t,outerSize:i,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=zo(()=>{let t=null,i=null,a=this.calculateRange();return a&&(t=a.startIndex,i=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,i]},(t,i,a,d,m)=>d===null||m===null?[]:t({startIndex:d,endIndex:m,overscan:i,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let i=this.options.indexAttribute,a=t.getAttribute(i);return a?parseInt(a,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(t,i)=>{let a=this.indexFromElement(t),d=this.measurementsCache[a];if(!d)return;let m=d.key,b=this.elementsCache.get(m);b!==t&&(b&&this.observer.unobserve(b),this.observer.observe(t),this.elementsCache.set(m,t)),t.isConnected&&this.resizeItem(a,this.options.measureElement(t,i,this))},this.resizeItem=(t,i)=>{var b;let a=this.measurementsCache[t];if(!a)return;let d=(b=this.itemSizeCache.get(a.key))!=null?b:a.size,m=i-d;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,m,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,i)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((i,a)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(a))});return}this._measureElement(t,void 0)},this.getVirtualItems=zo(()=>[this.getIndexes(),this.getMeasurements()],(t,i)=>{let a=[];for(let d=0,m=t.length;d<m;d++){let b=t[d],C=i[b];a.push(C)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let i=this.getMeasurements();if(i.length!==0)return Ed(i[$g(0,i.length-1,a=>Ed(i[a]).start,t)])},this.getOffsetForAlignment=(t,i)=>{let a=this.getSize(),d=this.getScrollOffset();i==="auto"&&t>=d+a&&(i="end"),i==="end"&&(t-=a);let m=this.options.horizontal?"scrollWidth":"scrollHeight",C=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-a;return Math.max(Math.min(C,t),0)},this.getOffsetForIndex=(t,i="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let a=this.measurementsCache[t];if(!a)return;let d=this.getSize(),m=this.getScrollOffset();if(i==="auto")if(a.end>=m+d-this.options.scrollPaddingEnd)i="end";else if(a.start<=m+this.options.scrollPaddingStart)i="start";else return[m,i];let b=a.start-this.options.scrollPaddingStart+(a.size-d)/2;switch(i){case"center":return[this.getOffsetForAlignment(b,i),i];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,i),i];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,i),i]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:i="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,i),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:i="auto",behavior:a}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let d=this.getOffsetForIndex(t,i);if(!d)return;let[m,b]=d;this._scrollToOffset(m,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){let[L]=Ed(this.getOffsetForIndex(t,b));Lg(L,this.getScrollOffset())||this.scrollToIndex(t,{align:b,behavior:a})}else this.scrollToIndex(t,{align:b,behavior:a})}))},this.scrollBy=(t,{behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var d;var t;let i=this.getMeasurements(),a;return i.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(d=(t=i[i.length-1])==null?void 0:t.end)!=null?d:0:Math.max(...i.slice(-this.options.lanes).map(m=>m.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:i,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},$g=(n,o,t,i)=>{for(;n<=o;){let a=(n+o)/2|0,d=t(a);if(d<i)n=a+1;else if(d>i)o=a-1;else return a}return n>0?n-1:0};function bA({measurements:n,outerSize:o,scrollOffset:t}){let i=n.length-1,d=$g(0,i,b=>n[b].start,t),m=d;for(;m<i&&n[m].end<t+o;)m++;return{startIndex:d,endIndex:m}}var Qh=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let i={...t,onChange:(a,d)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=t.onChange)==null||m.call(t,a,d)}};this.virtualizer=new Td(i)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},xd=class extends Qh{constructor(o,t){super(o,{observeElementRect:Og,observeElementOffset:Pg,scrollToFn:Dg,...t})}};var yA=[B`
|
|
6226
|
+
color: hsl(${Math.max(0,Math.min(120-120*dt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(L=t==null?void 0:t.onChange)==null||L.call(t,a),a}}function Ed(n,o){if(n===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return n}var Lg=(n,o)=>Math.abs(n-o)<1,Rg=(n,o,t)=>{let i;return function(...a){n.clearTimeout(i),i=n.setTimeout(()=>o.apply(this,a),t)}};var uA=n=>n,fA=n=>{let o=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),i=[];for(let a=o;a<=t;a++)i.push(a);return i},Og=(n,o)=>{let t=n.scrollElement;if(!t)return;let i=n.targetWindow;if(!i)return;let a=m=>{let{width:b,height:C}=m;o({width:Math.round(b),height:Math.round(C)})};if(a(t.getBoundingClientRect()),!i.ResizeObserver)return()=>{};let d=new i.ResizeObserver(m=>{let b=m[0];if(b!=null&&b.borderBoxSize){let C=b.borderBoxSize[0];if(C){a({width:C.inlineSize,height:C.blockSize});return}}a(t.getBoundingClientRect())});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},Mg={passive:!0};var vA=typeof window>"u"?!0:"onscrollend"in window,Pg=(n,o)=>{let t=n.scrollElement;if(!t)return;let i=n.targetWindow;if(!i)return;let a=0,d=n.options.useScrollendEvent&&vA?()=>{}:Rg(i,()=>{o(a,!1)},n.options.isScrollingResetDelay),m=L=>()=>{let{horizontal:W,isRtl:K}=n.options;a=W?t.scrollLeft*(K&&-1||1):t.scrollTop,d(),o(a,L)},b=m(!0),C=m(!1);return C(),t.addEventListener("scroll",b,Mg),t.addEventListener("scrollend",C,Mg),()=>{t.removeEventListener("scroll",b),t.removeEventListener("scrollend",C)}};var gA=(n,o,t)=>{if(o!=null&&o.borderBoxSize){let i=o.borderBoxSize[0];if(i)return Math.round(i[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(n.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var Dg=(n,{adjustments:o=0,behavior:t},i)=>{var a,d;let m=n+o;(d=(a=i.scrollElement)==null?void 0:a.scrollTo)==null||d.call(a,{[i.options.horizontal?"left":"top"]:m,behavior:t})},Td=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 t=null,i=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(a=>{a.forEach(d=>{this._measureElement(d.target,d)})}));return{disconnect:()=>{var a;(a=i())==null||a.disconnect(),t=null},observe:a=>{var d;return(d=i())==null?void 0:d.observe(a,{box:"border-box"})},unobserve:a=>{var d;return(d=i())==null?void 0:d.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([i,a])=>{typeof a>"u"&&delete t[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:uA,rangeExtractor:fA,onChange:()=>{},measureElement:gA,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var i,a;(a=(i=this.options).onChange)==null||a.call(i,this,t)},this.maybeNotify=zo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;var t;let i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(a=(t=this.scrollElement)==null?void 0:t.window)!=null?a:null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,m)=>{this.scrollAdjustments=0,this.scrollDirection=m?this.getScrollOffset()<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=m,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,i)=>{let a=new Map,d=new Map;for(let m=i-1;m>=0;m--){let b=t[m];if(a.has(b.lane))continue;let C=d.get(b.lane);if(C==null||b.end>C.end?d.set(b.lane,b):b.end<C.end&&a.set(b.lane,!0),a.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((m,b)=>m.end===b.end?m.index-b.index:m.end-b.end)[0]:void 0},this.getMeasurementOptions=zo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,i,a,d,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:i,scrollMargin:a,getItemKey:d,enabled:m}),{key:!1}),this.getMeasurements=zo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:i,scrollMargin:a,getItemKey:d,enabled:m},b)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(W=>{this.itemSizeCache.set(W.key,W.size)}));let C=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let L=this.measurementsCache.slice(0,C);for(let W=C;W<t;W++){let K=d(W),rt=this.options.lanes===1?L[W-1]:this.getFurthestMeasurement(L,W),X=rt?rt.end+this.options.gap:i+a,et=b.get(K),lt=typeof et=="number"?et:this.options.estimateSize(W),dt=X+lt,gt=rt?rt.lane:W%this.options.lanes;L[W]={index:W,start:X,size:lt,end:dt,key:K,lane:gt}}return this.measurementsCache=L,L},{key:!1,debug:()=>this.options.debug}),this.calculateRange=zo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,i,a)=>this.range=t.length>0&&i>0?bA({measurements:t,outerSize:i,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=zo(()=>{let t=null,i=null,a=this.calculateRange();return a&&(t=a.startIndex,i=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,i]},(t,i,a,d,m)=>d===null||m===null?[]:t({startIndex:d,endIndex:m,overscan:i,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let i=this.options.indexAttribute,a=t.getAttribute(i);return a?parseInt(a,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(t,i)=>{let a=this.indexFromElement(t),d=this.measurementsCache[a];if(!d)return;let m=d.key,b=this.elementsCache.get(m);b!==t&&(b&&this.observer.unobserve(b),this.observer.observe(t),this.elementsCache.set(m,t)),t.isConnected&&this.resizeItem(a,this.options.measureElement(t,i,this))},this.resizeItem=(t,i)=>{var b;let a=this.measurementsCache[t];if(!a)return;let d=(b=this.itemSizeCache.get(a.key))!=null?b:a.size,m=i-d;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,m,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,i)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((i,a)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(a))});return}this._measureElement(t,void 0)},this.getVirtualItems=zo(()=>[this.getIndexes(),this.getMeasurements()],(t,i)=>{let a=[];for(let d=0,m=t.length;d<m;d++){let b=t[d],C=i[b];a.push(C)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let i=this.getMeasurements();if(i.length!==0)return Ed(i[$g(0,i.length-1,a=>Ed(i[a]).start,t)])},this.getOffsetForAlignment=(t,i)=>{let a=this.getSize(),d=this.getScrollOffset();i==="auto"&&t>=d+a&&(i="end"),i==="end"&&(t-=a);let m=this.options.horizontal?"scrollWidth":"scrollHeight",C=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-a;return Math.max(Math.min(C,t),0)},this.getOffsetForIndex=(t,i="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let a=this.measurementsCache[t];if(!a)return;let d=this.getSize(),m=this.getScrollOffset();if(i==="auto")if(a.end>=m+d-this.options.scrollPaddingEnd)i="end";else if(a.start<=m+this.options.scrollPaddingStart)i="start";else return[m,i];let b=a.start-this.options.scrollPaddingStart+(a.size-d)/2;switch(i){case"center":return[this.getOffsetForAlignment(b,i),i];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,i),i];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,i),i]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:i="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,i),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:i="auto",behavior:a}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let d=this.getOffsetForIndex(t,i);if(!d)return;let[m,b]=d;this._scrollToOffset(m,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){let[L]=Ed(this.getOffsetForIndex(t,b));Lg(L,this.getScrollOffset())||this.scrollToIndex(t,{align:b,behavior:a})}else this.scrollToIndex(t,{align:b,behavior:a})}))},this.scrollBy=(t,{behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var d;var t;let i=this.getMeasurements(),a;return i.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(d=(t=i[i.length-1])==null?void 0:t.end)!=null?d:0:Math.max(...i.slice(-this.options.lanes).map(m=>m.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:i,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},$g=(n,o,t,i)=>{for(;n<=o;){let a=(n+o)/2|0,d=t(a);if(d<i)n=a+1;else if(d>i)o=a-1;else return a}return n>0?n-1:0};function bA({measurements:n,outerSize:o,scrollOffset:t}){let i=n.length-1,d=$g(0,i,b=>n[b].start,t),m=d;for(;m<i&&n[m].end<t+o;)m++;return{startIndex:d,endIndex:m}}var Qh=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let i={...t,onChange:(a,d)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=t.onChange)==null||m.call(t,a,d)}};this.virtualizer=new Td(i)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},xd=class extends Qh{constructor(o,t){super(o,{observeElementRect:Og,observeElementOffset:Pg,scrollToFn:Dg,...t})}};var yA=[B`
|
|
6227
6227
|
:host::part(scroll) {
|
|
6228
6228
|
height: 100%;
|
|
6229
6229
|
width: 100%;
|
|
@@ -6233,7 +6233,7 @@
|
|
|
6233
6233
|
position: relative;
|
|
6234
6234
|
width: 100%;
|
|
6235
6235
|
}
|
|
6236
|
-
`],Fg=yA;var Vg=z.constructTagName("virtualizedlist")
|
|
6236
|
+
`],Fg=yA;var Vg=z.constructTagName("virtualizedlist"),V6=z.constructTagName("virtualizedwrapper"),zg={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Bs=class extends q{constructor(){super();this.virtualizerProps=zg.VIRTUALIZER_PROPS;this.scrollElementRef=ol();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(t){super.update(t),t.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(t){super.firstUpdated(t),this.setVirtualizerOptions()}setVirtualizerOptions(){var t;(t=this.virtualizer)==null||t.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var t;this.virtualizerController=new xd(this,{count:this.virtualizerProps.count,estimateSize:(t=this.virtualizerProps)==null?void 0:t.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(t){var b,C;this.virtualizer=t.getVirtualizer();let{getTotalSize:i,getVirtualItems:a,measureElement:d}=this.virtualizer,m=a();if(m!==this.virtualItems){this.virtualItems=m;let L=a(),W={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(C=(b=L[0])==null?void 0:b.start)!=null?C:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:L,measureElement:d,listStyle:W})}return _`<div part="container" style="height: ${i()}px;">
|
|
6237
6237
|
<slot></slot>
|
|
6238
6238
|
</div>`}handleScroll(t){let i=t.constructor;this.dispatchEvent(new i(t.type,t))}render(){return _`<div ${sl(this.scrollElementRef)} part="scroll" @scroll=${this.handleScroll}>
|
|
6239
6239
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):_``}
|
|
@@ -6367,7 +6367,7 @@
|
|
|
6367
6367
|
autocomplete="${_s.OFF}"
|
|
6368
6368
|
part="input-text"
|
|
6369
6369
|
placeholder="${it(this.placeholder)}"
|
|
6370
|
-
role="${
|
|
6370
|
+
role="${tt.COMBOBOX}"
|
|
6371
6371
|
?readonly="${this.readonly}"
|
|
6372
6372
|
?required="${this.required}"
|
|
6373
6373
|
@input=${this.handleInputChange}
|
|
@@ -6377,7 +6377,7 @@
|
|
|
6377
6377
|
aria-describedby="${it(this.helpText?Mt.HELPER_TEXT_ID:"")}"
|
|
6378
6378
|
aria-disabled="${this.disabled?"true":"false"}"
|
|
6379
6379
|
aria-expanded="${this.isOpen?"true":"false"}"
|
|
6380
|
-
aria-haspopup="${
|
|
6380
|
+
aria-haspopup="${tt.LISTBOX}"
|
|
6381
6381
|
aria-invalid="${this.helpTextType===Ft.ERROR?"true":"false"}"
|
|
6382
6382
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
6383
6383
|
aria-labelledby="${this.label?Mt.HEADING_ID:""}"
|
|
@@ -6436,7 +6436,7 @@
|
|
|
6436
6436
|
</mdc-popover>
|
|
6437
6437
|
</div>
|
|
6438
6438
|
${this.renderHelperText()}
|
|
6439
|
-
`}};pe.styles=[...Sr.styles,...se.styles,...Hg],p([u({type:String})],pe.prototype,"placeholder",2),p([u({type:String,reflect:!0})],pe.prototype,"placement",2),p([u({type:String,attribute:"no-result-text",reflect:!0})],pe.prototype,"noResultText",2),p([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],pe.prototype,"invalidCustomValueText",2),p([u({type:String,reflect:!0})],pe.prototype,"boundary",2),p([u({type:String,reflect:!0})],pe.prototype,"strategy",2),p([u({type:Number,reflect:!0,attribute:"popover-z-index"})],pe.prototype,"popoverZIndex",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],pe.prototype,"backdropAppendTo",2),p([ir(`[role="${
|
|
6439
|
+
`}};pe.styles=[...Sr.styles,...se.styles,...Hg],p([u({type:String})],pe.prototype,"placeholder",2),p([u({type:String,reflect:!0})],pe.prototype,"placement",2),p([u({type:String,attribute:"no-result-text",reflect:!0})],pe.prototype,"noResultText",2),p([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],pe.prototype,"invalidCustomValueText",2),p([u({type:String,reflect:!0})],pe.prototype,"boundary",2),p([u({type:String,reflect:!0})],pe.prototype,"strategy",2),p([u({type:Number,reflect:!0,attribute:"popover-z-index"})],pe.prototype,"popoverZIndex",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],pe.prototype,"backdropAppendTo",2),p([ir(`[role="${tt.COMBOBOX}"]`)],pe.prototype,"visualCombobox",2),p([ir('[part="combobox__button"]')],pe.prototype,"dropDownButton",2),p([Pt({selector:nd})],pe.prototype,"slottedListboxes",2),p([vt()],pe.prototype,"isOpen",2),p([vt()],pe.prototype,"filteredValue",2);var rp=pe;rp.register(Bg);var xA=rp;var Gg=(n,o,t)=>{let i=new Map;for(let a=o;a<=t;a++)i.set(n[a],a);return i},Yg=oi(class extends Pr{constructor(n){if(super(n),n.type!==Ye.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let i;t===void 0?t=o:o!==void 0&&(i=o);let a=[],d=[],m=0;for(let b of n)a[m]=i?i(b,m):m,d[m]=t(b,m),m++;return{values:d,keys:a}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,i]){var lt;let a=Km(n),{values:d,keys:m}=this.dt(o,t,i);if(!Array.isArray(a))return this.ut=m,d;let b=(lt=this.ut)!=null?lt:this.ut=[],C=[],L,W,K=0,rt=a.length-1,X=0,et=d.length-1;for(;K<=rt&&X<=et;)if(a[K]===null)K++;else if(a[rt]===null)rt--;else if(b[K]===m[X])C[X]=Oi(a[K],d[X]),K++,X++;else if(b[rt]===m[et])C[et]=Oi(a[rt],d[et]),rt--,et--;else if(b[K]===m[et])C[et]=Oi(a[K],d[et]),ns(n,C[et+1],a[K]),K++,et--;else if(b[rt]===m[X])C[X]=Oi(a[rt],d[X]),ns(n,a[K],a[rt]),rt--,X++;else if(L===void 0&&(L=Gg(m,X,et),W=Gg(b,K,rt)),L.has(b[K]))if(L.has(b[rt])){let dt=W.get(m[X]),gt=dt!==void 0?a[dt]:null;if(gt===null){let At=ns(n,a[K]);Oi(At,d[X]),C[X]=At}else C[X]=Oi(gt,d[X]),ns(n,a[K],gt),a[dt]=null;X++}else el(a[rt]),rt--;else el(a[K]),K++;for(;X<=et;){let dt=ns(n,C[et+1]);Oi(dt,d[X]),C[X++]=dt}for(;K<=rt;){let dt=a[K++];dt!==null&&el(dt)}return this.ut=m,tl(n,C),ge}});var Wg=z.constructTagName("slider"),AA={START:"start",END:"end",UNDEFINED:void 0},Zi={MIN:0,MAX:100,STEP:1,STATE:AA.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var SA=B`
|
|
6440
6440
|
:host {
|
|
6441
6441
|
width: 100%;
|
|
6442
6442
|
--mdc-slider-tooltip-left: 0;
|
|
@@ -6675,7 +6675,7 @@
|
|
|
6675
6675
|
${i} 100%
|
|
6676
6676
|
)`}else{if(!this.inputElements[0])return;let a=Number(this.inputElements[0].value),d=Number(this.inputElements[0].max)||1,m=Math.max(0,Math.min(100,(a-this.min)/(d-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${m}%, ${i} ${m}%)`}}onInput(t){let i=t.target;this.value=Number(i.value)}onChange(t){let i=t.target;this.value=Number(i.value),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}}))}onChangeStart(t){let i=t.target;this.valueStart=Number(i.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueStart:this.valueStart,valueEnd:this.valueEnd}}))}onChangeEnd(t){let i=t.target;this.valueEnd=Number(i.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueEnd:this.valueEnd,valueStart:this.valueStart}}))}getTickStyles(t){if(this.max===this.min)return"";let i=(t-this.min)/(this.max-this.min),a=[];if(this.inputElements[0]){let m=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);a.push(m)}if(this.range&&this.inputElements[1]){let m=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);a.push(m)}return a.includes(i)?"display:none;":`--mdc-slider-tick-left:${i};`}renderTicks(){let t=[];if(this.step&&this.step>1)for(let i=this.min;i<=this.max;i+=this.step)t.push(i);return this.step>1?_` <div part="slider-ticks">
|
|
6677
6677
|
${Yg(t,i=>i,i=>_`<span part="slider-tick" style=${this.getTickStyles(i)}></span>`)}
|
|
6678
|
-
</div>`:j}render(){var t,i,a,d,m,b,C,L,W,K,rt,X,
|
|
6678
|
+
</div>`:j}render(){var t,i,a,d,m,b,C,L,W,K,rt,X,et,lt,dt,gt,At;return _`
|
|
6679
6679
|
${this.label?_`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
|
|
6680
6680
|
<div part="slider-track">
|
|
6681
6681
|
${this.iconTemplate(this.leadingIcon,"leading-icon")}
|
|
@@ -6744,7 +6744,7 @@
|
|
|
6744
6744
|
aria-valuemin="${this.min}"
|
|
6745
6745
|
aria-valuemax="${this.max}"
|
|
6746
6746
|
aria-valuenow="${(X=this.value)!=null?X:this.min}"
|
|
6747
|
-
aria-label="${(lt=(
|
|
6747
|
+
aria-label="${(lt=(et=this.dataAriaLabel)!=null?et:this.label)!=null?lt:""}"
|
|
6748
6748
|
aria-valuetext="${(At=(dt=this.dataAriaValuetext)!=null?dt:this.valueLabel)!=null?At:String((gt=this.value)!=null?gt:"")}"
|
|
6749
6749
|
tabindex="${this.disabled?-1:0}"
|
|
6750
6750
|
@input=${this.onInput}
|
|
@@ -6780,7 +6780,7 @@
|
|
|
6780
6780
|
::slotted(mdc-option) {
|
|
6781
6781
|
width: 100%;
|
|
6782
6782
|
}
|
|
6783
|
-
`,qg=[IA];var Bo=class extends ws(Ui(q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Br(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=
|
|
6783
|
+
`,qg=[IA];var Bo=class extends ws(Ui(q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Br(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTBOX}handleModifiedEvent(t){let i=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(i);break;case"disabled":this.itemsStore.delete(i);break;case"selected":this.setSelectedOption(i,!1,!1);break;case"unselected":this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${pr}:not([disabled])`)}handleClick(t){let i=t.target;this.isValidItem(i)&&this.setSelectedOption(i)}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}updated(t){if(t.has("value")){let i=this.itemsStore.items.find(a=>a.value===this.value);i?this.setSelectedOption(i,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,i=!0,a=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(a&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,i&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(i=>i.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.selectedOption&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return _`<slot part="container"></slot>`}};Bo.styles=[...eh.styles,...qg],p([u({type:String,reflect:!0})],Bo.prototype,"name",2),p([u({type:String,reflect:!0})],Bo.prototype,"value",2),p([vt()],Bo.prototype,"selectedOption",2);var op=Bo;var Kg=z.constructTagName("listbox");op.register(Kg);var CA=op;var Xg=z.constructTagName("banner"),Us={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},hn={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Ad={VARIANT:Us.CUSTOM,PREFIX_ICON_SIZE:1.5};var kA=B`
|
|
6784
6784
|
:host {
|
|
6785
6785
|
--mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
6786
6786
|
--mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
|