@momentum-design/components 0.131.4 → 0.131.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";(()=>{var oE=Object.create;var dc=Object.defineProperty;var Bm=Object.getOwnPropertyDescriptor;var sE=Object.getOwnPropertyNames;var nE=Object.getPrototypeOf,aE=Object.prototype.hasOwnProperty;var lE=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var dE=(a,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of sE(o))!aE.call(a,s)&&s!==t&&dc(a,s,{get:()=>o[s],enumerable:!(r=Bm(o,s))||r.enumerable});return a};var cE=(a,o,t)=>(t=a!=null?oE(nE(a)):{},dE(o||!a||!a.__esModule?dc(t,"default",{value:a,enumerable:!0}):t,a));var m=(a,o,t,r)=>{for(var s=r>1?void 0:r?Bm(o,t):o,l=a.length-1,c;l>=0;l--)(c=a[l])&&(s=(r?c(o,t,s):c(s))||s);return r&&s&&dc(o,t,s),s};var Zu=lE((Gn,Il)=>{typeof navigator<"u"&&function(a,o){typeof Gn=="object"&&typeof Il<"u"?Il.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(Gn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},l=function(){return t},c=function(i){o=i},f=function(){return o};function y(e){return document.createElement(e)}function A(e,i){var n,d=e.length,p;for(n=0;n<d;n+=1){p=e[n].prototype;for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(i.prototype[h]=p[h])}}function F(e,i){return Object.getOwnPropertyDescriptor(e,i)}function W(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,p=this.audios.length;for(d=0;d<p;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Z=function(){function e(n,d){var p=0,h=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(p=0;p<d;p+=1)h.push(g);return h}function i(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):e(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i: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(n){return typeof n}:lt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lt(e)}var dt=!0,gt=null,It=null,wt="",Zt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Gt=!1,Qt=Math.pow,se=Math.sqrt,be=Math.floor,Sr=Math.max,He=Math.min,ar={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,n=e.length;for(i=0;i<n;i+=1)ar[e[i]]=Math[e[i]]})();function Ir(){return{}}ar.random=Math.random,ar.abs=function(e){var i=lt(e);if(i==="object"&&e.length){var n=et(e.length),d,p=e.length;for(d=0;d<p;d+=1)n[d]=Math.abs(e[d]);return n}return Math.abs(e)};var _r=150,Nt=Math.PI/180,Ie=.5519;function lr(e){Gt=!!e}function dr(e){return Gt?Math.round(e):e}function cr(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 hr(e,i,n,d){this.type=e,this.currentTime=i,this.totalTime=n,this.direction=d<0?-1:1}function Ma(e,i){this.type=e,this.direction=i<0?-1:1}function jp(e,i,n,d){this.type=e,this.currentLoop=n,this.totalLoops=i,this.direction=d<0?-1:1}function qp(e,i,n){this.type=e,this.firstFrame=i,this.totalFrames=n}function Xp(e,i){this.type=e,this.target=i}function oy(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function sy(e){this.type="configError",this.nativeError=e}function iS(e,i){this.type=e,this.nativeError=i}var Ue=function(){var e=0;return function(){return e+=1,wt+"__lottie_element_"+e}}();function Xd(e,i,n){var d,p,h,g,S,b,k,M;switch(g=Math.floor(e*6),S=e*6-g,b=n*(1-i),k=n*(1-S*i),M=n*(1-(1-S)*i),g%6){case 0:d=n,p=M,h=b;break;case 1:d=k,p=n,h=b;break;case 2:d=b,p=n,h=M;break;case 3:d=b,p=k,h=n;break;case 4:d=M,p=b,h=n;break;case 5:d=n,p=b,h=k;break;default:break}return[d,p,h]}function Zd(e,i,n){var d=Math.max(e,i,n),p=Math.min(e,i,n),h=d-p,g,S=d===0?0:h/d,b=d/255;switch(d){case p:g=0;break;case e:g=i-n+h*(i<n?6:0),g/=6*h;break;case i:g=n-e+h*2,g/=6*h;break;case n:g=e-i+h*4,g/=6*h;break;default:break}return[g,S,b]}function Zp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[1]+=i,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Xd(n[0],n[1],n[2])}function Qp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[2]+=i,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Xd(n[0],n[1],n[2])}function Jp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[0]+=i/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Xd(n[0],n[1],n[2])}var oS=function(){var e=[],i,n;for(i=0;i<256;i+=1)n=i.toString(16),e[i]=n.length===1?"0"+n:n;return function(d,p,h){return d<0&&(d=0),p<0&&(p=0),h<0&&(h=0),"#"+e[d]+e[p]+e[h]}}(),ny=function(i){dt=!!i},ay=function(){return dt},ly=function(i){gt=i},Oa=function(){return gt},sS=function(i){It=i},tm=function(){return It},Ra=function(i){_r=i},dn=function(){return _r},dy=function(i){wt=i},nS=function(){return wt};function Tt(e){return document.createElementNS(a,e)}function Pa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pa=function(n){return typeof n}:Pa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pa(e)}var cn=function(){var e=1,i=[],n,d,p={onmessage:function(){},postMessage:function(O){n({data:O})}},h={postMessage:function(O){p.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(O);return new Worker(D)}return n=x,p}function S(){d||(d=g(function(O){function D(){function B(rt,C){var P,v,E=rt.length,K,V,at,vt;for(v=0;v<E;v+=1)if(P=rt[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for(V=Et.length,K=0;K<V;K+=1)if(Et[K].pt.k.i)N(Et[K].pt.k);else for(vt=Et[K].pt.k.length,at=0;at<vt;at+=1)Et[K].pt.k[at].s&&N(Et[K].pt.k[at].s[0]),Et[K].pt.k[at].e&&N(Et[K].pt.k[at].e[0])}P.ty===0?(P.layers=T(P.refId,C),B(P.layers,C)):P.ty===4?I(P.shapes):P.ty===5&&xt(P)}}function L(rt,C){if(rt){var P=0,v=rt.length;for(P=0;P<v;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,C),B(rt[P].data.layers,C))}}function w(rt,C){for(var P=0,v=C.length;P<v;){if(C[P].id===rt)return C[P];P+=1}return null}function T(rt,C){var P=w(rt,C);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function I(rt){var C,P=rt.length,v,E;for(C=P-1;C>=0;C-=1)if(rt[C].ty==="sh")if(rt[C].ks.k.i)N(rt[C].ks.k);else for(E=rt[C].ks.k.length,v=0;v<E;v+=1)rt[C].ks.k[v].s&&N(rt[C].ks.k[v].s[0]),rt[C].ks.k[v].e&&N(rt[C].ks.k[v].e[0]);else rt[C].ty==="gr"&&I(rt[C].it)}function N(rt){var C,P=rt.i.length;for(C=0;C<P;C+=1)rt.i[C][0]+=rt.v[C][0],rt.i[C][1]+=rt.v[C][1],rt.o[C][0]+=rt.v[C][0],rt.o[C][1]+=rt.v[C][1]}function $(rt,C){var P=C?C.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var U=function(){var rt=[4,4,14];function C(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),Y=function(){var rt=[4,7,99];return function(C){if(C.chars&&!$(rt,C.v)){var P,v=C.chars.length;for(P=0;P<v;P+=1){var E=C.chars[P];E.data&&E.data.shapes&&(I(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},C.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function C(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),yt=function(){var rt=[4,1,9];function C(v){var E,K=v.length,V,at;for(E=0;E<K;E+=1)if(v[E].ty==="gr")C(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(at=v[E].c.k.length,V=0;V<at;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===4&&C(v[E].shapes)}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function C(v){var E,K=v.length,V,at;for(E=K-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(at=v[E].ks.k.length,V=0;V<at;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&C(v[E].it)}function P(v){var E,K,V=v.length,at,vt,Et,Pt;for(K=0;K<V;K+=1){if(E=v[K],E.hasMask){var Dt=E.masksProperties;for(vt=Dt.length,at=0;at<vt;at+=1)if(Dt[at].pt.k.i)Dt[at].pt.k.c=Dt[at].cl;else for(Pt=Dt[at].pt.k.length,Et=0;Et<Pt;Et+=1)Dt[at].pt.k[Et].s&&(Dt[at].pt.k[Et].s[0].c=Dt[at].cl),Dt[at].pt.k[Et].e&&(Dt[at].pt.k[Et].e[0].c=Dt[at].cl)}E.ty===4&&C(E.shapes)}}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}();function st(rt){rt.__complete||(yt(rt),U(rt),Y(rt),it(rt),ut(rt),B(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function xt(rt){rt.t.a.length===0&&"m"in rt.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=Y,ct.checkPathProperties=it,ct.checkShapes=ut,ct.completeLayers=B,ct}if(h.dataManager||(h.dataManager=D()),h.assetLoader||(h.assetLoader=function(){function B(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&Pa(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,I,N){var $,U=new XMLHttpRequest;try{U.responseType="json"}catch{}U.onreadystatechange=function(){if(U.readyState===4)if(U.status===200)$=B(U),I($);else try{$=B(U),I($)}catch(Y){N&&N(Y)}};try{U.open(["G","E","T"].join(""),w,!0)}catch{U.open(["G","E","T"].join(""),T+"/"+w,!0)}U.send()}return{load:L}}()),O.data.type==="loadAnimation")h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.dataManager.completeData(B),h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;h.dataManager.completeData(R),h.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,D=O.id,R=i[D];i[D]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:O},D}function k(x,O,D){S();var R=b(O,D);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,D){S();var R=b(O,D);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,D){S();var R=b(O,D);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:M,completeAnimation:G}}(),cy=function(){var e=function(){var L=y("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,w,T){var I="";if(L.e)I=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),I=w+N}else I=T,I+=L.u?L.u:"",I+=L.p;return I}function p(L){var w=0,T=setInterval((function(){var I=L.getBBox();(I.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function h(L){var w=d(L,this.assetsPath,this.path),T=Tt("image");Zt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){I.img=e,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var I={img:T,assetData:L};return I}function g(L){var w=d(L,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){I.img=e,this._imageLoaded()}).bind(this),!1),T.src=w;var I={img:T,assetData:L};return I}function S(L){var w={assetData:L},T=d(L,this.assetsPath,this.path);return cn.loadData(T,(function(I){w.img=I,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function b(L,w){this.imagesLoadedCb=w;var T,I=L.length;for(T=0;T<I;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function G(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function B(){this._imageLoaded=i.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=p.bind(this),this.createFootageData=S.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return B.prototype={loadAssets:b,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:h,imageLoaded:i,footageLoaded:n,setCacheType:R},B}();function em(){}em.prototype={triggerEvent:function(i,n){if(this._cbs[i])for(var d=this._cbs[i],p=0;p<d.length;p+=1)d[p](n)},addEventListener:function(i,n){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(n),(function(){this.removeEventListener(i,n)}).bind(this)},removeEventListener:function(i,n){if(!n)this._cbs[i]=null;else if(this._cbs[i]){for(var d=0,p=this._cbs[i].length;d<p;)this._cbs[i][d]===n&&(this._cbs[i].splice(d,1),d-=1,p-=1),d+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var hy=function(){function e(i){for(var n=i.split(`\r
|
|
2
|
-
`),d={},p,h=0,g=0;g<n.length;g+=1)p=n[g].split(":"),p.length===2&&(d[p[0]]=p[1].trim(),h+=1);if(h===0)throw new Error;return d}return function(i){for(var n=[],d=0;d<i.length;d+=1){var p=i[d],h={time:p.tm,duration:p.dr};try{h.payload=JSON.parse(i[d].cm)}catch{try{h.payload=e(i[d].cm)}catch{h.payload={name:i[d].cm}}}n.push(h)}return n}}(),py=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var d=0,p=this.compositions.length;d<p;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),hn={},my=function(i,n){hn[i]=n};function uy(e){return hn[e]}function fy(){if(hn.canvas)return"canvas";for(var e in hn)if(hn[e])return e;return""}function pn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(n){return typeof n}:pn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pn(e)}var ft=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Ue(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=ay(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=py(),this.imagePreloader=new cy,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new hr("drawnFrame",0,0,0),this.expressionsPlugin=Oa()};A([em],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=uy(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),cn.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){cn.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&pn(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},d=e.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:fy()||"canvas";var p=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";p==="false"?n.loop=!1:p==="true"?n.loop=!0:p!==""&&(n.loop=parseInt(p,10));var h=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=h!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,d=i.length,p=e.layers,h,g=p.length;for(h=0;h<g;h+=1)for(n=0;n<d;){if(i[n].id===p[h].id){i[n]=p[h];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(d=e.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,cn.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Oa();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,cn.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=hy(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=Oa();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,d=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,d)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var d=Number(e);if(isNaN(d)){var p=this.getMarkerData(e);p&&this.goToAndStop(p.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var d=Number(e);if(isNaN(d)){var p=this.getMarkerData(e);p&&(p.duration?this.playSegments([p.time,p.time+p.duration],!0):this.goToAndStop(p.time,!0))}else this.goToAndStop(d,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),pn(e[0])==="object"){var n,d=e.length;for(n=0;n<d;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var d=this.renderer.getElementByPath(e);d.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new hr(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 jp(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Ma(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new qp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Xp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new hr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new jp(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Ma(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new qp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Xp(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new oy(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new sy(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ne=function(){var e={},i=[],n=0,d=0,p=0,h=!0,g=!1;function S(C){for(var P=0,v=C.target;P<d;)i[P].animation===v&&(i.splice(P,1),P-=1,d-=1,v.isPaused||G()),P+=1}function b(C,P){if(!C)return null;for(var v=0;v<d;){if(i[v].elem===C&&i[v].elem!==null)return i[v].animation;v+=1}var E=new ft;return x(E,C),E.setData(C,P),E}function k(){var C,P=i.length,v=[];for(C=0;C<P;C+=1)v.push(i[C].animation);return v}function M(){p+=1,yt()}function G(){p-=1}function x(C,P){C.addEventListener("destroy",S),C.addEventListener("_active",M),C.addEventListener("_idle",G),i.push({elem:P,animation:C}),d+=1}function O(C){var P=new ft;return x(P,null),P.setParams(C),P}function D(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setSpeed(C,P)}function R(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setDirection(C,P)}function B(C){var P;for(P=0;P<d;P+=1)i[P].animation.play(C)}function L(C){var P=C-n,v;for(v=0;v<d;v+=1)i[v].animation.advanceTime(P);n=C,p&&!g?window.requestAnimationFrame(L):h=!0}function w(C){n=C,window.requestAnimationFrame(L)}function T(C){var P;for(P=0;P<d;P+=1)i[P].animation.pause(C)}function I(C,P,v){var E;for(E=0;E<d;E+=1)i[E].animation.goToAndStop(C,P,v)}function N(C){var P;for(P=0;P<d;P+=1)i[P].animation.stop(C)}function $(C){var P;for(P=0;P<d;P+=1)i[P].animation.togglePause(C)}function U(C){var P;for(P=d-1;P>=0;P-=1)i[P].animation.destroy(C)}function Y(C,P,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,V=E.length;for(K=0;K<V;K+=1)v&&E[K].setAttribute("data-bm-type",v),b(E[K],C);if(P&&V===0){v||(v="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=y("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),at.appendChild(vt),b(vt,C)}}function it(){var C;for(C=0;C<d;C+=1)i[C].animation.resize()}function yt(){!g&&p&&h&&(window.requestAnimationFrame(w),h=!1)}function ut(){g=!0}function st(){g=!1,yt()}function xt(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setVolume(C,P)}function ct(C){var P;for(P=0;P<d;P+=1)i[P].animation.mute(C)}function rt(C){var P;for(P=0;P<d;P+=1)i[P].animation.unmute(C)}return e.registerAnimation=b,e.loadAnimation=O,e.setSpeed=D,e.setDirection=R,e.play=B,e.pause=T,e.stop=N,e.togglePause=$,e.searchAnimations=Y,e.resize=it,e.goToAndStop=I,e.destroy=U,e.freeze=ut,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=rt,e.getRegisteredAnimations=k,e}(),mn=function(){var e={};e.getBezierEasing=n;var i={};function n(w,T,I,N,$){var U=$||("bez_"+w+"_"+T+"_"+I+"_"+N).replace(/\./g,"p");if(i[U])return i[U];var Y=new L([w,T,I,N]);return i[U]=Y,Y}var d=4,p=.001,h=1e-7,g=10,S=11,b=1/(S-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function G(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,I){return((M(T,I)*w+G(T,I))*w+x(T))*w}function D(w,T,I){return 3*M(T,I)*w*w+2*G(T,I)*w+x(T)}function R(w,T,I,N,$){var U,Y,it=0;do Y=T+(I-T)/2,U=O(Y,N,$)-w,U>0?I=Y:T=Y;while(Math.abs(U)>h&&++it<g);return Y}function B(w,T,I,N){for(var $=0;$<d;++$){var U=D(T,I,N);if(U===0)return T;var Y=O(T,I,N)-w;T-=Y/U}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(S):new Array(S),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var I=this._p[0],N=this._p[1],$=this._p[2],U=this._p[3];return this._precomputed||this._precompute(),I===N&&$===U?T:T===0?0:T===1?1:O(this._getTForX(T),N,U)},_precompute:function(){var T=this._p[0],I=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==I||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],I=this._p[2],N=0;N<S;++N)this._mSampleValues[N]=O(N*b,T,I)},_getTForX:function(T){for(var I=this._p[0],N=this._p[2],$=this._mSampleValues,U=0,Y=1,it=S-1;Y!==it&&$[Y]<=T;++Y)U+=b;--Y;var yt=(T-$[Y])/($[Y+1]-$[Y]),ut=U+yt*b,st=D(ut,I,N);return st>=p?B(T,ut,I,N):st===0?ut:R(T,U,U+b,I,N)}},e}(),rm=function(){function e(i){return i.concat(et(i.length))}return{double:e}}(),Da=function(){return function(e,i,n){var d=0,p=e,h=et(p),g={newElement:S,release:b};function S(){var k;return d?(d-=1,k=h[d]):k=i(),k}function b(k){d===p&&(h=rm.double(h),p*=2),n&&n(k),h[d]=k,d+=1}return g}}(),im=function(){function e(){return{addedLength:0,percents:Z("float32",dn()),lengths:Z("float32",dn())}}return Da(8,e)}(),om=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var d,p=n.lengths.length;for(d=0;d<p;d+=1)im.release(n.lengths[d]);n.lengths.length=0}return Da(8,e,i)}();function vy(){var e=Math;function i(x,O,D,R,B,L){var w=x*R+O*B+D*L-B*R-L*x-D*O;return w>-.001&&w<.001}function n(x,O,D,R,B,L,w,T,I){if(D===0&&L===0&&I===0)return i(x,O,R,B,w,T);var N=e.sqrt(e.pow(R-x,2)+e.pow(B-O,2)+e.pow(L-D,2)),$=e.sqrt(e.pow(w-x,2)+e.pow(T-O,2)+e.pow(I-D,2)),U=e.sqrt(e.pow(w-R,2)+e.pow(T-B,2)+e.pow(I-L,2)),Y;return N>$?N>U?Y=N-$-U:Y=U-$-N:U>$?Y=U-$-N:Y=$-N-U,Y>-1e-4&&Y<1e-4}var d=function(){return function(x,O,D,R){var B=dn(),L,w,T,I,N,$=0,U,Y=[],it=[],yt=im.newElement();for(T=D.length,L=0;L<B;L+=1){for(N=L/(B-1),U=0,w=0;w<T;w+=1)I=Qt(1-N,3)*x[w]+3*Qt(1-N,2)*N*D[w]+3*(1-N)*Qt(N,2)*R[w]+Qt(N,3)*O[w],Y[w]=I,it[w]!==null&&(U+=Qt(Y[w]-it[w],2)),it[w]=Y[w];U&&(U=se(U),$+=U),yt.percents[L]=N,yt.lengths[L]=$}return yt.addedLength=$,yt}}();function p(x){var O=om.newElement(),D=x.c,R=x.v,B=x.o,L=x.i,w,T=x._length,I=O.lengths,N=0;for(w=0;w<T-1;w+=1)I[w]=d(R[w],R[w+1],B[w],L[w+1]),N+=I[w].addedLength;return D&&T&&(I[w]=d(R[w],R[0],B[w],L[0]),N+=I[w].addedLength),O.totalLength=N,O}function h(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var S=function(){var x={};return function(O,D,R,B){var L=(O[0]+"_"+O[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+B[0]+"_"+B[1]).replace(/\./g,"p");if(!x[L]){var w=dn(),T,I,N,$,U,Y=0,it,yt,ut=null;O.length===2&&(O[0]!==D[0]||O[1]!==D[1])&&i(O[0],O[1],D[0],D[1],O[0]+R[0],O[1]+R[1])&&i(O[0],O[1],D[0],D[1],D[0]+B[0],D[1]+B[1])&&(w=2);var st=new h(w);for(N=R.length,T=0;T<w;T+=1){for(yt=et(N),U=T/(w-1),it=0,I=0;I<N;I+=1)$=Qt(1-U,3)*O[I]+3*Qt(1-U,2)*U*(O[I]+R[I])+3*(1-U)*Qt(U,2)*(D[I]+B[I])+Qt(U,3)*D[I],yt[I]=$,ut!==null&&(it+=Qt(yt[I]-ut[I],2));it=se(it),Y+=it,st.points[T]=new g(it,yt),ut=yt}st.segmentLength=Y,x[L]=st}return x[L]}}();function b(x,O){var D=O.percents,R=O.lengths,B=D.length,L=be((B-1)*x),w=x*O.addedLength,T=0;if(L===B-1||L===0||w===R[L])return D[L];for(var I=R[L]>w?-1:1,N=!0;N;)if(R[L]<=w&&R[L+1]>w?(T=(w-R[L])/(R[L+1]-R[L]),N=!1):L+=I,L<0||L>=B-1){if(L===B-1)return D[L];N=!1}return D[L]+(D[L+1]-D[L])*T}function k(x,O,D,R,B,L){var w=b(B,L),T=1-w,I=e.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*D[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=e.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*D[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[I,N]}var M=Z("float32",8);function G(x,O,D,R,B,L,w){B<0?B=0:B>1&&(B=1);var T=b(B,w);L=L>1?1:L;var I=b(L,w),N,$=x.length,U=1-T,Y=1-I,it=U*U*U,yt=T*U*U*3,ut=T*T*U*3,st=T*T*T,xt=U*U*Y,ct=T*U*Y+U*T*Y+U*U*I,rt=T*T*Y+U*T*I+T*U*I,C=T*T*I,P=U*Y*Y,v=T*Y*Y+U*I*Y+U*Y*I,E=T*I*Y+U*I*I+T*Y*I,K=T*I*I,V=Y*Y*Y,at=I*Y*Y+Y*I*Y+Y*Y*I,vt=I*I*Y+Y*I*I+I*Y*I,Et=I*I*I;for(N=0;N<$;N+=1)M[N*4]=e.round((it*x[N]+yt*D[N]+ut*R[N]+st*O[N])*1e3)/1e3,M[N*4+1]=e.round((xt*x[N]+ct*D[N]+rt*R[N]+C*O[N])*1e3)/1e3,M[N*4+2]=e.round((P*x[N]+v*D[N]+E*R[N]+K*O[N])*1e3)/1e3,M[N*4+3]=e.round((V*x[N]+at*D[N]+vt*R[N]+Et*O[N])*1e3)/1e3;return M}return{getSegmentsLength:p,getNewSegment:G,getPointInSegment:k,buildBezierData:S,pointOnLine2D:i,pointOnLine3D:n}}var $r=vy(),yo=r,sm=Math.abs;function nm(e,i){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var p=i.lastIndex,h=p,g=this.keyframes.length-1,S=!0,b,k,M;S;){if(b=this.keyframes[h],k=this.keyframes[h+1],h===g-1&&e>=k.t-n){b.h&&(b=k),p=0;break}if(k.t-n>e){p=h;break}h<g-1?h+=1:(p=0,S=!1)}M=this.keyframesMetadata[h]||{};var G,x,O,D,R,B,L=k.t-n,w=b.t-n,T;if(b.to){M.bezierData||(M.bezierData=$r.buildBezierData(b.s,k.s||b.e,b.to,b.ti));var I=M.bezierData;if(e>=L||e<w){var N=e>=L?I.points.length-1:0;for(x=I.points[N].point.length,G=0;G<x;G+=1)d[G]=I.points[N].point[G]}else{M.__fnct?B=M.__fnct:(B=mn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,M.__fnct=B),O=B((e-w)/(L-w));var $=I.segmentLength*O,U,Y=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastPoint:0,S=!0,D=I.points.length;S;){if(Y+=I.points[R].partialLength,$===0||O===0||R===I.points.length-1){for(x=I.points[R].point.length,G=0;G<x;G+=1)d[G]=I.points[R].point[G];break}else if($>=Y&&$<Y+I.points[R+1].partialLength){for(U=($-Y)/I.points[R+1].partialLength,x=I.points[R].point.length,G=0;G<x;G+=1)d[G]=I.points[R].point[G]+(I.points[R+1].point[G]-I.points[R].point[G])*U;break}R<D-1?R+=1:S=!1}i._lastPoint=R,i._lastAddedLength=Y-I.points[R].partialLength,i._lastKeyframeIndex=h}}else{var it,yt,ut,st,xt;if(g=b.s.length,T=k.s||b.e,this.sh&&b.h!==1)if(e>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(e<=w)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ct=am(b.s),rt=am(T),C=(e-w)/(L-w);by(d,gy(ct,rt,C))}else for(h=0;h<g;h+=1)b.h!==1&&(e>=L?O=1:e<w?O=0:(b.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[h]?B=M.__fnct[h]:(it=b.o.x[h]===void 0?b.o.x[0]:b.o.x[h],yt=b.o.y[h]===void 0?b.o.y[0]:b.o.y[h],ut=b.i.x[h]===void 0?b.i.x[0]:b.i.x[h],st=b.i.y[h]===void 0?b.i.y[0]:b.i.y[h],B=mn.getBezierEasing(it,yt,ut,st).get,M.__fnct[h]=B)):M.__fnct?B=M.__fnct:(it=b.o.x,yt=b.o.y,ut=b.i.x,st=b.i.y,B=mn.getBezierEasing(it,yt,ut,st).get,b.keyframeMetadata=B),O=B((e-w)/(L-w)))),T=k.s||b.e,xt=b.h===1?b.s[h]:b.s[h]+(T[h]-b.s[h])*O,this.propType==="multidimensional"?d[h]=xt:d=xt}return i.lastIndex=p,d}function gy(e,i,n){var d=[],p=e[0],h=e[1],g=e[2],S=e[3],b=i[0],k=i[1],M=i[2],G=i[3],x,O,D,R,B;return O=p*b+h*k+g*M+S*G,O<0&&(O=-O,b=-b,k=-k,M=-M,G=-G),1-O>1e-6?(x=Math.acos(O),D=Math.sin(x),R=Math.sin((1-n)*x)/D,B=Math.sin(n*x)/D):(R=1-n,B=n),d[0]=R*p+B*b,d[1]=R*h+B*k,d[2]=R*g+B*M,d[3]=R*S+B*G,d}function by(e,i){var n=i[0],d=i[1],p=i[2],h=i[3],g=Math.atan2(2*d*h-2*n*p,1-2*d*d-2*p*p),S=Math.asin(2*n*d+2*p*h),b=Math.atan2(2*n*h-2*d*p,1-2*n*n-2*p*p);e[0]=g/Nt,e[1]=S/Nt,e[2]=b/Nt}function am(e){var i=e[0]*Nt,n=e[1]*Nt,d=e[2]*Nt,p=Math.cos(i/2),h=Math.cos(n/2),g=Math.cos(d/2),S=Math.sin(i/2),b=Math.sin(n/2),k=Math.sin(d/2),M=p*h*g-S*b*k,G=S*b*g+p*h*k,x=S*h*g+p*b*k,O=p*b*g-S*h*k;return[G,x,O,M]}function lm(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==yo&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(e,this._caching);this.pv=d}return this._caching.lastFrame=e,this.pv}function Fa(e){var i;if(this.propType==="unidimensional")i=e*this.mult,sm(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)i=e[n]*this.mult,sm(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function $a(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Va(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function yy(e,i,n,d){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=d,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=$a,this.setVValue=Fa,this.addEffect=Va}function Ey(e,i,n,d){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=d,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var p,h=i.k.length;for(this.v=Z("float32",h),this.pv=Z("float32",h),this.vel=Z("float32",h),p=0;p<h;p+=1)this.v[p]=i.k[p]*this.mult,this.pv[p]=i.k[p];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=$a,this.setVValue=Fa,this.addEffect=Va}function Ty(e,i,n,d){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:yo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.v=yo,this.pv=yo,this._isFirstFrame=!0,this.getValue=$a,this.setVValue=Fa,this.interpolateValue=nm,this.effectsSequence=[lm.bind(this)],this.addEffect=Va}function xy(e,i,n,d){this.propType="multidimensional";var p,h=i.k.length,g,S,b,k;for(p=0;p<h-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(g=i.k[p].s,S=i.k[p+1].s,b=i.k[p].to,k=i.k[p].ti,(g.length===2&&!(g[0]===S[0]&&g[1]===S[1])&&$r.pointOnLine2D(g[0],g[1],S[0],S[1],g[0]+b[0],g[1]+b[1])&&$r.pointOnLine2D(g[0],g[1],S[0],S[1],S[0]+k[0],S[1]+k[1])||g.length===3&&!(g[0]===S[0]&&g[1]===S[1]&&g[2]===S[2])&&$r.pointOnLine3D(g[0],g[1],g[2],S[0],S[1],S[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&$r.pointOnLine3D(g[0],g[1],g[2],S[0],S[1],S[2],S[0]+k[0],S[1]+k[1],S[2]+k[2]))&&(i.k[p].to=null,i.k[p].ti=null),g[0]===S[0]&&g[1]===S[1]&&b[0]===0&&b[1]===0&&k[0]===0&&k[1]===0&&(g.length===2||g[2]===S[2]&&b[2]===0&&k[2]===0)&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[lm.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.getValue=$a,this.setVValue=Fa,this.interpolateValue=nm,this.frameId=-1;var M=i.k[0].s.length;for(this.v=Z("float32",M),this.pv=Z("float32",M),p=0;p<M;p+=1)this.v[p]=yo,this.pv[p]=yo;this._caching={lastFrame:yo,lastIndex:0,value:Z("float32",M)},this.addEffect=Va}var nt=function(){function e(n,d,p,h,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var S;if(!d.k.length)S=new yy(n,d,h,g);else if(typeof d.k[0]=="number")S=new Ey(n,d,h,g);else switch(p){case 0:S=new Ty(n,d,h,g);break;case 1:S=new xy(n,d,h,g);break;default:break}return S.effectsSequence.length&&g.addDynamicProperty(S),S}var i={getProp:e};return i}();function ye(){}ye.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Eo=function(){function e(){return Z("float32",2)}return Da(8,e)}();function ri(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}ri.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=Eo.newElement(),this.o[n]=Eo.newElement(),this.i[n]=Eo.newElement(),n+=1},ri.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ri.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},ri.prototype.setXYAt=function(e,i,n,d,p){var h;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":h=this.v;break;case"i":h=this.i;break;case"o":h=this.o;break;default:h=[];break}(!h[d]||h[d]&&!p)&&(h[d]=Eo.newElement()),h[d][0]=e,h[d][1]=i},ri.prototype.setTripleAt=function(e,i,n,d,p,h,g,S){this.setXYAt(e,i,"v",g,S),this.setXYAt(n,d,"o",g,S),this.setXYAt(p,h,"i",g,S)},ri.prototype.reverse=function(){var e=new ri;e.setPathData(this.c,this._length);var i=this.v,n=this.o,d=this.i,p=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),p=1);var h=this._length-1,g=this._length,S;for(S=p;S<g;S+=1)e.setTripleAt(i[h][0],i[h][1],d[h][0],d[h][1],n[h][0],n[h][1],S,!1),h-=1;return e},ri.prototype.length=function(){return this._length};var _e=function(){function e(){return new ri}function i(p){var h=p._length,g;for(g=0;g<h;g+=1)Eo.release(p.v[g]),Eo.release(p.i[g]),Eo.release(p.o[g]),p.v[g]=null,p.i[g]=null,p.o[g]=null;p._length=0,p.c=!1}function n(p){var h=d.newElement(),g,S=p._length===void 0?p.v.length:p._length;for(h.setLength(S),h.c=p.c,g=0;g<S;g+=1)h.setTripleAt(p.v[g][0],p.v[g][1],p.o[g][0],p.o[g][1],p.i[g][0],p.i[g][1],g);return h}var d=Da(4,e,i);return d.clone=n,d}();function Qd(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Qd.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},Qd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)_e.release(this.shapes[e]);this._length=0};var ms=function(){var e={newShapeCollection:p,release:h},i=0,n=4,d=et(n);function p(){var g;return i?(i-=1,g=d[i]):g=new Qd,g}function h(g){var S,b=g._length;for(S=0;S<b;S+=1)_e.release(g.shapes[S]);g._length=0,i===n&&(d=rm.double(d),n*=2),d[i]=g,i+=1}return e}(),za=function(){var e=-999999;function i(L,w,T){var I=T.lastIndex,N,$,U,Y,it,yt,ut,st,xt,ct=this.keyframes;if(L<ct[0].t-this.offsetTime)N=ct[0].s[0],U=!0,I=0;else if(L>=ct[ct.length-1].t-this.offsetTime)N=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],U=!0;else{for(var rt=I,C=ct.length-1,P=!0,v,E,K;P&&(v=ct[rt],E=ct[rt+1],!(E.t-this.offsetTime>L));)rt<C-1?rt+=1:P=!1;if(K=this.keyframesMetadata[rt]||{},U=v.h===1,I=rt,!U){if(L>=E.t-this.offsetTime)st=1;else if(L<v.t-this.offsetTime)st=0;else{var V;K.__fnct?V=K.__fnct:(V=mn.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,K.__fnct=V),st=V((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(yt=w._length,ut=N.i[0].length,T.lastIndex=I,Y=0;Y<yt;Y+=1)for(it=0;it<ut;it+=1)xt=U?N.i[Y][it]:N.i[Y][it]+($.i[Y][it]-N.i[Y][it])*st,w.i[Y][it]=xt,xt=U?N.o[Y][it]:N.o[Y][it]+($.o[Y][it]-N.o[Y][it])*st,w.o[Y][it]=xt,xt=U?N.v[Y][it]:N.v[Y][it]+($.v[Y][it]-N.v[Y][it])*st,w.v[Y][it]=xt}function n(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,I=this._caching.lastFrame;return I!==e&&(I<w&&L<w||I>T&&L>T)||(this._caching.lastIndex=I<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function d(){this.paths=this.localShapeCollection}function p(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,I=L._length;for(T=0;T<I;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function h(L){p(this.v,L)||(this.v=_e.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function S(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var I=T===3?w.pt.k:w.ks.k;this.v=_e.clone(I),this.pv=_e.clone(this.v),this.localShapeCollection=ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}S.prototype.interpolateShape=i,S.prototype.getValue=g,S.prototype.setVValue=h,S.prototype.addEffect=b;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var I=this.keyframes[0].s[0].i.length;this.v=_e.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,I),this.pv=_e.clone(this.v),this.localShapeCollection=ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=d,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=g,k.prototype.interpolateShape=i,k.prototype.setVValue=h,k.prototype.addEffect=b;var M=function(){var L=Ie;function w(T,I){this.v=_e.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ms.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=I.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=nt.getProp(T,I.p,1,0,this),this.s=nt.getProp(T,I.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var I=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,U=this.s.v[1]/2,Y=this.d!==3,it=this.v;it.v[0][0]=I,it.v[0][1]=N-U,it.v[1][0]=Y?I+$:I-$,it.v[1][1]=N,it.v[2][0]=I,it.v[2][1]=N+U,it.v[3][0]=Y?I-$:I+$,it.v[3][1]=N,it.i[0][0]=Y?I-$*L:I+$*L,it.i[0][1]=N-U,it.i[1][0]=Y?I+$:I-$,it.i[1][1]=N-U*L,it.i[2][0]=Y?I+$*L:I-$*L,it.i[2][1]=N+U,it.i[3][0]=Y?I-$:I+$,it.i[3][1]=N+U*L,it.o[0][0]=Y?I+$*L:I-$*L,it.o[0][1]=N-U,it.o[1][0]=Y?I+$:I-$,it.o[1][1]=N+U*L,it.o[2][0]=Y?I-$*L:I+$*L,it.o[2][1]=N+U,it.o[3][0]=Y?I-$:I+$,it.o[3][1]=N-U*L}},A([ye],w),w}(),G=function(){function L(w,T){this.v=_e.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=nt.getProp(w,T.ir,0,0,this),this.is=nt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(w,T.pt,0,0,this),this.p=nt.getProp(w,T.p,1,0,this),this.r=nt.getProp(w,T.r,0,Nt,this),this.or=nt.getProp(w,T.or,0,0,this),this.os=nt.getProp(w,T.os,0,.01,this),this.localShapeCollection=ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,I=Math.PI*2/T,N=!0,$=this.or.v,U=this.ir.v,Y=this.os.v,it=this.is.v,yt=2*Math.PI*$/(T*2),ut=2*Math.PI*U/(T*2),st,xt,ct,rt,C=-Math.PI/2;C+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){xt=N?$:U,ct=N?Y:it,rt=N?yt:ut;var v=xt*Math.cos(C),E=xt*Math.sin(C),K=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-K*rt*ct*P,E-V*rt*ct*P,v+K*rt*ct*P,E+V*rt*ct*P,st,!0),N=!N,C+=I*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),I=Math.PI*2/T,N=this.or.v,$=this.os.v,U=2*Math.PI*N/(T*4),Y,it=-Math.PI*.5,yt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,Y=0;Y<T;Y+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),xt=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ct=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-xt*U*$*yt,st-ct*U*$*yt,ut+xt*U*$*yt,st+ct*U*$*yt,Y,!0),it+=I*yt}this.paths.length=0,this.paths[0]=this.v}},A([ye],L),L}(),x=function(){function L(w,T){this.v=_e.newElement(),this.v.c=!0,this.localShapeCollection=ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=nt.getProp(w,T.p,1,0,this),this.s=nt.getProp(w,T.s,1,0,this),this.r=nt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],I=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,U=He(N,$,this.r.v),Y=U*(1-Ie);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,I-$+U,T+N,I-$+U,T+N,I-$+Y,0,!0),this.v.setTripleAt(T+N,I+$-U,T+N,I+$-Y,T+N,I+$-U,1,!0),U!==0?(this.v.setTripleAt(T+N-U,I+$,T+N-U,I+$,T+N-Y,I+$,2,!0),this.v.setTripleAt(T-N+U,I+$,T-N+Y,I+$,T-N+U,I+$,3,!0),this.v.setTripleAt(T-N,I+$-U,T-N,I+$-U,T-N,I+$-Y,4,!0),this.v.setTripleAt(T-N,I-$+U,T-N,I-$+Y,T-N,I-$+U,5,!0),this.v.setTripleAt(T-N+U,I-$,T-N+U,I-$,T-N+Y,I-$,6,!0),this.v.setTripleAt(T+N-U,I-$,T+N-Y,I-$,T+N-U,I-$,7,!0)):(this.v.setTripleAt(T-N,I+$,T-N+Y,I+$,T-N,I+$,2),this.v.setTripleAt(T-N,I-$,T-N,I-$+Y,T-N,I-$,3))):(this.v.setTripleAt(T+N,I-$+U,T+N,I-$+Y,T+N,I-$+U,0,!0),U!==0?(this.v.setTripleAt(T+N-U,I-$,T+N-U,I-$,T+N-Y,I-$,1,!0),this.v.setTripleAt(T-N+U,I-$,T-N+Y,I-$,T-N+U,I-$,2,!0),this.v.setTripleAt(T-N,I-$+U,T-N,I-$+U,T-N,I-$+Y,3,!0),this.v.setTripleAt(T-N,I+$-U,T-N,I+$-Y,T-N,I+$-U,4,!0),this.v.setTripleAt(T-N+U,I+$,T-N+U,I+$,T-N+Y,I+$,5,!0),this.v.setTripleAt(T+N-U,I+$,T+N-Y,I+$,T+N-U,I+$,6,!0),this.v.setTripleAt(T+N,I+$-U,T+N,I+$-U,T+N,I+$-Y,7,!0)):(this.v.setTripleAt(T-N,I-$,T-N+Y,I-$,T-N,I-$,1,!0),this.v.setTripleAt(T-N,I+$,T-N,I+$-Y,T-N,I+$,2,!0),this.v.setTripleAt(T+N,I+$,T+N-Y,I+$,T+N,I+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([ye],L),L}();function O(L,w,T){var I;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?I=new k(L,w,T):I=new S(L,w,T)}else T===5?I=new x(L,w):T===6?I=new M(L,w):T===7&&(I=new G(L,w));return I.k&&L.addDynamicProperty(I),I}function D(){return S}function R(){return k}var B={};return B.getShapeProp=O,B.getConstructorFunction=D,B.getKeyframedConstructorFunction=R,B}();var Ce=function(){var e=Math.cos,i=Math.sin,n=Math.tan,d=Math.round;function p(){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 h(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(1,0,0,0,0,E,-K,0,0,K,E,0,0,0,0,1)}function S(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,0,K,0,0,1,0,0,-K,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function G(v,E){var K=e(E),V=i(E);return this._t(K,V,0,0,-V,K,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(K,-V,0,0,V,K,0,0,0,0,1,0,0,0,0,1)}function x(v,E,K){return!K&&K!==0&&(K=1),v===1&&E===1&&K===1?this:this._t(v,0,0,0,0,E,0,0,0,0,K,0,0,0,0,1)}function O(v,E,K,V,at,vt,Et,Pt,Dt,ae,Ke,zr,We,Ee,rr,Vt){return this.props[0]=v,this.props[1]=E,this.props[2]=K,this.props[3]=V,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Pt,this.props[8]=Dt,this.props[9]=ae,this.props[10]=Ke,this.props[11]=zr,this.props[12]=We,this.props[13]=Ee,this.props[14]=rr,this.props[15]=Vt,this}function D(v,E,K){return K=K||0,v!==0||E!==0||K!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,K,1):this}function R(v,E,K,V,at,vt,Et,Pt,Dt,ae,Ke,zr,We,Ee,rr,Vt){var ht=this.props;if(v===1&&E===0&&K===0&&V===0&&at===0&&vt===1&&Et===0&&Pt===0&&Dt===0&&ae===0&&Ke===1&&zr===0)return ht[12]=ht[12]*v+ht[15]*We,ht[13]=ht[13]*vt+ht[15]*Ee,ht[14]=ht[14]*Ke+ht[15]*rr,ht[15]*=Vt,this._identityCalculated=!1,this;var si=ht[0],Di=ht[1],ni=ht[2],Br=ht[3],ai=ht[4],li=ht[5],Ye=ht[6],Fi=ht[7],$i=ht[8],wr=ht[9],Vi=ht[10],kr=ht[11],So=ht[12],qa=ht[13],Xa=ht[14],Za=ht[15];return ht[0]=si*v+Di*at+ni*Dt+Br*We,ht[1]=si*E+Di*vt+ni*ae+Br*Ee,ht[2]=si*K+Di*Et+ni*Ke+Br*rr,ht[3]=si*V+Di*Pt+ni*zr+Br*Vt,ht[4]=ai*v+li*at+Ye*Dt+Fi*We,ht[5]=ai*E+li*vt+Ye*ae+Fi*Ee,ht[6]=ai*K+li*Et+Ye*Ke+Fi*rr,ht[7]=ai*V+li*Pt+Ye*zr+Fi*Vt,ht[8]=$i*v+wr*at+Vi*Dt+kr*We,ht[9]=$i*E+wr*vt+Vi*ae+kr*Ee,ht[10]=$i*K+wr*Et+Vi*Ke+kr*rr,ht[11]=$i*V+wr*Pt+Vi*zr+kr*Vt,ht[12]=So*v+qa*at+Xa*Dt+Za*We,ht[13]=So*E+qa*vt+Xa*ae+Za*Ee,ht[14]=So*K+qa*Et+Xa*Ke+Za*rr,ht[15]=So*V+qa*Pt+Xa*zr+Za*Vt,this._identityCalculated=!1,this}function B(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function I(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,K){return{x:v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}}function $(v,E,K){return v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12]}function U(v,E,K){return v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13]}function Y(v,E,K){return v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,K=-this.props[1]/v,V=-this.props[4]/v,at=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new Ce;return Pt.props[0]=E,Pt.props[1]=K,Pt.props[4]=V,Pt.props[5]=at,Pt.props[12]=vt,Pt.props[13]=Et,Pt}function yt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,K=v.length,V=[];for(E=0;E<K;E+=1)V[E]=yt(v[E]);return V}function st(v,E,K){var V=Z("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=K[0],V[5]=K[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Pt=this.props[5],Dt=this.props[12],ae=this.props[13];V[0]=v[0]*at+v[1]*Et+Dt,V[1]=v[0]*vt+v[1]*Pt+ae,V[2]=E[0]*at+E[1]*Et+Dt,V[3]=E[0]*vt+E[1]*Pt+ae,V[4]=K[0]*at+K[1]*Et+Dt,V[5]=K[0]*vt+K[1]*Pt+ae}return V}function xt(v,E,K){var V;return this.isIdentity()?V=[v,E,K]:V=[v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]],V}function ct(v,E){if(this.isIdentity())return v+","+E;var K=this.props;return Math.round((v*K[0]+E*K[4]+K[12])*100)/100+","+Math.round((v*K[1]+E*K[5]+K[13])*100)/100}function rt(){for(var v=0,E=this.props,K="matrix3d(",V=1e4;v<16;)K+=d(E[v]*V)/V,K+=v===15?")":",",v+=1;return K}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function P(){var v=this.props,E=C(v[0]),K=C(v[1]),V=C(v[4]),at=C(v[5]),vt=C(v[12]),Et=C(v[13]);return"matrix("+E+","+K+","+V+","+at+","+vt+","+Et+")"}return function(){this.reset=p,this.rotate=h,this.rotateX=g,this.rotateY=S,this.rotateZ=b,this.skew=M,this.skewFromAxis=G,this.shear=k,this.scale=x,this.setTransform=O,this.translate=D,this.transform=R,this.multiply=B,this.applyToPoint=N,this.applyToX=$,this.applyToY=U,this.applyToZ=Y,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=I,this.equals=w,this.inversePoints=ut,this.inversePoint=yt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function Ba(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ba=function(n){return typeof n}:Ba=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ba(e)}var Ft={},Ha="__[STANDALONE]__",dm="__[ANIMATIONDATA]__",cm="";function Ay(e){c(e)}function hm(){Ha===!0?ne.searchAnimations(dm,Ha,cm):ne.searchAnimations()}function Sy(e){ny(e)}function Iy(e){dy(e)}function _y(e){return Ha===!0&&(e.animationData=JSON.parse(dm)),ne.loadAnimation(e)}function Cy(e){if(typeof e=="string")switch(e){case"high":Ra(200);break;default:case"medium":Ra(50);break;case"low":Ra(10);break}else!isNaN(e)&&e>1&&Ra(e);dn()>=50?lr(!1):lr(!0)}function wy(){return typeof navigator<"u"}function ky(e,i){e==="expressions"&&ly(i)}function Ny(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return za;case"matrix":return Ce;default:return null}}Ft.play=ne.play,Ft.pause=ne.pause,Ft.setLocationHref=Ay,Ft.togglePause=ne.togglePause,Ft.setSpeed=ne.setSpeed,Ft.setDirection=ne.setDirection,Ft.stop=ne.stop,Ft.searchAnimations=hm,Ft.registerAnimation=ne.registerAnimation,Ft.loadAnimation=_y,Ft.setSubframeRendering=Sy,Ft.resize=ne.resize,Ft.goToAndStop=ne.goToAndStop,Ft.destroy=ne.destroy,Ft.setQuality=Cy,Ft.inBrowser=wy,Ft.installPlugin=ky,Ft.freeze=ne.freeze,Ft.unfreeze=ne.unfreeze,Ft.setVolume=ne.setVolume,Ft.mute=ne.mute,Ft.unmute=ne.unmute,Ft.getRegisteredAnimations=ne.getRegisteredAnimations,Ft.useWebWorker=s,Ft.setIDPrefix=Iy,Ft.__getFactory=Ny,Ft.version="5.12.2";function Ly(){document.readyState==="complete"&&(clearInterval(Ry),hm())}function My(e){for(var i=pm.split("&"),n=0;n<i.length;n+=1){var d=i[n].split("=");if(decodeURIComponent(d[0])==e)return decodeURIComponent(d[1])}return null}var pm="";if(Ha){var mm=document.getElementsByTagName("script"),Oy=mm.length-1,um=mm[Oy]||{src:""};pm=um.src?um.src.replace(/^[^\?]+\??/,""):"",cm=My("renderer")}var Ry=setInterval(Ly,100);try{!((typeof Gn>"u"?"undefined":Ba(Gn))==="object"&&typeof Il<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ft)}catch{}var Ni=function(){var e={},i={};e.registerModifier=n,e.getModifier=d;function n(p,h){i[p]||(i[p]=h)}function d(p,h,g){return new i[p](h,g)}return e}();function pr(){}pr.prototype.initModifierProperties=function(){},pr.prototype.addShapeToModifier=function(){},pr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ms.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},pr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},pr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([ye],pr);function Cr(){}A([pr],Cr),Cr.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Cr.prototype.addShapeToModifier=function(e){e.pathsData=[]},Cr.prototype.calculateShapeEdges=function(e,i,n,d,p){var h=[];i<=1?h.push({s:e,e:i}):e>=1?h.push({s:e-1,e:i-1}):(h.push({s:e,e:1}),h.push({s:0,e:i-1}));var g=[],S,b=h.length,k;for(S=0;S<b;S+=1)if(k=h[S],!(k.e*p<d||k.s*p>d+n)){var M,G;k.s*p<=d?M=0:M=(k.s*p-d)/n,k.e*p>=d+n?G=1:G=(k.e*p-d)/n,g.push([M,G])}return g.length||g.push([0,0]),g},Cr.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)om.release(e[i]);return e.length=0,e},Cr.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?i=1+d:this.s.v<0?i=0+d:i=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,i>n){var p=i;i=n,n=p}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var h,g,S=this.shapes.length,b,k,M,G,x,O=0;if(n===i)for(g=0;g<S;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<S;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,B;for(g=0;g<S;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(h=R.shape.paths,k=h._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),b=0;b<k;b+=1)G=$r.getSegmentsLength(h.shapes[b]),M.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=i,w=n,T=0,I;for(g=S-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(B=R.localShapeCollection,B.releaseShapes(),this.m===2&&S>1?(I=this.calculateShapeEdges(i,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):I=[[L,w]],k=I.length,b=0;b<k;b+=1){L=I[b][0],w=I[b][1],D.length=0,w<=1?D.push({s:R.totalShapeLength*L,e:R.totalShapeLength*w}):L>=1?D.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(w-1)}):(D.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var U=N.pop();this.addPaths(N,B),N=this.addShapes(R,D[1],U)}else this.addPaths(N,B),N=this.addShapes(R,D[1])}this.addPaths(N,B)}}R.shape.paths=B}}},Cr.prototype.addPaths=function(e,i){var n,d=e.length;for(n=0;n<d;n+=1)i.addShape(e[n])},Cr.prototype.addSegment=function(e,i,n,d,p,h,g){p.setXYAt(i[0],i[1],"o",h),p.setXYAt(n[0],n[1],"i",h+1),g&&p.setXYAt(e[0],e[1],"v",h),p.setXYAt(d[0],d[1],"v",h+1)},Cr.prototype.addSegmentFromArray=function(e,i,n,d){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),d&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Cr.prototype.addShapes=function(e,i,n){var d=e.pathsData,p=e.shape.paths.shapes,h,g=e.shape.paths._length,S,b,k=0,M,G,x,O,D=[],R,B=!0;for(n?(G=n._length,R=n._length):(n=_e.newElement(),G=0,R=0),D.push(n),h=0;h<g;h+=1){for(x=d[h].lengths,n.c=p[h].c,b=p[h].c?x.length:x.length+1,S=1;S<b;S+=1)if(M=x[S-1],k+M.addedLength<i.s)k+=M.addedLength,n.c=!1;else if(k>i.e){n.c=!1;break}else i.s<=k&&i.e>=k+M.addedLength?(this.addSegment(p[h].v[S-1],p[h].o[S-1],p[h].i[S],p[h].v[S],n,G,B),B=!1):(O=$r.getNewSegment(p[h].v[S-1],p[h].v[S],p[h].o[S-1],p[h].i[S],(i.s-k)/M.addedLength,(i.e-k)/M.addedLength,x[S-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1),k+=M.addedLength,G+=1;if(p[h].c&&x.length){if(M=x[S-1],k<=i.e){var L=x[S-1].addedLength;i.s<=k&&i.e>=k+L?(this.addSegment(p[h].v[S-1],p[h].o[S-1],p[h].i[0],p[h].v[0],n,G,B),B=!1):(O=$r.getNewSegment(p[h].v[S-1],p[h].v[0],p[h].o[S-1],p[h].i[0],(i.s-k)/L,(i.e-k)/L,x[S-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1)}else n.c=!1;k+=M.addedLength,G+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),k>i.e)break;h<g-1&&(n=_e.newElement(),B=!0,D.push(n),G=0)}return D};function un(){}A([pr],un),un.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},un.prototype.processPath=function(e,i){var n=i/100,d=[0,0],p=e._length,h=0;for(h=0;h<p;h+=1)d[0]+=e.v[h][0],d[1]+=e.v[h][1];d[0]/=p,d[1]/=p;var g=_e.newElement();g.c=e.c;var S,b,k,M,G,x;for(h=0;h<p;h+=1)S=e.v[h][0]+(d[0]-e.v[h][0])*n,b=e.v[h][1]+(d[1]-e.v[h][1])*n,k=e.o[h][0]+(d[0]-e.o[h][0])*-n,M=e.o[h][1]+(d[1]-e.o[h][1])*-n,G=e.i[h][0]+(d[0]-e.i[h][0])*-n,x=e.i[h][1]+(d[1]-e.i[h][1])*-n,g.setTripleAt(S,b,k,M,G,x,h);return g},un.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amount.v;if(g!==0){var S,b;for(n=0;n<d;n+=1){if(S=this.shapes[n],b=S.localShapeCollection,!(!S.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),S.shape._mdf=!0,i=S.shape.paths.shapes,h=S.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));S.shape.paths=S.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Jd=function(){var e=[0,0];function i(b){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,G;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),G[0]=x.getValueAtTime(x.keyframes[0].t/k,0),G[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),G[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),G[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else G=e,M=G;this.v.rotate(-Math.atan2(M[1]-G[1],M[0]-G[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function p(){}function h(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,k,M){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Ce,this.pre=new Ce,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||b),k.p&&k.p.s?(this.px=nt.getProp(b,k.p.x,0,0,this),this.py=nt.getProp(b,k.p.y,0,0,this),k.p.z&&(this.pz=nt.getProp(b,k.p.z,0,0,this))):this.p=nt.getProp(b,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=nt.getProp(b,k.rx,0,Nt,this),this.ry=nt.getProp(b,k.ry,0,Nt,this),this.rz=nt.getProp(b,k.rz,0,Nt,this),k.or.k[0].ti){var G,x=k.or.k.length;for(G=0;G<x;G+=1)k.or.k[G].to=null,k.or.k[G].ti=null}this.or=nt.getProp(b,k.or,1,Nt,this),this.or.sh=!0}else this.r=nt.getProp(b,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=nt.getProp(b,k.sk,0,Nt,this),this.sa=nt.getProp(b,k.sa,0,Nt,this)),this.a=nt.getProp(b,k.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=nt.getProp(b,k.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:d,autoOrient:p},A([ye],g),g.prototype.addDynamicProperty=h,g.prototype._addDynamicProperty=ye.prototype.addDynamicProperty;function S(b,k,M){return new g(b,k,M)}return{getTransformProperty:S}}();function Vr(){}A([pr],Vr),Vr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=Jd.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ce,this.rMatrix=new Ce,this.sMatrix=new Ce,this.tMatrix=new Ce,this.matrix=new Ce},Vr.prototype.applyTransforms=function(e,i,n,d,p,h){var g=h?-1:1,S=d.s.v[0]+(1-d.s.v[0])*(1-p),b=d.s.v[1]+(1-d.s.v[1])*(1-p);e.translate(d.p.v[0]*g*p,d.p.v[1]*g*p,d.p.v[2]),i.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),i.rotate(-d.r.v*g*p),i.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(h?1/S:S,h?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Vr.prototype.init=function(e,i,n,d){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Vr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Vr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Vr.prototype.changeGroupRender=function(e,i){var n,d=e.length;for(n=0;n<d;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},Vr.prototype.processShapes=function(e){var i,n,d,p,h,g=!1;if(this._mdf||e){var S=Math.ceil(this.c.v);if(this._groups.length<S){for(;this._groups.length<S;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}h=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=h<S,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var M=this.elemsData[d].it,G=M[M.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}h+=1}this._currentCopies=S;var x=this.o.v,O=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,B=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,p=this.data.m===1?1:-1,h=this._currentCopies;for(var T,I;h;){if(i=this.elemsData[d].it,n=i[i.length-1].transform.mProps.v.props,I=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&p===1||d!==this._currentCopies-1&&p===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14],B[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<I;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<I;T+=1)n[T]=this.matrix.props[T];w+=1,h-=1,d+=p}}else for(h=this._currentCopies,d=0,p=1;h;)i=this.elemsData[d].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,h-=1,d+=p;return g},Vr.prototype.addShape=function(){};function fn(){}A([pr],fn),fn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},fn.prototype.processPath=function(e,i){var n=_e.newElement();n.c=e.c;var d,p=e._length,h,g,S,b,k,M,G=0,x,O,D,R,B,L;for(d=0;d<p;d+=1)h=e.v[d],S=e.o[d],g=e.i[d],h[0]===S[0]&&h[1]===S[1]&&h[0]===g[0]&&h[1]===g[1]?(d===0||d===p-1)&&!e.c?(n.setTripleAt(h[0],h[1],S[0],S[1],g[0],g[1],G),G+=1):(d===0?b=e.v[p-1]:b=e.v[d-1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,B=h[0]+(b[0]-h[0])*M,x=B,L=h[1]-(h[1]-b[1])*M,O=L,D=x-(x-h[0])*Ie,R=O-(O-h[1])*Ie,n.setTripleAt(x,O,D,R,B,L,G),G+=1,d===p-1?b=e.v[0]:b=e.v[d+1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,D=h[0]+(b[0]-h[0])*M,x=D,R=h[1]+(b[1]-h[1])*M,O=R,B=x-(x-h[0])*Ie,L=O-(O-h[1])*Ie,n.setTripleAt(x,O,D,R,B,L,G),G+=1):(n.setTripleAt(e.v[d][0],e.v[d][1],e.o[d][0],e.o[d][1],e.i[d][0],e.i[d][1],G),G+=1);return n},fn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.rd.v;if(g!==0){var S,b;for(n=0;n<d;n+=1){if(S=this.shapes[n],b=S.localShapeCollection,!(!S.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),S.shape._mdf=!0,i=S.shape.paths.shapes,h=S.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));S.shape.paths=S.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ua(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function tc(e){return Math.abs(e)<=1e-5}function fm(e,i,n){return e*(1-n)+i*n}function Li(e,i,n){return[fm(e[0],i[0],n),fm(e[1],i[1],n)]}function Py(e,i,n){if(e===0)return[];var d=i*i-4*e*n;if(d<0)return[];var p=-i/(2*e);if(d===0)return[p];var h=Math.sqrt(d)/(2*e);return[p-h,p+h]}function vm(e,i,n,d){return[-e+3*i-3*n+d,3*e-6*i+3*n,-3*e+3*i,e]}function gm(e){return new te(e,e,e,e,!1)}function te(e,i,n,d,p){p&&fs(e,i)&&(i=Li(e,d,1/3)),p&&fs(n,d)&&(n=Li(e,d,2/3));var h=vm(e[0],i[0],n[0],d[0]),g=vm(e[1],i[1],n[1],d[1]);this.a=[h[0],g[0]],this.b=[h[1],g[1]],this.c=[h[2],g[2]],this.d=[h[3],g[3]],this.points=[e,i,n,d]}te.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]]},te.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]]},te.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},te.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},te.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(tc(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var d=Math.sqrt(n);return tc(d)?d>0&&d<1?[i]:[]:[i-d,i+d].filter(function(p){return p>0&&p<1})},te.prototype.split=function(e){if(e<=0)return[gm(this.points[0]),this];if(e>=1)return[this,gm(this.points[this.points.length-1])];var i=Li(this.points[0],this.points[1],e),n=Li(this.points[1],this.points[2],e),d=Li(this.points[2],this.points[3],e),p=Li(i,n,e),h=Li(n,d,e),g=Li(p,h,e);return[new te(this.points[0],i,p,g,!0),new te(g,h,d,this.points[3],!0)]};function bm(e,i){var n=e.points[0][i],d=e.points[e.points.length-1][i];if(n>d){var p=d;d=n,n=p}for(var h=Py(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<h.length;g+=1)if(h[g]>0&&h[g]<1){var S=e.point(h[g])[i];S<n?n=S:S>d&&(d=S)}return{min:n,max:d}}te.prototype.bounds=function(){return{x:bm(this,0),y:bm(this,1)}},te.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 Ga(e,i,n){var d=e.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function ym(e){var i=e.bez.split(.5);return[Ga(i[0],e.t1,e.t),Ga(i[1],e.t,e.t2)]}function Dy(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function vn(e,i,n,d,p,h){if(Dy(e,i)){if(n>=h||e.width<=d&&e.height<=d&&i.width<=d&&i.height<=d){p.push([e.t,i.t]);return}var g=ym(e),S=ym(i);vn(g[0],S[0],n+1,d,p,h),vn(g[0],S[1],n+1,d,p,h),vn(g[1],S[0],n+1,d,p,h),vn(g[1],S[1],n+1,d,p,h)}}te.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var d=[];return vn(Ga(this,0,1),Ga(e,0,1),0,i,d,n),d},te.shapeSegment=function(e,i){var n=(i+1)%e.length();return new te(e.v[i],e.o[i],e.i[n],e.v[n],!0)},te.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new te(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function ec(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Ka(e,i,n,d){var p=[e[0],e[1],1],h=[i[0],i[1],1],g=[n[0],n[1],1],S=[d[0],d[1],1],b=ec(ec(p,h),ec(g,S));return tc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function us(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function rc(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function fs(e,i){return Ua(e[0],i[0])&&Ua(e[1],i[1])}function gn(){}A([pr],gn),gn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Em(e,i,n,d,p,h,g){var S=n-Math.PI/2,b=n+Math.PI/2,k=i[0]+Math.cos(n)*d*p,M=i[1]-Math.sin(n)*d*p;e.setTripleAt(k,M,k+Math.cos(S)*h,M-Math.sin(S)*h,k+Math.cos(b)*g,M-Math.sin(b)*g,e.length())}function Fy(e,i){var n=[i[0]-e[0],i[1]-e[1]],d=-Math.PI*.5,p=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return p}function $y(e,i){var n=i===0?e.length()-1:i-1,d=(i+1)%e.length(),p=e.v[n],h=e.v[d],g=Fy(p,h);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function Tm(e,i,n,d,p,h,g){var S=$y(i,n),b=i.v[n%i._length],k=i.v[n===0?i._length-1:n-1],M=i.v[(n+1)%i._length],G=h===2?Math.sqrt(Math.pow(b[0]-k[0],2)+Math.pow(b[1]-k[1],2)):0,x=h===2?Math.sqrt(Math.pow(b[0]-M[0],2)+Math.pow(b[1]-M[1],2)):0;Em(e,i.v[n%i._length],S,g,d,x/((p+1)*2),G/((p+1)*2),h)}function Vy(e,i,n,d,p,h){for(var g=0;g<d;g+=1){var S=(g+1)/(d+1),b=p===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,k=i.normalAngle(S),M=i.point(S);Em(e,M,k,h,n,b/((d+1)*2),b/((d+1)*2),p),h=-h}return h}gn.prototype.processPath=function(e,i,n,d){var p=e._length,h=_e.newElement();if(h.c=e.c,e.c||(p-=1),p===0)return h;var g=-1,S=te.shapeSegment(e,0);Tm(h,e,0,i,n,d,g);for(var b=0;b<p;b+=1)g=Vy(h,S,i,n,d,-g),b===p-1&&!e.c?S=null:S=te.shapeSegment(e,(b+1)%p),Tm(h,e,b+1,i,n,d,g);return h},gn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amplitude.v,S=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,S,b));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ic(e,i,n){var d=Math.atan2(i[0]-e[0],i[1]-e[1]);return[us(e,d,n),us(i,d,n)]}function vs(e,i){var n,d,p,h,g,S,b;b=ic(e.points[0],e.points[1],i),n=b[0],d=b[1],b=ic(e.points[1],e.points[2],i),p=b[0],h=b[1],b=ic(e.points[2],e.points[3],i),g=b[0],S=b[1];var k=Ka(n,d,p,h);k===null&&(k=d);var M=Ka(g,S,p,h);return M===null&&(M=g),new te(n,k,M,S)}function xm(e,i,n,d,p){var h=i.points[3],g=n.points[0];if(d===3||fs(h,g))return h;if(d===2){var S=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,k=Ka(h,us(h,S+Math.PI/2,100),g,us(g,S+Math.PI/2,100)),M=k?rc(k,h):rc(h,g)/2,G=us(h,S,2*M*Ie);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=us(g,b,2*M*Ie),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=fs(h,i.points[2])?i.points[0]:i.points[2],O=fs(g,n.points[1])?n.points[3]:n.points[1],D=Ka(x,h,g,O);return D&&rc(D,h)<p?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):h}function Am(e,i){var n=e.intersections(i);return n.length&&Ua(n[0][0],1)&&n.shift(),n.length?n[0]:null}function Sm(e,i){var n=e.slice(),d=i.slice(),p=Am(e[e.length-1],i[0]);return p&&(n[e.length-1]=e[e.length-1].split(p[0])[0],d[0]=i[0].split(p[1])[1]),e.length>1&&i.length>1&&(p=Am(e[0],i[i.length-1]),p)?[[e[0].split(p[0])[0]],[i[i.length-1].split(p[1])[1]]]:[n,d]}function zy(e){for(var i,n=1;n<e.length;n+=1)i=Sm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=Sm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function Im(e,i){var n=e.inflectionPoints(),d,p,h,g;if(n.length===0)return[vs(e,i)];if(n.length===1||Ua(n[1],1))return h=e.split(n[0]),d=h[0],p=h[1],[vs(d,i),vs(p,i)];h=e.split(n[0]),d=h[0];var S=(n[1]-n[0])/(1-n[0]);return h=h[1].split(S),g=h[0],p=h[1],[vs(d,i),vs(g,i),vs(p,i)]}function bn(){}A([pr],bn),bn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},bn.prototype.processPath=function(e,i,n,d){var p=_e.newElement();p.c=e.c;var h=e.length();e.c||(h-=1);var g,S,b,k=[];for(g=0;g<h;g+=1)b=te.shapeSegment(e,g),k.push(Im(b,i));if(!e.c)for(g=h-1;g>=0;g-=1)b=te.shapeSegmentInverted(e,g),k.push(Im(b,i));k=zy(k);var M=null,G=null;for(g=0;g<k.length;g+=1){var x=k[g];for(G&&(M=xm(p,G,x[0],n,d)),G=x[x.length-1],S=0;S<x.length;S+=1)b=x[S],M&&fs(b.points[0],M)?p.setXYAt(b.points[1][0],b.points[1][1],"o",p.length()-1):p.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],p.length()),p.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],p.length()),M=b.points[3]}return k.length&&xm(p,G,k[0][0],n,d),p},bn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amount.v,S=this.miterLimit.v,b=this.lineJoin;if(g!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,b,S));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function _m(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",d="normal",p=i.length,h,g=0;g<p;g+=1)switch(h=i[g].toLowerCase(),h){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:e.fWeight||n}}var To=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,p=917631,h=917601,g=917626,S=65039,b=8205,k=127462,M=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var P=C.split(","),v,E=P.length,K=[];for(v=0;v<E;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&K.push(P[v]);return K.join(",")}function O(C,P){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var K=E.offsetWidth;return E.style.fontFamily=x(C)+", "+P,{node:E,w:K,parent:v}}function D(){var C,P=this.fonts.length,v,E,K=P;for(C=0;C<P;C+=1)this.fonts[C].loaded?K-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(K-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(K-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));K!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,P){var v=document.body&&P?"svg":"canvas",E,K=_m(C);if(v==="svg"){var V=Tt("text");V.style.fontSize="100px",V.setAttribute("font-family",C.fFamily),V.setAttribute("font-style",K.style),V.setAttribute("font-weight",K.weight),V.textContent="1",C.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",C.fClass)):V.style.fontFamily=C.fFamily,P.appendChild(V),E=V}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=K.style+" "+K.weight+" 100px "+C.fFamily,E=at}function vt(Et){return v==="svg"?(E.textContent=Et,E.getComputedTextLength()):E.measureText(Et).width}return{measureText:vt}}function B(C,P){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(Ke){Ke.helper=R(Ke),Ke.cache={}}),this.fonts=C.list;return}var v=C.list,E,K=v.length,V=K;for(E=0;E<K;E+=1){var at=!0,vt,Et;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),vt.length>0&&(at=!1),at){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",P.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[E].fPath)!==-1&&(at=!1);if(at){var Dt=y("link");Dt.setAttribute("f-forigin",v[E].fOrigin),Dt.setAttribute("f-origin",v[E].origin),Dt.type="text/css",Dt.rel="stylesheet",Dt.href=v[E].fPath,document.body.appendChild(Dt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[E].fPath===vt[Et].src&&(at=!1);if(at){var ae=y("link");ae.setAttribute("f-forigin",v[E].fOrigin),ae.setAttribute("f-origin",v[E].origin),ae.setAttribute("rel","stylesheet"),ae.setAttribute("href",v[E].fPath),P.appendChild(ae)}}v[E].helper=R(v[E],P),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(C){if(C){this.chars||(this.chars=[]);var P,v=C.length,E,K=this.chars.length,V;for(P=0;P<v;P+=1){for(E=0,V=!1;E<K;)this.chars[E].style===C[P].style&&this.chars[E].fFamily===C[P].fFamily&&this.chars[E].ch===C[P].ch&&(V=!0),E+=1;V||(this.chars.push(C[P]),K+=1)}}}function w(C,P,v){for(var E=0,K=this.chars.length;E<K;){if(this.chars[E].ch===C&&this.chars[E].style===P&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,P,v)),i}function T(C,P,v){var E=this.getFontByName(P),K=C;if(!E.cache[K]){var V=E.helper;if(C===" "){var at=V.measureText("|"+C+"|"),vt=V.measureText("||");E.cache[K]=(at-vt)/100}else E.cache[K]=V.measureText(C)/100}return E.cache[K]*v}function I(C){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===C)return this.fonts[P];P+=1}return this.fonts[0]}function N(C){var P=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(P=(v-55296)*1024+E-56320+65536)}return P}function $(C,P){var v=C.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function U(C){return C===b}function Y(C){return C===S}function it(C){var P=N(C);return P>=k&&P<=M}function yt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return n.indexOf(C)!==-1}function st(C,P){var v=N(C.substr(P,2));if(v!==d)return!1;var E=0;for(P+=2;E<5;){if(v=N(C.substr(P,2)),v<h||v>g)return!1;E+=1,P+=2}return N(C.substr(P,2))===p}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=it,ct.isCombinedCharacter=ut,ct.isRegionalFlag=st,ct.isVariationSelector=Y,ct.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:B,getCharData:w,getFontByName:I,measureText:T,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=rt,ct}();function Cm(e){this.animationData=e}Cm.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function By(e){return new Cm(e)}function Wa(){}Wa.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var oc=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function Hy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Uy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Gy(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Ky(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Wy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Yy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function jy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function qy(){this.p={}}function wm(e,i){var n=e.ef||[];this.effectElements=[];var d,p=n.length,h;for(d=0;d<p;d+=1)h=new yn(n[d],i),this.effectElements.push(h)}function yn(e,i){this.init(e,i)}A([ye],yn),yn.prototype.getValue=yn.prototype.iterateDynamicProperties,yn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,d=this.data.ef.length,p,h=this.data.ef;for(n=0;n<d;n+=1){switch(p=null,h[n].ty){case 0:p=new Hy(h[n],i,this);break;case 1:p=new Uy(h[n],i,this);break;case 2:p=new Gy(h[n],i,this);break;case 3:p=new Ky(h[n],i,this);break;case 4:case 7:p=new jy(h[n],i,this);break;case 10:p=new Wy(h[n],i,this);break;case 11:p=new Yy(h[n],i,this);break;case 5:p=new wm(h[n],i,this);break;default:p=new qy(h[n],i,this);break}p&&this.effectElements.push(p)}};function Mi(){}Mi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=tm();if(i){var n=i("layer"),d=i("effects"),p=i("shape"),h=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var S=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(S),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=p(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=h(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=oc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,d){this.globalData=n,this.comp=d,this.data=i,this.layerId=Ue(),this.data.sr||(this.data.sr=1),this.effectsManager=new wm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Oi(){}Oi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var d,p=this.dynamicProperties.length;for(d=0;d<p;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function Ri(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}Ri.prototype.prepareFrame=function(){},A([Wa,Mi,Oi],Ri),Ri.prototype.getBaseElement=function(){return null},Ri.prototype.renderFrame=function(){},Ri.prototype.destroy=function(){},Ri.prototype.initExpressions=function(){var e=tm();if(e){var i=e("footage");this.layerInterface=i(this)}},Ri.prototype.getFootageData=function(){return this.footageData};function Ge(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ge.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([Wa,Mi,Oi],Ge),Ge.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Ge.prototype.show=function(){},Ge.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ge.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ge.prototype.resume=function(){this._canPlay=!0},Ge.prototype.setRate=function(e){this.audio.rate(e)},Ge.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ge.prototype.getBaseElement=function(){return null},Ge.prototype.destroy=function(){},Ge.prototype.sourceRectAtTime=function(){},Ge.prototype.initExpressions=function(){};function we(){}we.prototype.checkLayers=function(e){var i,n=this.layers.length,d;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(d=this.layers[i],d.ip-d.st<=e-this.layers[i].st&&d.op-d.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},we.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)}},we.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},we.prototype.createAudio=function(e){return new Ge(e,this.globalData,this)},we.prototype.createFootage=function(e){return new Ri(e,this.globalData,this)},we.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},we.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,d,p=this.layers.length;for(i=0;i<n;i+=1)for(d=0;d<p;){if(this.layers[d].id===e[i].id){this.layers[d]=e[i];break}d+=1}},we.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},we.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},we.prototype.buildElementParenting=function(e,i,n){for(var d=this.elements,p=this.layers,h=0,g=p.length;h<g;)p[h].ind==i&&(!d[h]||d[h]===!0?(this.buildItem(h),this.addPendingElement(e)):(n.push(d[h]),d[h].setAsParent(),p[h].parent!==void 0?this.buildElementParenting(e,p[h].parent,n):e.setHierarchy(n))),h+=1},we.prototype.addPendingElement=function(e){this.pendingElements.push(e)},we.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var d=this.createComp(e[i]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},we.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},we.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var d,p=this.elements.length;for(d=0;d<p;d+=1)if(this.elements[d].data.nm===i){n=this.elements[d];break}}return e.length===0?n:n.getElementByPath(e)},we.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new To,this.globalData.slotManager=By(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Xy={TRANSFORM_EFFECT:"transformEFfect"};function gs(){}gs.prototype={initTransform:function(){var i=new Ce;this.finalTransform={mProp:this.data.ks?Jd.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,n=this.finalTransform.mat,d=0,p=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<p;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),d=0;d<p;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),i=1;i<n;i+=1){var p=this.localTransforms[i].matrix;d.multiply(p)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var h=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)h*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=h}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(Xy.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Ce;var n=0,d=i.length;for(n=0;n<d;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var d=!0,p=this.comp;d;)p.finalTransform?(p.data.hasMask&&n.splice(0,0,p.finalTransform),p=p.comp):d=!1;var h,g=n.length,S;for(h=0;h<g;h+=1)S=n[h].mat.applyToPointArray(0,0,0),i=[i[0]-S[0],i[1]-S[1],0];return i},mHelper:new Ce};function xo(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,p,h=this.masksProperties?this.masksProperties.length:0;this.viewData=et(h),this.solidPath="";var g,S=this.masksProperties,b=0,k=[],M,G,x=Ue(),O,D,R,B,L="clipPath",w="clip-path";for(p=0;p<h;p+=1)if((S[p].mode!=="a"&&S[p].mode!=="n"||S[p].inv||S[p].o.k!==100||S[p].o.x)&&(L="mask",w="mask"),(S[p].mode==="s"||S[p].mode==="i")&&b===0?(O=Tt("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,g=Tt("path"),S[p].mode==="n")this.viewData[p]={op:nt.getProp(this.element,S[p].o,0,.01,this.element),prop:za.getShapeProp(this.element,S[p],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",S[p].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(S[p].x.k!==0?(L="mask",w="mask",B=nt.getProp(this.element,S[p].x,0,null,this.element),T=Ue(),D=Tt("filter"),D.setAttribute("id",T),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),d.appendChild(D),g.setAttribute("stroke",S[p].mode==="s"?"#000000":"#ffffff")):(R=null,B=null),this.storedData[p]={elem:g,x:B,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},S[p].mode==="i"){G=k.length;var I=Tt("g");for(M=0;M<G;M+=1)I.appendChild(k[M]);var N=Tt("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),I.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),k.length=0,k.push(I)}else k.push(g);S[p].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[p]={elem:g,lastPath:"",op:nt.getProp(this.element,S[p].o,0,.01,this.element),prop:za.getShapeProp(this.element,S[p],3),invRect:O},this.viewData[p].prop.k||this.drawPath(S[p],this.viewData[p].prop.v,this.viewData[p])}for(this.maskElement=Tt(L),h=k.length,p=0;p<h;p+=1)this.maskElement.appendChild(k[p]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}xo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},xo.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var p=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),p.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},xo.prototype.getMaskelement=function(){return this.maskElement},xo.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},xo.prototype.drawPath=function(e,i,n){var d=" M"+i.v[0][0]+","+i.v[0][1],p,h;for(h=i._length,p=1;p<h;p+=1)d+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[p][0]+","+i.i[p][1]+" "+i.v[p][0]+","+i.v[p][1];if(i.c&&h>1&&(d+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==d){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},xo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var En=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(d,p){var h=Tt("filter");return h.setAttribute("id",d),p!==!0&&(h.setAttribute("filterUnits","objectBoundingBox"),h.setAttribute("x","0%"),h.setAttribute("y","0%"),h.setAttribute("width","100%"),h.setAttribute("height","100%")),h}function n(){var d=Tt("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return e}(),km=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}(),Ya={},Nm="filter_result_";function sc(e){var i,n="SourceGraphic",d=e.data.ef?e.data.ef.length:0,p=Ue(),h=En.createFilter(p,!0),g=0;this.filters=[];var S;for(i=0;i<d;i+=1){S=null;var b=e.data.ef[i].ty;if(Ya[b]){var k=Ya[b].effect;S=new k(h,e.effectsManager.effectElements[i],e,Nm+g,n),n=Nm+g,Ya[b].countsAsEffect&&(g+=1)}S&&this.filters.push(S)}g&&(e.globalData.defs.appendChild(h),e.layerElement.setAttribute("filter","url("+f()+"#"+p+")")),this.filters.length&&e.addRenderableComponent(this)}sc.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},sc.prototype.getEffects=function(e){var i,n=this.filters.length,d=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&d.push(this.filters[i]);return d};function aS(e,i,n){Ya[e]={effect:i,countsAsEffect:n}}function Tn(){}Tn.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=Tt("clipPath"),p=Tt("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var h=Ue();if(d.setAttribute("id",h),d.appendChild(p),this.globalData.defs.appendChild(d),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+h+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")")}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 xo(this.data,this,this.globalData),this.renderableEffectsManager=new sc(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,d,p,h,g;if(i===1||i===3){var S=Tt("mask");S.setAttribute("id",n),S.setAttribute("mask-type",i===3?"luminance":"alpha"),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),S.appendChild(h),this.globalData.defs.appendChild(S),!km.maskType&&i===1&&(S.setAttribute("mask-type","luminance"),d=Ue(),p=En.createFilter(d),this.globalData.defs.appendChild(p),p.appendChild(En.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(h),S.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var k=Tt("g");b.appendChild(k),d=Ue(),p=En.createFilter(d);var M=Tt("feComponentTransfer");M.setAttribute("in","SourceGraphic"),p.appendChild(M);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),M.appendChild(G),this.globalData.defs.appendChild(p);var x=Tt("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(h),km.maskType||(b.setAttribute("mask-type","luminance"),p.appendChild(En.createAlphaToLuminanceFilter()),g=Tt("g"),k.appendChild(x),g.appendChild(this.layerElement),k.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function bs(){}bs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function xn(){}(function(){var e={initElement:function(n,d,p){this.initFrame(),this.initBaseData(n,d,p),this.initTransform(n,d,p),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([Wa,W(e)],xn)})();function An(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Mi,gs,Tn,bs,Oi,xn],An),An.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)},An.prototype.sourceRectAtTime=function(){return this.sourceRect};function Zy(e,i){this.elem=e,this.pos=i}function Lm(){}Lm.prototype={addShapeToModifiers:function(i){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var d;for(i=n-1;i>=0&&(d=this.shapeModifiers[i].processShapes(this._isFirstFrame),!d);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,d=0,p=n.length;d<p;){if(n[d].elem===i)return n[d].pos;d+=1}return 0},addProcessedElement:function(i,n){for(var d=this.processedElements,p=d.length;p;)if(p-=1,d[p].elem===i){d[p].pos=n;return}d.push(new Zy(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var Mm={1:"butt",2:"round",3:"square"},Om={1:"miter",2:"round",3:"bevel"};function Rm(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var d=0,p=e.length;d<p;){if(e[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Rm.prototype.setAsAnimated=function(){this._isAnimated=!0};function Pm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}Pm.prototype.reset=function(){this.d="",this._mdf=!1};function ja(e,i,n,d){this.elem=e,this.frameId=-1,this.dataProps=et(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",i.length?i.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var p,h=i.length||0,g;for(p=0;p<h;p+=1)g=nt.getProp(e,i[p].v,0,0,this),this.k=g.k||this.k,this.dataProps[p]={n:i[p].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}ja.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},A([ye],ja);function Dm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new ja(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([ye],Dm);function Fm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}A([ye],Fm);function $m(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}A([ye],$m);function Sn(e,i,n){this.data=i,this.c=Z("uint8c",i.p*4);var d=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=Z("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Sn.prototype.comparePoints=function(e,i){for(var n=0,d=this.o.length/2,p;n<d;){if(p=Math.abs(e[n*4]-e[i*4+n*2]),p>.01)return!1;n+=1}return!0},Sn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Sn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,d,p;for(i=0;i<n;i+=1)d=i%4===0?100:255,p=Math.round(this.prop.v[i]*d),this.c[i]!==p&&(this.c[i]=p,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)d=i%2===0?100:1,p=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==p&&(this.o[i-this.data.p*4]=p,this._omdf=!e);this._mdf=!e}},A([ye],Sn);function ys(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}ys.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,Nt,this),this.g=new Sn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},ys.prototype.setGradientData=function(e,i){var n=Ue(),d=Tt(i.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var p=[],h,g,S;for(S=i.g.p*4,g=0;g<S;g+=4)h=Tt("stop"),d.appendChild(h),p.push(h);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=p},ys.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,p,h=Tt("mask"),g=Tt("path");h.appendChild(g);var S=Ue(),b=Ue();h.setAttribute("id",b);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",S),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),p=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var M=this.stops;for(d=e.g.p*4;d<p;d+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),M.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+S+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",Mm[e.lc||2]),g.setAttribute("stroke-linejoin",Om[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=h,this.ost=M,this.maskId=b,i.msElem=g}},A([ye],ys);function Vm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new ja(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}A([ys,ye],Vm);function Qy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function Jy(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var zm=function(i,n,d,p){if(n===0)return"";var h=i.o,g=i.i,S=i.v,b,k=" M"+p.applyToPointStringified(S[0][0],S[0][1]);for(b=1;b<n;b+=1)k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[b][0],g[b][1])+" "+p.applyToPointStringified(S[b][0],S[b][1]);return d&&n&&(k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[0][0],g[0][1])+" "+p.applyToPointStringified(S[0][0],S[0][1]),k+="z"),k},tE=function(){var e=new Ce,i=new Ce,n={createRenderFunction:d};function d(G){switch(G.ty){case"fl":return S;case"gf":return k;case"gs":return b;case"st":return M;case"sh":case"el":case"rc":case"sr":return g;case"tr":return p;case"no":return h;default:return null}}function p(G,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function h(){}function g(G,x,O){var D,R,B,L,w,T,I=x.styles.length,N=x.lvl,$,U,Y,it;for(T=0;T<I;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(U=i.reset(),Y=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&Y>0;)L=x.transformers[it].mProps._mdf||L,Y-=1,it-=1;if(L)for(Y=N-x.styles[T].lvl,it=x.transformers.length-1;Y>0;)U.multiply(x.transformers[it].mProps.v),Y-=1,it-=1}else U=e;if($=x.sh.paths,R=$._length,L){for(B="",D=0;D<R;D+=1)w=$.shapes[D],w&&w._length&&(B+=zm(w,w._length,w.c,U));x.caches[T]=B}else B=x.caches[T];x.styles[T].d+=G.hd===!0?"":B,x.styles[T]._mdf=L||x.styles[T]._mdf}}function S(G,x,O){var D=x.style;(x.c._mdf||O)&&D.pElem.setAttribute("fill","rgb("+be(x.c.v[0])+","+be(x.c.v[1])+","+be(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){k(G,x,O),M(G,x,O)}function k(G,x,O){var D=x.gf,R=x.g._hasOpacity,B=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=G.t===1?"x1":"cx",I=T==="x1"?"y1":"cy";D.setAttribute(T,B[0]),D.setAttribute(I,B[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,B[0]),x.of.setAttribute(I,B[1]))}var N,$,U,Y;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(U=N.length,$=0;$<U;$+=1)Y=N[$],Y.setAttribute("offset",it[$*4]+"%"),Y.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var yt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,U=N.length,$=0;$<U;$+=1)Y=N[$],x.g._collapsable||Y.setAttribute("offset",yt[$*2]+"%"),Y.setAttribute("stop-opacity",yt[$*2+1])}if(G.t===1)(x.e._mdf||O)&&(D.setAttribute("x2",L[0]),D.setAttribute("y2",L[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)),D.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)));var st=Math.atan2(L[1]-B[1],L[0]-B[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=ut*xt,rt=Math.cos(st+x.a.v)*ct+B[0],C=Math.sin(st+x.a.v)*ct+B[1];D.setAttribute("fx",rt),D.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function M(G,x,O){var D=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&D.pElem.setAttribute("stroke","rgb("+be(x.c.v[0])+","+be(x.c.v[1])+","+be(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function re(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}A([Mi,gs,Tn,Lm,bs,Oi,xn],re),re.prototype.initSecondaryElement=function(){},re.prototype.identityMatrix=new Ce,re.prototype.buildExpressionInterface=function(){},re.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},re.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,d,p=this.stylesList.length,h,g=[],S=!1;for(d=0;d<p;d+=1){for(h=this.stylesList[d],S=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(h)!==-1&&(g.push(n),S=n._isAnimated||S);g.length>1&&S&&this.setShapesAsAnimated(g)}},re.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},re.prototype.createStyleElement=function(e,i){var n,d=new Pm(e,i),p=d.pElem;if(e.ty==="st")n=new Dm(this,e,d);else if(e.ty==="fl")n=new Fm(this,e,d);else if(e.ty==="gf"||e.ty==="gs"){var h=e.ty==="gf"?ys:Vm;n=new h(this,e,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),p.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new $m(this,e,d));return(e.ty==="st"||e.ty==="gs")&&(p.setAttribute("stroke-linecap",Mm[e.lc||2]),p.setAttribute("stroke-linejoin",Om[e.lj||2]),p.setAttribute("fill-opacity","0"),e.lj===1&&p.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&p.setAttribute("fill-rule","evenodd"),e.ln&&p.setAttribute("id",e.ln),e.cl&&p.setAttribute("class",e.cl),e.bm&&(p.style["mix-blend-mode"]=oc(e.bm)),this.stylesList.push(d),this.addToAnimatedContents(e,n),n},re.prototype.createGroupElement=function(e){var i=new Qy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=oc(e.bm)),i},re.prototype.createTransformElement=function(e,i){var n=Jd.getTransformProperty(this,e,this),d=new Jy(n,n.o,i);return this.addToAnimatedContents(e,d),d},re.prototype.createShapeElement=function(e,i,n){var d=4;e.ty==="rc"?d=5:e.ty==="el"?d=6:e.ty==="sr"&&(d=7);var p=za.getShapeProp(this,e,d,this),h=new Rm(i,n,p);return this.shapes.push(h),this.addShapeToModifiers(h),this.addToAnimatedContents(e,h),h},re.prototype.addToAnimatedContents=function(e,i){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:tE.createRenderFunction(e),element:i,data:e})},re.prototype.setElementStyles=function(e){var i=e.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},re.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},re.prototype.searchShapes=function(e,i,n,d,p,h,g){var S=[].concat(h),b,k=e.length-1,M,G,x=[],O=[],D,R,B;for(b=k;b>=0;b-=1){if(B=this.searchProcessedElement(e[b]),B?i[b]=n[B-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")B?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],p),e[b]._render&&i[b].style.pElem.parentNode!==d&&d.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!B)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,M=0;M<G;M+=1)i[b].prevViewData[M]=i[b].it[M];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,p+1,S,g),e[b]._render&&i[b].gr.parentNode!==d&&d.appendChild(i[b].gr)}else e[b].ty==="tr"?(B||(i[b]=this.createTransformElement(e[b],d)),D=i[b].transform,S.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(B||(i[b]=this.createShapeElement(e[b],S,p)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(B?(R=i[b],R.closed=!1):(R=Ni.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),O.push(R)):e[b].ty==="rp"&&(B?(R=i[b],R.closed=!0):(R=Ni.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(e[b],b+1)}for(k=x.length,b=0;b<k;b+=1)x[b].closed=!0;for(k=O.length,b=0;b<k;b+=1)O[b].closed=!0},re.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},re.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},re.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function nc(e,i,n,d,p,h){this.o=e,this.sw=i,this.sc=n,this.fc=d,this.m=p,this.p=h,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!d,m:!0,p:!0}}nc.prototype.update=function(e,i,n,d,p,h){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==p&&(this.m=p,this._mdf.m=!0,g=!0),h.length&&(this.p[0]!==h[0]||this.p[1]!==h[1]||this.p[4]!==h[4]||this.p[5]!==h[5]||this.p[12]!==h[12]||this.p[13]!==h[13])&&(this.p=h,this._mdf.p=!0,g=!0),g};function Pe(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Pe.prototype.defaultBoxWidth=[0,0],Pe.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},Pe.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Pe.prototype.searchProperty=function(){return this.searchKeyframes()},Pe.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Pe.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Pe.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,p=this.effectsSequence.length,h=e||this.data.d.k[this.keysIndex].s;for(d=0;d<p;d+=1)n!==this.keysIndex?h=this.effectsSequence[d](h,h.t):h=this.effectsSequence[d](this.currentData,h.t);i!==h&&this.setCurrentData(h),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Pe.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,d=e.length;n<=d-1&&!(n===d-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Pe.prototype.buildFinalText=function(e){for(var i=[],n=0,d=e.length,p,h,g=!1,S=!1,b="";n<d;)g=S,S=!1,p=e.charCodeAt(n),b=e.charAt(n),To.isCombinedCharacter(p)?g=!0:p>=55296&&p<=56319?To.isRegionalFlag(e,n)?b=e.substr(n,14):(h=e.charCodeAt(n+1),h>=56320&&h<=57343&&(To.isModifier(p,h)?(b=e.substr(n,2),g=!0):To.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):p>56319?(h=e.charCodeAt(n+1),To.isVariationSelector(p)&&(g=!0)):To.isZeroWidthJoiner(p)&&(g=!0,S=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},Pe.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,d=[],p,h,g,S=0,b,k=n.m.g,M=0,G=0,x=0,O=[],D=0,R=0,B,L,w=i.getFontByName(e.f),T,I=0,N=_m(w);e.fWeight=N.weight,e.fStyle=N.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),h=e.finalText.length,e.finalLineHeight=e.lh;var $=e.tr/1e3*e.finalSize,U;if(e.sz)for(var Y=!0,it=e.sz[0],yt=e.sz[1],ut,st;Y;){st=this.buildFinalText(e.t),ut=0,D=0,h=st.length,$=e.tr/1e3*e.finalSize;var xt=-1;for(p=0;p<h;p+=1)U=st[p].charCodeAt(0),g=!1,st[p]===" "?xt=p:(U===13||U===3)&&(D=0,g=!0,ut+=e.finalLineHeight||e.finalSize*1.2),i.chars?(T=i.getCharData(st[p],w.fStyle,w.fFamily),I=g?0:T.w*e.finalSize/100):I=i.measureText(st[p],e.f,e.finalSize),D+I>it&&st[p]!==" "?(xt===-1?h+=1:p=xt,ut+=e.finalLineHeight||e.finalSize*1.2,st.splice(p,xt===p?1:0,"\r"),xt=-1,D=0):(D+=I,D+=$);ut+=w.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<ut?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,h=e.finalText.length,Y=!1)}D=-$,I=0;var ct=0,rt;for(p=0;p<h;p+=1)if(g=!1,rt=e.finalText[p],U=rt.charCodeAt(0),U===13||U===3?(ct=0,O.push(D),R=D>R?D:R,D=-2*$,b="",g=!0,x+=1):b=rt,i.chars?(T=i.getCharData(rt,w.fStyle,i.getFontByName(e.f).fFamily),I=g?0:T.w*e.finalSize/100):I=i.measureText(b,e.f,e.finalSize),rt===" "?ct+=I+$:(D+=I+$+ct,ct=0),d.push({l:I,an:I,add:M,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),k==2){if(M+=I,b===""||b===" "||p===h-1){for((b===""||b===" ")&&(M-=I);G<=p;)d[G].an=M,d[G].ind=S,d[G].extra=I,G+=1;S+=1,M=0}}else if(k==3){if(M+=I,b===""||p===h-1){for(b===""&&(M-=I);G<=p;)d[G].an=M,d[G].ind=S,d[G].extra=I,G+=1;M=0,S+=1}}else d[S].ind=S,d[S].extra=0,S+=1;if(e.l=d,R=D>R?D:R,O.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=O;var C=n.a,P,v;L=C.length;var E,K,V=[];for(B=0;B<L;B+=1){for(P=C[B],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),K=0,E=P.s.b,p=0;p<h;p+=1)v=d[p],v.anIndexes[B]=K,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||p==h-1)||E==4&&(v.n||p==h-1))&&(P.s.rn===1&&V.push(K),K+=1);n.a[B].s.totalChars=K;var at=-1,vt;if(P.s.rn===1)for(p=0;p<h;p+=1)v=d[p],at!=v.anIndexes[B]&&(at=v.anIndexes[B],vt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[B]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=w.ascent*e.finalSize/100},Pe.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Pe.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Pe.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Pe.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var eE=function(){var e=Math.max,i=Math.min,n=Math.floor;function d(h,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=h,this.comp=h.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(h),this.s=nt.getProp(h,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(h,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(h,g.o||{k:0},0,0,this),this.xe=nt.getProp(h,g.xe||{k:0},0,0,this),this.ne=nt.getProp(h,g.ne||{k:0},0,0,this),this.sm=nt.getProp(h,g.sm||{k:100},0,0,this),this.a=nt.getProp(h,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var S=0,b=0,k=1,M=1;this.ne.v>0?S=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var G=mn.getBezierEasing(S,b,k,M).get,x=0,O=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===O?x=g>=D?1:0:x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===3)D===O?x=g>=D?0:1:x=1-e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===4)D===O?x=0:(x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===O)x=0;else{var B=D-O;g=i(e(0,g+.5-O),D-O);var L=-B/2+g,w=B/2;x=Math.sqrt(1-L*L/(w*w))}x=G(x)}else R===6?(D===O?x=0:(g=i(e(0,g+.5-O),D-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-O)))/2),x=G(x)):(g>=n(O)&&(g-O<0?x=e(0,i(i(D,1)-(O-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var I=.5-T*.5;x<I?x=0:(x=(x-I)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var S=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/S,k=this.s.v/S+b,M=this.e.v/S+b;if(k>M){var G=k;k=M,M=G}this.finalS=k,this.finalE=M}},A([ye],d);function p(h,g,S){return new d(h,g,S)}return{getTextSelectorProp:p}}();function rE(e,i,n){var d={propType:!1},p=nt.getProp,h=i.a;this.a={r:h.r?p(e,h.r,0,Nt,n):d,rx:h.rx?p(e,h.rx,0,Nt,n):d,ry:h.ry?p(e,h.ry,0,Nt,n):d,sk:h.sk?p(e,h.sk,0,Nt,n):d,sa:h.sa?p(e,h.sa,0,Nt,n):d,s:h.s?p(e,h.s,1,.01,n):d,a:h.a?p(e,h.a,1,0,n):d,o:h.o?p(e,h.o,0,.01,n):d,p:h.p?p(e,h.p,1,0,n):d,sw:h.sw?p(e,h.sw,0,0,n):d,sc:h.sc?p(e,h.sc,1,0,n):d,fc:h.fc?p(e,h.fc,1,0,n):d,fh:h.fh?p(e,h.fh,0,0,n):d,fs:h.fs?p(e,h.fs,0,.01,n):d,fb:h.fb?p(e,h.fb,0,.01,n):d,t:h.t?p(e,h.t,0,0,n):d},this.s=eE.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function Ao(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Ao.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,d=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new rE(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},Ao.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,p=this._textData,h=this.mHelper,g=this._renderType,S=this.renderedLetters.length,b,k,M,G,x=e.l,O,D,R,B,L,w,T,I,N,$,U,Y,it,yt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var xt;for(Y=0,M=0;M<G;M+=1)xt=$r.buildBezierData(st.v[M],st.v[M+1],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[M+1][0]-st.v[M+1][0],st.i[M+1][1]-st.v[M+1][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),Y+=xt.segmentLength;M=G,ut.v.c&&(xt=$r.buildBezierData(st.v[M],st.v[0],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),Y+=xt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,D=this._pathData.f.v,T=0,w=1,B=0,L=!0,$=O.segments,D<0&&ut.v.c)for(O.tLength<Math.abs(D)&&(D=-Math.abs(D)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;D<0;)D+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,I=N[w-1],R=N[w],U=R.partialLength}G=x.length,b=0,k=0;var ct=e.finalSize*1.2*.714,rt=!0,C,P,v,E,K;E=d.length;var V,at=-1,vt,Et,Pt,Dt=D,ae=T,Ke=w,zr=-1,We,Ee,rr,Vt,ht,si,Di,ni,Br="",ai=this.defaultPropsArray,li;if(e.j===2||e.j===1){var Ye=0,Fi=0,$i=e.j===2?-.5:-1,wr=0,Vi=!0;for(M=0;M<G;M+=1)if(x[M].n){for(Ye&&(Ye+=Fi);wr<M;)x[wr].animatorJustifyOffset=Ye,wr+=1;Ye=0,Vi=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(Vi&&e.j===2&&(Fi+=C.t.v*$i),P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?Ye+=C.t.v*V[0]*$i:Ye+=C.t.v*V*$i);Vi=!1}for(Ye&&(Ye+=Fi);wr<M;)x[wr].animatorJustifyOffset=Ye,wr+=1}for(M=0;M<G;M+=1){if(h.reset(),We=1,x[M].n)b=0,k+=e.yOffset,k+=rt?1:0,D=Dt,rt=!1,this._hasMaskedPath&&(T=ae,w=Ke,N=$[T].points,I=N[w-1],R=N[w],U=R.partialLength,B=0),Br="",ni="",si="",li="",ai=this.defaultPropsArray;else{if(this._hasMaskedPath){if(zr!==x[M].line){switch(e.j){case 1:D+=Y-e.lineWidths[x[M].line];break;case 2:D+=(Y-e.lineWidths[x[M].line])/2;break;default:break}zr=x[M].line}at!==x[M].ind&&(x[at]&&(D+=x[at].extra),D+=x[M].an/2,at=x[M].ind),D+=n[0]*x[M].an*.005;var kr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?kr+=C.p.v[0]*V[0]:kr+=C.p.v[0]*V),C.a.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?kr+=C.a.v[0]*V[0]:kr+=C.a.v[0]*V);for(L=!0,this._pathData.a.v&&(D=x[0].an*.5+(Y-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);L;)B+U>=D+kr||!N?(it=(D+kr-B)/R.partialLength,Et=I.point[0]+(R.point[0]-I.point[0])*it,Pt=I.point[1]+(R.point[1]-I.point[1])*it,h.translate(-n[0]*x[M].an*.005,-(n[1]*ct)*.01),L=!1):N&&(B+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ut.v.c?(w=0,T=0,N=$[T].points):(B-=R.partialLength,N=null)),N&&(I=R,R=N[w],U=R.partialLength));vt=x[M].an/2-x[M].add,h.translate(-vt,0,0)}else vt=x[M].an/2-x[M].add,h.translate(-vt,0,0),h.translate(-n[0]*x[M].an*.005,-n[1]*ct*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?V.length?D+=C.t.v*V[0]:D+=C.t.v*V:V.length?b+=C.t.v*V[0]:b+=C.t.v*V));for(e.strokeWidthAnim&&(rr=e.sw||0),e.strokeColorAnim&&(e.sc?Ee=[e.sc[0],e.sc[1],e.sc[2]]:Ee=[0,0,0]),e.fillColorAnim&&e.fc&&(Vt=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?h.translate(-C.a.v[0]*V[0],-C.a.v[1]*V[1],C.a.v[2]*V[2]):h.translate(-C.a.v[0]*V,-C.a.v[1]*V,C.a.v[2]*V));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?h.scale(1+(C.s.v[0]-1)*V[0],1+(C.s.v[1]-1)*V[1],1):h.scale(1+(C.s.v[0]-1)*V,1+(C.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(C=d[v].a,P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),C.sk.propType&&(V.length?h.skewFromAxis(-C.sk.v*V[0],C.sa.v*V[1]):h.skewFromAxis(-C.sk.v*V,C.sa.v*V)),C.r.propType&&(V.length?h.rotateZ(-C.r.v*V[2]):h.rotateZ(-C.r.v*V)),C.ry.propType&&(V.length?h.rotateY(C.ry.v*V[1]):h.rotateY(C.ry.v*V)),C.rx.propType&&(V.length?h.rotateX(C.rx.v*V[0]):h.rotateX(C.rx.v*V)),C.o.propType&&(V.length?We+=(C.o.v*V[0]-We)*V[0]:We+=(C.o.v*V-We)*V),e.strokeWidthAnim&&C.sw.propType&&(V.length?rr+=C.sw.v*V[0]:rr+=C.sw.v*V),e.strokeColorAnim&&C.sc.propType)for(ht=0;ht<3;ht+=1)V.length?Ee[ht]+=(C.sc.v[ht]-Ee[ht])*V[0]:Ee[ht]+=(C.sc.v[ht]-Ee[ht])*V;if(e.fillColorAnim&&e.fc){if(C.fc.propType)for(ht=0;ht<3;ht+=1)V.length?Vt[ht]+=(C.fc.v[ht]-Vt[ht])*V[0]:Vt[ht]+=(C.fc.v[ht]-Vt[ht])*V;C.fh.propType&&(V.length?Vt=Jp(Vt,C.fh.v*V[0]):Vt=Jp(Vt,C.fh.v*V)),C.fs.propType&&(V.length?Vt=Zp(Vt,C.fs.v*V[0]):Vt=Zp(Vt,C.fs.v*V)),C.fb.propType&&(V.length?Vt=Qp(Vt,C.fb.v*V[0]):Vt=Qp(Vt,C.fb.v*V))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),this._hasMaskedPath?V.length?h.translate(0,C.p.v[1]*V[0],-C.p.v[2]*V[1]):h.translate(0,C.p.v[1]*V,-C.p.v[2]*V):V.length?h.translate(C.p.v[0]*V[0],C.p.v[1]*V[1],-C.p.v[2]*V[2]):h.translate(C.p.v[0]*V,C.p.v[1]*V,-C.p.v[2]*V));if(e.strokeWidthAnim&&(si=rr<0?0:rr),e.strokeColorAnim&&(Di="rgb("+Math.round(Ee[0]*255)+","+Math.round(Ee[1]*255)+","+Math.round(Ee[2]*255)+")"),e.fillColorAnim&&e.fc&&(ni="rgb("+Math.round(Vt[0]*255)+","+Math.round(Vt[1]*255)+","+Math.round(Vt[2]*255)+")"),this._hasMaskedPath){if(h.translate(0,-e.ls),h.translate(0,n[1]*ct*.01+k,0),this._pathData.p.v){yt=(R.point[1]-I.point[1])/(R.point[0]-I.point[0]);var So=Math.atan(yt)*180/Math.PI;R.point[0]<I.point[0]&&(So+=180),h.rotate(-So*Math.PI/180)}h.translate(Et,Pt,0),D-=n[0]*x[M].an*.005,x[M+1]&&at!==x[M+1].ind&&(D+=x[M].an/2,D+=e.tr*.001*e.finalSize)}else{switch(h.translate(b,k,0),e.ps&&h.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line]),0,0);break;case 2:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line])/2,0,0);break;default:break}h.translate(0,-e.ls),h.translate(vt,0,0),h.translate(n[0]*x[M].an*.005,n[1]*ct*.01,0),b+=x[M].l+e.tr*.001*e.finalSize}g==="html"?Br=h.toCSS():g==="svg"?Br=h.to2dCSS():ai=[h.props[0],h.props[1],h.props[2],h.props[3],h.props[4],h.props[5],h.props[6],h.props[7],h.props[8],h.props[9],h.props[10],h.props[11],h.props[12],h.props[13],h.props[14],h.props[15]],li=We}S<=M?(K=new nc(li,si,Di,ni,Br,ai),this.renderedLetters.push(K),S+=1,this.lettersChangedFlag=!0):(K=this.renderedLetters[M],this.lettersChangedFlag=K.update(li,si,Di,ni,Br,ai)||this.lettersChangedFlag)}}},Ao.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Ao.prototype.mHelper=new Ce,Ao.prototype.defaultPropsArray=[],A([ye],Ao);function mr(){}mr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new Pe(this,e.t,this.dynamicProperties),this.textAnimator=new Ao(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},mr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},mr.prototype.createPathShape=function(e,i){var n,d=i.length,p,h="";for(n=0;n<d;n+=1)i[n].ty==="sh"&&(p=i[n].ks.k,h+=zm(p,p.i.length,!0,e));return h},mr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},mr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},mr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},mr.prototype.applyTextPropertiesToMatrix=function(e,i,n,d,p){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(d,p,0)},mr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},mr.prototype.emptyProp=new nc,mr.prototype.destroy=function(){},mr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var iE={shapes:[]};function ii(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}A([Mi,gs,Tn,bs,Oi,xn,mr],ii),ii.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ii.prototype.buildTextContents=function(e){for(var i=0,n=e.length,d=[],p="";i<n;)e[i]==="\r"||e[i]===""?(d.push(p),p=""):p+=e[i],i+=1;return d.push(p),d},ii.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=i,d.s.k[1]=i)}}return e},ii.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=et(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var p=n.fWeight,h=n.fStyle;this.layerElement.setAttribute("font-style",h),this.layerElement.setAttribute("font-weight",p)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],S=!!this.globalData.fontManager.chars;i=g.length;var b,k=this.mHelper,M="",G=this.data.singleShape,x=0,O=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!S&&!n.sz){var B=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}B.setAttribute("text-anchor",L),B.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(i=w.length,O=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=w[e],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",B.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(B)}else{var T=this.textSpans.length,I;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!S||!G||e===0){if(b=T>e?this.textSpans[e].span:Tt(S?"g":"text"),T<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,S){var N=Tt("g");b.appendChild(N),this.textSpans[e].childSpan=N}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(k.reset(),G&&(g[e].n&&(x=-R,O+=n.yOffset,O+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,k,g[e].line,x,O),x+=g[e].l||0,x+=R),S){I=this.globalData.fontManager.getCharData(n.finalText[e],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(I.t===1)$=new In(I.data,this.globalData,this);else{var U=iE;I.data&&I.data.shapes&&(U=this.buildShapeData(I.data,n.finalSize)),$=new re(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),I.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",M)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ii.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},ii.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ii.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;i=d.length;var p,h,g;for(e=0;e<i;e+=1)d[e].n||(p=n[e],h=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),p._mdf.m&&h.setAttribute("transform",p.m),p._mdf.o&&h.setAttribute("opacity",p.o),p._mdf.sw&&h.setAttribute("stroke-width",p.sw),p._mdf.sc&&h.setAttribute("stroke",p.sc),p._mdf.fc&&h.setAttribute("fill",p.fc))}};function ac(e,i,n){this.initElement(e,i,n)}A([An],ac),ac.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 Pi(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Pi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Pi.prototype.renderFrame=function(){},Pi.prototype.getBaseElement=function(){return null},Pi.prototype.destroy=function(){},Pi.prototype.sourceRectAtTime=function(){},Pi.prototype.hide=function(){},A([Mi,gs,bs,Oi],Pi);function he(){}A([we],he),he.prototype.createNull=function(e){return new Pi(e,this.globalData,this)},he.prototype.createShape=function(e){return new re(e,this.globalData,this)},he.prototype.createText=function(e){return new ii(e,this.globalData,this)},he.prototype.createImage=function(e){return new An(e,this.globalData,this)},he.prototype.createSolid=function(e){return new ac(e,this.globalData,this)},he.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),d=Tt("rect");d.setAttribute("width",e.w),d.setAttribute("height",e.h),d.setAttribute("x",0),d.setAttribute("y",0);var p=Ue();n.setAttribute("id",p),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")"),i.appendChild(n),this.layers=e.layers,this.elements=et(e.layers.length)},he.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},he.prototype.updateContainerSize=function(){},he.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},he.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,Oa()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var d="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var p=i[d],h=p.getMatte(this.layers[e].tt);n.setMatte(h)}}}},he.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var d="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,p=this.elements[d],h=p.getMatte(this.layers[i].tt);e.setMatte(h);break}i+=1}}},he.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},he.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var d=0,p;d<i;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(p=this.elements[d].getBaseElement()),d+=1;p?this.layerElement.insertBefore(n,p):this.layerElement.appendChild(n)}},he.prototype.hide=function(){this.layerElement.style.display="none"},he.prototype.show=function(){this.layerElement.style.display="block"};function oi(){}A([Mi,gs,bs,Oi,xn],oi),oi.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},oi.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},oi.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},oi.prototype.setElements=function(e){this.elements=e},oi.prototype.getElements=function(){return this.elements},oi.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},oi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function In(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}A([he,oi,Tn],In),In.prototype.createComp=function(e){return new In(e,this.globalData,this)};function lc(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var d=Tt("title"),p=Ue();d.setAttribute("id",p),d.textContent=i.title,this.svgElement.appendChild(d),n+=p}if(i&&i.description){var h=Tt("desc"),g=Ue();h.setAttribute("id",g),h.textContent=i.description,this.svgElement.appendChild(h),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var S=Tt("defs");this.svgElement.appendChild(S);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:S,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([he],lc),lc.prototype.createComp=function(e){return new In(e,this.globalData,this)},my("svg",lc),Ni.registerModifier("tm",Cr),Ni.registerModifier("pb",un),Ni.registerModifier("rp",Vr),Ni.registerModifier("rd",fn),Ni.registerModifier("zz",gn),Ni.registerModifier("op",bn),Ft})});var Qa=globalThis,Ja=Qa.ShadowRoot&&(Qa.ShadyCSS===void 0||Qa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cc=Symbol(),Hm=new WeakMap,_n=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==cc)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(Ja&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Hm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Hm.set(t,o))}return o}toString(){return this.cssText}},Um=a=>new _n(typeof a=="string"?a:a+"",void 0,cc),H=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,l)=>r+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[l+1],a[0]);return new _n(t,a,cc)},hc=(a,o)=>{if(Ja)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Qa.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},tl=Ja?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Um(t)})(a):a;var{is:hE,defineProperty:pE,getOwnPropertyDescriptor:mE,getOwnPropertyNames:uE,getOwnPropertySymbols:fE,getPrototypeOf:vE}=Object,zi=globalThis,Gm=zi.trustedTypes,gE=Gm?Gm.emptyScript:"",pc=zi.reactiveElementPolyfillSupport,Cn=(a,o)=>a,wn={toAttribute(a,o){switch(o){case Boolean:a=a?gE:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},el=(a,o)=>!hE(a,o),Km={attribute:!0,type:String,converter:wn,reflect:!1,hasChanged:el},Wm,Ym;(Wm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ym=zi.litPropertyMetadata)!=null||(zi.litPropertyMetadata=new WeakMap);var di=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Km){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&pE(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var c;let{get:s,set:l}=(c=mE(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let y=s==null?void 0:s.call(this);l.call(this,f),this.requestUpdate(o,y,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Km}static _$Ei(){if(this.hasOwnProperty(Cn("elementProperties")))return;let o=vE(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cn("properties"))){let t=this.properties,r=[...uE(t),...fE(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(tl(s))}else o!==void 0&&t.push(tl(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return hc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var l;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let c=(((l=r.converter)==null?void 0:l.toAttribute)!==void 0?r.converter:wn).toAttribute(t,r.type);this._$Em=o,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(o,t){var l;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:wn;this._$Em=s,this[s]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:el)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},jm;di.elementStyles=[],di.shadowRootOptions={mode:"open"},di[Cn("elementProperties")]=new Map,di[Cn("finalized")]=new Map,pc==null||pc({ReactiveElement:di}),((jm=zi.reactiveElementVersions)!=null?jm:zi.reactiveElementVersions=[]).push("2.0.4");var Nn=globalThis,rl=Nn.trustedTypes,qm=rl?rl.createPolicy("lit-html",{createHTML:a=>a}):void 0,fc="$lit$",ci=`lit$${Math.random().toFixed(9).slice(2)}$`,vc="?"+ci,bE=`<${vc}>`,Co=document,Ln=()=>Co.createComment(""),Mn=a=>a===null||typeof a!="object"&&typeof a!="function",gc=Array.isArray,ru=a=>gc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",mc=`[
|
|
2
|
+
`),d={},p,h=0,g=0;g<n.length;g+=1)p=n[g].split(":"),p.length===2&&(d[p[0]]=p[1].trim(),h+=1);if(h===0)throw new Error;return d}return function(i){for(var n=[],d=0;d<i.length;d+=1){var p=i[d],h={time:p.tm,duration:p.dr};try{h.payload=JSON.parse(i[d].cm)}catch{try{h.payload=e(i[d].cm)}catch{h.payload={name:i[d].cm}}}n.push(h)}return n}}(),py=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var d=0,p=this.compositions.length;d<p;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),hn={},my=function(i,n){hn[i]=n};function uy(e){return hn[e]}function fy(){if(hn.canvas)return"canvas";for(var e in hn)if(hn[e])return e;return""}function pn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(n){return typeof n}:pn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pn(e)}var ft=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Ue(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=ay(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=py(),this.imagePreloader=new cy,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new hr("drawnFrame",0,0,0),this.expressionsPlugin=Oa()};A([em],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=uy(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),cn.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){cn.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&pn(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},d=e.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:fy()||"canvas";var p=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";p==="false"?n.loop=!1:p==="true"?n.loop=!0:p!==""&&(n.loop=parseInt(p,10));var h=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=h!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,d=i.length,p=e.layers,h,g=p.length;for(h=0;h<g;h+=1)for(n=0;n<d;){if(i[n].id===p[h].id){i[n]=p[h];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(d=e.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,cn.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Oa();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,cn.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=hy(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=Oa();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,d=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,d)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var d=Number(e);if(isNaN(d)){var p=this.getMarkerData(e);p&&this.goToAndStop(p.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var d=Number(e);if(isNaN(d)){var p=this.getMarkerData(e);p&&(p.duration?this.playSegments([p.time,p.time+p.duration],!0):this.goToAndStop(p.time,!0))}else this.goToAndStop(d,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),pn(e[0])==="object"){var n,d=e.length;for(n=0;n<d;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var d=this.renderer.getElementByPath(e);d.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new hr(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 jp(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Ma(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new qp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Xp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new hr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new jp(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Ma(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new qp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Xp(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new oy(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new sy(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ne=function(){var e={},i=[],n=0,d=0,p=0,h=!0,g=!1;function S(C){for(var P=0,v=C.target;P<d;)i[P].animation===v&&(i.splice(P,1),P-=1,d-=1,v.isPaused||G()),P+=1}function b(C,P){if(!C)return null;for(var v=0;v<d;){if(i[v].elem===C&&i[v].elem!==null)return i[v].animation;v+=1}var E=new ft;return x(E,C),E.setData(C,P),E}function k(){var C,P=i.length,v=[];for(C=0;C<P;C+=1)v.push(i[C].animation);return v}function M(){p+=1,yt()}function G(){p-=1}function x(C,P){C.addEventListener("destroy",S),C.addEventListener("_active",M),C.addEventListener("_idle",G),i.push({elem:P,animation:C}),d+=1}function O(C){var P=new ft;return x(P,null),P.setParams(C),P}function D(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setSpeed(C,P)}function R(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setDirection(C,P)}function B(C){var P;for(P=0;P<d;P+=1)i[P].animation.play(C)}function L(C){var P=C-n,v;for(v=0;v<d;v+=1)i[v].animation.advanceTime(P);n=C,p&&!g?window.requestAnimationFrame(L):h=!0}function w(C){n=C,window.requestAnimationFrame(L)}function T(C){var P;for(P=0;P<d;P+=1)i[P].animation.pause(C)}function I(C,P,v){var E;for(E=0;E<d;E+=1)i[E].animation.goToAndStop(C,P,v)}function N(C){var P;for(P=0;P<d;P+=1)i[P].animation.stop(C)}function $(C){var P;for(P=0;P<d;P+=1)i[P].animation.togglePause(C)}function U(C){var P;for(P=d-1;P>=0;P-=1)i[P].animation.destroy(C)}function Y(C,P,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,V=E.length;for(K=0;K<V;K+=1)v&&E[K].setAttribute("data-bm-type",v),b(E[K],C);if(P&&V===0){v||(v="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=y("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),at.appendChild(vt),b(vt,C)}}function it(){var C;for(C=0;C<d;C+=1)i[C].animation.resize()}function yt(){!g&&p&&h&&(window.requestAnimationFrame(w),h=!1)}function ut(){g=!0}function st(){g=!1,yt()}function xt(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setVolume(C,P)}function ct(C){var P;for(P=0;P<d;P+=1)i[P].animation.mute(C)}function rt(C){var P;for(P=0;P<d;P+=1)i[P].animation.unmute(C)}return e.registerAnimation=b,e.loadAnimation=O,e.setSpeed=D,e.setDirection=R,e.play=B,e.pause=T,e.stop=N,e.togglePause=$,e.searchAnimations=Y,e.resize=it,e.goToAndStop=I,e.destroy=U,e.freeze=ut,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=rt,e.getRegisteredAnimations=k,e}(),mn=function(){var e={};e.getBezierEasing=n;var i={};function n(w,T,I,N,$){var U=$||("bez_"+w+"_"+T+"_"+I+"_"+N).replace(/\./g,"p");if(i[U])return i[U];var Y=new L([w,T,I,N]);return i[U]=Y,Y}var d=4,p=.001,h=1e-7,g=10,S=11,b=1/(S-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function G(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,I){return((M(T,I)*w+G(T,I))*w+x(T))*w}function D(w,T,I){return 3*M(T,I)*w*w+2*G(T,I)*w+x(T)}function R(w,T,I,N,$){var U,Y,it=0;do Y=T+(I-T)/2,U=O(Y,N,$)-w,U>0?I=Y:T=Y;while(Math.abs(U)>h&&++it<g);return Y}function B(w,T,I,N){for(var $=0;$<d;++$){var U=D(T,I,N);if(U===0)return T;var Y=O(T,I,N)-w;T-=Y/U}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(S):new Array(S),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var I=this._p[0],N=this._p[1],$=this._p[2],U=this._p[3];return this._precomputed||this._precompute(),I===N&&$===U?T:T===0?0:T===1?1:O(this._getTForX(T),N,U)},_precompute:function(){var T=this._p[0],I=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==I||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],I=this._p[2],N=0;N<S;++N)this._mSampleValues[N]=O(N*b,T,I)},_getTForX:function(T){for(var I=this._p[0],N=this._p[2],$=this._mSampleValues,U=0,Y=1,it=S-1;Y!==it&&$[Y]<=T;++Y)U+=b;--Y;var yt=(T-$[Y])/($[Y+1]-$[Y]),ut=U+yt*b,st=D(ut,I,N);return st>=p?B(T,ut,I,N):st===0?ut:R(T,U,U+b,I,N)}},e}(),rm=function(){function e(i){return i.concat(et(i.length))}return{double:e}}(),Da=function(){return function(e,i,n){var d=0,p=e,h=et(p),g={newElement:S,release:b};function S(){var k;return d?(d-=1,k=h[d]):k=i(),k}function b(k){d===p&&(h=rm.double(h),p*=2),n&&n(k),h[d]=k,d+=1}return g}}(),im=function(){function e(){return{addedLength:0,percents:Z("float32",dn()),lengths:Z("float32",dn())}}return Da(8,e)}(),om=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var d,p=n.lengths.length;for(d=0;d<p;d+=1)im.release(n.lengths[d]);n.lengths.length=0}return Da(8,e,i)}();function vy(){var e=Math;function i(x,O,D,R,B,L){var w=x*R+O*B+D*L-B*R-L*x-D*O;return w>-.001&&w<.001}function n(x,O,D,R,B,L,w,T,I){if(D===0&&L===0&&I===0)return i(x,O,R,B,w,T);var N=e.sqrt(e.pow(R-x,2)+e.pow(B-O,2)+e.pow(L-D,2)),$=e.sqrt(e.pow(w-x,2)+e.pow(T-O,2)+e.pow(I-D,2)),U=e.sqrt(e.pow(w-R,2)+e.pow(T-B,2)+e.pow(I-L,2)),Y;return N>$?N>U?Y=N-$-U:Y=U-$-N:U>$?Y=U-$-N:Y=$-N-U,Y>-1e-4&&Y<1e-4}var d=function(){return function(x,O,D,R){var B=dn(),L,w,T,I,N,$=0,U,Y=[],it=[],yt=im.newElement();for(T=D.length,L=0;L<B;L+=1){for(N=L/(B-1),U=0,w=0;w<T;w+=1)I=Qt(1-N,3)*x[w]+3*Qt(1-N,2)*N*D[w]+3*(1-N)*Qt(N,2)*R[w]+Qt(N,3)*O[w],Y[w]=I,it[w]!==null&&(U+=Qt(Y[w]-it[w],2)),it[w]=Y[w];U&&(U=se(U),$+=U),yt.percents[L]=N,yt.lengths[L]=$}return yt.addedLength=$,yt}}();function p(x){var O=om.newElement(),D=x.c,R=x.v,B=x.o,L=x.i,w,T=x._length,I=O.lengths,N=0;for(w=0;w<T-1;w+=1)I[w]=d(R[w],R[w+1],B[w],L[w+1]),N+=I[w].addedLength;return D&&T&&(I[w]=d(R[w],R[0],B[w],L[0]),N+=I[w].addedLength),O.totalLength=N,O}function h(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var S=function(){var x={};return function(O,D,R,B){var L=(O[0]+"_"+O[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+B[0]+"_"+B[1]).replace(/\./g,"p");if(!x[L]){var w=dn(),T,I,N,$,U,Y=0,it,yt,ut=null;O.length===2&&(O[0]!==D[0]||O[1]!==D[1])&&i(O[0],O[1],D[0],D[1],O[0]+R[0],O[1]+R[1])&&i(O[0],O[1],D[0],D[1],D[0]+B[0],D[1]+B[1])&&(w=2);var st=new h(w);for(N=R.length,T=0;T<w;T+=1){for(yt=et(N),U=T/(w-1),it=0,I=0;I<N;I+=1)$=Qt(1-U,3)*O[I]+3*Qt(1-U,2)*U*(O[I]+R[I])+3*(1-U)*Qt(U,2)*(D[I]+B[I])+Qt(U,3)*D[I],yt[I]=$,ut!==null&&(it+=Qt(yt[I]-ut[I],2));it=se(it),Y+=it,st.points[T]=new g(it,yt),ut=yt}st.segmentLength=Y,x[L]=st}return x[L]}}();function b(x,O){var D=O.percents,R=O.lengths,B=D.length,L=be((B-1)*x),w=x*O.addedLength,T=0;if(L===B-1||L===0||w===R[L])return D[L];for(var I=R[L]>w?-1:1,N=!0;N;)if(R[L]<=w&&R[L+1]>w?(T=(w-R[L])/(R[L+1]-R[L]),N=!1):L+=I,L<0||L>=B-1){if(L===B-1)return D[L];N=!1}return D[L]+(D[L+1]-D[L])*T}function k(x,O,D,R,B,L){var w=b(B,L),T=1-w,I=e.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*D[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=e.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*D[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[I,N]}var M=Z("float32",8);function G(x,O,D,R,B,L,w){B<0?B=0:B>1&&(B=1);var T=b(B,w);L=L>1?1:L;var I=b(L,w),N,$=x.length,U=1-T,Y=1-I,it=U*U*U,yt=T*U*U*3,ut=T*T*U*3,st=T*T*T,xt=U*U*Y,ct=T*U*Y+U*T*Y+U*U*I,rt=T*T*Y+U*T*I+T*U*I,C=T*T*I,P=U*Y*Y,v=T*Y*Y+U*I*Y+U*Y*I,E=T*I*Y+U*I*I+T*Y*I,K=T*I*I,V=Y*Y*Y,at=I*Y*Y+Y*I*Y+Y*Y*I,vt=I*I*Y+Y*I*I+I*Y*I,Et=I*I*I;for(N=0;N<$;N+=1)M[N*4]=e.round((it*x[N]+yt*D[N]+ut*R[N]+st*O[N])*1e3)/1e3,M[N*4+1]=e.round((xt*x[N]+ct*D[N]+rt*R[N]+C*O[N])*1e3)/1e3,M[N*4+2]=e.round((P*x[N]+v*D[N]+E*R[N]+K*O[N])*1e3)/1e3,M[N*4+3]=e.round((V*x[N]+at*D[N]+vt*R[N]+Et*O[N])*1e3)/1e3;return M}return{getSegmentsLength:p,getNewSegment:G,getPointInSegment:k,buildBezierData:S,pointOnLine2D:i,pointOnLine3D:n}}var $r=vy(),yo=r,sm=Math.abs;function nm(e,i){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var p=i.lastIndex,h=p,g=this.keyframes.length-1,S=!0,b,k,M;S;){if(b=this.keyframes[h],k=this.keyframes[h+1],h===g-1&&e>=k.t-n){b.h&&(b=k),p=0;break}if(k.t-n>e){p=h;break}h<g-1?h+=1:(p=0,S=!1)}M=this.keyframesMetadata[h]||{};var G,x,O,D,R,B,L=k.t-n,w=b.t-n,T;if(b.to){M.bezierData||(M.bezierData=$r.buildBezierData(b.s,k.s||b.e,b.to,b.ti));var I=M.bezierData;if(e>=L||e<w){var N=e>=L?I.points.length-1:0;for(x=I.points[N].point.length,G=0;G<x;G+=1)d[G]=I.points[N].point[G]}else{M.__fnct?B=M.__fnct:(B=mn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,M.__fnct=B),O=B((e-w)/(L-w));var $=I.segmentLength*O,U,Y=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastPoint:0,S=!0,D=I.points.length;S;){if(Y+=I.points[R].partialLength,$===0||O===0||R===I.points.length-1){for(x=I.points[R].point.length,G=0;G<x;G+=1)d[G]=I.points[R].point[G];break}else if($>=Y&&$<Y+I.points[R+1].partialLength){for(U=($-Y)/I.points[R+1].partialLength,x=I.points[R].point.length,G=0;G<x;G+=1)d[G]=I.points[R].point[G]+(I.points[R+1].point[G]-I.points[R].point[G])*U;break}R<D-1?R+=1:S=!1}i._lastPoint=R,i._lastAddedLength=Y-I.points[R].partialLength,i._lastKeyframeIndex=h}}else{var it,yt,ut,st,xt;if(g=b.s.length,T=k.s||b.e,this.sh&&b.h!==1)if(e>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(e<=w)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ct=am(b.s),rt=am(T),C=(e-w)/(L-w);by(d,gy(ct,rt,C))}else for(h=0;h<g;h+=1)b.h!==1&&(e>=L?O=1:e<w?O=0:(b.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[h]?B=M.__fnct[h]:(it=b.o.x[h]===void 0?b.o.x[0]:b.o.x[h],yt=b.o.y[h]===void 0?b.o.y[0]:b.o.y[h],ut=b.i.x[h]===void 0?b.i.x[0]:b.i.x[h],st=b.i.y[h]===void 0?b.i.y[0]:b.i.y[h],B=mn.getBezierEasing(it,yt,ut,st).get,M.__fnct[h]=B)):M.__fnct?B=M.__fnct:(it=b.o.x,yt=b.o.y,ut=b.i.x,st=b.i.y,B=mn.getBezierEasing(it,yt,ut,st).get,b.keyframeMetadata=B),O=B((e-w)/(L-w)))),T=k.s||b.e,xt=b.h===1?b.s[h]:b.s[h]+(T[h]-b.s[h])*O,this.propType==="multidimensional"?d[h]=xt:d=xt}return i.lastIndex=p,d}function gy(e,i,n){var d=[],p=e[0],h=e[1],g=e[2],S=e[3],b=i[0],k=i[1],M=i[2],G=i[3],x,O,D,R,B;return O=p*b+h*k+g*M+S*G,O<0&&(O=-O,b=-b,k=-k,M=-M,G=-G),1-O>1e-6?(x=Math.acos(O),D=Math.sin(x),R=Math.sin((1-n)*x)/D,B=Math.sin(n*x)/D):(R=1-n,B=n),d[0]=R*p+B*b,d[1]=R*h+B*k,d[2]=R*g+B*M,d[3]=R*S+B*G,d}function by(e,i){var n=i[0],d=i[1],p=i[2],h=i[3],g=Math.atan2(2*d*h-2*n*p,1-2*d*d-2*p*p),S=Math.asin(2*n*d+2*p*h),b=Math.atan2(2*n*h-2*d*p,1-2*n*n-2*p*p);e[0]=g/Nt,e[1]=S/Nt,e[2]=b/Nt}function am(e){var i=e[0]*Nt,n=e[1]*Nt,d=e[2]*Nt,p=Math.cos(i/2),h=Math.cos(n/2),g=Math.cos(d/2),S=Math.sin(i/2),b=Math.sin(n/2),k=Math.sin(d/2),M=p*h*g-S*b*k,G=S*b*g+p*h*k,x=S*h*g+p*b*k,O=p*b*g-S*h*k;return[G,x,O,M]}function lm(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==yo&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(e,this._caching);this.pv=d}return this._caching.lastFrame=e,this.pv}function Fa(e){var i;if(this.propType==="unidimensional")i=e*this.mult,sm(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)i=e[n]*this.mult,sm(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function $a(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Va(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function yy(e,i,n,d){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=d,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=$a,this.setVValue=Fa,this.addEffect=Va}function Ey(e,i,n,d){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=d,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var p,h=i.k.length;for(this.v=Z("float32",h),this.pv=Z("float32",h),this.vel=Z("float32",h),p=0;p<h;p+=1)this.v[p]=i.k[p]*this.mult,this.pv[p]=i.k[p];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=$a,this.setVValue=Fa,this.addEffect=Va}function Ty(e,i,n,d){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:yo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.v=yo,this.pv=yo,this._isFirstFrame=!0,this.getValue=$a,this.setVValue=Fa,this.interpolateValue=nm,this.effectsSequence=[lm.bind(this)],this.addEffect=Va}function xy(e,i,n,d){this.propType="multidimensional";var p,h=i.k.length,g,S,b,k;for(p=0;p<h-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(g=i.k[p].s,S=i.k[p+1].s,b=i.k[p].to,k=i.k[p].ti,(g.length===2&&!(g[0]===S[0]&&g[1]===S[1])&&$r.pointOnLine2D(g[0],g[1],S[0],S[1],g[0]+b[0],g[1]+b[1])&&$r.pointOnLine2D(g[0],g[1],S[0],S[1],S[0]+k[0],S[1]+k[1])||g.length===3&&!(g[0]===S[0]&&g[1]===S[1]&&g[2]===S[2])&&$r.pointOnLine3D(g[0],g[1],g[2],S[0],S[1],S[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&$r.pointOnLine3D(g[0],g[1],g[2],S[0],S[1],S[2],S[0]+k[0],S[1]+k[1],S[2]+k[2]))&&(i.k[p].to=null,i.k[p].ti=null),g[0]===S[0]&&g[1]===S[1]&&b[0]===0&&b[1]===0&&k[0]===0&&k[1]===0&&(g.length===2||g[2]===S[2]&&b[2]===0&&k[2]===0)&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[lm.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.getValue=$a,this.setVValue=Fa,this.interpolateValue=nm,this.frameId=-1;var M=i.k[0].s.length;for(this.v=Z("float32",M),this.pv=Z("float32",M),p=0;p<M;p+=1)this.v[p]=yo,this.pv[p]=yo;this._caching={lastFrame:yo,lastIndex:0,value:Z("float32",M)},this.addEffect=Va}var nt=function(){function e(n,d,p,h,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var S;if(!d.k.length)S=new yy(n,d,h,g);else if(typeof d.k[0]=="number")S=new Ey(n,d,h,g);else switch(p){case 0:S=new Ty(n,d,h,g);break;case 1:S=new xy(n,d,h,g);break;default:break}return S.effectsSequence.length&&g.addDynamicProperty(S),S}var i={getProp:e};return i}();function ye(){}ye.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Eo=function(){function e(){return Z("float32",2)}return Da(8,e)}();function ri(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}ri.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=Eo.newElement(),this.o[n]=Eo.newElement(),this.i[n]=Eo.newElement(),n+=1},ri.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ri.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},ri.prototype.setXYAt=function(e,i,n,d,p){var h;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":h=this.v;break;case"i":h=this.i;break;case"o":h=this.o;break;default:h=[];break}(!h[d]||h[d]&&!p)&&(h[d]=Eo.newElement()),h[d][0]=e,h[d][1]=i},ri.prototype.setTripleAt=function(e,i,n,d,p,h,g,S){this.setXYAt(e,i,"v",g,S),this.setXYAt(n,d,"o",g,S),this.setXYAt(p,h,"i",g,S)},ri.prototype.reverse=function(){var e=new ri;e.setPathData(this.c,this._length);var i=this.v,n=this.o,d=this.i,p=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),p=1);var h=this._length-1,g=this._length,S;for(S=p;S<g;S+=1)e.setTripleAt(i[h][0],i[h][1],d[h][0],d[h][1],n[h][0],n[h][1],S,!1),h-=1;return e},ri.prototype.length=function(){return this._length};var _e=function(){function e(){return new ri}function i(p){var h=p._length,g;for(g=0;g<h;g+=1)Eo.release(p.v[g]),Eo.release(p.i[g]),Eo.release(p.o[g]),p.v[g]=null,p.i[g]=null,p.o[g]=null;p._length=0,p.c=!1}function n(p){var h=d.newElement(),g,S=p._length===void 0?p.v.length:p._length;for(h.setLength(S),h.c=p.c,g=0;g<S;g+=1)h.setTripleAt(p.v[g][0],p.v[g][1],p.o[g][0],p.o[g][1],p.i[g][0],p.i[g][1],g);return h}var d=Da(4,e,i);return d.clone=n,d}();function Qd(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Qd.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},Qd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)_e.release(this.shapes[e]);this._length=0};var ms=function(){var e={newShapeCollection:p,release:h},i=0,n=4,d=et(n);function p(){var g;return i?(i-=1,g=d[i]):g=new Qd,g}function h(g){var S,b=g._length;for(S=0;S<b;S+=1)_e.release(g.shapes[S]);g._length=0,i===n&&(d=rm.double(d),n*=2),d[i]=g,i+=1}return e}(),za=function(){var e=-999999;function i(L,w,T){var I=T.lastIndex,N,$,U,Y,it,yt,ut,st,xt,ct=this.keyframes;if(L<ct[0].t-this.offsetTime)N=ct[0].s[0],U=!0,I=0;else if(L>=ct[ct.length-1].t-this.offsetTime)N=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],U=!0;else{for(var rt=I,C=ct.length-1,P=!0,v,E,K;P&&(v=ct[rt],E=ct[rt+1],!(E.t-this.offsetTime>L));)rt<C-1?rt+=1:P=!1;if(K=this.keyframesMetadata[rt]||{},U=v.h===1,I=rt,!U){if(L>=E.t-this.offsetTime)st=1;else if(L<v.t-this.offsetTime)st=0;else{var V;K.__fnct?V=K.__fnct:(V=mn.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,K.__fnct=V),st=V((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(yt=w._length,ut=N.i[0].length,T.lastIndex=I,Y=0;Y<yt;Y+=1)for(it=0;it<ut;it+=1)xt=U?N.i[Y][it]:N.i[Y][it]+($.i[Y][it]-N.i[Y][it])*st,w.i[Y][it]=xt,xt=U?N.o[Y][it]:N.o[Y][it]+($.o[Y][it]-N.o[Y][it])*st,w.o[Y][it]=xt,xt=U?N.v[Y][it]:N.v[Y][it]+($.v[Y][it]-N.v[Y][it])*st,w.v[Y][it]=xt}function n(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,I=this._caching.lastFrame;return I!==e&&(I<w&&L<w||I>T&&L>T)||(this._caching.lastIndex=I<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function d(){this.paths=this.localShapeCollection}function p(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,I=L._length;for(T=0;T<I;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function h(L){p(this.v,L)||(this.v=_e.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function S(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var I=T===3?w.pt.k:w.ks.k;this.v=_e.clone(I),this.pv=_e.clone(this.v),this.localShapeCollection=ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}S.prototype.interpolateShape=i,S.prototype.getValue=g,S.prototype.setVValue=h,S.prototype.addEffect=b;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var I=this.keyframes[0].s[0].i.length;this.v=_e.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,I),this.pv=_e.clone(this.v),this.localShapeCollection=ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=d,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=g,k.prototype.interpolateShape=i,k.prototype.setVValue=h,k.prototype.addEffect=b;var M=function(){var L=Ie;function w(T,I){this.v=_e.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ms.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=I.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=nt.getProp(T,I.p,1,0,this),this.s=nt.getProp(T,I.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var I=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,U=this.s.v[1]/2,Y=this.d!==3,it=this.v;it.v[0][0]=I,it.v[0][1]=N-U,it.v[1][0]=Y?I+$:I-$,it.v[1][1]=N,it.v[2][0]=I,it.v[2][1]=N+U,it.v[3][0]=Y?I-$:I+$,it.v[3][1]=N,it.i[0][0]=Y?I-$*L:I+$*L,it.i[0][1]=N-U,it.i[1][0]=Y?I+$:I-$,it.i[1][1]=N-U*L,it.i[2][0]=Y?I+$*L:I-$*L,it.i[2][1]=N+U,it.i[3][0]=Y?I-$:I+$,it.i[3][1]=N+U*L,it.o[0][0]=Y?I+$*L:I-$*L,it.o[0][1]=N-U,it.o[1][0]=Y?I+$:I-$,it.o[1][1]=N+U*L,it.o[2][0]=Y?I-$*L:I+$*L,it.o[2][1]=N+U,it.o[3][0]=Y?I-$:I+$,it.o[3][1]=N-U*L}},A([ye],w),w}(),G=function(){function L(w,T){this.v=_e.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=nt.getProp(w,T.ir,0,0,this),this.is=nt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(w,T.pt,0,0,this),this.p=nt.getProp(w,T.p,1,0,this),this.r=nt.getProp(w,T.r,0,Nt,this),this.or=nt.getProp(w,T.or,0,0,this),this.os=nt.getProp(w,T.os,0,.01,this),this.localShapeCollection=ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,I=Math.PI*2/T,N=!0,$=this.or.v,U=this.ir.v,Y=this.os.v,it=this.is.v,yt=2*Math.PI*$/(T*2),ut=2*Math.PI*U/(T*2),st,xt,ct,rt,C=-Math.PI/2;C+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){xt=N?$:U,ct=N?Y:it,rt=N?yt:ut;var v=xt*Math.cos(C),E=xt*Math.sin(C),K=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-K*rt*ct*P,E-V*rt*ct*P,v+K*rt*ct*P,E+V*rt*ct*P,st,!0),N=!N,C+=I*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),I=Math.PI*2/T,N=this.or.v,$=this.os.v,U=2*Math.PI*N/(T*4),Y,it=-Math.PI*.5,yt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,Y=0;Y<T;Y+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),xt=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ct=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-xt*U*$*yt,st-ct*U*$*yt,ut+xt*U*$*yt,st+ct*U*$*yt,Y,!0),it+=I*yt}this.paths.length=0,this.paths[0]=this.v}},A([ye],L),L}(),x=function(){function L(w,T){this.v=_e.newElement(),this.v.c=!0,this.localShapeCollection=ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=nt.getProp(w,T.p,1,0,this),this.s=nt.getProp(w,T.s,1,0,this),this.r=nt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],I=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,U=He(N,$,this.r.v),Y=U*(1-Ie);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,I-$+U,T+N,I-$+U,T+N,I-$+Y,0,!0),this.v.setTripleAt(T+N,I+$-U,T+N,I+$-Y,T+N,I+$-U,1,!0),U!==0?(this.v.setTripleAt(T+N-U,I+$,T+N-U,I+$,T+N-Y,I+$,2,!0),this.v.setTripleAt(T-N+U,I+$,T-N+Y,I+$,T-N+U,I+$,3,!0),this.v.setTripleAt(T-N,I+$-U,T-N,I+$-U,T-N,I+$-Y,4,!0),this.v.setTripleAt(T-N,I-$+U,T-N,I-$+Y,T-N,I-$+U,5,!0),this.v.setTripleAt(T-N+U,I-$,T-N+U,I-$,T-N+Y,I-$,6,!0),this.v.setTripleAt(T+N-U,I-$,T+N-Y,I-$,T+N-U,I-$,7,!0)):(this.v.setTripleAt(T-N,I+$,T-N+Y,I+$,T-N,I+$,2),this.v.setTripleAt(T-N,I-$,T-N,I-$+Y,T-N,I-$,3))):(this.v.setTripleAt(T+N,I-$+U,T+N,I-$+Y,T+N,I-$+U,0,!0),U!==0?(this.v.setTripleAt(T+N-U,I-$,T+N-U,I-$,T+N-Y,I-$,1,!0),this.v.setTripleAt(T-N+U,I-$,T-N+Y,I-$,T-N+U,I-$,2,!0),this.v.setTripleAt(T-N,I-$+U,T-N,I-$+U,T-N,I-$+Y,3,!0),this.v.setTripleAt(T-N,I+$-U,T-N,I+$-Y,T-N,I+$-U,4,!0),this.v.setTripleAt(T-N+U,I+$,T-N+U,I+$,T-N+Y,I+$,5,!0),this.v.setTripleAt(T+N-U,I+$,T+N-Y,I+$,T+N-U,I+$,6,!0),this.v.setTripleAt(T+N,I+$-U,T+N,I+$-U,T+N,I+$-Y,7,!0)):(this.v.setTripleAt(T-N,I-$,T-N+Y,I-$,T-N,I-$,1,!0),this.v.setTripleAt(T-N,I+$,T-N,I+$-Y,T-N,I+$,2,!0),this.v.setTripleAt(T+N,I+$,T+N-Y,I+$,T+N,I+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([ye],L),L}();function O(L,w,T){var I;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?I=new k(L,w,T):I=new S(L,w,T)}else T===5?I=new x(L,w):T===6?I=new M(L,w):T===7&&(I=new G(L,w));return I.k&&L.addDynamicProperty(I),I}function D(){return S}function R(){return k}var B={};return B.getShapeProp=O,B.getConstructorFunction=D,B.getKeyframedConstructorFunction=R,B}();var Ce=function(){var e=Math.cos,i=Math.sin,n=Math.tan,d=Math.round;function p(){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 h(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(1,0,0,0,0,E,-K,0,0,K,E,0,0,0,0,1)}function S(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,0,K,0,0,1,0,0,-K,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function G(v,E){var K=e(E),V=i(E);return this._t(K,V,0,0,-V,K,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(K,-V,0,0,V,K,0,0,0,0,1,0,0,0,0,1)}function x(v,E,K){return!K&&K!==0&&(K=1),v===1&&E===1&&K===1?this:this._t(v,0,0,0,0,E,0,0,0,0,K,0,0,0,0,1)}function O(v,E,K,V,at,vt,Et,Pt,Dt,ae,Ke,zr,We,Ee,ir,Vt){return this.props[0]=v,this.props[1]=E,this.props[2]=K,this.props[3]=V,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Pt,this.props[8]=Dt,this.props[9]=ae,this.props[10]=Ke,this.props[11]=zr,this.props[12]=We,this.props[13]=Ee,this.props[14]=ir,this.props[15]=Vt,this}function D(v,E,K){return K=K||0,v!==0||E!==0||K!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,K,1):this}function R(v,E,K,V,at,vt,Et,Pt,Dt,ae,Ke,zr,We,Ee,ir,Vt){var ht=this.props;if(v===1&&E===0&&K===0&&V===0&&at===0&&vt===1&&Et===0&&Pt===0&&Dt===0&&ae===0&&Ke===1&&zr===0)return ht[12]=ht[12]*v+ht[15]*We,ht[13]=ht[13]*vt+ht[15]*Ee,ht[14]=ht[14]*Ke+ht[15]*ir,ht[15]*=Vt,this._identityCalculated=!1,this;var si=ht[0],Di=ht[1],ni=ht[2],Br=ht[3],ai=ht[4],li=ht[5],Ye=ht[6],Fi=ht[7],$i=ht[8],wr=ht[9],Vi=ht[10],kr=ht[11],So=ht[12],qa=ht[13],Xa=ht[14],Za=ht[15];return ht[0]=si*v+Di*at+ni*Dt+Br*We,ht[1]=si*E+Di*vt+ni*ae+Br*Ee,ht[2]=si*K+Di*Et+ni*Ke+Br*ir,ht[3]=si*V+Di*Pt+ni*zr+Br*Vt,ht[4]=ai*v+li*at+Ye*Dt+Fi*We,ht[5]=ai*E+li*vt+Ye*ae+Fi*Ee,ht[6]=ai*K+li*Et+Ye*Ke+Fi*ir,ht[7]=ai*V+li*Pt+Ye*zr+Fi*Vt,ht[8]=$i*v+wr*at+Vi*Dt+kr*We,ht[9]=$i*E+wr*vt+Vi*ae+kr*Ee,ht[10]=$i*K+wr*Et+Vi*Ke+kr*ir,ht[11]=$i*V+wr*Pt+Vi*zr+kr*Vt,ht[12]=So*v+qa*at+Xa*Dt+Za*We,ht[13]=So*E+qa*vt+Xa*ae+Za*Ee,ht[14]=So*K+qa*Et+Xa*Ke+Za*ir,ht[15]=So*V+qa*Pt+Xa*zr+Za*Vt,this._identityCalculated=!1,this}function B(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function I(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,K){return{x:v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}}function $(v,E,K){return v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12]}function U(v,E,K){return v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13]}function Y(v,E,K){return v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,K=-this.props[1]/v,V=-this.props[4]/v,at=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new Ce;return Pt.props[0]=E,Pt.props[1]=K,Pt.props[4]=V,Pt.props[5]=at,Pt.props[12]=vt,Pt.props[13]=Et,Pt}function yt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,K=v.length,V=[];for(E=0;E<K;E+=1)V[E]=yt(v[E]);return V}function st(v,E,K){var V=Z("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=K[0],V[5]=K[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Pt=this.props[5],Dt=this.props[12],ae=this.props[13];V[0]=v[0]*at+v[1]*Et+Dt,V[1]=v[0]*vt+v[1]*Pt+ae,V[2]=E[0]*at+E[1]*Et+Dt,V[3]=E[0]*vt+E[1]*Pt+ae,V[4]=K[0]*at+K[1]*Et+Dt,V[5]=K[0]*vt+K[1]*Pt+ae}return V}function xt(v,E,K){var V;return this.isIdentity()?V=[v,E,K]:V=[v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]],V}function ct(v,E){if(this.isIdentity())return v+","+E;var K=this.props;return Math.round((v*K[0]+E*K[4]+K[12])*100)/100+","+Math.round((v*K[1]+E*K[5]+K[13])*100)/100}function rt(){for(var v=0,E=this.props,K="matrix3d(",V=1e4;v<16;)K+=d(E[v]*V)/V,K+=v===15?")":",",v+=1;return K}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function P(){var v=this.props,E=C(v[0]),K=C(v[1]),V=C(v[4]),at=C(v[5]),vt=C(v[12]),Et=C(v[13]);return"matrix("+E+","+K+","+V+","+at+","+vt+","+Et+")"}return function(){this.reset=p,this.rotate=h,this.rotateX=g,this.rotateY=S,this.rotateZ=b,this.skew=M,this.skewFromAxis=G,this.shear=k,this.scale=x,this.setTransform=O,this.translate=D,this.transform=R,this.multiply=B,this.applyToPoint=N,this.applyToX=$,this.applyToY=U,this.applyToZ=Y,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=I,this.equals=w,this.inversePoints=ut,this.inversePoint=yt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function Ba(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ba=function(n){return typeof n}:Ba=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ba(e)}var Ft={},Ha="__[STANDALONE]__",dm="__[ANIMATIONDATA]__",cm="";function Ay(e){c(e)}function hm(){Ha===!0?ne.searchAnimations(dm,Ha,cm):ne.searchAnimations()}function Sy(e){ny(e)}function Iy(e){dy(e)}function _y(e){return Ha===!0&&(e.animationData=JSON.parse(dm)),ne.loadAnimation(e)}function Cy(e){if(typeof e=="string")switch(e){case"high":Ra(200);break;default:case"medium":Ra(50);break;case"low":Ra(10);break}else!isNaN(e)&&e>1&&Ra(e);dn()>=50?lr(!1):lr(!0)}function wy(){return typeof navigator<"u"}function ky(e,i){e==="expressions"&&ly(i)}function Ny(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return za;case"matrix":return Ce;default:return null}}Ft.play=ne.play,Ft.pause=ne.pause,Ft.setLocationHref=Ay,Ft.togglePause=ne.togglePause,Ft.setSpeed=ne.setSpeed,Ft.setDirection=ne.setDirection,Ft.stop=ne.stop,Ft.searchAnimations=hm,Ft.registerAnimation=ne.registerAnimation,Ft.loadAnimation=_y,Ft.setSubframeRendering=Sy,Ft.resize=ne.resize,Ft.goToAndStop=ne.goToAndStop,Ft.destroy=ne.destroy,Ft.setQuality=Cy,Ft.inBrowser=wy,Ft.installPlugin=ky,Ft.freeze=ne.freeze,Ft.unfreeze=ne.unfreeze,Ft.setVolume=ne.setVolume,Ft.mute=ne.mute,Ft.unmute=ne.unmute,Ft.getRegisteredAnimations=ne.getRegisteredAnimations,Ft.useWebWorker=s,Ft.setIDPrefix=Iy,Ft.__getFactory=Ny,Ft.version="5.12.2";function Ly(){document.readyState==="complete"&&(clearInterval(Ry),hm())}function My(e){for(var i=pm.split("&"),n=0;n<i.length;n+=1){var d=i[n].split("=");if(decodeURIComponent(d[0])==e)return decodeURIComponent(d[1])}return null}var pm="";if(Ha){var mm=document.getElementsByTagName("script"),Oy=mm.length-1,um=mm[Oy]||{src:""};pm=um.src?um.src.replace(/^[^\?]+\??/,""):"",cm=My("renderer")}var Ry=setInterval(Ly,100);try{!((typeof Gn>"u"?"undefined":Ba(Gn))==="object"&&typeof Il<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ft)}catch{}var Ni=function(){var e={},i={};e.registerModifier=n,e.getModifier=d;function n(p,h){i[p]||(i[p]=h)}function d(p,h,g){return new i[p](h,g)}return e}();function pr(){}pr.prototype.initModifierProperties=function(){},pr.prototype.addShapeToModifier=function(){},pr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ms.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},pr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},pr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([ye],pr);function Cr(){}A([pr],Cr),Cr.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Cr.prototype.addShapeToModifier=function(e){e.pathsData=[]},Cr.prototype.calculateShapeEdges=function(e,i,n,d,p){var h=[];i<=1?h.push({s:e,e:i}):e>=1?h.push({s:e-1,e:i-1}):(h.push({s:e,e:1}),h.push({s:0,e:i-1}));var g=[],S,b=h.length,k;for(S=0;S<b;S+=1)if(k=h[S],!(k.e*p<d||k.s*p>d+n)){var M,G;k.s*p<=d?M=0:M=(k.s*p-d)/n,k.e*p>=d+n?G=1:G=(k.e*p-d)/n,g.push([M,G])}return g.length||g.push([0,0]),g},Cr.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)om.release(e[i]);return e.length=0,e},Cr.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?i=1+d:this.s.v<0?i=0+d:i=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,i>n){var p=i;i=n,n=p}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var h,g,S=this.shapes.length,b,k,M,G,x,O=0;if(n===i)for(g=0;g<S;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<S;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,B;for(g=0;g<S;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(h=R.shape.paths,k=h._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),b=0;b<k;b+=1)G=$r.getSegmentsLength(h.shapes[b]),M.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=i,w=n,T=0,I;for(g=S-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(B=R.localShapeCollection,B.releaseShapes(),this.m===2&&S>1?(I=this.calculateShapeEdges(i,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):I=[[L,w]],k=I.length,b=0;b<k;b+=1){L=I[b][0],w=I[b][1],D.length=0,w<=1?D.push({s:R.totalShapeLength*L,e:R.totalShapeLength*w}):L>=1?D.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(w-1)}):(D.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var U=N.pop();this.addPaths(N,B),N=this.addShapes(R,D[1],U)}else this.addPaths(N,B),N=this.addShapes(R,D[1])}this.addPaths(N,B)}}R.shape.paths=B}}},Cr.prototype.addPaths=function(e,i){var n,d=e.length;for(n=0;n<d;n+=1)i.addShape(e[n])},Cr.prototype.addSegment=function(e,i,n,d,p,h,g){p.setXYAt(i[0],i[1],"o",h),p.setXYAt(n[0],n[1],"i",h+1),g&&p.setXYAt(e[0],e[1],"v",h),p.setXYAt(d[0],d[1],"v",h+1)},Cr.prototype.addSegmentFromArray=function(e,i,n,d){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),d&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Cr.prototype.addShapes=function(e,i,n){var d=e.pathsData,p=e.shape.paths.shapes,h,g=e.shape.paths._length,S,b,k=0,M,G,x,O,D=[],R,B=!0;for(n?(G=n._length,R=n._length):(n=_e.newElement(),G=0,R=0),D.push(n),h=0;h<g;h+=1){for(x=d[h].lengths,n.c=p[h].c,b=p[h].c?x.length:x.length+1,S=1;S<b;S+=1)if(M=x[S-1],k+M.addedLength<i.s)k+=M.addedLength,n.c=!1;else if(k>i.e){n.c=!1;break}else i.s<=k&&i.e>=k+M.addedLength?(this.addSegment(p[h].v[S-1],p[h].o[S-1],p[h].i[S],p[h].v[S],n,G,B),B=!1):(O=$r.getNewSegment(p[h].v[S-1],p[h].v[S],p[h].o[S-1],p[h].i[S],(i.s-k)/M.addedLength,(i.e-k)/M.addedLength,x[S-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1),k+=M.addedLength,G+=1;if(p[h].c&&x.length){if(M=x[S-1],k<=i.e){var L=x[S-1].addedLength;i.s<=k&&i.e>=k+L?(this.addSegment(p[h].v[S-1],p[h].o[S-1],p[h].i[0],p[h].v[0],n,G,B),B=!1):(O=$r.getNewSegment(p[h].v[S-1],p[h].v[0],p[h].o[S-1],p[h].i[0],(i.s-k)/L,(i.e-k)/L,x[S-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1)}else n.c=!1;k+=M.addedLength,G+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),k>i.e)break;h<g-1&&(n=_e.newElement(),B=!0,D.push(n),G=0)}return D};function un(){}A([pr],un),un.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},un.prototype.processPath=function(e,i){var n=i/100,d=[0,0],p=e._length,h=0;for(h=0;h<p;h+=1)d[0]+=e.v[h][0],d[1]+=e.v[h][1];d[0]/=p,d[1]/=p;var g=_e.newElement();g.c=e.c;var S,b,k,M,G,x;for(h=0;h<p;h+=1)S=e.v[h][0]+(d[0]-e.v[h][0])*n,b=e.v[h][1]+(d[1]-e.v[h][1])*n,k=e.o[h][0]+(d[0]-e.o[h][0])*-n,M=e.o[h][1]+(d[1]-e.o[h][1])*-n,G=e.i[h][0]+(d[0]-e.i[h][0])*-n,x=e.i[h][1]+(d[1]-e.i[h][1])*-n,g.setTripleAt(S,b,k,M,G,x,h);return g},un.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amount.v;if(g!==0){var S,b;for(n=0;n<d;n+=1){if(S=this.shapes[n],b=S.localShapeCollection,!(!S.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),S.shape._mdf=!0,i=S.shape.paths.shapes,h=S.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));S.shape.paths=S.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Jd=function(){var e=[0,0];function i(b){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,G;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),G[0]=x.getValueAtTime(x.keyframes[0].t/k,0),G[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),G[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),G[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else G=e,M=G;this.v.rotate(-Math.atan2(M[1]-G[1],M[0]-G[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function p(){}function h(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,k,M){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Ce,this.pre=new Ce,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||b),k.p&&k.p.s?(this.px=nt.getProp(b,k.p.x,0,0,this),this.py=nt.getProp(b,k.p.y,0,0,this),k.p.z&&(this.pz=nt.getProp(b,k.p.z,0,0,this))):this.p=nt.getProp(b,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=nt.getProp(b,k.rx,0,Nt,this),this.ry=nt.getProp(b,k.ry,0,Nt,this),this.rz=nt.getProp(b,k.rz,0,Nt,this),k.or.k[0].ti){var G,x=k.or.k.length;for(G=0;G<x;G+=1)k.or.k[G].to=null,k.or.k[G].ti=null}this.or=nt.getProp(b,k.or,1,Nt,this),this.or.sh=!0}else this.r=nt.getProp(b,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=nt.getProp(b,k.sk,0,Nt,this),this.sa=nt.getProp(b,k.sa,0,Nt,this)),this.a=nt.getProp(b,k.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=nt.getProp(b,k.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:d,autoOrient:p},A([ye],g),g.prototype.addDynamicProperty=h,g.prototype._addDynamicProperty=ye.prototype.addDynamicProperty;function S(b,k,M){return new g(b,k,M)}return{getTransformProperty:S}}();function Vr(){}A([pr],Vr),Vr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=Jd.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ce,this.rMatrix=new Ce,this.sMatrix=new Ce,this.tMatrix=new Ce,this.matrix=new Ce},Vr.prototype.applyTransforms=function(e,i,n,d,p,h){var g=h?-1:1,S=d.s.v[0]+(1-d.s.v[0])*(1-p),b=d.s.v[1]+(1-d.s.v[1])*(1-p);e.translate(d.p.v[0]*g*p,d.p.v[1]*g*p,d.p.v[2]),i.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),i.rotate(-d.r.v*g*p),i.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(h?1/S:S,h?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Vr.prototype.init=function(e,i,n,d){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Vr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Vr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Vr.prototype.changeGroupRender=function(e,i){var n,d=e.length;for(n=0;n<d;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},Vr.prototype.processShapes=function(e){var i,n,d,p,h,g=!1;if(this._mdf||e){var S=Math.ceil(this.c.v);if(this._groups.length<S){for(;this._groups.length<S;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}h=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=h<S,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var M=this.elemsData[d].it,G=M[M.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}h+=1}this._currentCopies=S;var x=this.o.v,O=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,B=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,p=this.data.m===1?1:-1,h=this._currentCopies;for(var T,I;h;){if(i=this.elemsData[d].it,n=i[i.length-1].transform.mProps.v.props,I=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&p===1||d!==this._currentCopies-1&&p===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14],B[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<I;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<I;T+=1)n[T]=this.matrix.props[T];w+=1,h-=1,d+=p}}else for(h=this._currentCopies,d=0,p=1;h;)i=this.elemsData[d].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,h-=1,d+=p;return g},Vr.prototype.addShape=function(){};function fn(){}A([pr],fn),fn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},fn.prototype.processPath=function(e,i){var n=_e.newElement();n.c=e.c;var d,p=e._length,h,g,S,b,k,M,G=0,x,O,D,R,B,L;for(d=0;d<p;d+=1)h=e.v[d],S=e.o[d],g=e.i[d],h[0]===S[0]&&h[1]===S[1]&&h[0]===g[0]&&h[1]===g[1]?(d===0||d===p-1)&&!e.c?(n.setTripleAt(h[0],h[1],S[0],S[1],g[0],g[1],G),G+=1):(d===0?b=e.v[p-1]:b=e.v[d-1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,B=h[0]+(b[0]-h[0])*M,x=B,L=h[1]-(h[1]-b[1])*M,O=L,D=x-(x-h[0])*Ie,R=O-(O-h[1])*Ie,n.setTripleAt(x,O,D,R,B,L,G),G+=1,d===p-1?b=e.v[0]:b=e.v[d+1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,D=h[0]+(b[0]-h[0])*M,x=D,R=h[1]+(b[1]-h[1])*M,O=R,B=x-(x-h[0])*Ie,L=O-(O-h[1])*Ie,n.setTripleAt(x,O,D,R,B,L,G),G+=1):(n.setTripleAt(e.v[d][0],e.v[d][1],e.o[d][0],e.o[d][1],e.i[d][0],e.i[d][1],G),G+=1);return n},fn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.rd.v;if(g!==0){var S,b;for(n=0;n<d;n+=1){if(S=this.shapes[n],b=S.localShapeCollection,!(!S.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),S.shape._mdf=!0,i=S.shape.paths.shapes,h=S.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));S.shape.paths=S.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ua(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function tc(e){return Math.abs(e)<=1e-5}function fm(e,i,n){return e*(1-n)+i*n}function Li(e,i,n){return[fm(e[0],i[0],n),fm(e[1],i[1],n)]}function Py(e,i,n){if(e===0)return[];var d=i*i-4*e*n;if(d<0)return[];var p=-i/(2*e);if(d===0)return[p];var h=Math.sqrt(d)/(2*e);return[p-h,p+h]}function vm(e,i,n,d){return[-e+3*i-3*n+d,3*e-6*i+3*n,-3*e+3*i,e]}function gm(e){return new te(e,e,e,e,!1)}function te(e,i,n,d,p){p&&fs(e,i)&&(i=Li(e,d,1/3)),p&&fs(n,d)&&(n=Li(e,d,2/3));var h=vm(e[0],i[0],n[0],d[0]),g=vm(e[1],i[1],n[1],d[1]);this.a=[h[0],g[0]],this.b=[h[1],g[1]],this.c=[h[2],g[2]],this.d=[h[3],g[3]],this.points=[e,i,n,d]}te.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]]},te.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]]},te.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},te.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},te.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(tc(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var d=Math.sqrt(n);return tc(d)?d>0&&d<1?[i]:[]:[i-d,i+d].filter(function(p){return p>0&&p<1})},te.prototype.split=function(e){if(e<=0)return[gm(this.points[0]),this];if(e>=1)return[this,gm(this.points[this.points.length-1])];var i=Li(this.points[0],this.points[1],e),n=Li(this.points[1],this.points[2],e),d=Li(this.points[2],this.points[3],e),p=Li(i,n,e),h=Li(n,d,e),g=Li(p,h,e);return[new te(this.points[0],i,p,g,!0),new te(g,h,d,this.points[3],!0)]};function bm(e,i){var n=e.points[0][i],d=e.points[e.points.length-1][i];if(n>d){var p=d;d=n,n=p}for(var h=Py(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<h.length;g+=1)if(h[g]>0&&h[g]<1){var S=e.point(h[g])[i];S<n?n=S:S>d&&(d=S)}return{min:n,max:d}}te.prototype.bounds=function(){return{x:bm(this,0),y:bm(this,1)}},te.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 Ga(e,i,n){var d=e.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function ym(e){var i=e.bez.split(.5);return[Ga(i[0],e.t1,e.t),Ga(i[1],e.t,e.t2)]}function Dy(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function vn(e,i,n,d,p,h){if(Dy(e,i)){if(n>=h||e.width<=d&&e.height<=d&&i.width<=d&&i.height<=d){p.push([e.t,i.t]);return}var g=ym(e),S=ym(i);vn(g[0],S[0],n+1,d,p,h),vn(g[0],S[1],n+1,d,p,h),vn(g[1],S[0],n+1,d,p,h),vn(g[1],S[1],n+1,d,p,h)}}te.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var d=[];return vn(Ga(this,0,1),Ga(e,0,1),0,i,d,n),d},te.shapeSegment=function(e,i){var n=(i+1)%e.length();return new te(e.v[i],e.o[i],e.i[n],e.v[n],!0)},te.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new te(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function ec(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Ka(e,i,n,d){var p=[e[0],e[1],1],h=[i[0],i[1],1],g=[n[0],n[1],1],S=[d[0],d[1],1],b=ec(ec(p,h),ec(g,S));return tc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function us(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function rc(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function fs(e,i){return Ua(e[0],i[0])&&Ua(e[1],i[1])}function gn(){}A([pr],gn),gn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Em(e,i,n,d,p,h,g){var S=n-Math.PI/2,b=n+Math.PI/2,k=i[0]+Math.cos(n)*d*p,M=i[1]-Math.sin(n)*d*p;e.setTripleAt(k,M,k+Math.cos(S)*h,M-Math.sin(S)*h,k+Math.cos(b)*g,M-Math.sin(b)*g,e.length())}function Fy(e,i){var n=[i[0]-e[0],i[1]-e[1]],d=-Math.PI*.5,p=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return p}function $y(e,i){var n=i===0?e.length()-1:i-1,d=(i+1)%e.length(),p=e.v[n],h=e.v[d],g=Fy(p,h);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function Tm(e,i,n,d,p,h,g){var S=$y(i,n),b=i.v[n%i._length],k=i.v[n===0?i._length-1:n-1],M=i.v[(n+1)%i._length],G=h===2?Math.sqrt(Math.pow(b[0]-k[0],2)+Math.pow(b[1]-k[1],2)):0,x=h===2?Math.sqrt(Math.pow(b[0]-M[0],2)+Math.pow(b[1]-M[1],2)):0;Em(e,i.v[n%i._length],S,g,d,x/((p+1)*2),G/((p+1)*2),h)}function Vy(e,i,n,d,p,h){for(var g=0;g<d;g+=1){var S=(g+1)/(d+1),b=p===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,k=i.normalAngle(S),M=i.point(S);Em(e,M,k,h,n,b/((d+1)*2),b/((d+1)*2),p),h=-h}return h}gn.prototype.processPath=function(e,i,n,d){var p=e._length,h=_e.newElement();if(h.c=e.c,e.c||(p-=1),p===0)return h;var g=-1,S=te.shapeSegment(e,0);Tm(h,e,0,i,n,d,g);for(var b=0;b<p;b+=1)g=Vy(h,S,i,n,d,-g),b===p-1&&!e.c?S=null:S=te.shapeSegment(e,(b+1)%p),Tm(h,e,b+1,i,n,d,g);return h},gn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amplitude.v,S=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,S,b));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ic(e,i,n){var d=Math.atan2(i[0]-e[0],i[1]-e[1]);return[us(e,d,n),us(i,d,n)]}function vs(e,i){var n,d,p,h,g,S,b;b=ic(e.points[0],e.points[1],i),n=b[0],d=b[1],b=ic(e.points[1],e.points[2],i),p=b[0],h=b[1],b=ic(e.points[2],e.points[3],i),g=b[0],S=b[1];var k=Ka(n,d,p,h);k===null&&(k=d);var M=Ka(g,S,p,h);return M===null&&(M=g),new te(n,k,M,S)}function xm(e,i,n,d,p){var h=i.points[3],g=n.points[0];if(d===3||fs(h,g))return h;if(d===2){var S=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,k=Ka(h,us(h,S+Math.PI/2,100),g,us(g,S+Math.PI/2,100)),M=k?rc(k,h):rc(h,g)/2,G=us(h,S,2*M*Ie);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=us(g,b,2*M*Ie),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=fs(h,i.points[2])?i.points[0]:i.points[2],O=fs(g,n.points[1])?n.points[3]:n.points[1],D=Ka(x,h,g,O);return D&&rc(D,h)<p?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):h}function Am(e,i){var n=e.intersections(i);return n.length&&Ua(n[0][0],1)&&n.shift(),n.length?n[0]:null}function Sm(e,i){var n=e.slice(),d=i.slice(),p=Am(e[e.length-1],i[0]);return p&&(n[e.length-1]=e[e.length-1].split(p[0])[0],d[0]=i[0].split(p[1])[1]),e.length>1&&i.length>1&&(p=Am(e[0],i[i.length-1]),p)?[[e[0].split(p[0])[0]],[i[i.length-1].split(p[1])[1]]]:[n,d]}function zy(e){for(var i,n=1;n<e.length;n+=1)i=Sm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=Sm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function Im(e,i){var n=e.inflectionPoints(),d,p,h,g;if(n.length===0)return[vs(e,i)];if(n.length===1||Ua(n[1],1))return h=e.split(n[0]),d=h[0],p=h[1],[vs(d,i),vs(p,i)];h=e.split(n[0]),d=h[0];var S=(n[1]-n[0])/(1-n[0]);return h=h[1].split(S),g=h[0],p=h[1],[vs(d,i),vs(g,i),vs(p,i)]}function bn(){}A([pr],bn),bn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},bn.prototype.processPath=function(e,i,n,d){var p=_e.newElement();p.c=e.c;var h=e.length();e.c||(h-=1);var g,S,b,k=[];for(g=0;g<h;g+=1)b=te.shapeSegment(e,g),k.push(Im(b,i));if(!e.c)for(g=h-1;g>=0;g-=1)b=te.shapeSegmentInverted(e,g),k.push(Im(b,i));k=zy(k);var M=null,G=null;for(g=0;g<k.length;g+=1){var x=k[g];for(G&&(M=xm(p,G,x[0],n,d)),G=x[x.length-1],S=0;S<x.length;S+=1)b=x[S],M&&fs(b.points[0],M)?p.setXYAt(b.points[1][0],b.points[1][1],"o",p.length()-1):p.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],p.length()),p.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],p.length()),M=b.points[3]}return k.length&&xm(p,G,k[0][0],n,d),p},bn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amount.v,S=this.miterLimit.v,b=this.lineJoin;if(g!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,b,S));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function _m(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",d="normal",p=i.length,h,g=0;g<p;g+=1)switch(h=i[g].toLowerCase(),h){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:e.fWeight||n}}var To=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,p=917631,h=917601,g=917626,S=65039,b=8205,k=127462,M=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var P=C.split(","),v,E=P.length,K=[];for(v=0;v<E;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&K.push(P[v]);return K.join(",")}function O(C,P){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var K=E.offsetWidth;return E.style.fontFamily=x(C)+", "+P,{node:E,w:K,parent:v}}function D(){var C,P=this.fonts.length,v,E,K=P;for(C=0;C<P;C+=1)this.fonts[C].loaded?K-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(K-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(K-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));K!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,P){var v=document.body&&P?"svg":"canvas",E,K=_m(C);if(v==="svg"){var V=Tt("text");V.style.fontSize="100px",V.setAttribute("font-family",C.fFamily),V.setAttribute("font-style",K.style),V.setAttribute("font-weight",K.weight),V.textContent="1",C.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",C.fClass)):V.style.fontFamily=C.fFamily,P.appendChild(V),E=V}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=K.style+" "+K.weight+" 100px "+C.fFamily,E=at}function vt(Et){return v==="svg"?(E.textContent=Et,E.getComputedTextLength()):E.measureText(Et).width}return{measureText:vt}}function B(C,P){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(Ke){Ke.helper=R(Ke),Ke.cache={}}),this.fonts=C.list;return}var v=C.list,E,K=v.length,V=K;for(E=0;E<K;E+=1){var at=!0,vt,Et;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),vt.length>0&&(at=!1),at){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",P.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[E].fPath)!==-1&&(at=!1);if(at){var Dt=y("link");Dt.setAttribute("f-forigin",v[E].fOrigin),Dt.setAttribute("f-origin",v[E].origin),Dt.type="text/css",Dt.rel="stylesheet",Dt.href=v[E].fPath,document.body.appendChild(Dt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[E].fPath===vt[Et].src&&(at=!1);if(at){var ae=y("link");ae.setAttribute("f-forigin",v[E].fOrigin),ae.setAttribute("f-origin",v[E].origin),ae.setAttribute("rel","stylesheet"),ae.setAttribute("href",v[E].fPath),P.appendChild(ae)}}v[E].helper=R(v[E],P),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(C){if(C){this.chars||(this.chars=[]);var P,v=C.length,E,K=this.chars.length,V;for(P=0;P<v;P+=1){for(E=0,V=!1;E<K;)this.chars[E].style===C[P].style&&this.chars[E].fFamily===C[P].fFamily&&this.chars[E].ch===C[P].ch&&(V=!0),E+=1;V||(this.chars.push(C[P]),K+=1)}}}function w(C,P,v){for(var E=0,K=this.chars.length;E<K;){if(this.chars[E].ch===C&&this.chars[E].style===P&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,P,v)),i}function T(C,P,v){var E=this.getFontByName(P),K=C;if(!E.cache[K]){var V=E.helper;if(C===" "){var at=V.measureText("|"+C+"|"),vt=V.measureText("||");E.cache[K]=(at-vt)/100}else E.cache[K]=V.measureText(C)/100}return E.cache[K]*v}function I(C){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===C)return this.fonts[P];P+=1}return this.fonts[0]}function N(C){var P=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(P=(v-55296)*1024+E-56320+65536)}return P}function $(C,P){var v=C.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function U(C){return C===b}function Y(C){return C===S}function it(C){var P=N(C);return P>=k&&P<=M}function yt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return n.indexOf(C)!==-1}function st(C,P){var v=N(C.substr(P,2));if(v!==d)return!1;var E=0;for(P+=2;E<5;){if(v=N(C.substr(P,2)),v<h||v>g)return!1;E+=1,P+=2}return N(C.substr(P,2))===p}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=it,ct.isCombinedCharacter=ut,ct.isRegionalFlag=st,ct.isVariationSelector=Y,ct.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:B,getCharData:w,getFontByName:I,measureText:T,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=rt,ct}();function Cm(e){this.animationData=e}Cm.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function By(e){return new Cm(e)}function Wa(){}Wa.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var oc=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function Hy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Uy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Gy(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Ky(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Wy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Yy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function jy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function qy(){this.p={}}function wm(e,i){var n=e.ef||[];this.effectElements=[];var d,p=n.length,h;for(d=0;d<p;d+=1)h=new yn(n[d],i),this.effectElements.push(h)}function yn(e,i){this.init(e,i)}A([ye],yn),yn.prototype.getValue=yn.prototype.iterateDynamicProperties,yn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,d=this.data.ef.length,p,h=this.data.ef;for(n=0;n<d;n+=1){switch(p=null,h[n].ty){case 0:p=new Hy(h[n],i,this);break;case 1:p=new Uy(h[n],i,this);break;case 2:p=new Gy(h[n],i,this);break;case 3:p=new Ky(h[n],i,this);break;case 4:case 7:p=new jy(h[n],i,this);break;case 10:p=new Wy(h[n],i,this);break;case 11:p=new Yy(h[n],i,this);break;case 5:p=new wm(h[n],i,this);break;default:p=new qy(h[n],i,this);break}p&&this.effectElements.push(p)}};function Mi(){}Mi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=tm();if(i){var n=i("layer"),d=i("effects"),p=i("shape"),h=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var S=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(S),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=p(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=h(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=oc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,d){this.globalData=n,this.comp=d,this.data=i,this.layerId=Ue(),this.data.sr||(this.data.sr=1),this.effectsManager=new wm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Oi(){}Oi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var d,p=this.dynamicProperties.length;for(d=0;d<p;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function Ri(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}Ri.prototype.prepareFrame=function(){},A([Wa,Mi,Oi],Ri),Ri.prototype.getBaseElement=function(){return null},Ri.prototype.renderFrame=function(){},Ri.prototype.destroy=function(){},Ri.prototype.initExpressions=function(){var e=tm();if(e){var i=e("footage");this.layerInterface=i(this)}},Ri.prototype.getFootageData=function(){return this.footageData};function Ge(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ge.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([Wa,Mi,Oi],Ge),Ge.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Ge.prototype.show=function(){},Ge.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ge.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ge.prototype.resume=function(){this._canPlay=!0},Ge.prototype.setRate=function(e){this.audio.rate(e)},Ge.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ge.prototype.getBaseElement=function(){return null},Ge.prototype.destroy=function(){},Ge.prototype.sourceRectAtTime=function(){},Ge.prototype.initExpressions=function(){};function we(){}we.prototype.checkLayers=function(e){var i,n=this.layers.length,d;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(d=this.layers[i],d.ip-d.st<=e-this.layers[i].st&&d.op-d.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},we.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)}},we.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},we.prototype.createAudio=function(e){return new Ge(e,this.globalData,this)},we.prototype.createFootage=function(e){return new Ri(e,this.globalData,this)},we.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},we.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,d,p=this.layers.length;for(i=0;i<n;i+=1)for(d=0;d<p;){if(this.layers[d].id===e[i].id){this.layers[d]=e[i];break}d+=1}},we.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},we.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},we.prototype.buildElementParenting=function(e,i,n){for(var d=this.elements,p=this.layers,h=0,g=p.length;h<g;)p[h].ind==i&&(!d[h]||d[h]===!0?(this.buildItem(h),this.addPendingElement(e)):(n.push(d[h]),d[h].setAsParent(),p[h].parent!==void 0?this.buildElementParenting(e,p[h].parent,n):e.setHierarchy(n))),h+=1},we.prototype.addPendingElement=function(e){this.pendingElements.push(e)},we.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var d=this.createComp(e[i]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},we.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},we.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var d,p=this.elements.length;for(d=0;d<p;d+=1)if(this.elements[d].data.nm===i){n=this.elements[d];break}}return e.length===0?n:n.getElementByPath(e)},we.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new To,this.globalData.slotManager=By(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Xy={TRANSFORM_EFFECT:"transformEFfect"};function gs(){}gs.prototype={initTransform:function(){var i=new Ce;this.finalTransform={mProp:this.data.ks?Jd.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,n=this.finalTransform.mat,d=0,p=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<p;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),d=0;d<p;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),i=1;i<n;i+=1){var p=this.localTransforms[i].matrix;d.multiply(p)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var h=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)h*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=h}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(Xy.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Ce;var n=0,d=i.length;for(n=0;n<d;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var d=!0,p=this.comp;d;)p.finalTransform?(p.data.hasMask&&n.splice(0,0,p.finalTransform),p=p.comp):d=!1;var h,g=n.length,S;for(h=0;h<g;h+=1)S=n[h].mat.applyToPointArray(0,0,0),i=[i[0]-S[0],i[1]-S[1],0];return i},mHelper:new Ce};function xo(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,p,h=this.masksProperties?this.masksProperties.length:0;this.viewData=et(h),this.solidPath="";var g,S=this.masksProperties,b=0,k=[],M,G,x=Ue(),O,D,R,B,L="clipPath",w="clip-path";for(p=0;p<h;p+=1)if((S[p].mode!=="a"&&S[p].mode!=="n"||S[p].inv||S[p].o.k!==100||S[p].o.x)&&(L="mask",w="mask"),(S[p].mode==="s"||S[p].mode==="i")&&b===0?(O=Tt("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,g=Tt("path"),S[p].mode==="n")this.viewData[p]={op:nt.getProp(this.element,S[p].o,0,.01,this.element),prop:za.getShapeProp(this.element,S[p],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",S[p].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(S[p].x.k!==0?(L="mask",w="mask",B=nt.getProp(this.element,S[p].x,0,null,this.element),T=Ue(),D=Tt("filter"),D.setAttribute("id",T),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),d.appendChild(D),g.setAttribute("stroke",S[p].mode==="s"?"#000000":"#ffffff")):(R=null,B=null),this.storedData[p]={elem:g,x:B,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},S[p].mode==="i"){G=k.length;var I=Tt("g");for(M=0;M<G;M+=1)I.appendChild(k[M]);var N=Tt("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),I.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),k.length=0,k.push(I)}else k.push(g);S[p].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[p]={elem:g,lastPath:"",op:nt.getProp(this.element,S[p].o,0,.01,this.element),prop:za.getShapeProp(this.element,S[p],3),invRect:O},this.viewData[p].prop.k||this.drawPath(S[p],this.viewData[p].prop.v,this.viewData[p])}for(this.maskElement=Tt(L),h=k.length,p=0;p<h;p+=1)this.maskElement.appendChild(k[p]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}xo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},xo.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var p=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),p.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},xo.prototype.getMaskelement=function(){return this.maskElement},xo.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},xo.prototype.drawPath=function(e,i,n){var d=" M"+i.v[0][0]+","+i.v[0][1],p,h;for(h=i._length,p=1;p<h;p+=1)d+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[p][0]+","+i.i[p][1]+" "+i.v[p][0]+","+i.v[p][1];if(i.c&&h>1&&(d+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==d){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},xo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var En=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(d,p){var h=Tt("filter");return h.setAttribute("id",d),p!==!0&&(h.setAttribute("filterUnits","objectBoundingBox"),h.setAttribute("x","0%"),h.setAttribute("y","0%"),h.setAttribute("width","100%"),h.setAttribute("height","100%")),h}function n(){var d=Tt("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return e}(),km=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}(),Ya={},Nm="filter_result_";function sc(e){var i,n="SourceGraphic",d=e.data.ef?e.data.ef.length:0,p=Ue(),h=En.createFilter(p,!0),g=0;this.filters=[];var S;for(i=0;i<d;i+=1){S=null;var b=e.data.ef[i].ty;if(Ya[b]){var k=Ya[b].effect;S=new k(h,e.effectsManager.effectElements[i],e,Nm+g,n),n=Nm+g,Ya[b].countsAsEffect&&(g+=1)}S&&this.filters.push(S)}g&&(e.globalData.defs.appendChild(h),e.layerElement.setAttribute("filter","url("+f()+"#"+p+")")),this.filters.length&&e.addRenderableComponent(this)}sc.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},sc.prototype.getEffects=function(e){var i,n=this.filters.length,d=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&d.push(this.filters[i]);return d};function aS(e,i,n){Ya[e]={effect:i,countsAsEffect:n}}function Tn(){}Tn.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=Tt("clipPath"),p=Tt("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var h=Ue();if(d.setAttribute("id",h),d.appendChild(p),this.globalData.defs.appendChild(d),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+h+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")")}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 xo(this.data,this,this.globalData),this.renderableEffectsManager=new sc(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,d,p,h,g;if(i===1||i===3){var S=Tt("mask");S.setAttribute("id",n),S.setAttribute("mask-type",i===3?"luminance":"alpha"),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),S.appendChild(h),this.globalData.defs.appendChild(S),!km.maskType&&i===1&&(S.setAttribute("mask-type","luminance"),d=Ue(),p=En.createFilter(d),this.globalData.defs.appendChild(p),p.appendChild(En.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(h),S.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var k=Tt("g");b.appendChild(k),d=Ue(),p=En.createFilter(d);var M=Tt("feComponentTransfer");M.setAttribute("in","SourceGraphic"),p.appendChild(M);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),M.appendChild(G),this.globalData.defs.appendChild(p);var x=Tt("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(h),km.maskType||(b.setAttribute("mask-type","luminance"),p.appendChild(En.createAlphaToLuminanceFilter()),g=Tt("g"),k.appendChild(x),g.appendChild(this.layerElement),k.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function bs(){}bs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function xn(){}(function(){var e={initElement:function(n,d,p){this.initFrame(),this.initBaseData(n,d,p),this.initTransform(n,d,p),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([Wa,W(e)],xn)})();function An(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Mi,gs,Tn,bs,Oi,xn],An),An.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)},An.prototype.sourceRectAtTime=function(){return this.sourceRect};function Zy(e,i){this.elem=e,this.pos=i}function Lm(){}Lm.prototype={addShapeToModifiers:function(i){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var d;for(i=n-1;i>=0&&(d=this.shapeModifiers[i].processShapes(this._isFirstFrame),!d);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,d=0,p=n.length;d<p;){if(n[d].elem===i)return n[d].pos;d+=1}return 0},addProcessedElement:function(i,n){for(var d=this.processedElements,p=d.length;p;)if(p-=1,d[p].elem===i){d[p].pos=n;return}d.push(new Zy(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var Mm={1:"butt",2:"round",3:"square"},Om={1:"miter",2:"round",3:"bevel"};function Rm(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var d=0,p=e.length;d<p;){if(e[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Rm.prototype.setAsAnimated=function(){this._isAnimated=!0};function Pm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}Pm.prototype.reset=function(){this.d="",this._mdf=!1};function ja(e,i,n,d){this.elem=e,this.frameId=-1,this.dataProps=et(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",i.length?i.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var p,h=i.length||0,g;for(p=0;p<h;p+=1)g=nt.getProp(e,i[p].v,0,0,this),this.k=g.k||this.k,this.dataProps[p]={n:i[p].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}ja.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},A([ye],ja);function Dm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new ja(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([ye],Dm);function Fm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}A([ye],Fm);function $m(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}A([ye],$m);function Sn(e,i,n){this.data=i,this.c=Z("uint8c",i.p*4);var d=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=Z("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Sn.prototype.comparePoints=function(e,i){for(var n=0,d=this.o.length/2,p;n<d;){if(p=Math.abs(e[n*4]-e[i*4+n*2]),p>.01)return!1;n+=1}return!0},Sn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Sn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,d,p;for(i=0;i<n;i+=1)d=i%4===0?100:255,p=Math.round(this.prop.v[i]*d),this.c[i]!==p&&(this.c[i]=p,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)d=i%2===0?100:1,p=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==p&&(this.o[i-this.data.p*4]=p,this._omdf=!e);this._mdf=!e}},A([ye],Sn);function ys(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}ys.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,Nt,this),this.g=new Sn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},ys.prototype.setGradientData=function(e,i){var n=Ue(),d=Tt(i.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var p=[],h,g,S;for(S=i.g.p*4,g=0;g<S;g+=4)h=Tt("stop"),d.appendChild(h),p.push(h);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=p},ys.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,p,h=Tt("mask"),g=Tt("path");h.appendChild(g);var S=Ue(),b=Ue();h.setAttribute("id",b);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",S),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),p=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var M=this.stops;for(d=e.g.p*4;d<p;d+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),M.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+S+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",Mm[e.lc||2]),g.setAttribute("stroke-linejoin",Om[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=h,this.ost=M,this.maskId=b,i.msElem=g}},A([ye],ys);function Vm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new ja(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}A([ys,ye],Vm);function Qy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function Jy(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var zm=function(i,n,d,p){if(n===0)return"";var h=i.o,g=i.i,S=i.v,b,k=" M"+p.applyToPointStringified(S[0][0],S[0][1]);for(b=1;b<n;b+=1)k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[b][0],g[b][1])+" "+p.applyToPointStringified(S[b][0],S[b][1]);return d&&n&&(k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[0][0],g[0][1])+" "+p.applyToPointStringified(S[0][0],S[0][1]),k+="z"),k},tE=function(){var e=new Ce,i=new Ce,n={createRenderFunction:d};function d(G){switch(G.ty){case"fl":return S;case"gf":return k;case"gs":return b;case"st":return M;case"sh":case"el":case"rc":case"sr":return g;case"tr":return p;case"no":return h;default:return null}}function p(G,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function h(){}function g(G,x,O){var D,R,B,L,w,T,I=x.styles.length,N=x.lvl,$,U,Y,it;for(T=0;T<I;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(U=i.reset(),Y=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&Y>0;)L=x.transformers[it].mProps._mdf||L,Y-=1,it-=1;if(L)for(Y=N-x.styles[T].lvl,it=x.transformers.length-1;Y>0;)U.multiply(x.transformers[it].mProps.v),Y-=1,it-=1}else U=e;if($=x.sh.paths,R=$._length,L){for(B="",D=0;D<R;D+=1)w=$.shapes[D],w&&w._length&&(B+=zm(w,w._length,w.c,U));x.caches[T]=B}else B=x.caches[T];x.styles[T].d+=G.hd===!0?"":B,x.styles[T]._mdf=L||x.styles[T]._mdf}}function S(G,x,O){var D=x.style;(x.c._mdf||O)&&D.pElem.setAttribute("fill","rgb("+be(x.c.v[0])+","+be(x.c.v[1])+","+be(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){k(G,x,O),M(G,x,O)}function k(G,x,O){var D=x.gf,R=x.g._hasOpacity,B=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=G.t===1?"x1":"cx",I=T==="x1"?"y1":"cy";D.setAttribute(T,B[0]),D.setAttribute(I,B[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,B[0]),x.of.setAttribute(I,B[1]))}var N,$,U,Y;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(U=N.length,$=0;$<U;$+=1)Y=N[$],Y.setAttribute("offset",it[$*4]+"%"),Y.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var yt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,U=N.length,$=0;$<U;$+=1)Y=N[$],x.g._collapsable||Y.setAttribute("offset",yt[$*2]+"%"),Y.setAttribute("stop-opacity",yt[$*2+1])}if(G.t===1)(x.e._mdf||O)&&(D.setAttribute("x2",L[0]),D.setAttribute("y2",L[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)),D.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)));var st=Math.atan2(L[1]-B[1],L[0]-B[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=ut*xt,rt=Math.cos(st+x.a.v)*ct+B[0],C=Math.sin(st+x.a.v)*ct+B[1];D.setAttribute("fx",rt),D.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function M(G,x,O){var D=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&D.pElem.setAttribute("stroke","rgb("+be(x.c.v[0])+","+be(x.c.v[1])+","+be(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function re(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}A([Mi,gs,Tn,Lm,bs,Oi,xn],re),re.prototype.initSecondaryElement=function(){},re.prototype.identityMatrix=new Ce,re.prototype.buildExpressionInterface=function(){},re.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},re.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,d,p=this.stylesList.length,h,g=[],S=!1;for(d=0;d<p;d+=1){for(h=this.stylesList[d],S=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(h)!==-1&&(g.push(n),S=n._isAnimated||S);g.length>1&&S&&this.setShapesAsAnimated(g)}},re.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},re.prototype.createStyleElement=function(e,i){var n,d=new Pm(e,i),p=d.pElem;if(e.ty==="st")n=new Dm(this,e,d);else if(e.ty==="fl")n=new Fm(this,e,d);else if(e.ty==="gf"||e.ty==="gs"){var h=e.ty==="gf"?ys:Vm;n=new h(this,e,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),p.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new $m(this,e,d));return(e.ty==="st"||e.ty==="gs")&&(p.setAttribute("stroke-linecap",Mm[e.lc||2]),p.setAttribute("stroke-linejoin",Om[e.lj||2]),p.setAttribute("fill-opacity","0"),e.lj===1&&p.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&p.setAttribute("fill-rule","evenodd"),e.ln&&p.setAttribute("id",e.ln),e.cl&&p.setAttribute("class",e.cl),e.bm&&(p.style["mix-blend-mode"]=oc(e.bm)),this.stylesList.push(d),this.addToAnimatedContents(e,n),n},re.prototype.createGroupElement=function(e){var i=new Qy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=oc(e.bm)),i},re.prototype.createTransformElement=function(e,i){var n=Jd.getTransformProperty(this,e,this),d=new Jy(n,n.o,i);return this.addToAnimatedContents(e,d),d},re.prototype.createShapeElement=function(e,i,n){var d=4;e.ty==="rc"?d=5:e.ty==="el"?d=6:e.ty==="sr"&&(d=7);var p=za.getShapeProp(this,e,d,this),h=new Rm(i,n,p);return this.shapes.push(h),this.addShapeToModifiers(h),this.addToAnimatedContents(e,h),h},re.prototype.addToAnimatedContents=function(e,i){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:tE.createRenderFunction(e),element:i,data:e})},re.prototype.setElementStyles=function(e){var i=e.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},re.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},re.prototype.searchShapes=function(e,i,n,d,p,h,g){var S=[].concat(h),b,k=e.length-1,M,G,x=[],O=[],D,R,B;for(b=k;b>=0;b-=1){if(B=this.searchProcessedElement(e[b]),B?i[b]=n[B-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")B?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],p),e[b]._render&&i[b].style.pElem.parentNode!==d&&d.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!B)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,M=0;M<G;M+=1)i[b].prevViewData[M]=i[b].it[M];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,p+1,S,g),e[b]._render&&i[b].gr.parentNode!==d&&d.appendChild(i[b].gr)}else e[b].ty==="tr"?(B||(i[b]=this.createTransformElement(e[b],d)),D=i[b].transform,S.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(B||(i[b]=this.createShapeElement(e[b],S,p)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(B?(R=i[b],R.closed=!1):(R=Ni.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),O.push(R)):e[b].ty==="rp"&&(B?(R=i[b],R.closed=!0):(R=Ni.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(e[b],b+1)}for(k=x.length,b=0;b<k;b+=1)x[b].closed=!0;for(k=O.length,b=0;b<k;b+=1)O[b].closed=!0},re.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},re.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},re.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function nc(e,i,n,d,p,h){this.o=e,this.sw=i,this.sc=n,this.fc=d,this.m=p,this.p=h,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!d,m:!0,p:!0}}nc.prototype.update=function(e,i,n,d,p,h){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==p&&(this.m=p,this._mdf.m=!0,g=!0),h.length&&(this.p[0]!==h[0]||this.p[1]!==h[1]||this.p[4]!==h[4]||this.p[5]!==h[5]||this.p[12]!==h[12]||this.p[13]!==h[13])&&(this.p=h,this._mdf.p=!0,g=!0),g};function Pe(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Pe.prototype.defaultBoxWidth=[0,0],Pe.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},Pe.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Pe.prototype.searchProperty=function(){return this.searchKeyframes()},Pe.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Pe.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Pe.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,p=this.effectsSequence.length,h=e||this.data.d.k[this.keysIndex].s;for(d=0;d<p;d+=1)n!==this.keysIndex?h=this.effectsSequence[d](h,h.t):h=this.effectsSequence[d](this.currentData,h.t);i!==h&&this.setCurrentData(h),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Pe.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,d=e.length;n<=d-1&&!(n===d-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Pe.prototype.buildFinalText=function(e){for(var i=[],n=0,d=e.length,p,h,g=!1,S=!1,b="";n<d;)g=S,S=!1,p=e.charCodeAt(n),b=e.charAt(n),To.isCombinedCharacter(p)?g=!0:p>=55296&&p<=56319?To.isRegionalFlag(e,n)?b=e.substr(n,14):(h=e.charCodeAt(n+1),h>=56320&&h<=57343&&(To.isModifier(p,h)?(b=e.substr(n,2),g=!0):To.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):p>56319?(h=e.charCodeAt(n+1),To.isVariationSelector(p)&&(g=!0)):To.isZeroWidthJoiner(p)&&(g=!0,S=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},Pe.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,d=[],p,h,g,S=0,b,k=n.m.g,M=0,G=0,x=0,O=[],D=0,R=0,B,L,w=i.getFontByName(e.f),T,I=0,N=_m(w);e.fWeight=N.weight,e.fStyle=N.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),h=e.finalText.length,e.finalLineHeight=e.lh;var $=e.tr/1e3*e.finalSize,U;if(e.sz)for(var Y=!0,it=e.sz[0],yt=e.sz[1],ut,st;Y;){st=this.buildFinalText(e.t),ut=0,D=0,h=st.length,$=e.tr/1e3*e.finalSize;var xt=-1;for(p=0;p<h;p+=1)U=st[p].charCodeAt(0),g=!1,st[p]===" "?xt=p:(U===13||U===3)&&(D=0,g=!0,ut+=e.finalLineHeight||e.finalSize*1.2),i.chars?(T=i.getCharData(st[p],w.fStyle,w.fFamily),I=g?0:T.w*e.finalSize/100):I=i.measureText(st[p],e.f,e.finalSize),D+I>it&&st[p]!==" "?(xt===-1?h+=1:p=xt,ut+=e.finalLineHeight||e.finalSize*1.2,st.splice(p,xt===p?1:0,"\r"),xt=-1,D=0):(D+=I,D+=$);ut+=w.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<ut?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,h=e.finalText.length,Y=!1)}D=-$,I=0;var ct=0,rt;for(p=0;p<h;p+=1)if(g=!1,rt=e.finalText[p],U=rt.charCodeAt(0),U===13||U===3?(ct=0,O.push(D),R=D>R?D:R,D=-2*$,b="",g=!0,x+=1):b=rt,i.chars?(T=i.getCharData(rt,w.fStyle,i.getFontByName(e.f).fFamily),I=g?0:T.w*e.finalSize/100):I=i.measureText(b,e.f,e.finalSize),rt===" "?ct+=I+$:(D+=I+$+ct,ct=0),d.push({l:I,an:I,add:M,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),k==2){if(M+=I,b===""||b===" "||p===h-1){for((b===""||b===" ")&&(M-=I);G<=p;)d[G].an=M,d[G].ind=S,d[G].extra=I,G+=1;S+=1,M=0}}else if(k==3){if(M+=I,b===""||p===h-1){for(b===""&&(M-=I);G<=p;)d[G].an=M,d[G].ind=S,d[G].extra=I,G+=1;M=0,S+=1}}else d[S].ind=S,d[S].extra=0,S+=1;if(e.l=d,R=D>R?D:R,O.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=O;var C=n.a,P,v;L=C.length;var E,K,V=[];for(B=0;B<L;B+=1){for(P=C[B],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),K=0,E=P.s.b,p=0;p<h;p+=1)v=d[p],v.anIndexes[B]=K,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||p==h-1)||E==4&&(v.n||p==h-1))&&(P.s.rn===1&&V.push(K),K+=1);n.a[B].s.totalChars=K;var at=-1,vt;if(P.s.rn===1)for(p=0;p<h;p+=1)v=d[p],at!=v.anIndexes[B]&&(at=v.anIndexes[B],vt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[B]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=w.ascent*e.finalSize/100},Pe.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Pe.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Pe.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Pe.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var eE=function(){var e=Math.max,i=Math.min,n=Math.floor;function d(h,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=h,this.comp=h.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(h),this.s=nt.getProp(h,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(h,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(h,g.o||{k:0},0,0,this),this.xe=nt.getProp(h,g.xe||{k:0},0,0,this),this.ne=nt.getProp(h,g.ne||{k:0},0,0,this),this.sm=nt.getProp(h,g.sm||{k:100},0,0,this),this.a=nt.getProp(h,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var S=0,b=0,k=1,M=1;this.ne.v>0?S=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var G=mn.getBezierEasing(S,b,k,M).get,x=0,O=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===O?x=g>=D?1:0:x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===3)D===O?x=g>=D?0:1:x=1-e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===4)D===O?x=0:(x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===O)x=0;else{var B=D-O;g=i(e(0,g+.5-O),D-O);var L=-B/2+g,w=B/2;x=Math.sqrt(1-L*L/(w*w))}x=G(x)}else R===6?(D===O?x=0:(g=i(e(0,g+.5-O),D-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-O)))/2),x=G(x)):(g>=n(O)&&(g-O<0?x=e(0,i(i(D,1)-(O-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var I=.5-T*.5;x<I?x=0:(x=(x-I)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var S=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/S,k=this.s.v/S+b,M=this.e.v/S+b;if(k>M){var G=k;k=M,M=G}this.finalS=k,this.finalE=M}},A([ye],d);function p(h,g,S){return new d(h,g,S)}return{getTextSelectorProp:p}}();function rE(e,i,n){var d={propType:!1},p=nt.getProp,h=i.a;this.a={r:h.r?p(e,h.r,0,Nt,n):d,rx:h.rx?p(e,h.rx,0,Nt,n):d,ry:h.ry?p(e,h.ry,0,Nt,n):d,sk:h.sk?p(e,h.sk,0,Nt,n):d,sa:h.sa?p(e,h.sa,0,Nt,n):d,s:h.s?p(e,h.s,1,.01,n):d,a:h.a?p(e,h.a,1,0,n):d,o:h.o?p(e,h.o,0,.01,n):d,p:h.p?p(e,h.p,1,0,n):d,sw:h.sw?p(e,h.sw,0,0,n):d,sc:h.sc?p(e,h.sc,1,0,n):d,fc:h.fc?p(e,h.fc,1,0,n):d,fh:h.fh?p(e,h.fh,0,0,n):d,fs:h.fs?p(e,h.fs,0,.01,n):d,fb:h.fb?p(e,h.fb,0,.01,n):d,t:h.t?p(e,h.t,0,0,n):d},this.s=eE.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function Ao(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Ao.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,d=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new rE(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},Ao.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,p=this._textData,h=this.mHelper,g=this._renderType,S=this.renderedLetters.length,b,k,M,G,x=e.l,O,D,R,B,L,w,T,I,N,$,U,Y,it,yt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var xt;for(Y=0,M=0;M<G;M+=1)xt=$r.buildBezierData(st.v[M],st.v[M+1],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[M+1][0]-st.v[M+1][0],st.i[M+1][1]-st.v[M+1][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),Y+=xt.segmentLength;M=G,ut.v.c&&(xt=$r.buildBezierData(st.v[M],st.v[0],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),Y+=xt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,D=this._pathData.f.v,T=0,w=1,B=0,L=!0,$=O.segments,D<0&&ut.v.c)for(O.tLength<Math.abs(D)&&(D=-Math.abs(D)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;D<0;)D+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,I=N[w-1],R=N[w],U=R.partialLength}G=x.length,b=0,k=0;var ct=e.finalSize*1.2*.714,rt=!0,C,P,v,E,K;E=d.length;var V,at=-1,vt,Et,Pt,Dt=D,ae=T,Ke=w,zr=-1,We,Ee,ir,Vt,ht,si,Di,ni,Br="",ai=this.defaultPropsArray,li;if(e.j===2||e.j===1){var Ye=0,Fi=0,$i=e.j===2?-.5:-1,wr=0,Vi=!0;for(M=0;M<G;M+=1)if(x[M].n){for(Ye&&(Ye+=Fi);wr<M;)x[wr].animatorJustifyOffset=Ye,wr+=1;Ye=0,Vi=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(Vi&&e.j===2&&(Fi+=C.t.v*$i),P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?Ye+=C.t.v*V[0]*$i:Ye+=C.t.v*V*$i);Vi=!1}for(Ye&&(Ye+=Fi);wr<M;)x[wr].animatorJustifyOffset=Ye,wr+=1}for(M=0;M<G;M+=1){if(h.reset(),We=1,x[M].n)b=0,k+=e.yOffset,k+=rt?1:0,D=Dt,rt=!1,this._hasMaskedPath&&(T=ae,w=Ke,N=$[T].points,I=N[w-1],R=N[w],U=R.partialLength,B=0),Br="",ni="",si="",li="",ai=this.defaultPropsArray;else{if(this._hasMaskedPath){if(zr!==x[M].line){switch(e.j){case 1:D+=Y-e.lineWidths[x[M].line];break;case 2:D+=(Y-e.lineWidths[x[M].line])/2;break;default:break}zr=x[M].line}at!==x[M].ind&&(x[at]&&(D+=x[at].extra),D+=x[M].an/2,at=x[M].ind),D+=n[0]*x[M].an*.005;var kr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?kr+=C.p.v[0]*V[0]:kr+=C.p.v[0]*V),C.a.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?kr+=C.a.v[0]*V[0]:kr+=C.a.v[0]*V);for(L=!0,this._pathData.a.v&&(D=x[0].an*.5+(Y-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);L;)B+U>=D+kr||!N?(it=(D+kr-B)/R.partialLength,Et=I.point[0]+(R.point[0]-I.point[0])*it,Pt=I.point[1]+(R.point[1]-I.point[1])*it,h.translate(-n[0]*x[M].an*.005,-(n[1]*ct)*.01),L=!1):N&&(B+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ut.v.c?(w=0,T=0,N=$[T].points):(B-=R.partialLength,N=null)),N&&(I=R,R=N[w],U=R.partialLength));vt=x[M].an/2-x[M].add,h.translate(-vt,0,0)}else vt=x[M].an/2-x[M].add,h.translate(-vt,0,0),h.translate(-n[0]*x[M].an*.005,-n[1]*ct*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?V.length?D+=C.t.v*V[0]:D+=C.t.v*V:V.length?b+=C.t.v*V[0]:b+=C.t.v*V));for(e.strokeWidthAnim&&(ir=e.sw||0),e.strokeColorAnim&&(e.sc?Ee=[e.sc[0],e.sc[1],e.sc[2]]:Ee=[0,0,0]),e.fillColorAnim&&e.fc&&(Vt=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?h.translate(-C.a.v[0]*V[0],-C.a.v[1]*V[1],C.a.v[2]*V[2]):h.translate(-C.a.v[0]*V,-C.a.v[1]*V,C.a.v[2]*V));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),V.length?h.scale(1+(C.s.v[0]-1)*V[0],1+(C.s.v[1]-1)*V[1],1):h.scale(1+(C.s.v[0]-1)*V,1+(C.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(C=d[v].a,P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),C.sk.propType&&(V.length?h.skewFromAxis(-C.sk.v*V[0],C.sa.v*V[1]):h.skewFromAxis(-C.sk.v*V,C.sa.v*V)),C.r.propType&&(V.length?h.rotateZ(-C.r.v*V[2]):h.rotateZ(-C.r.v*V)),C.ry.propType&&(V.length?h.rotateY(C.ry.v*V[1]):h.rotateY(C.ry.v*V)),C.rx.propType&&(V.length?h.rotateX(C.rx.v*V[0]):h.rotateX(C.rx.v*V)),C.o.propType&&(V.length?We+=(C.o.v*V[0]-We)*V[0]:We+=(C.o.v*V-We)*V),e.strokeWidthAnim&&C.sw.propType&&(V.length?ir+=C.sw.v*V[0]:ir+=C.sw.v*V),e.strokeColorAnim&&C.sc.propType)for(ht=0;ht<3;ht+=1)V.length?Ee[ht]+=(C.sc.v[ht]-Ee[ht])*V[0]:Ee[ht]+=(C.sc.v[ht]-Ee[ht])*V;if(e.fillColorAnim&&e.fc){if(C.fc.propType)for(ht=0;ht<3;ht+=1)V.length?Vt[ht]+=(C.fc.v[ht]-Vt[ht])*V[0]:Vt[ht]+=(C.fc.v[ht]-Vt[ht])*V;C.fh.propType&&(V.length?Vt=Jp(Vt,C.fh.v*V[0]):Vt=Jp(Vt,C.fh.v*V)),C.fs.propType&&(V.length?Vt=Zp(Vt,C.fs.v*V[0]):Vt=Zp(Vt,C.fs.v*V)),C.fb.propType&&(V.length?Vt=Qp(Vt,C.fb.v*V[0]):Vt=Qp(Vt,C.fb.v*V))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(P=d[v].s,V=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),this._hasMaskedPath?V.length?h.translate(0,C.p.v[1]*V[0],-C.p.v[2]*V[1]):h.translate(0,C.p.v[1]*V,-C.p.v[2]*V):V.length?h.translate(C.p.v[0]*V[0],C.p.v[1]*V[1],-C.p.v[2]*V[2]):h.translate(C.p.v[0]*V,C.p.v[1]*V,-C.p.v[2]*V));if(e.strokeWidthAnim&&(si=ir<0?0:ir),e.strokeColorAnim&&(Di="rgb("+Math.round(Ee[0]*255)+","+Math.round(Ee[1]*255)+","+Math.round(Ee[2]*255)+")"),e.fillColorAnim&&e.fc&&(ni="rgb("+Math.round(Vt[0]*255)+","+Math.round(Vt[1]*255)+","+Math.round(Vt[2]*255)+")"),this._hasMaskedPath){if(h.translate(0,-e.ls),h.translate(0,n[1]*ct*.01+k,0),this._pathData.p.v){yt=(R.point[1]-I.point[1])/(R.point[0]-I.point[0]);var So=Math.atan(yt)*180/Math.PI;R.point[0]<I.point[0]&&(So+=180),h.rotate(-So*Math.PI/180)}h.translate(Et,Pt,0),D-=n[0]*x[M].an*.005,x[M+1]&&at!==x[M+1].ind&&(D+=x[M].an/2,D+=e.tr*.001*e.finalSize)}else{switch(h.translate(b,k,0),e.ps&&h.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line]),0,0);break;case 2:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line])/2,0,0);break;default:break}h.translate(0,-e.ls),h.translate(vt,0,0),h.translate(n[0]*x[M].an*.005,n[1]*ct*.01,0),b+=x[M].l+e.tr*.001*e.finalSize}g==="html"?Br=h.toCSS():g==="svg"?Br=h.to2dCSS():ai=[h.props[0],h.props[1],h.props[2],h.props[3],h.props[4],h.props[5],h.props[6],h.props[7],h.props[8],h.props[9],h.props[10],h.props[11],h.props[12],h.props[13],h.props[14],h.props[15]],li=We}S<=M?(K=new nc(li,si,Di,ni,Br,ai),this.renderedLetters.push(K),S+=1,this.lettersChangedFlag=!0):(K=this.renderedLetters[M],this.lettersChangedFlag=K.update(li,si,Di,ni,Br,ai)||this.lettersChangedFlag)}}},Ao.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Ao.prototype.mHelper=new Ce,Ao.prototype.defaultPropsArray=[],A([ye],Ao);function mr(){}mr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new Pe(this,e.t,this.dynamicProperties),this.textAnimator=new Ao(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},mr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},mr.prototype.createPathShape=function(e,i){var n,d=i.length,p,h="";for(n=0;n<d;n+=1)i[n].ty==="sh"&&(p=i[n].ks.k,h+=zm(p,p.i.length,!0,e));return h},mr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},mr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},mr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},mr.prototype.applyTextPropertiesToMatrix=function(e,i,n,d,p){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(d,p,0)},mr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},mr.prototype.emptyProp=new nc,mr.prototype.destroy=function(){},mr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var iE={shapes:[]};function ii(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}A([Mi,gs,Tn,bs,Oi,xn,mr],ii),ii.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ii.prototype.buildTextContents=function(e){for(var i=0,n=e.length,d=[],p="";i<n;)e[i]==="\r"||e[i]===""?(d.push(p),p=""):p+=e[i],i+=1;return d.push(p),d},ii.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=i,d.s.k[1]=i)}}return e},ii.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=et(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var p=n.fWeight,h=n.fStyle;this.layerElement.setAttribute("font-style",h),this.layerElement.setAttribute("font-weight",p)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],S=!!this.globalData.fontManager.chars;i=g.length;var b,k=this.mHelper,M="",G=this.data.singleShape,x=0,O=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!S&&!n.sz){var B=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}B.setAttribute("text-anchor",L),B.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(i=w.length,O=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=w[e],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",B.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(B)}else{var T=this.textSpans.length,I;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!S||!G||e===0){if(b=T>e?this.textSpans[e].span:Tt(S?"g":"text"),T<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,S){var N=Tt("g");b.appendChild(N),this.textSpans[e].childSpan=N}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(k.reset(),G&&(g[e].n&&(x=-R,O+=n.yOffset,O+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,k,g[e].line,x,O),x+=g[e].l||0,x+=R),S){I=this.globalData.fontManager.getCharData(n.finalText[e],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(I.t===1)$=new In(I.data,this.globalData,this);else{var U=iE;I.data&&I.data.shapes&&(U=this.buildShapeData(I.data,n.finalSize)),$=new re(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),I.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",M)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ii.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},ii.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ii.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;i=d.length;var p,h,g;for(e=0;e<i;e+=1)d[e].n||(p=n[e],h=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),p._mdf.m&&h.setAttribute("transform",p.m),p._mdf.o&&h.setAttribute("opacity",p.o),p._mdf.sw&&h.setAttribute("stroke-width",p.sw),p._mdf.sc&&h.setAttribute("stroke",p.sc),p._mdf.fc&&h.setAttribute("fill",p.fc))}};function ac(e,i,n){this.initElement(e,i,n)}A([An],ac),ac.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 Pi(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Pi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Pi.prototype.renderFrame=function(){},Pi.prototype.getBaseElement=function(){return null},Pi.prototype.destroy=function(){},Pi.prototype.sourceRectAtTime=function(){},Pi.prototype.hide=function(){},A([Mi,gs,bs,Oi],Pi);function pe(){}A([we],pe),pe.prototype.createNull=function(e){return new Pi(e,this.globalData,this)},pe.prototype.createShape=function(e){return new re(e,this.globalData,this)},pe.prototype.createText=function(e){return new ii(e,this.globalData,this)},pe.prototype.createImage=function(e){return new An(e,this.globalData,this)},pe.prototype.createSolid=function(e){return new ac(e,this.globalData,this)},pe.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),d=Tt("rect");d.setAttribute("width",e.w),d.setAttribute("height",e.h),d.setAttribute("x",0),d.setAttribute("y",0);var p=Ue();n.setAttribute("id",p),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")"),i.appendChild(n),this.layers=e.layers,this.elements=et(e.layers.length)},pe.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},pe.prototype.updateContainerSize=function(){},pe.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},pe.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,Oa()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var d="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var p=i[d],h=p.getMatte(this.layers[e].tt);n.setMatte(h)}}}},pe.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var d="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,p=this.elements[d],h=p.getMatte(this.layers[i].tt);e.setMatte(h);break}i+=1}}},pe.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},pe.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var d=0,p;d<i;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(p=this.elements[d].getBaseElement()),d+=1;p?this.layerElement.insertBefore(n,p):this.layerElement.appendChild(n)}},pe.prototype.hide=function(){this.layerElement.style.display="none"},pe.prototype.show=function(){this.layerElement.style.display="block"};function oi(){}A([Mi,gs,bs,Oi,xn],oi),oi.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},oi.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},oi.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},oi.prototype.setElements=function(e){this.elements=e},oi.prototype.getElements=function(){return this.elements},oi.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},oi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function In(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}A([pe,oi,Tn],In),In.prototype.createComp=function(e){return new In(e,this.globalData,this)};function lc(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var d=Tt("title"),p=Ue();d.setAttribute("id",p),d.textContent=i.title,this.svgElement.appendChild(d),n+=p}if(i&&i.description){var h=Tt("desc"),g=Ue();h.setAttribute("id",g),h.textContent=i.description,this.svgElement.appendChild(h),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var S=Tt("defs");this.svgElement.appendChild(S);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:S,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([pe],lc),lc.prototype.createComp=function(e){return new In(e,this.globalData,this)},my("svg",lc),Ni.registerModifier("tm",Cr),Ni.registerModifier("pb",un),Ni.registerModifier("rp",Vr),Ni.registerModifier("rd",fn),Ni.registerModifier("zz",gn),Ni.registerModifier("op",bn),Ft})});var Qa=globalThis,Ja=Qa.ShadowRoot&&(Qa.ShadyCSS===void 0||Qa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cc=Symbol(),Hm=new WeakMap,_n=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==cc)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(Ja&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Hm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Hm.set(t,o))}return o}toString(){return this.cssText}},Um=a=>new _n(typeof a=="string"?a:a+"",void 0,cc),H=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,l)=>r+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[l+1],a[0]);return new _n(t,a,cc)},hc=(a,o)=>{if(Ja)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Qa.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},tl=Ja?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Um(t)})(a):a;var{is:hE,defineProperty:pE,getOwnPropertyDescriptor:mE,getOwnPropertyNames:uE,getOwnPropertySymbols:fE,getPrototypeOf:vE}=Object,zi=globalThis,Gm=zi.trustedTypes,gE=Gm?Gm.emptyScript:"",pc=zi.reactiveElementPolyfillSupport,Cn=(a,o)=>a,wn={toAttribute(a,o){switch(o){case Boolean:a=a?gE:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},el=(a,o)=>!hE(a,o),Km={attribute:!0,type:String,converter:wn,reflect:!1,hasChanged:el},Wm,Ym;(Wm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ym=zi.litPropertyMetadata)!=null||(zi.litPropertyMetadata=new WeakMap);var di=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Km){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&pE(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var c;let{get:s,set:l}=(c=mE(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let y=s==null?void 0:s.call(this);l.call(this,f),this.requestUpdate(o,y,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Km}static _$Ei(){if(this.hasOwnProperty(Cn("elementProperties")))return;let o=vE(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cn("properties"))){let t=this.properties,r=[...uE(t),...fE(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(tl(s))}else o!==void 0&&t.push(tl(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return hc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var l;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let c=(((l=r.converter)==null?void 0:l.toAttribute)!==void 0?r.converter:wn).toAttribute(t,r.type);this._$Em=o,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(o,t){var l;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:wn;this._$Em=s,this[s]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:el)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},jm;di.elementStyles=[],di.shadowRootOptions={mode:"open"},di[Cn("elementProperties")]=new Map,di[Cn("finalized")]=new Map,pc==null||pc({ReactiveElement:di}),((jm=zi.reactiveElementVersions)!=null?jm:zi.reactiveElementVersions=[]).push("2.0.4");var Nn=globalThis,rl=Nn.trustedTypes,qm=rl?rl.createPolicy("lit-html",{createHTML:a=>a}):void 0,fc="$lit$",ci=`lit$${Math.random().toFixed(9).slice(2)}$`,vc="?"+ci,bE=`<${vc}>`,Co=document,Ln=()=>Co.createComment(""),Mn=a=>a===null||typeof a!="object"&&typeof a!="function",gc=Array.isArray,ru=a=>gc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",mc=`[
|
|
3
3
|
\f\r]`,kn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xm=/-->/g,Zm=/>/g,Io=RegExp(`>|${mc}(?:([^\\s"'>=/]+)(${mc}*=${mc}*(?:[^
|
|
4
4
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Qm=/'/g,Jm=/"/g,iu=/^(?:script|style|textarea|title)$/i,bc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),_=bc(1),mS=bc(2),uS=bc(3),ke=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),tu=new WeakMap,_o=Co.createTreeWalker(Co,129);function ou(a,o){if(!gc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return qm!==void 0?qm.createHTML(o):o}var su=(a,o)=>{let t=a.length-1,r=[],s,l=o===2?"<svg>":o===3?"<math>":"",c=kn;for(let f=0;f<t;f++){let y=a[f],A,F,W=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===kn?F[1]==="!--"?c=Xm:F[1]!==void 0?c=Zm:F[2]!==void 0?(iu.test(F[2])&&(s=RegExp("</"+F[2],"g")),c=Io):F[3]!==void 0&&(c=Io):c===Io?F[0]===">"?(c=s!=null?s:kn,W=-1):F[1]===void 0?W=-2:(W=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?Io:F[3]==='"'?Jm:Qm):c===Jm||c===Qm?c=Io:c===Xm||c===Zm?c=kn:(c=Io,s=void 0);let Z=c===Io&&a[f+1].startsWith("/>")?" ":"";l+=c===kn?y+bE:W>=0?(r.push(A),y.slice(0,W)+fc+y.slice(W)+ci+Z):y+ci+(W===-2?f:Z)}return[ou(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},On=class a{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let l=0,c=0,f=o.length-1,y=this.parts,[A,F]=su(o,t);if(this.el=a.createElement(A,r),_o.currentNode=this.el.content,t===2||t===3){let W=this.el.content.firstChild;W.replaceWith(...W.childNodes)}for(;(s=_o.nextNode())!==null&&y.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let W of s.getAttributeNames())if(W.endsWith(fc)){let Q=F[c++],Z=s.getAttribute(W).split(ci),et=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:et[2],strings:Z,ctor:et[1]==="."?ol:et[1]==="?"?sl:et[1]==="@"?nl:ko}),s.removeAttribute(W)}else W.startsWith(ci)&&(y.push({type:6,index:l}),s.removeAttribute(W));if(iu.test(s.tagName)){let W=s.textContent.split(ci),Q=W.length-1;if(Q>0){s.textContent=rl?rl.emptyScript:"";for(let Z=0;Z<Q;Z++)s.append(W[Z],Ln()),_o.nextNode(),y.push({type:2,index:++l});s.append(W[Q],Ln())}}}else if(s.nodeType===8)if(s.data===vc)y.push({type:2,index:l});else{let W=-1;for(;(W=s.data.indexOf(ci,W+1))!==-1;)y.push({type:7,index:l}),W+=ci.length-1}l++}}static createElement(o,t){let r=Co.createElement("template");return r.innerHTML=o,r}};function wo(a,o,t=a,r){var c,f,y;if(o===ke)return o;let s=r!==void 0?(c=t.o)==null?void 0:c[r]:t.l,l=Mn(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((f=s==null?void 0:s._$AO)==null||f.call(s,!1),l===void 0?s=void 0:(s=new l(a),s._$AT(a,t,r)),r!==void 0?((y=t.o)!=null?y:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=wo(a,s._$AS(a,o.values),s,r)),o}var il=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 A;let{el:{content:t},parts:r}=this._$AD,s=((A=o==null?void 0:o.creationScope)!=null?A:Co).importNode(t,!0);_o.currentNode=s;let l=_o.nextNode(),c=0,f=0,y=r[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new Es(l,l.nextSibling,this,o):y.type===1?F=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(F=new al(l,this,o)),this._$AV.push(F),y=r[++f]}c!==(y==null?void 0:y.index)&&(l=_o.nextNode(),c++)}return _o.currentNode=Co,s}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},Es=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var l;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(l=s==null?void 0:s.isConnected)!=null?l:!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=wo(this,o,t),Mn(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==ke&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):ru(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&&Mn(this._$AH)?this._$AA.nextSibling.data=o:this.T(Co.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=On.createElement(ou(r.h,r.h[0]),this.options)),r);if(((l=this._$AH)==null?void 0:l._$AD)===s)this._$AH.p(t);else{let c=new il(s,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=tu.get(o.strings);return t===void 0&&tu.set(o.strings,t=new On(o)),t}k(o){gc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let l of o)s===t.length?t.push(r=new a(this.O(Ln()),this.O(Ln()),this,this.options)):r=t[s],r._$AI(l),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},ko=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,l){this.type=1,this._$AH=j,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=l,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=j}_$AI(o,t=this,r,s){let l=this.strings,c=!1;if(l===void 0)o=wo(this,o,t,0),c=!Mn(o)||o!==this._$AH&&o!==ke,c&&(this._$AH=o);else{let f=o,y,A;for(o=l[0],y=0;y<l.length-1;y++)A=wo(this,f[r+y],t,y),A===ke&&(A=this._$AH[y]),c||(c=!Mn(A)||A!==this._$AH[y]),A===j?o=j:o!==j&&(o+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!s&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},ol=class extends ko{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},sl=class extends ko{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},nl=class extends ko{constructor(o,t,r,s,l){super(o,t,r,s,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=wo(this,o,t,0))!=null?c:j)===ke)return;let r=this._$AH,s=o===j&&r!==j||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,l=o!==j&&(r===j||s);s&&this.element.removeEventListener(this.name,this,r),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},al=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){wo(this,o)}},nu={M:fc,P:ci,A:vc,C:1,L:su,R:il,D:ru,V:wo,I:Es,H:ko,N:sl,U:nl,B:ol,F:al},uc=Nn.litHtmlPolyfillSupport,eu;uc==null||uc(On,Es),((eu=Nn.litHtmlVersions)!=null?eu:Nn.litHtmlVersions=[]).push("3.2.0");var au=(a,o,t)=>{var l,c;let r=(l=t==null?void 0:t.renderBefore)!=null?l:o,s=r._$litPart$;if(s===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;r._$litPart$=s=new Es(o.insertBefore(Ln(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var Bi=class extends di{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=au(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 ke}},lu;Bi._$litElement$=!0,Bi.finalized=!0,(lu=globalThis.litElementHydrateSupport)==null||lu.call(globalThis,{LitElement:Bi});var yc=globalThis.litElementPolyfillSupport;yc==null||yc({LitElement:Bi});var du;((du=globalThis.litElementVersions)!=null?du:globalThis.litElementVersions=[]).push("4.1.0");var yE={attribute:!0,type:String,converter:wn,reflect:!1,hasChanged:el},EE=(a=yE,o,t)=>{let{kind:r,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),l.set(t.name,a),r==="accessor"){let{name:c}=t;return{set(f){let y=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(r==="setter"){let{name:c}=t;return function(f){let y=this[c];o.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+r)};function u(a){return(o,t)=>typeof t=="object"?EE(a,o,t):((r,s,l)=>{let c=s.hasOwnProperty(l);return s.constructor.createProperty(l,c?{...r,wrapped:!0}:r),c?Object.getOwnPropertyDescriptor(s,l):void 0})(a,o,t)}function mt(a){return u({...a,state:!0,attribute:!1})}function cu(a){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,a)}}var Hr=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Kt(a,o){return(t,r,s)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(o){let{get:c,set:f}=typeof r=="object"?t:s!=null?s:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return Hr(t,r,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Hr(t,r,{get(){return l(this)}})}}var Ec;function hu(a){return(o,t)=>Hr(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:Ec!=null?Ec:Ec=document.createDocumentFragment()).querySelectorAll(a)}})}function $t(a){return(o,t)=>{let{slot:r,selector:s}=a!=null?a:{},l="slot"+(r?`[name=${r}]`:":not([name])");return Hr(o,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return s===void 0?f:f.filter(F=>F.matches(s))}})}}function pu(a){return(o,t)=>{let{slot:r}=a!=null?a:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Hr(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(s);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var TE={PREFIX:"mdc",SEPARATOR:"-"},xE={NAMESPACE:TE},Tc=xE;var AE=a=>[Tc.NAMESPACE.PREFIX,a].join(Tc.NAMESPACE.SEPARATOR),z={constructTagName:AE};var tt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var mu=z.constructTagName("buttonsimple"),No={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},Ts={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Rn={SIZE:No[32],TYPE:Ts.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var hi=z.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Pn={40:40,32:32,28:28,24:24},ur={64:64,52:52,20:20,...Pn},Lo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},xs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},je={VARIANT:Bt.PRIMARY,SIZE:Pn[32],COLOR:Lo.DEFAULT,TYPE_INTERNAL:xs.ICON,TYPE:Ts.BUTTON,INVERTED:!1};var ll=a=>{class o extends a{constructor(){super(...arguments);this.variant=je.VARIANT;this.color=je.COLOR;this.typeInternal=je.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(Bt).includes(s)?s:je.VARIANT)}setColor(s){!Object.values(Lo).includes(s)||this.variant===Bt.TERTIARY?this.setAttribute("color",`${je.COLOR}`):this.setAttribute("color",s)}setSize(s){let c=this.typeInternal===xs.ICON?Object.values(ur).includes(s)&&!(s===ur[20]&&this.variant!==Bt.TERTIARY):Object.values(Pn).includes(s);this.setAttribute("size",c?`${s}`:`${je.SIZE}`)}inferButtonType(){var A,F,W,Q,Z,et;let s=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,l=(Q=(W=this.shadowRoot)==null?void 0:W.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,c=this.prefixIcon||l&&l>0,f=(et=(Z=this.shadowRoot)==null?void 0:Z.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,y=this.postfixIcon||f&&f>0;s&&(c||y)?(this.typeInternal=xs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(c||y)?(this.typeInternal=xs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=xs.PILL,this.setAttribute("data-btn-type","pill"))}}return m([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),m([u({type:String})],o.prototype,"variant",2),m([u({type:String})],o.prototype,"color",2),m([mt()],o.prototype,"typeInternal",2),o};var uu=H`
|
|
5
5
|
:host {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
|
-
`,vu=SE;var hl=class extends X{constructor({context:o,initialValue:t}){super(),this.context=new Ss(this,{context:o,initialValue:t})}render(){return this.updateContext(),_`<slot></slot>`}};hl.styles=[...X.styles,vu];var gu=hl;var pe=gu;var Ne=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var jt=a=>{class o extends a{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var Ur=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var zt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var IE=a=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:l}=a,c=(s||l)&&(f=>{l&&l.forEach(y=>{o.requestUpdate(y)}),s==null||s(f)});return new As(o,{context:t,callback:c,subscribe:r!=null?r:!0})},_E={consume:IE},me=_E;var bu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),yu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),CE=a=>a.getClientRects().length===0,wE=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=a;return r+s+t+o===0},Eu=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:r}=o;return t==="auto"||t==="scroll"||r==="auto"||r==="scroll"},kE=a=>wE(a)||CE(a),NE=a=>{let{display:o,opacity:t,visibility:r}=a.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},LE=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},ME=a=>getComputedStyle(a).display==="contents",OE=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||NE(a)||!ME(a)&&(LE(a)||kE(a)),RE=a=>a.disabled,PE=a=>a.getAttribute("tabindex")!=="-1",DE=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),FE=(a,o)=>o.some(t=>a.matches(t));var Is=(a,o={})=>{var f,y;if(!a)return[];let t=new Set((f=o==null?void 0:o.excludedElements)!=null?f:[]),r=(y=o==null?void 0:o.includeSelectors)!=null?y:[],s=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(OE(A)||RE(A))?"stop":FE(A,r)||PE(A)&&DE(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&s.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(W=>{let Q=W,Z=l(Q);Z==="focusable"&&s.add(Q),Z!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(lt=>{lt instanceof HTMLElement&&c(lt)}):c(Q))})};return c(a),[...s]},Dn=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Tu=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Ac=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?Ac(o.host):a},xu=a=>{let o=[a],t=a;for(;t;){let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host,o.push(t);else break}return o};var pi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};pi.stack=new Set,pi.currentKeydownListener=null;var pl=z.constructTagName("spatialnavigationprovider");var Sc={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var $E=pl,Ic=$E;var Au=a=>{let{x:o,y:t,width:r,height:s,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=o+r/2,F=t+s/2;return{x:o,y:t,width:r,height:s,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},VE=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),zE=(a,o)=>o==="horizontal"?a.height/2:a.width/2,BE=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),HE=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,UE=(a,o,t,r)=>{let s=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(s*s+l*l),f=VE(a,o,t)+zE(a,t)*r.orthogonalWeight[t],y=BE(a,o,t),A=HE(a,t,y)*r.alignWeight;return c+f-A-Math.sqrt(y)},Su=(a,o,t,r)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let s=Au(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let y=Au(f);if(t==="left"&&y.right>s.xMid||t==="right"&&y.left<s.xMid||t==="up"&&y.bottom>s.yMid||t==="down"&&y.top<s.yMid)return c;let A=UE(s,y,l,r);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Mo=class extends UIEvent{constructor(o,t,r){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=r,this.relatedTarget=t}};var Fn=class extends pe{constructor(){super({context:Ic});this.navigationKeyMapping=Sc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Sc.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let r=this.context.value.keyToActionMap[t.key],s=new Mo("navbeforeprocess",this,r);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(s)),s.defaultPrevented)return;let l=!1;switch(r){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Mo("navnotarget",this,r))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let r=Dn();r&&this.setActiveElement(r)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return Ic}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([r,s])=>[s,r]))},this.context.updateObservers())}initActiveElement(t){let r=Is(this.root);this.findActiveElement(r,t)}findActiveElement(t,r){if(!r||!t.includes(r)){let s=t[0];s&&this.setActiveElementAndFocus(s)}}focusNext(t,r){let s=pi.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===s||y===this.root||Eu(y)){c.push(...Is(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,r);if(A||y===s||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,r),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,r){var s;if(t){let l=new Mo("navbeforefocus",t,r);if((s=this.getActiveElement())==null||s.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,r){var y,A;if(t.length===0)return;let s=this.getActiveElement(),l=Dn();if((!s||!t.includes(s)||s!==l)&&(l&&t.includes(l)?s=l:[s]=t,this.setActiveElement(s)),s!==Dn())return s;let c=`data-spatial-${r}`;if(l){let F=xu(l).find(Q=>Q.hasAttribute(c)),W=F==null?void 0:F.getAttribute(c);if(F&&W){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(W);if(Q)return Q}}return(A=Su(s,t,r,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let r=new Mo("navback",t,"escape");return this.dispatchEvent(r),r.defaultPrevented}setActiveElement(t){var r;t!==((r=this.activeElement)==null?void 0:r.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Dn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Is(this.root).find(s=>s.hasAttribute("data-spatial-go-back")),r=this.emitGoBackEvent(t);return t&&!r?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};m([u({attribute:!1})],Fn.prototype,"navigationKeyMapping",2),m([u({attribute:!1})],Fn.prototype,"distanceCalculationWeights",2);var _c=Fn;_c.register(pl);var Iu=_c;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},GE={[zt.ARROW_UP]:q.UP,[zt.ARROW_DOWN]:q.DOWN,[zt.ARROW_LEFT]:q.LEFT,[zt.ARROW_RIGHT]:q.RIGHT,[zt.ENTER]:q.ENTER,[zt.SPACE]:q.SPACE,[zt.ESCAPE]:q.ESCAPE,[zt.TAB]:q.TAB,[zt.HOME]:q.HOME,[zt.END]:q.END},qt={DEFAULT:"default",SPATIAL:"spatial"},Ct=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=me.consume({host:this,context:Iu.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?qt.SPATIAL:qt.DEFAULT}getActionForKeyEvent(s,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:GE)[s.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(s){return s===q.UP||s===q.DOWN||s===q.LEFT||s===q.RIGHT}}return o};var Lt=a=>{class o extends a{constructor(...s){super(...s);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=s=>{this.keyDownEventHandledFlag&&s.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var bt=H`
|
|
18
|
+
`,vu=SE;var hl=class extends X{constructor({context:o,initialValue:t}){super(),this.context=new Ss(this,{context:o,initialValue:t})}render(){return this.updateContext(),_`<slot></slot>`}};hl.styles=[...X.styles,vu];var gu=hl;var me=gu;var Ne=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var jt=a=>{class o extends a{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var Ur=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var zt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var IE=a=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:l}=a,c=(s||l)&&(f=>{l&&l.forEach(y=>{o.requestUpdate(y)}),s==null||s(f)});return new As(o,{context:t,callback:c,subscribe:r!=null?r:!0})},_E={consume:IE},ue=_E;var bu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),yu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),CE=a=>a.getClientRects().length===0,wE=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=a;return r+s+t+o===0},Eu=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:r}=o;return t==="auto"||t==="scroll"||r==="auto"||r==="scroll"},kE=a=>wE(a)||CE(a),NE=a=>{let{display:o,opacity:t,visibility:r}=a.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},LE=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},ME=a=>getComputedStyle(a).display==="contents",OE=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||NE(a)||!ME(a)&&(LE(a)||kE(a)),RE=a=>a.disabled,PE=a=>a.getAttribute("tabindex")!=="-1",DE=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),FE=(a,o)=>o.some(t=>a.matches(t));var Is=(a,o={})=>{var f,y;if(!a)return[];let t=new Set((f=o==null?void 0:o.excludedElements)!=null?f:[]),r=(y=o==null?void 0:o.includeSelectors)!=null?y:[],s=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(OE(A)||RE(A))?"stop":FE(A,r)||PE(A)&&DE(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&s.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(W=>{let Q=W,Z=l(Q);Z==="focusable"&&s.add(Q),Z!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(lt=>{lt instanceof HTMLElement&&c(lt)}):c(Q))})};return c(a),[...s]},Dn=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Tu=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Ac=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?Ac(o.host):a},xu=a=>{let o=[a],t=a;for(;t;){let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host,o.push(t);else break}return o};var pi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};pi.stack=new Set,pi.currentKeydownListener=null;var pl=z.constructTagName("spatialnavigationprovider");var Sc={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var $E=pl,Ic=$E;var Au=a=>{let{x:o,y:t,width:r,height:s,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=o+r/2,F=t+s/2;return{x:o,y:t,width:r,height:s,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},VE=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),zE=(a,o)=>o==="horizontal"?a.height/2:a.width/2,BE=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),HE=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,UE=(a,o,t,r)=>{let s=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(s*s+l*l),f=VE(a,o,t)+zE(a,t)*r.orthogonalWeight[t],y=BE(a,o,t),A=HE(a,t,y)*r.alignWeight;return c+f-A-Math.sqrt(y)},Su=(a,o,t,r)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let s=Au(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let y=Au(f);if(t==="left"&&y.right>s.xMid||t==="right"&&y.left<s.xMid||t==="up"&&y.bottom>s.yMid||t==="down"&&y.top<s.yMid)return c;let A=UE(s,y,l,r);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Mo=class extends UIEvent{constructor(o,t,r){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=r,this.relatedTarget=t}};var Fn=class extends me{constructor(){super({context:Ic});this.navigationKeyMapping=Sc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Sc.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let r=this.context.value.keyToActionMap[t.key],s=new Mo("navbeforeprocess",this,r);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(s)),s.defaultPrevented)return;let l=!1;switch(r){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Mo("navnotarget",this,r))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let r=Dn();r&&this.setActiveElement(r)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return Ic}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([r,s])=>[s,r]))},this.context.updateObservers())}initActiveElement(t){let r=Is(this.root);this.findActiveElement(r,t)}findActiveElement(t,r){if(!r||!t.includes(r)){let s=t[0];s&&this.setActiveElementAndFocus(s)}}focusNext(t,r){let s=pi.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===s||y===this.root||Eu(y)){c.push(...Is(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,r);if(A||y===s||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,r),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,r){var s;if(t){let l=new Mo("navbeforefocus",t,r);if((s=this.getActiveElement())==null||s.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,r){var y,A;if(t.length===0)return;let s=this.getActiveElement(),l=Dn();if((!s||!t.includes(s)||s!==l)&&(l&&t.includes(l)?s=l:[s]=t,this.setActiveElement(s)),s!==Dn())return s;let c=`data-spatial-${r}`;if(l){let F=xu(l).find(Q=>Q.hasAttribute(c)),W=F==null?void 0:F.getAttribute(c);if(F&&W){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(W);if(Q)return Q}}return(A=Su(s,t,r,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let r=new Mo("navback",t,"escape");return this.dispatchEvent(r),r.defaultPrevented}setActiveElement(t){var r;t!==((r=this.activeElement)==null?void 0:r.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Dn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Is(this.root).find(s=>s.hasAttribute("data-spatial-go-back")),r=this.emitGoBackEvent(t);return t&&!r?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};m([u({attribute:!1})],Fn.prototype,"navigationKeyMapping",2),m([u({attribute:!1})],Fn.prototype,"distanceCalculationWeights",2);var _c=Fn;_c.register(pl);var Iu=_c;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},GE={[zt.ARROW_UP]:q.UP,[zt.ARROW_DOWN]:q.DOWN,[zt.ARROW_LEFT]:q.LEFT,[zt.ARROW_RIGHT]:q.RIGHT,[zt.ENTER]:q.ENTER,[zt.SPACE]:q.SPACE,[zt.ESCAPE]:q.ESCAPE,[zt.TAB]:q.TAB,[zt.HOME]:q.HOME,[zt.END]:q.END},qt={DEFAULT:"default",SPATIAL:"spatial"},Ct=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=ue.consume({host:this,context:Iu.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?qt.SPATIAL:qt.DEFAULT}getActionForKeyEvent(s,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:GE)[s.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(s){return s===q.UP||s===q.DOWN||s===q.LEFT||s===q.RIGHT}}return o};var Lt=a=>{class o extends a{constructor(...s){super(...s);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=s=>{this.keyDownEventHandledFlag&&s.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var bt=H`
|
|
19
19
|
:host {
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
:host([size='20']) {
|
|
132
132
|
--mdc-button-height: 1.25rem;
|
|
133
133
|
}
|
|
134
|
-
`,...At()],_u=KE;var
|
|
134
|
+
`,...At()],_u=KE;var or=class extends Lt(Ct(Ne(Ur(jt(X))))){constructor(){super();this.size=Rn.SIZE;this.role=Rn.ROLE;this.type=Rn.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Rn.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Ts.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Ts.RESET&&this.form&&this.form.reset()}setActive(t,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(l=>l.trim().startsWith("aria-")).forEach(l=>{r===!0?t.setAttribute(l.trim(),"true"):r===!1?t.setAttribute(l.trim(),"false"):t.removeAttribute(l.trim())})}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,r){r?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.add("pressed"),r===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.remove("pressed"),r===q.SPACE&&this.triggerClickEvent())}render(){return _` <slot></slot> `}};or.formAssociated=!0,or.styles=[...X.styles,..._u],m([u({type:Boolean,reflect:!0})],or.prototype,"active",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],or.prototype,"softDisabled",2),m([u({type:Number,reflect:!0})],or.prototype,"size",2),m([u({type:String,reflect:!0})],or.prototype,"role",2),m([u({type:String,reflect:!0})],or.prototype,"ariaStateKey",2),m([u({reflect:!0})],or.prototype,"type",2),m([u({type:String,reflect:!0})],or.prototype,"name",2),m([u({type:String,reflect:!0})],or.prototype,"value",2);var fe=or;var ml=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let r=this.overflowElement;return r.scrollWidth>r.clientWidth}}return o};var WE=H`
|
|
135
135
|
:host {
|
|
136
136
|
--mdc-button-prefix-icon-size: 1rem;
|
|
137
137
|
--mdc-button-postfix-icon-size: 1rem;
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
:host::part(postfix-icon) {
|
|
417
417
|
flex-shrink: 0;
|
|
418
418
|
}
|
|
419
|
-
`,Cu=[WE];var Oo=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var Gr=class extends ml(ll(
|
|
419
|
+
`,Cu=[WE];var Oo=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var Gr=class extends ml(ll(fe)){constructor(){super(...arguments);this.size=je.SIZE;this.inverted=je.INVERTED;this.role=tt.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Oo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Oo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return _`
|
|
420
420
|
<slot name="prefix" part="prefix">
|
|
421
421
|
${this.prefixFilledIconName?_` <mdc-icon
|
|
422
422
|
name="${this.prefixFilledIconName}"
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
length-unit="rem"
|
|
433
433
|
></mdc-icon>`:""}
|
|
434
434
|
</slot>
|
|
435
|
-
`}};Gr.styles=[...
|
|
435
|
+
`}};Gr.styles=[...fe.styles,...Cu],m([Kt('slot[part="button-text"]')],Gr.prototype,"buttonTextPart",2),m([u({type:Number})],Gr.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Gr.prototype,"inverted",2),m([u({type:String,reflect:!0})],Gr.prototype,"role",2),m([mt()],Gr.prototype,"prefixFilledIconName",2),m([mt()],Gr.prototype,"postfixFilledIconName",2);var Ro=Gr;var ul=z.constructTagName("iconprovider"),wu=["svg"],ku=["em","rem","px","%"],YE={px:16,em:1,rem:1,"%":100},mi={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:YE.em,ICON_SET:"momentum-icons"};var fl=class{};fl.context=ul;var vl=fl;var Kr=class extends me{constructor(){super({context:vl.context,initialValue:new vl});this.iconSet=mi.ICON_SET;this.fileExtension=mi.FILE_EXTENSION;this.lengthUnit=mi.LENGTH_UNIT;this.size=mi.SIZE}static get Context(){return vl.context}updateValuesInContext(){this.fileExtension&&wu.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=mi.FILE_EXTENSION,this.context.value.fileExtension=mi.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&ku.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=mi.LENGTH_UNIT,this.context.value.lengthUnit=mi.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};m([u({type:String,attribute:"icon-set",reflect:!0})],Kr.prototype,"iconSet",2),m([u({type:String})],Kr.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Kr.prototype,"fileExtension",2),m([u({type:String,attribute:"length-unit",reflect:!0})],Kr.prototype,"lengthUnit",2),m([u({type:Number,reflect:!0})],Kr.prototype,"size",2),m([u({type:String,attribute:"cache-strategy"})],Kr.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Kr.prototype,"cacheName",2);var $n=Kr;var jE=[bt,H`
|
|
436
436
|
:host {
|
|
437
437
|
--mdc-icon-fill-color: currentColor;
|
|
438
438
|
--mdc-icon-size: var(--computed-icon-size);
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
width: 100%;
|
|
448
448
|
fill: var(--mdc-icon-fill-color);
|
|
449
449
|
}
|
|
450
|
-
`,...At()],Nu=jE;var Vn={},Lu=async a=>(Vn[a]===void 0&&(Vn[a]=new Map),{async set(o,t){Vn[a].set(o.url,await t.text())},async get(o){return Vn[a].get(o.url)},async delete(o){Vn[a].delete(o.url)}}),Mu=async a=>{let o=await caches.open(a);return{set:async(t,r)=>{await o.put(t,r)},get:async t=>{let r=await o.match(t);return r==null?void 0:r.text()},delete:async t=>{await o.delete(t)}}},gl=async(a,o)=>o==="in-memory-cache"?Lu(a):Mu(a);var Ou=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Ru=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?Ou(f).then(y=>y.text()):gl(s,r).then(y=>y.get(f).then(A=>A||Ou(f.clone()).then(F=>{var W;return F.status<400&&F.headers.has("content-type")?(W=y.set)==null?void 0:W.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var Pu=z.constructTagName("icon"),Cc={NAME:void 0,SIZE:1};var
|
|
450
|
+
`,...At()],Nu=jE;var Vn={},Lu=async a=>(Vn[a]===void 0&&(Vn[a]=new Map),{async set(o,t){Vn[a].set(o.url,await t.text())},async get(o){return Vn[a].get(o.url)},async delete(o){Vn[a].delete(o.url)}}),Mu=async a=>{let o=await caches.open(a);return{set:async(t,r)=>{await o.put(t,r)},get:async t=>{let r=await o.match(t);return r==null?void 0:r.text()},delete:async t=>{await o.delete(t)}}},gl=async(a,o)=>o==="in-memory-cache"?Lu(a):Mu(a);var Ou=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Ru=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?Ou(f).then(y=>y.text()):gl(s,r).then(y=>y.get(f).then(A=>A||Ou(f.clone()).then(F=>{var W;return F.status<400&&F.headers.has("content-type")?(W=y.set)==null?void 0:W.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var Pu=z.constructTagName("icon"),Cc={NAME:void 0,SIZE:1};var sr=class extends X{constructor(){super();this.name=Cc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=ue.consume({host:this,context:$n.Context});this.abortController=new AbortController}prepareIconElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:s,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&s&&r&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Ru({url:s,name:this.name,fileExtension:r,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:Cc.SIZE}updated(t){var r,s,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.iconData} `}};sr.styles=[...X.styles,...Nu],m([mt()],sr.prototype,"iconData",2),m([mt()],sr.prototype,"lengthUnitFromContext",2),m([mt()],sr.prototype,"sizeFromContext",2),m([u({type:String,reflect:!0})],sr.prototype,"name",2),m([u({type:Number})],sr.prototype,"size",2),m([u({type:String,attribute:"length-unit"})],sr.prototype,"lengthUnit",2),m([u({type:String,attribute:"aria-label"})],sr.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],sr.prototype,"ariaLabelledby",2),m([mt()],sr.prototype,"abortController",2);var wc=sr;wc.register(Pu);var qE=wc;Ro.register(hi);var XE=Ro;var Du=H`
|
|
451
451
|
:host::part(text) {
|
|
452
452
|
font-size: unset;
|
|
453
453
|
font-weight: unset;
|
|
@@ -1042,25 +1042,25 @@
|
|
|
1042
1042
|
--mdc-chip-icon-color: ButtonText;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
`,Uu=[bt,cT,...At()];var Gu=z.constructTagName("alertchip"),Do={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Cs={VARIANT:Do.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:No[24],ROLE:tt.BUTTON};var Ku=a=>({[Do.ERROR]:"error-legacy-badge-filled",[Do.INFORMATIONAL]:"info-badge-filled",[Do.NEUTRAL]:"dnd-presence-badge-filled",[Do.SUCCESS]:"check-circle-badge-filled",[Do.WARNING]:"warning-badge-filled"})[a];var ws=class extends ie(
|
|
1045
|
+
`,Uu=[bt,cT,...At()];var Gu=z.constructTagName("alertchip"),Do={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Cs={VARIANT:Do.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:No[24],ROLE:tt.BUTTON};var Ku=a=>({[Do.ERROR]:"error-legacy-badge-filled",[Do.INFORMATIONAL]:"info-badge-filled",[Do.NEUTRAL]:"dnd-presence-badge-filled",[Do.SUCCESS]:"check-circle-badge-filled",[Do.WARNING]:"warning-badge-filled"})[a];var ws=class extends ie(fe){constructor(){super(...arguments);this.variant=Cs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Cs.SIZE,this.role=Cs.ROLE}render(){return _`
|
|
1046
1046
|
<mdc-icon part="icon" name="${this.iconName||Ku(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
|
1047
1047
|
${this.label?_`<mdc-text part="label" type="${Cs.TEXT_TYPE}" tagname="${Cs.TAG_NAME}"
|
|
1048
1048
|
>${this.label}</mdc-text
|
|
1049
1049
|
>`:j}
|
|
1050
|
-
`}};ws.styles=[...X.styles,...Uu],m([u({type:String,reflect:!0})],ws.prototype,"variant",2),m([u({type:String})],ws.prototype,"label",2);var Dc=ws;Dc.register(Gu);var hT=Dc;var{I:pT}=nu;var El=a=>a.strings===void 0,Wu=()=>document.createComment(""),ks=(a,o,t)=>{var l;let r=a._$AA.parentNode,s=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=r.insertBefore(Wu(),s),f=r.insertBefore(Wu(),s);t=new pT(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,y=f!==a;if(y){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==s||y){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;r.insertBefore(A,s),A=F}}}return t},ji=(a,o,t=a)=>(a._$AI(o,t),a),mT={},Tl=(a,o=mT)=>a._$AH=o,Yu=a=>a._$AH,xl=a=>{var r;(r=a._$AP)==null||r.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let s=o.nextSibling;o.remove(),o=s}};var
|
|
1050
|
+
`}};ws.styles=[...X.styles,...Uu],m([u({type:String,reflect:!0})],ws.prototype,"variant",2),m([u({type:String})],ws.prototype,"label",2);var Dc=ws;Dc.register(Gu);var hT=Dc;var{I:pT}=nu;var El=a=>a.strings===void 0,Wu=()=>document.createComment(""),ks=(a,o,t)=>{var l;let r=a._$AA.parentNode,s=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=r.insertBefore(Wu(),s),f=r.insertBefore(Wu(),s);t=new pT(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,y=f!==a;if(y){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==s||y){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;r.insertBefore(A,s),A=F}}}return t},ji=(a,o,t=a)=>(a._$AI(o,t),a),mT={},Tl=(a,o=mT)=>a._$AH=o,Yu=a=>a._$AH,xl=a=>{var r;(r=a._$AP)==null||r.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let s=o.nextSibling;o.remove(),o=s}};var nr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},fi=a=>(...o)=>({_$litDirective$:a,values:o}),Yr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this.t=o,this._$AM=t,this.i=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var Un=(a,o)=>{var r;let t=a._$AN;if(t===void 0)return!1;for(let s of t)(r=s._$AO)==null||r.call(s,o,!1),Un(s,o);return!0},Al=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},ju=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),vT(o)}};function uT(a){this._$AN!==void 0?(Al(this),this._$AM=a,ju(this)):this._$AM=a}function fT(a,o=!1,t=0){let r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(o)if(Array.isArray(r))for(let l=t;l<r.length;l++)Un(r[l],!1),Al(r[l]);else r!=null&&(Un(r,!1),Al(r));else Un(this,a)}var vT=a=>{var o,t;a.type==nr.CHILD&&((o=a._$AP)!=null||(a._$AP=fT),(t=a._$AQ)!=null||(a._$AQ=uT))},Sl=class extends Yr{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),ju(this),this.isConnected=o._$AU}_$AO(o,t=!0){var r,s;o!==this.isConnected&&(this.isConnected=o,o?(r=this.reconnected)==null||r.call(this):(s=this.disconnected)==null||s.call(this)),t&&(Un(this,o),Al(this))}setValue(o){if(El(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var qu=()=>new $c,$c=class{},Fc=new WeakMap,Xu=fi(class extends Sl{render(a){return j}update(a,[o]){var r;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(r=a.options)==null?void 0:r.host,this.rt(this.ct=a.element)),j}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,r=Fc.get(t);r===void 0&&(r=new WeakMap,Fc.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=Fc.get((a=this.ht)!=null?a:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var tf=cE(Zu());var Vc={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var gT=[bt,H`
|
|
1051
1051
|
:host svg {
|
|
1052
1052
|
display: block;
|
|
1053
1053
|
}
|
|
1054
|
-
`],Qu=gT;var Ju=z.constructTagName("animation"),zc={AUTO_PLAY:!0,LOOP:"true"};var vi=class extends X{constructor(){super(...arguments);this.loop=zc.LOOP;this.autoplay=zc.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=qu();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=tf.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&Vc[this.name]?import(`@momentum-design/animations/dist/lottie${Vc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?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" ${Xu(this.containerRef)}></div>`}};vi.styles=[...X.styles,...Qu],m([u({type:String,reflect:!0})],vi.prototype,"name",2),m([u({type:String,reflect:!0})],vi.prototype,"loop",2),m([u({type:Boolean,reflect:!0})],vi.prototype,"autoplay",2),m([u({type:String,attribute:"aria-label"})],vi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],vi.prototype,"ariaLabelledby",2);var Bc=vi;Bc.register(Ju);var bT=Bc;var _l=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),pi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),pi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Is(this.shadowRoot))}setInitialFocus(s=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[s]&&(this.focusTrapIndex=s,this.focusableElements[s].focus({preventScroll:!0}))}calculateNextIndex(s,l){let{length:c}=this.focusableElements;if(s===-1)return l>0?0:c-1;let f=s+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let s=document.activeElement||document.body;for(;s instanceof HTMLElement&&((l=s.shadowRoot)!=null&&l.activeElement);)s=s.shadowRoot.activeElement;return s||document.body}findElement(s){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(s,l))}isEqualFocusNode(s,l){return s.nodeType>=0?l.isEqualNode(s)&&l===s:!1}trapFocus(s){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(s.preventDefault(),y.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return m([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var Cl=a=>{class o extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var wl=z.constructTagName("link"),kl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Nl={LARGE:1,MIDSIZE:.875,SMALL:.75},ef={LINK_SIZE:kl.LARGE};var rf=z.constructTagName("card"),Hc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},yT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},
|
|
1054
|
+
`],Qu=gT;var Ju=z.constructTagName("animation"),zc={AUTO_PLAY:!0,LOOP:"true"};var vi=class extends X{constructor(){super(...arguments);this.loop=zc.LOOP;this.autoplay=zc.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=qu();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=tf.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&Vc[this.name]?import(`@momentum-design/animations/dist/lottie${Vc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?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" ${Xu(this.containerRef)}></div>`}};vi.styles=[...X.styles,...Qu],m([u({type:String,reflect:!0})],vi.prototype,"name",2),m([u({type:String,reflect:!0})],vi.prototype,"loop",2),m([u({type:Boolean,reflect:!0})],vi.prototype,"autoplay",2),m([u({type:String,attribute:"aria-label"})],vi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],vi.prototype,"ariaLabelledby",2);var Bc=vi;Bc.register(Ju);var bT=Bc;var _l=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),pi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),pi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Is(this.shadowRoot))}setInitialFocus(s=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[s]&&(this.focusTrapIndex=s,this.focusableElements[s].focus({preventScroll:!0}))}calculateNextIndex(s,l){let{length:c}=this.focusableElements;if(s===-1)return l>0?0:c-1;let f=s+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let s=document.activeElement||document.body;for(;s instanceof HTMLElement&&((l=s.shadowRoot)!=null&&l.activeElement);)s=s.shadowRoot.activeElement;return s||document.body}findElement(s){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(s,l))}isEqualFocusNode(s,l){return s.nodeType>=0?l.isEqualNode(s)&&l===s:!1}trapFocus(s){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(s.preventDefault(),y.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return m([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var Cl=a=>{class o extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var wl=z.constructTagName("link"),kl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Nl={LARGE:1,MIDSIZE:.875,SMALL:.75},ef={LINK_SIZE:kl.LARGE};var rf=z.constructTagName("card"),Hc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},yT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ve={VARIANT:Hc.BORDER,ORIENTATION:yT.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:wl,BUTTON:hi};var Ns=a=>{class o extends a{updateFooterButtonColors(r){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(l=>{r===Hc.PROMOTIONAL?l.setAttribute("color",Lo.PROMOTIONAL):l.setAttribute("color",Lo.DEFAULT)})}handleFooterSlot(r,s){var c,f,y;let l=[];r===ve.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:r===ve.BUTTON&&s===Bt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:r===ve.BUTTON&&s===Bt.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(r)||A.remove(),s&&A.setAttribute("variant",s)})}renderFooter(){return _` <slot name="footer">
|
|
1055
1055
|
<div part="footer">
|
|
1056
|
-
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(
|
|
1056
|
+
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(ve.LINK)}></slot>
|
|
1057
1057
|
<slot
|
|
1058
1058
|
name="footer-button-secondary"
|
|
1059
|
-
@slotchange=${()=>this.handleFooterSlot(
|
|
1059
|
+
@slotchange=${()=>this.handleFooterSlot(ve.BUTTON,Bt.SECONDARY)}
|
|
1060
1060
|
></slot>
|
|
1061
1061
|
<slot
|
|
1062
1062
|
name="footer-button-primary"
|
|
1063
|
-
@slotchange=${()=>this.handleFooterSlot(
|
|
1063
|
+
@slotchange=${()=>this.handleFooterSlot(ve.BUTTON,Bt.PRIMARY)}
|
|
1064
1064
|
></slot>
|
|
1065
1065
|
</div>
|
|
1066
1066
|
</slot>`}}return m([$t({slot:"footer-link"})],o.prototype,"footerLink",2),m([$t({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),m([$t({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Ae=[],of=1e3,ET=3,Uc=-2,Gc=-1,qi=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Ae.length}pushHost(){var o,t;return this.has(this.host)?!1:(Ae.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(!this.has(o))return;let t=Ae.indexOf(o),r=[];for(let s=Ae.length-1;s>=t;s-=1){let l=Ae[s];(l===o||l.triggerID!==o.triggerID)&&r.push(l)}return this.remove(r),o}pop(){var t;let o=Ae.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let r=Ae.length-1;r>=0;r-=1){let s=Ae[r],l=o(s,r);if(l===!1)break;l!=="skip"&&t.push(s)}return this.remove(t)}peek(){return Ae.at(-1)}remove(o){var s,l;let t=o.filter(c=>Ae.includes(c)),r=t.reduce((c,f)=>Math.min(c,Ae.indexOf(f)),1/0);t.forEach(c=>{Ae.splice(Ae.indexOf(c),1)}),t.forEach(c=>{var f;(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=r;c<Ae.length;c+=1)(l=(s=Ae[c]).onComponentStackChanged)==null||l.call(s,"moved");return t}has(o){return Ae.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return Ae.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?of+t*ET:of}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var Ll=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(s){var l;if(super.update(s),s.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Uc}`;let c=(l=this.triggerElementCache)==null?void 0:l.deref();c&&(c.style.zIndex=`${this.zIndex+Gc}`)}}createBackdrop(s){let l=document.createElement("div");l.classList.add(`${s}-backdrop`);let c=document.createElement("style");c.textContent=`
|
|
@@ -1073,7 +1073,7 @@
|
|
|
1073
1073
|
background: ${this.isBackdropInvisible?"transparent":"var(--mds-color-theme-common-overlays-secondary-normal)"};
|
|
1074
1074
|
z-index: ${this.zIndex+Uc};
|
|
1075
1075
|
}
|
|
1076
|
-
`,l.appendChild(c);let y=document.getElementById(this.backdropAppendTo)||this.parentElement;y==null||y.appendChild(l),this.backdropElement=l}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.triggerElementCache=new WeakRef(s),this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex+Gc}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var Ml=z.constructTagName("responsivesettingsprovider"),Nr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},sf=["float","dialog"],nf=["unknown","mobile","desktop","tablet"];var Ol=class{constructor(o={}){this.media=Nr.MEDIA;this.forceFullscreenDialog=Nr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=Nr.POPOVER_POSITIONING;Object.assign(this,o)}};Ol.context=Ml;var Rl=Ol;var Ls=class extends
|
|
1076
|
+
`,l.appendChild(c);let y=document.getElementById(this.backdropAppendTo)||this.parentElement;y==null||y.appendChild(l),this.backdropElement=l}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.triggerElementCache=new WeakRef(s),this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex+Gc}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var Ml=z.constructTagName("responsivesettingsprovider"),Nr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},sf=["float","dialog"],nf=["unknown","mobile","desktop","tablet"];var Ol=class{constructor(o={}){this.media=Nr.MEDIA;this.forceFullscreenDialog=Nr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=Nr.POPOVER_POSITIONING;Object.assign(this,o)}};Ol.context=Ml;var Rl=Ol;var Ls=class extends me{constructor(){super({context:Rl.context,initialValue:new Rl({media:Nr.MEDIA,popoverPositioning:Nr.POPOVER_POSITIONING,forceFullscreenDialog:Nr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=Nr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=Nr.POPOVER_POSITIONING;this.privateMedia=Nr.MEDIA}static get Context(){return Rl.context}set popoverPositioning(t){sf.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){nf.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,r,s;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((r=this.context.value)==null?void 0:r.popoverPositioning)!==this.privatePopoverPositioning||((s=this.context.value)==null?void 0:s.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};m([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Ls.prototype,"forceFullscreenDialog",2),m([u({type:String,attribute:"popover-positioning",reflect:!0})],Ls.prototype,"popoverPositioning",1),m([u({type:String,attribute:"media",reflect:!0})],Ls.prototype,"media",1);var Kc=Ls;Kc.register(Ml);var Wc=Kc;var af=z.constructTagName("dialog"),Yc={DEFAULT:"default",PROMOTIONAL:"promotional"},fr={VISIBLE:!1,Z_INDEX:1e3,ROLE:tt.DIALOG,SIZE:"small",HEADER_TAG_NAME:pt.H2,DESCRIPTION_TAG_NAME:pt.P,CANCEL_ICON:"cancel-bold",VARIANT:Yc.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var GL=[tt.DIALOG,tt.ALERTDIALOG];var Xi=class{static dispatchDialogEvent(o,t,r=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:r}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var TT=H`
|
|
1077
1077
|
:host {
|
|
1078
1078
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
1079
1079
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
mdc-text::part(text) {
|
|
1225
1225
|
margin: 0;
|
|
1226
1226
|
}
|
|
1227
|
-
`,lf=[TT];var Xt=class extends Lt(Ct(Ll(Cl(_l(Ns(X)))))){constructor(){super(...arguments);this.responsiveSettingsContext=
|
|
1227
|
+
`,lf=[TT];var Xt=class extends Lt(Ct(Ll(Cl(_l(Ns(X)))))){constructor(){super(...arguments);this.responsiveSettingsContext=ue.consume({host:this,context:Wc.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new qi(this);this.id="";this.visible=fr.VISIBLE;this.internalSize=fr.SIZE;this.variant=fr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=fr.HEADER_TAG_NAME;this.descriptionTagName=fr.DESCRIPTION_TAG_NAME;this.role=fr.ROLE;this.disableAriaHasPopup=fr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=fr.FOCUS_TRAP;this.hideBackdrop=fr.HIDE_BACKDROP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,r;return(r=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&r.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(r=this.deactivateFocusTrap)==null||r.call(this),this.focusBackToTrigger(),Xi.onDestroyedDialog(this)}applyZIndex(){this.style.setProperty("z-index",`${this.zIndex}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Xi.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 r=t.get("visible");await this.isOpenUpdated(r,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=fr.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,r;this.disableAriaHasPopup||(r=this.triggerElement)==null||r.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(){this.depthManager.popHost(),Xi.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,r){var s,l,c,f,y;t!==r&&(r&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((s=this.activateFocusTrap)==null||s.call(this)),(l=this.setInitialFocus)==null||l.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),Xi.onShowDialog(this)):!r&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(y=this.deactivateFocusTrap)==null||y.call(this),this.focusBackToTrigger(),Xi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?_` <div part="header-section">
|
|
1228
1228
|
<div part="header">
|
|
1229
1229
|
<slot name="header-prefix"></slot>
|
|
1230
1230
|
<mdc-text
|
|
@@ -1324,7 +1324,7 @@
|
|
|
1324
1324
|
</slot>
|
|
1325
1325
|
</div>
|
|
1326
1326
|
</div>
|
|
1327
|
-
`}};Os.styles=[...Ms.styles,...df],m([u({type:String,reflect:!0})],Os.prototype,"illustration",2),m([u({type:String,reflect:!0})],Os.prototype,"size",1);var jc=Os;var Pl=z.constructTagName("illustrationprovider"),pf=["svg"],Kn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Dl=class{};Dl.context=Pl;var Fl=Dl;var Zi=class extends
|
|
1327
|
+
`}};Os.styles=[...Ms.styles,...df],m([u({type:String,reflect:!0})],Os.prototype,"illustration",2),m([u({type:String,reflect:!0})],Os.prototype,"size",1);var jc=Os;var Pl=z.constructTagName("illustrationprovider"),pf=["svg"],Kn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Dl=class{};Dl.context=Pl;var Fl=Dl;var Zi=class extends me{constructor(){super({context:Fl.context,initialValue:new Fl});this.illustrationSet=Kn.ILLUSTRATION_SET;this.fileExtension=Kn.FILE_EXTENSION}static get Context(){return Fl.context}updateValuesInContext(){this.fileExtension&&pf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Kn.FILE_EXTENSION,this.context.value.fileExtension=Kn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};m([u({type:String,attribute:"illustration-set",reflect:!0})],Zi.prototype,"illustrationSet",2),m([u({type:String})],Zi.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Zi.prototype,"fileExtension",2),m([u({type:String,attribute:"cache-strategy"})],Zi.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Zi.prototype,"cacheName",2);var Wn=Zi;var AT=[bt,H`
|
|
1328
1328
|
:host {
|
|
1329
1329
|
--mdc-illustration-size: auto;
|
|
1330
1330
|
}
|
|
@@ -1332,7 +1332,7 @@
|
|
|
1332
1332
|
height: var(--mdc-illustration-size);
|
|
1333
1333
|
width: var(--mdc-illustration-size);
|
|
1334
1334
|
}
|
|
1335
|
-
`],mf=AT;var uf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),ff=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?uf(f).then(y=>y.text()):gl(s,r).then(y=>y.get(f).then(A=>A||uf(f.clone()).then(F=>{var W;return F.status<400&&F.headers.has("content-type")?(W=y.set)==null?void 0:W.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var vf=z.constructTagName("illustration"),gf={NAME:void 0};var gi=class extends X{constructor(){super();this.name=gf.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=
|
|
1335
|
+
`],mf=AT;var uf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),ff=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?uf(f).then(y=>y.text()):gl(s,r).then(y=>y.get(f).then(A=>A||uf(f.clone()).then(F=>{var W;return F.status<400&&F.headers.has("content-type")?(W=y.set)==null?void 0:W.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var vf=z.constructTagName("illustration"),gf={NAME:void 0};var gi=class extends X{constructor(){super();this.name=gf.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=ue.consume({host:this,context:Wn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","illustration"),r.setAttribute("aria-hidden","true"),r}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:r,url:s,cacheName:l,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&s&&r&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return ff({url:s,name:this.name,fileExtension:r,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(F)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(y=>{this.handleIllustrationLoadedSuccess(y.default())}).catch(y=>{this.handleIllustrationLoadedFailure(y)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIllustrationLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(r=>{r.name!=="AbortError"&&this.onerror&&this.onerror(r)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?tt.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.illustrationData} `}};gi.styles=[...X.styles,...mf],m([mt()],gi.prototype,"illustrationData",2),m([u({type:String,reflect:!0})],gi.prototype,"name",2),m([u({type:String,attribute:"aria-label"})],gi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],gi.prototype,"ariaLabelledby",2),m([mt()],gi.prototype,"abortController",2);var qc=gi;qc.register(vf);var ST=qc;jc.register(cf);var IT=jc;var _T=H`
|
|
1336
1336
|
:host {
|
|
1337
1337
|
--mdc-appheader-height: 4rem;
|
|
1338
1338
|
}
|
|
@@ -1692,7 +1692,7 @@
|
|
|
1692
1692
|
--mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
|
|
1693
1693
|
--mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
|
|
1694
1694
|
}
|
|
1695
|
-
`,...At()],kf=OT;var jn=class extends Vl(ie(
|
|
1695
|
+
`,...At()],kf=OT;var jn=class extends Vl(ie(fe)){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=je.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Wt).includes(t)?`${t}`:Rs.SIZE.toString())}render(){return _`
|
|
1696
1696
|
<div part="overlay" aria-hidden="true"></div>
|
|
1697
1697
|
<mdc-avatar
|
|
1698
1698
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
|
@@ -2085,21 +2085,21 @@
|
|
|
2085
2085
|
${this.prefixIcon?_`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2086
2086
|
<slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
|
|
2087
2087
|
${this.postfixIcon?_`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2088
|
-
`}};Fs.styles=[...Ro.styles,...Hf],m([u({type:Number,reflect:!0})],Fs.prototype,"size",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Fs.prototype,"softDisabled",2);var nh=Fs;var Uf=z.constructTagName("buttonlink");nh.register(Uf);var jT=nh;var Hl=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=
|
|
2088
|
+
`}};Fs.styles=[...Ro.styles,...Hf],m([u({type:Number,reflect:!0})],Fs.prototype,"size",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Fs.prototype,"softDisabled",2);var nh=Fs;var Uf=z.constructTagName("buttonlink");nh.register(Uf);var jT=nh;var Hl=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=ve.VARIANT;this.orientation=ve.ORIENTATION;this.titleTagName=ve.TAGNAME;this.subtitleTagName=ve.TAGNAME}renderImage(){return this.imageSrc?_`<div part="image-wrapper">
|
|
2089
2089
|
<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
|
|
2090
2090
|
</div>`:j}renderIcon(){return this.iconName?_`<mdc-icon
|
|
2091
2091
|
part="icon"
|
|
2092
|
-
size="${
|
|
2093
|
-
length-unit="${
|
|
2092
|
+
size="${ve.ICON_SIZE}"
|
|
2093
|
+
length-unit="${ve.ICON_LENGTH_UNIT}"
|
|
2094
2094
|
name="${this.iconName}"
|
|
2095
2095
|
></mdc-icon>`:j}renderTitle(){return _`<div part="title-container">
|
|
2096
2096
|
<slot name="title">
|
|
2097
|
-
${this.cardTitle?_`<mdc-text part="title" type="${
|
|
2097
|
+
${this.cardTitle?_`<mdc-text part="title" type="${ve.TITLE_TYPE}" tagname="${this.titleTagName}"
|
|
2098
2098
|
>${this.cardTitle}</mdc-text
|
|
2099
2099
|
>`:j}
|
|
2100
2100
|
</slot>
|
|
2101
2101
|
<slot name="subtitle">
|
|
2102
|
-
${this.subtitle?_`<mdc-text part="subtitle" type="${
|
|
2102
|
+
${this.subtitle?_`<mdc-text part="subtitle" type="${ve.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
|
2103
2103
|
>${this.subtitle}</mdc-text
|
|
2104
2104
|
>`:j}
|
|
2105
2105
|
</slot>
|
|
@@ -2212,7 +2212,7 @@
|
|
|
2212
2212
|
mdc-text::part(text) {
|
|
2213
2213
|
margin: 0;
|
|
2214
2214
|
}
|
|
2215
|
-
`,Gf=[bt,qT];var Xn=class extends Hl(Ns(X)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(
|
|
2215
|
+
`,Gf=[bt,qT];var Xn=class extends Hl(Ns(X)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(ve.BUTTON)&&(r.setAttribute("variant",Bt.TERTIARY),r.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return _`<div part="header">
|
|
2216
2216
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2217
2217
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
|
2218
2218
|
</div>`}render(){return _`
|
|
@@ -2248,7 +2248,7 @@
|
|
|
2248
2248
|
:host([disabled])::part(image) {
|
|
2249
2249
|
opacity: 0.5;
|
|
2250
2250
|
}
|
|
2251
|
-
`,Kf=[ZT,...At()];var Ul=class extends Hl(
|
|
2251
|
+
`,Kf=[ZT,...At()];var Ul=class extends Hl(fe){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return _`
|
|
2252
2252
|
<slot name="image"> ${this.renderImage()} </slot>
|
|
2253
2253
|
<div part="body">
|
|
2254
2254
|
<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
|
|
@@ -2767,7 +2767,7 @@
|
|
|
2767
2767
|
white-space: nowrap;
|
|
2768
2768
|
width: 1px;
|
|
2769
2769
|
}
|
|
2770
|
-
`,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=ad(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=jo.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=jo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};Qr.styles=[...X.styles,...zv],m([u({type:String,reflect:!0})],Qr.prototype,"announcement",2),m([u({type:String,reflect:!0})],Qr.prototype,"identity",2),m([u({type:String,reflect:!0,attribute:"data-aria-live"})],Qr.prototype,"dataAriaLive",2),m([u({type:Number,reflect:!0})],Qr.prototype,"delay",2),m([u({type:Number,reflect:!0})],Qr.prototype,"timeout",2),m([u({type:Number,reflect:!0,attribute:"debounce-time"})],Qr.prototype,"debounceTime",2);var Eh=Qr;Eh.register(Vv);var Gx=Eh;yh.register(Fv);var Kx=yh;var
|
|
2770
|
+
`,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=ad(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=jo.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=jo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};Qr.styles=[...X.styles,...zv],m([u({type:String,reflect:!0})],Qr.prototype,"announcement",2),m([u({type:String,reflect:!0})],Qr.prototype,"identity",2),m([u({type:String,reflect:!0,attribute:"data-aria-live"})],Qr.prototype,"dataAriaLive",2),m([u({type:Number,reflect:!0})],Qr.prototype,"delay",2),m([u({type:Number,reflect:!0})],Qr.prototype,"timeout",2),m([u({type:Number,reflect:!0,attribute:"debounce-time"})],Qr.prototype,"debounceTime",2);var Eh=Qr;Eh.register(Vv);var Gx=Eh;yh.register(Fv);var Kx=yh;var ge=a=>{class o extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,m([u({reflect:!0,type:String})],o.prototype,"name",2),m([u({reflect:!0,type:String})],o.prototype,"value",2),m([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),m([Kt("input")],o.prototype,"inputElement",2),o};var Wx=H`
|
|
2771
2771
|
:host {
|
|
2772
2772
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
|
2773
2773
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
|
@@ -2957,7 +2957,7 @@
|
|
|
2957
2957
|
:host([soft-disabled]) {
|
|
2958
2958
|
pointer-events: none;
|
|
2959
2959
|
}
|
|
2960
|
-
`,...At(!0)],Uv=Yx;var to=class extends Lt(Ct(Ne(
|
|
2960
|
+
`,...At(!0)],Uv=Yx;var to=class extends Lt(Ct(Ne(ge(Ut(Jt))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=Jf.DEFAULT;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}click(){super.click(),this.toggleState()}handleKeyDown(t){var s;let r=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===qt.DEFAULT&&((this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault(),r===q.ENTER&&((s=this.form)==null||s.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===qt.SPATIAL&&!(this.readonly||this.softDisabled)&&r===q.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return _`
|
|
2961
2961
|
<mdc-staticcheckbox
|
|
2962
2962
|
part="static-checkbox"
|
|
2963
2963
|
class="mdc-focus-ring"
|
|
@@ -3158,12 +3158,12 @@
|
|
|
3158
3158
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3159
3159
|
cursor: auto;
|
|
3160
3160
|
}
|
|
3161
|
-
`,Yv=[bt,Xx,...At()];var Ks=class extends ie(
|
|
3161
|
+
`,Yv=[bt,Xx,...At()];var Ks=class extends ie(fe){constructor(){super(...arguments);this.color=Gs.COLOR}connectedCallback(){super.connectedCallback(),this.role=Gs.ROLE,this.size=Gs.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return _`
|
|
3162
3162
|
${this.renderIcon()}
|
|
3163
3163
|
${this.label?_`<mdc-text part="label" type="${Gs.TEXT_TYPE}" tagname="${Gs.TAG_NAME}"
|
|
3164
3164
|
>${this.label}</mdc-text
|
|
3165
3165
|
>`:j}
|
|
3166
|
-
`}};Ks.styles=[...ia.styles,...Yv],m([u({type:String,reflect:!0})],Ks.prototype,"color",2),m([u({type:String})],Ks.prototype,"label",2);var Ws=Ks;Ws.register(Wv);var Zx=Ws;var jv=z.constructTagName("coachmark"),qo={COLOR:Vo.CONTRAST,TRIGGER:Oe.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Xo=class extends Xe{constructor(){super(...arguments);this.trigger=qo.TRIGGER;this.showArrow=qo.ARROW;this.closeButton=qo.CLOSE_BUTTON;this.disableAriaExpanded=qo.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=qo.COLOR,this.showArrow=qo.ARROW}};m([u({type:String,reflect:!0})],Xo.prototype,"trigger",2),m([u({type:Boolean,attribute:"show-arrow"})],Xo.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],Xo.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Xo.prototype,"disableAriaExpanded",2);var Ah=Xo;Ah.register(jv);var Qx=Ah;var dd=z.constructTagName("controltypeprovider"),cd={CONTROL_TYPE:"uncontrolled"},hd=["controlled","uncontrolled"];var Jx=dd,Sh=Jx;var pd=class extends
|
|
3166
|
+
`}};Ks.styles=[...ia.styles,...Yv],m([u({type:String,reflect:!0})],Ks.prototype,"color",2),m([u({type:String})],Ks.prototype,"label",2);var Ws=Ks;Ws.register(Wv);var Zx=Ws;var jv=z.constructTagName("coachmark"),qo={COLOR:Vo.CONTRAST,TRIGGER:Oe.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Xo=class extends Xe{constructor(){super(...arguments);this.trigger=qo.TRIGGER;this.showArrow=qo.ARROW;this.closeButton=qo.CLOSE_BUTTON;this.disableAriaExpanded=qo.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=qo.COLOR,this.showArrow=qo.ARROW}};m([u({type:String,reflect:!0})],Xo.prototype,"trigger",2),m([u({type:Boolean,attribute:"show-arrow"})],Xo.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],Xo.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Xo.prototype,"disableAriaExpanded",2);var Ah=Xo;Ah.register(jv);var Qx=Ah;var dd=z.constructTagName("controltypeprovider"),cd={CONTROL_TYPE:"uncontrolled"},hd=["controlled","uncontrolled"];var Jx=dd,Sh=Jx;var pd=class extends me{constructor(){super({context:Sh});this.innerControlType=cd.CONTROL_TYPE}static get Context(){return Sh}set controlType(t){hd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};m([u({type:String,attribute:"control-type",reflect:!0})],pd.prototype,"controlType",1);var Ih=pd;Ih.register(dd);var _h=Ih;Ms.register(af);var tA=Ms;var oa=z.constructTagName("divider"),Zo={HORIZONTAL:"horizontal",VERTICAL:"vertical"},sa={SOLID:"solid",GRADIENT:"gradient"},yr={POSITIVE:"positive",NEGATIVE:"negative"},na={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Qo={ORIENTATION:Zo.HORIZONTAL,VARIANT:sa.SOLID,ARROW_DIRECTION:yr.NEGATIVE,BUTTON_DIRECTION:yr.NEGATIVE};var eA=[bt,H`
|
|
3167
3167
|
:host {
|
|
3168
3168
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
3169
3169
|
--mdc-divider-width: 0.0625rem;
|
|
@@ -3413,7 +3413,7 @@
|
|
|
3413
3413
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
|
3414
3414
|
<slot></slot>
|
|
3415
3415
|
</div>
|
|
3416
|
-
`}};md.styles=[...Jt.styles,...Qv];var Nh=md;var Jv=z.constructTagName("formfieldgroup");Nh.register(Jv);var ud=Nh;$n.register(ul);var nA=$n;Wn.register(Pl);var aA=Wn;var Jo=fi(class extends Yr{constructor(a){if(super(a),a.type!==
|
|
3416
|
+
`}};md.styles=[...Jt.styles,...Qv];var Nh=md;var Jv=z.constructTagName("formfieldgroup");Nh.register(Jv);var ud=Nh;$n.register(ul);var nA=$n;Wn.register(Pl);var aA=Wn;var Jo=fi(class extends Yr{constructor(a){if(super(a),a.type!==nr.PROPERTY&&a.type!==nr.ATTRIBUTE&&a.type!==nr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!El(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===ke||o===j)return o;let t=a.element,r=a.name;if(a.type===nr.PROPERTY){if(o===t[r])return ke}else if(a.type===nr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return ke}else if(a.type===nr.ATTRIBUTE&&t.getAttribute(r)===o+"")return ke;return Tl(a),o}});Jt.register(Zf);var Qe=Jt;var tg=z.constructTagName("input"),fd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Ys={OFF:"off",ON:"on"},ro={PASSWORD:"password",TEXT:"text",SEARCH:"search"},eg={MAX_LENGTH:10,VALIDATION:Ht.ERROR},Si={VALIDATION:Ht.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Bt.TERTIARY,CLEAR_BUTTON_SIZE:ur[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:Ys.OFF,INPUT_TYPE:ro.TEXT};var lA=[H`
|
|
3417
3417
|
:host {
|
|
3418
3418
|
--mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
|
|
3419
3419
|
--mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -3533,7 +3533,7 @@
|
|
|
3533
3533
|
opacity: 0;
|
|
3534
3534
|
pointer-events: none;
|
|
3535
3535
|
}
|
|
3536
|
-
`,...At(!0)],rg=lA;var
|
|
3536
|
+
`,...At(!0)],rg=lA;var le=class extends Ct(Ne(ge(Ut(Qe)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=fd.OFF;this.autocomplete=Ys.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,r,s){super.attributeChangedCallback(t,r,s),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(l=>{this.onerror&&this.onerror(l)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}handleKeyDown(t){var r;this.getActionForKeyEvent(t)===q.ENTER&&this.getKeyboardNavMode()===qt.DEFAULT&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?_`
|
|
3537
3537
|
<mdc-icon
|
|
3538
3538
|
part="leading-icon"
|
|
3539
3539
|
name=${this.leadingIcon}
|
|
@@ -3596,7 +3596,7 @@
|
|
|
3596
3596
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
|
3597
3597
|
</div>
|
|
3598
3598
|
${this.helpText?this.renderHelperText():j}
|
|
3599
|
-
`}};
|
|
3599
|
+
`}};le.styles=[...Qe.styles,...rg],le.shadowRootOptions={...Qe.shadowRootOptions,delegatesFocus:!0},m([u({type:String})],le.prototype,"placeholder",2),m([u({type:String,attribute:"prefix-text"})],le.prototype,"prefixText",2),m([u({type:String,attribute:"leading-icon"})],le.prototype,"leadingIcon",2),m([u({type:Boolean,attribute:"trailing-button"})],le.prototype,"trailingButton",2),m([u({type:Number})],le.prototype,"maxlength",2),m([u({type:Number})],le.prototype,"minlength",2),m([u({type:String})],le.prototype,"autocapitalize",2),m([u({type:String})],le.prototype,"autocomplete",2),m([u({type:String})],le.prototype,"dirname",2),m([u({type:String})],le.prototype,"pattern",2),m([u({type:String})],le.prototype,"list",2),m([u({type:Number})],le.prototype,"size",2),m([u({type:String,attribute:"clear-aria-label"})],le.prototype,"clearAriaLabel",2),m([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],le.prototype,"dataAriaDescribedby",2);var Pr=le;Pr.register(tg);var dA=Pr;var cA=H`
|
|
3600
3600
|
:host {
|
|
3601
3601
|
height: 1.5rem;
|
|
3602
3602
|
gap: 0.25rem;
|
|
@@ -3820,7 +3820,7 @@
|
|
|
3820
3820
|
color: var(--mdc-link-color-disabled);
|
|
3821
3821
|
pointer-events: none;
|
|
3822
3822
|
}
|
|
3823
|
-
`,ag=[uA,...At()];var es=class extends ie(
|
|
3823
|
+
`,ag=[uA,...At()];var es=class extends ie(fe){constructor(){super(...arguments);this.size=qs.SIZE;this.inline=qs.INLINE;this.inverted=qs.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=qs.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(js).includes(t)?`${t}`:qs.SIZE.toString())}render(){return _`
|
|
3824
3824
|
<slot></slot>
|
|
3825
3825
|
${this.iconName?_` <mdc-icon name=${this.iconName} size=${ng(this.size)} length-unit="rem"></mdc-icon> `:j}
|
|
3826
3826
|
`}};es.styles=[...qr.styles,...ag],m([u({type:Number,reflect:!0})],es.prototype,"size",2),m([u({type:Boolean,reflect:!0})],es.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],es.prototype,"inverted",2);var Oh=es;Oh.register(sg);var fA=Oh;qr.register(zf);var vA=qr;var Yt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Xs=a=>{class o extends Lt(Ct(a)){constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=s=>{var f;let{target:l}=s,c=s instanceof CustomEvent&&((f=s.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof X&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=s=>{let l=s.target,c=this.getCurrentIndex(l);if(c!==-1){let f=!(this.navItems.at(c)!==l&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(c,void 0,f,!1)}};this.handleNavBeforeFocus=s=>{let l=Ac(s.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){s.preventDefault();let c=this.navItems.find(y=>y.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Yt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(s){super.firstUpdated(s),this.setInitialFocus()}setInitialFocus(){let s=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(s,void 0,!1)}handleNavigationKeyDown(s){let l=this.getActionForKeyEvent(s,!0),c=this.orientation==="vertical",f=new Set(c?[q.DOWN,q.UP,q.HOME,q.END]:[q.LEFT,q.RIGHT,q.HOME,q.END]);if(!l||!f.has(l))return;let y=s.target,A=this.getCurrentIndex(y);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case q.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case q.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case q.DOWN:case q.RIGHT:{let W=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?W:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case q.UP:case q.LEFT:{let W=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?W:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(s.stopPropagation(),s.preventDefault()))}getCurrentIndex(s){return s?this.navItems.findIndex(l=>l===s||!!(l.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(s,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(s)?s:0,y=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);y&&(y.setAttribute("tabindex","0"),l&&y.focus())}}resetTabIndexAndSetFocus(s,l,c=!0,f=!0){var F;let{navItems:y}=this;if(y.length===0)return!1;let A=(F=y.at(s))!=null?F:y.find(Boolean);return s===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?y.forEach(W=>W.setAttribute("tabindex","-1")):y.at(l)&&y.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===qt.SPATIAL?!1:this.loop!=="false"}}return o};var bd=z.constructTagName("listitem"),da={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},lg={VARIANT:da.FULL_WIDTH};var gA=a=>!!a,Jr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||gA,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Yt.CREATED,this.itemCreationHandler),this.host.addEventListener(Yt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Yt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Yt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!bu(this.cache.at(-1),o))return-1;let t=0,r=this.cache.length-1;for(;t<=r;){let s=Math.floor((t+r)/2);yu(this.cache[s],o)?t=s+1:r=s-1}return t}addItem(o,t=void 0){var s;let r=o;if(this.isValidItem(r)&&!this.cache.includes(r)){let l=t===void 0?this.getIndexToInsertInCache(r):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,r,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(r):l>=0&&this.cache.splice(l,0,r)}}delete(o){var r;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((r=this.onStoreUpdate)==null||r.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var io=a=>{class o extends a{constructor(...s){super(...s);this.handleItemCreation=s=>{let l=s.target;l&&l.addEventListener(Yt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Yt.DESTROYED&&(s.target.removeEventListener(Yt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Yt.CREATED,this.handleItemCreation)}}return o};var bA=H`
|
|
@@ -4069,7 +4069,7 @@
|
|
|
4069
4069
|
var(--mdc-marker-striped-background-color) 0.375rem
|
|
4070
4070
|
);
|
|
4071
4071
|
}
|
|
4072
|
-
`,fg=[AA];var vg=z.constructTagName("marker"),gg={SOLID:"solid",STRIPED:"striped"};var pa=class extends X{constructor(){super(...arguments);this.variant=gg.SOLID}};pa.styles=[...X.styles,...fg],m([u({type:String,reflect:!0})],pa.prototype,"variant",2);var Dh=pa;Dh.register(vg);var SA=Dh;var
|
|
4072
|
+
`,fg=[AA];var vg=z.constructTagName("marker"),gg={SOLID:"solid",STRIPED:"striped"};var pa=class extends X{constructor(){super(...arguments);this.variant=gg.SOLID}};pa.styles=[...X.styles,...fg],m([u({type:String,reflect:!0})],pa.prototype,"variant",2);var Dh=pa;Dh.register(vg);var SA=Dh;var de=z.constructTagName("menupopover"),Fh={PLACEMENT:kt.BOTTOM_START,ORIENTATION:"vertical"};var _i=z.constructTagName("menusection"),bg={DIVIDER_VARIANT:"solid"};var so=z.constructTagName("sidenavigation"),Je={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},Ed={VARIANT:Je.FLEXIBLE};var ma=z.constructTagName("menubar"),yg={ORIENTATION:"vertical"};var IA=H`
|
|
4073
4073
|
:host {
|
|
4074
4074
|
display: flex;
|
|
4075
4075
|
}
|
|
@@ -4081,7 +4081,7 @@
|
|
|
4081
4081
|
:host([aria-orientation='vertical']) {
|
|
4082
4082
|
flex-direction: column;
|
|
4083
4083
|
}
|
|
4084
|
-
`,Eg=[IA];var ua=class extends Lt(Ct(X)){constructor(){super();this.depthManager=new qi(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(r=>r===this)){let r=t.target;if(!r||!this.isTopLevelMenuItem(r))return;let s=this.menuItems.filter(c=>c!==r);this.getVisibleSubMenusOfItems(s).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=yg.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(r=>{r.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),r=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],s=[],l=y=>{y.role===tt.MENUITEM&&!y.hasAttribute("disabled")?s.push(y):y.tagName.toLowerCase()===_i&&Array.from(y.children).forEach(l)};return r.forEach(l),s}getVisibleSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{var f;let l=s.getAttribute("id");if(!l)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${
|
|
4084
|
+
`,Eg=[IA];var ua=class extends Lt(Ct(X)){constructor(){super();this.depthManager=new qi(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(r=>r===this)){let r=t.target;if(!r||!this.isTopLevelMenuItem(r))return;let s=this.menuItems.filter(c=>c!==r);this.getVisibleSubMenusOfItems(s).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=yg.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(r=>{r.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),r=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],s=[],l=y=>{y.role===tt.MENUITEM&&!y.hasAttribute("disabled")?s.push(y):y.tagName.toLowerCase()===_i&&Array.from(y.children).forEach(l)};return r.forEach(l),s}getVisibleSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{var f;let l=s.getAttribute("id");if(!l)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${de}[triggerid="${l}"]`);c&&c.visible&&r.push(c)}),r}getAllPopovers(){var l,c;if(!this.menuItems.length)return[];let t=(c=(l=this.menuItems[0])==null?void 0:l.closest(so))!=null?c:this;if(!t)return[];let r=[],s=f=>{f.querySelectorAll(`${de}`).forEach(y=>{r.push(y)}),f.querySelectorAll("slot").forEach(y=>{y.assignedElements({flatten:!0}).forEach(s)})};return s(t),r}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((r,s)=>{let l=s===0?"0":"-1";r==null||r.setAttribute("tabindex",l)})}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t||r===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(r=>r.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(l=>l.getAttribute("id")===t))return;let s=this.getSubmenu(t);s&&s.show()}updatePopoverPlacement(){let t=kt.RIGHT_START;this.getAllPopovers().forEach(r=>{r.setAttribute("placement",t)})}updateTabIndexAndFocus(t,r,s){var l,c;s<0||r<0||(r!==s&&((l=t[r])==null||l.setAttribute("tabindex","-1"),(c=t[s])==null||c.setAttribute("tabindex","0")),t[s]&&(t[s].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,r,s=!1){var y;let{length:l}=this.menuItems;if(l===0)return;let c=t;if(this.getKeyboardNavMode()===qt.DEFAULT?c=r==="prev"?(t-1+l)%l:(t+1)%l:c=r==="prev"?Math.max(0,t-1):Math.min(t+1,l-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),s)){let A=(y=this.menuItems[c])==null?void 0:y.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let r=t.parentElement;if(!r||t.role!==tt.MENUITEM)return!1;let s=r.tagName.toLowerCase(),l=(c=r.parentElement)==null?void 0:c.tagName.toLowerCase();return s===ma||s===so||s===_i&&(l===ma||l===so)}isNestedMenuItem(t){return!!t.closest(de)&&t.role===tt.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(r=>this.contains(r));await Promise.all(t.map(r=>r.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===tt.MENUITEM){let s=t.closest(de),l=s==null?void 0:s.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===l);if(c){this.isTopLevelMenuItem(c)&&(s==null||s.hide()),await(s==null?void 0:s.updateComplete);let f=this.getCurrentIndex(c);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let r=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),r>=0&&this.navigateToMenuItem(r,"next",!0)}}getParentMenuItemIndex(t){let r=t.parentElement;for(;r;){if(r.tagName.toLowerCase()===de){let s=r.getAttribute("triggerid"),l=this.menuItems.find(c=>c.getAttribute("id")===s);if(l)return this.isTopLevelMenuItem(l)?this.menuItems.findIndex(c=>c===l):this.getParentMenuItemIndex(l)}r=r.parentElement}return-1}async handleKeyDown(t){let r=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case q.HOME:this.updateTabIndexAndFocus(this.menuItems,r,0);break;case q.END:this.updateTabIndexAndFocus(this.menuItems,r,this.menuItems.length-1);break;case q.LEFT:{let l=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnLeft(l);break}case q.RIGHT:{let l=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnRight(l);break}case q.UP:{this.navigateToMenuItem(r,"prev"),t.preventDefault();break}case q.DOWN:{this.navigateToMenuItem(r,"next"),t.preventDefault();break}default:break}}render(){return _`<slot></slot>`}};ua.styles=[...X.styles,...Eg],m([$t({selector:"mdc-menusection",flatten:!0})],ua.prototype,"menusections",2);var $h=ua;$h.register(ma);var _A=$h;var fa=z.constructTagName("menuitem"),va={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Vh={POSITIVE:"positive",NEGATIVE:"negative"},zh={LEADING:"leading",TRAILING:"trailing"};var CA=H`
|
|
4085
4085
|
:host(:dir(rtl))::part(trailing-arrow),
|
|
4086
4086
|
:host(:dir(rtl))::part(leading-arrow) {
|
|
4087
4087
|
transform: rotate(180deg);
|
|
@@ -4235,7 +4235,7 @@
|
|
|
4235
4235
|
:host([color='contrast'])::part(popover-content) {
|
|
4236
4236
|
color: var(--mdc-tooltip-text-color-contrast);
|
|
4237
4237
|
}
|
|
4238
|
-
`,_g=[MA];var Qs=class extends Xe{constructor(){super(...arguments);this.tooltipType=ze.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=ze.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=tt.TOOLTIP,this.ariaHidden=ze.ARIA_HIDDEN,this.backdrop=ze.BACKDROP,this.delay=this.delay||ze.DELAY,this.disableAriaExpanded=ze.DISABLE_ARIA_EXPANDED,this.hideOnBlur=ze.HIDE_ON_BLUR,this.hideOnEscape=ze.HIDE_ON_ESCAPE,this.offset=this.offset||ze.OFFSET,this.placement=this.placement||ze.PLACEMENT,this.trigger=ze.TRIGGER,this.closeButton=St.CLOSE_BUTTON,this.disableFlip=St.DISABLE_FLIP,this.focusBackToTrigger=St.FOCUS_BACK,this.focusTrap=St.FOCUS_TRAP,this.hideOnOutsideClick=St.HIDE_ON_CLICK_OUTSIDE,this.interactive=St.INTERACTIVE,this.preventScroll=St.PREVENT_SCROLL,this.size=St.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Tr).includes(t)?t:ze.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Le()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Tr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Tr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(kt).includes(this.placement)||(this.placement=ze.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(Tr).includes(this.tooltipType)||this.setTooltipType(ze.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Tr.DESCRIPTION:r===Tr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Tr.LABEL:r===Tr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:r===Tr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):r===Tr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,r){let{triggerElement:s}=this;t===r||!s||(r||this.depthManager.remove([this]),await super.isOpenUpdated(t,r))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Tu(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};Qs.styles=[...Xe.styles,..._g],m([u({type:String,attribute:"tooltip-type",reflect:!0})],Qs.prototype,"tooltipType",2),m([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],Qs.prototype,"onlyShowWhenTriggerOverflows",2);var Uh=Qs;Uh.register(ga);var OA=Uh;var lo=fi(class extends Yr{constructor(a){var o;if(super(a),a.type!==
|
|
4238
|
+
`,_g=[MA];var Qs=class extends Xe{constructor(){super(...arguments);this.tooltipType=ze.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=ze.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=tt.TOOLTIP,this.ariaHidden=ze.ARIA_HIDDEN,this.backdrop=ze.BACKDROP,this.delay=this.delay||ze.DELAY,this.disableAriaExpanded=ze.DISABLE_ARIA_EXPANDED,this.hideOnBlur=ze.HIDE_ON_BLUR,this.hideOnEscape=ze.HIDE_ON_ESCAPE,this.offset=this.offset||ze.OFFSET,this.placement=this.placement||ze.PLACEMENT,this.trigger=ze.TRIGGER,this.closeButton=St.CLOSE_BUTTON,this.disableFlip=St.DISABLE_FLIP,this.focusBackToTrigger=St.FOCUS_BACK,this.focusTrap=St.FOCUS_TRAP,this.hideOnOutsideClick=St.HIDE_ON_CLICK_OUTSIDE,this.interactive=St.INTERACTIVE,this.preventScroll=St.PREVENT_SCROLL,this.size=St.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Tr).includes(t)?t:ze.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Le()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Tr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Tr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(kt).includes(this.placement)||(this.placement=ze.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(Tr).includes(this.tooltipType)||this.setTooltipType(ze.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Tr.DESCRIPTION:r===Tr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Tr.LABEL:r===Tr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:r===Tr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):r===Tr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,r){let{triggerElement:s}=this;t===r||!s||(r||this.depthManager.remove([this]),await super.isOpenUpdated(t,r))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Tu(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};Qs.styles=[...Xe.styles,..._g],m([u({type:String,attribute:"tooltip-type",reflect:!0})],Qs.prototype,"tooltipType",2),m([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],Qs.prototype,"onlyShowWhenTriggerOverflows",2);var Uh=Qs;Uh.register(ga);var OA=Uh;var lo=fi(class extends Yr{constructor(a){var o;if(super(a),a.type!==nr.ATTRIBUTE||a.name!=="class"||((o=a.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(o=>a[o]).join(" ")+" "}update(a,[o]){var r,s;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(let l in o)o[l]&&!((r=this.nt)!=null&&r.has(l))&&this.st.add(l);return this.render(o)}let t=a.element.classList;for(let l of this.st)l in o||(t.remove(l),this.st.delete(l));for(let l in o){let c=!!o[l];c===this.st.has(l)||(s=this.nt)!=null&&s.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return ke}});var Cg=z.constructTagName("toggle"),ba={DEFAULT:"default",COMPACT:"compact"};var Gh={SIZE:ba.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var co=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=ue.consume({host:this,context:_h.Context})}willUpdate(){this.controlType&&hd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=cd.CONTROL_TYPE)}}return m([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var Td=z.constructTagName("menuitemcheckbox"),ya={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},wg={INDICATOR:ya.CHECKBOX};var RA=H`
|
|
4239
4239
|
:host::part(checkmark-icon) {
|
|
4240
4240
|
--mdc-icon-fill-color: currentColor;
|
|
4241
4241
|
}
|
|
@@ -4291,7 +4291,7 @@
|
|
|
4291
4291
|
:host .hidden-checkmark {
|
|
4292
4292
|
visibility: hidden;
|
|
4293
4293
|
}
|
|
4294
|
-
`,Lg=[DA];var tn=class extends co(Er){constructor(){super();this.checked=!1;this.indicator=Ng.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${_i}, ${
|
|
4294
|
+
`,Lg=[DA];var tn=class extends co(Er){constructor(){super();this.checked=!1;this.indicator=Ng.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${_i}, ${de}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===Ad.RADIO?_`
|
|
4295
4295
|
<mdc-staticradio
|
|
4296
4296
|
slot="leading-controls"
|
|
4297
4297
|
?checked="${this.checked}"
|
|
@@ -4325,7 +4325,7 @@
|
|
|
4325
4325
|
${this.renderCheckmarkIcon()}
|
|
4326
4326
|
</div>
|
|
4327
4327
|
</slot>
|
|
4328
|
-
`}};tn.styles=[...Er.styles,...Lg],m([u({type:Boolean,reflect:!0})],tn.prototype,"checked",2),m([u({type:String,reflect:!0})],tn.prototype,"indicator",2);var Wh=tn;Wh.register(xd);var FA=Wh;var ho=z.constructTagName("navmenuitem"),Mg={DOT:vr.DOT,COUNTER:vr.COUNTER},Og={RIGHT_ARROW:"arrow-right-bold"},Yh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:No[24],VARIANT:
|
|
4328
|
+
`}};tn.styles=[...Er.styles,...Lg],m([u({type:Boolean,reflect:!0})],tn.prototype,"checked",2),m([u({type:String,reflect:!0})],tn.prototype,"indicator",2);var Wh=tn;Wh.register(xd);var FA=Wh;var ho=z.constructTagName("navmenuitem"),Mg={DOT:vr.DOT,COUNTER:vr.COUNTER},Og={RIGHT_ARROW:"arrow-right-bold"},Yh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:No[24],VARIANT:Je.FLEXIBLE,CANNOT_ACTIVATE:!1};var $A=H`
|
|
4329
4329
|
:host::part(popover-content) {
|
|
4330
4330
|
padding: 0.75rem 0.5rem;
|
|
4331
4331
|
}
|
|
@@ -4333,7 +4333,7 @@
|
|
|
4333
4333
|
::slotted(mdc-divider) {
|
|
4334
4334
|
margin-block: 0.25rem;
|
|
4335
4335
|
}
|
|
4336
|
-
`,Rg=[$A];var Ea=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===tt.MENUITEM||o===tt.MENUITEMCHECKBOX||o===tt.MENUITEMRADIO},jh=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===
|
|
4336
|
+
`,Rg=[$A];var Ea=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===tt.MENUITEM||o===tt.MENUITEMCHECKBOX||o===tt.MENUITEMRADIO},jh=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===de};var Ta=class extends Xe{constructor(){super();this.placement=Fh.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),l=this.backdropElement?r.includes(this.backdropElement):!1;(!s||l)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||(t.composedPath().find(s=>s.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let r=t.target;Ea(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,l=this.getCurrentIndex(s);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case q.HOME:{this.resetTabIndexAndSetFocus(0,l),r=!0;break}case q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),r=!0;break}case q.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),r=!0;break}case q.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),r=!0;break}case q.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),r=!0);break}case q.LEFT:{jh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),r=!0);break}case q.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),r=!0);break}case q.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case q.SPACE:{r=!0;break}default:break}r&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case q.SPACE:{!s.matches(`${xd}, ${Td}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0));break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,l;let r=t.getAttribute("id");return r?(l=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:l.call(s,`${de}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(l=>l.tagName.toLowerCase()===_i?Array.from(l.children).filter(c=>Ea(c)):Ea(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let l=this.getSubMenuPopoverOfTarget(s);l&&l.visible&&r.push(l)}),r}connectedCallback(){super.connectedCallback(),this.role=tt.MENU,this.ariaOrientation=Fh.ORIENTATION,this.backdrop=!1,this.color=Vo.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![fa,ho].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let l=this.getSubMenuPopoverOfTarget(s);l&&l.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(r=>r!==t&&jh(r))}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(r).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(fa)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(!(!Ea(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}};Ta.styles=[...Xe.styles,...Rg],m([u({type:String,reflect:!0})],Ta.prototype,"placement",2);var qh=Ta;qh.register(de);var VA=qh;var Sd=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var s,l;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((l=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?l:[]).some(c=>c!==o&&c.tagName.toLowerCase()===de&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(de);if(!s)break;let l=s.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===ho)t.push(c),r=c;else break}return t}setCurrentActiveNavMenuItem(o){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};Sd.context=so;var Id=Sd;var zA=H`
|
|
4337
4337
|
:host {
|
|
4338
4338
|
--mdc-sidenavigation-expanded-width: 14.5rem;
|
|
4339
4339
|
--mdc-sidenavigation-expanded-left-padding: 1rem;
|
|
@@ -4471,7 +4471,7 @@
|
|
|
4471
4471
|
:host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
|
|
4472
4472
|
opacity: 1;
|
|
4473
4473
|
}
|
|
4474
|
-
`,Pg=[zA];var Ci=class extends
|
|
4474
|
+
`,Pg=[zA];var Ci=class extends me{constructor(){super({context:Id.context,initialValue:new Id(Ed.VARIANT,!0)});this.variant=Ed.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(r=>r===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===Je.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var r;if((r=this.context)!=null&&r.value){let s=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(s)}};this.findNav=(t,r)=>t.find(s=>s.navId===r);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return Id.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case Je.FIXED_EXPANDED:this.expanded=!0;break;case Je.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===Je.FLEXIBLE||this.variant===Je.FLEXIBLE_ON_HOVER)&&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.variant=this.variant,this.context.value.expanded=this.expanded,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${ho}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(Je).includes(t)?t:Ed.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===Je.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){t.key===zt.SPACE&&t.preventDefault()}render(){var t;return this.variant===Je.HIDDEN?_``:_`
|
|
4475
4475
|
<div part="side-navigation-container" id="side-nav-container">
|
|
4476
4476
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
|
4477
4477
|
<slot name="scrollable-section">
|
|
@@ -4500,7 +4500,7 @@
|
|
|
4500
4500
|
`:j}
|
|
4501
4501
|
</div>
|
|
4502
4502
|
</div>
|
|
4503
|
-
${this.variant===
|
|
4503
|
+
${this.variant===Je.FLEXIBLE||this.variant===Je.FLEXIBLE_ON_HOVER?_`<mdc-divider
|
|
4504
4504
|
part="vertical-divider"
|
|
4505
4505
|
orientation=${Zo.VERTICAL}
|
|
4506
4506
|
variant=${sa.GRADIENT}
|
|
@@ -4536,7 +4536,7 @@
|
|
|
4536
4536
|
:host::part(align-header) {
|
|
4537
4537
|
--mdc-listheader-padding: var(--mdc-menusection-header-padding);
|
|
4538
4538
|
}
|
|
4539
|
-
`,Dg=[BA];var ti=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=bg.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=
|
|
4539
|
+
`,Dg=[BA];var ti=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=bg.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=ue.consume({host:this,context:is.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let r=(l=this.sideNavigationContext)==null?void 0:l.value;if(!r)return;let{expanded:s}=r;this.hideHeaderText=!s}renderHeader(){var t,r;return this.headerText?_` <mdc-listheader
|
|
4540
4540
|
part="header ${(r=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&r.expanded?"align-header":""}"
|
|
4541
4541
|
header-text="${this.headerText}"
|
|
4542
4542
|
prefix-icon="${J(this.prefixIcon)}"
|
|
@@ -4736,7 +4736,7 @@
|
|
|
4736
4736
|
background-color: ButtonText;
|
|
4737
4737
|
}
|
|
4738
4738
|
}
|
|
4739
|
-
`,...At()],Fg=UA;var ee=class extends Er{constructor(){super();this.cannotActivate=Yh.CANNOT_ACTIVATE;this.maxCounter=Yh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=
|
|
4739
|
+
`,...At()],Fg=UA;var ee=class extends Er{constructor(){super();this.cannotActivate=Yh.CANNOT_ACTIVATE;this.maxCounter=Yh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=ue.consume({host:this,context:is.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var s;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let r=(s=this.sideNavigationContext)==null?void 0:s.value;r&&(this.showLabel=this.isNested()?!0:r.expanded)}renderDynamicTooltip(){var r;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Le()}`);let t=document.createElement(ga);t.id=`mdc-navmenuitem-tooltip-${Le()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((r=this.tooltipBoundaryPadding)==null?void 0:r.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${ga}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===de)return!0;t=t.parentElement}return!1}handleClickEvent(){this.disabled||this.cannotActivate||this.emitNavMenuItemActiveChange(this.active)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Oo(this.iconName)}-filled`}renderBadge(t){return Object.values(Mg).includes(this.badgeType)?_`
|
|
4740
4740
|
<mdc-badge
|
|
4741
4741
|
part="${t?"":"badge"}"
|
|
4742
4742
|
type="${J(this.badgeType)}"
|
|
@@ -4829,7 +4829,7 @@
|
|
|
4829
4829
|
:host([data-hidden]) {
|
|
4830
4830
|
display: none;
|
|
4831
4831
|
}
|
|
4832
|
-
`],zg=YA;var os=class extends
|
|
4832
|
+
`],zg=YA;var os=class extends ge(Ii){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=tt.OPTION,this.variant=da.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,r){return _` <mdc-icon length-unit="rem" slot="${t}" name="${r}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",$g):j;return _`
|
|
4833
4833
|
<div part="leading">
|
|
4834
4834
|
<slot name="leading-controls">
|
|
4835
4835
|
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):j}
|
|
@@ -4924,7 +4924,7 @@
|
|
|
4924
4924
|
border: var(--mdc-progressbar-border);
|
|
4925
4925
|
}
|
|
4926
4926
|
}
|
|
4927
|
-
`],Ug=ZA;var ss=class extends Ut(
|
|
4927
|
+
`],Ug=ZA;var ss=class extends Ut(Qe){constructor(){super(...arguments);this.variant=Hg.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var l;let t=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,s=this.error?"100":`${this.clampedValue}`;return _`
|
|
4928
4928
|
<div
|
|
4929
4929
|
part="progress-container ${r?"gap":""}"
|
|
4930
4930
|
role="${tt.PROGRESSBAR}"
|
|
@@ -4944,7 +4944,7 @@
|
|
|
4944
4944
|
</div>
|
|
4945
4945
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
|
4946
4946
|
`}
|
|
4947
|
-
`}};ss.styles=[...
|
|
4947
|
+
`}};ss.styles=[...Qe.styles,...Ug],m([u({type:String,reflect:!0})],ss.prototype,"variant",2),m([u({type:String,reflect:!0})],ss.prototype,"value",2),m([u({type:Boolean,attribute:"error"})],ss.prototype,"error",2);var xa=ss;xa.register(Cd);var QA=xa;var Gg=z.constructTagName("progressspinner"),ce={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},ip={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var op=a=>{if(a===0)return 0;let o=a/100*ce.CIRCUMFERENCE-ce.GAP_SIZE;return Math.max(o,.1*a)},Kg=a=>{let o=ce.CIRCUMFERENCE-op(a)-2*ce.GAP_SIZE;return a===0?ce.CIRCUMFERENCE:o<0?0:o},Wg=a=>a===0?0:ce.GAP_SIZE*.5,Yg=(a,o)=>{let t=o+ce.GAP_SIZE*1.5;return a===0?0:t};var JA=H`
|
|
4948
4948
|
:host {
|
|
4949
4949
|
--mdc-spinner-size: 3rem;
|
|
4950
4950
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
@@ -5005,18 +5005,18 @@
|
|
|
5005
5005
|
part="spinner-track"
|
|
5006
5006
|
cx="24"
|
|
5007
5007
|
cy="24"
|
|
5008
|
-
r="${
|
|
5009
|
-
stroke-width="${t===0?0:
|
|
5010
|
-
stroke-dasharray="${t} ${
|
|
5008
|
+
r="${ce.RADIUS}"
|
|
5009
|
+
stroke-width="${t===0?0:ce.STROKE_WIDTH}"
|
|
5010
|
+
stroke-dasharray="${t} ${ce.CIRCUMFERENCE}"
|
|
5011
5011
|
stroke-dashoffset="-${s}"
|
|
5012
5012
|
/>
|
|
5013
5013
|
<circle
|
|
5014
5014
|
part="spinner-progress"
|
|
5015
5015
|
cx="24"
|
|
5016
5016
|
cy="24"
|
|
5017
|
-
r="${
|
|
5018
|
-
stroke-width="${o===0?0:
|
|
5019
|
-
stroke-dasharray="${o} ${
|
|
5017
|
+
r="${ce.RADIUS}"
|
|
5018
|
+
stroke-width="${o===0?0:ce.STROKE_WIDTH}"
|
|
5019
|
+
stroke-dasharray="${o} ${ce.CIRCUMFERENCE}"
|
|
5020
5020
|
stroke-dashoffset="-${r}"
|
|
5021
5021
|
/>
|
|
5022
5022
|
</svg>
|
|
@@ -5026,16 +5026,16 @@
|
|
|
5026
5026
|
part="error-icon"
|
|
5027
5027
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
|
5028
5028
|
name="${ip.ERROR_LEGACY_FILLED}"
|
|
5029
|
-
size="${
|
|
5030
|
-
length-unit="${
|
|
5029
|
+
size="${ce.ERROR_ICON_SIZE}"
|
|
5030
|
+
length-unit="${ce.ICON_LENGTH_UNIT}"
|
|
5031
5031
|
></mdc-icon>
|
|
5032
5032
|
`}renderSuccessState(){var o;return _`
|
|
5033
5033
|
<mdc-icon
|
|
5034
5034
|
part="success-icon"
|
|
5035
5035
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
|
5036
5036
|
name="${ip.CHECK_CIRCLE_BOLD}"
|
|
5037
|
-
size="${
|
|
5038
|
-
length-unit="${
|
|
5037
|
+
size="${ce.SUCCESS_ICON_SIZE}"
|
|
5038
|
+
length-unit="${ce.ICON_LENGTH_UNIT}"
|
|
5039
5039
|
></mdc-icon>
|
|
5040
5040
|
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():_` ${this.renderProgressSpinner()}`}};kd.styles=[...X.styles,...jg];var sp=kd;sp.register(Gg);var t0=sp;var e0=[bt,H`
|
|
5041
5041
|
:host {
|
|
@@ -5095,7 +5095,7 @@
|
|
|
5095
5095
|
:host([soft-disabled]) {
|
|
5096
5096
|
pointer-events: none;
|
|
5097
5097
|
}
|
|
5098
|
-
`,...At(!0)],qg=e0;var Aa=class extends Lt(Ct(Ne(
|
|
5098
|
+
`,...At(!0)],qg=e0;var Aa=class extends Lt(Ct(Ne(ge(Ut(Jt))))){constructor(){super(...arguments);this.checked=!1;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.updateTabIndex(),this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,r){this.updateComplete.then(()=>{t.forEach(s=>{s.setComponentValidity(r)})}).catch(s=>{this.onerror&&this.onerror(s)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let s=r.some(f=>f.required),l=!!r.find(f=>f.checked),c=s&&!l;this.setGroupValidity(r,!c)}this.internals.setFormValue(t)}handleChange(){var s;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(l=>{var f;let c=(f=l.shadowRoot)==null?void 0:f.querySelector("input");c&&(l.checked=!1,c.checked=!1)}),this.checked=!0;let r=(s=this.shadowRoot)==null?void 0:s.querySelector("input");r&&(r.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){super.click(),this.handleChange()}updateRadio(t,r){var s,l;(l=(s=t[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||l.focus(),t[r].handleChange()}handleKeyDown(t){var f;if(this.disabled)return;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault();let l=this.getAllRadiosWithinSameGroup().filter(y=>!y.disabled),c=l.indexOf(this);if(this.getKeyboardNavMode()!==qt.DEFAULT){r===q.ENTER&&(this.updateRadio(l,c),this.keyDownEventHandled()),this.getAllRadiosWithinSameGroup().forEach(A=>{var W;let F=(W=A.shadowRoot)==null?void 0:W.querySelector("input");F&&(F.tabIndex=0)});return}if(r===q.DOWN||r===q.RIGHT){let y=(c+1)%l.length;this.updateRadio(l,y)}else if(r===q.UP||r===q.LEFT){let y=(c-1+l.length)%l.length;this.updateRadio(l,y)}else r===q.SPACE&&this.updateRadio(l,c);this.updateTabIndex(),r===q.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),r=t.find(l=>l.checked),s=t.find(l=>!l.disabled);t.forEach(l=>{var f;let c=(f=l.shadowRoot)==null?void 0:f.querySelector("input");c&&(c.tabIndex=-1,(l===r||!r&&l===s)&&(c.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return _`
|
|
5099
5099
|
<mdc-staticradio
|
|
5100
5100
|
class="mdc-focus-ring"
|
|
5101
5101
|
?checked="${this.checked}"
|
|
@@ -5371,7 +5371,7 @@
|
|
|
5371
5371
|
:host([soft-disabled])::part(base-text) {
|
|
5372
5372
|
--mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
5373
5373
|
}
|
|
5374
|
-
`,ob=[l0,...At(!0)];var
|
|
5374
|
+
`,ob=[l0,...At(!0)];var tr=class extends Xs(Ct(io(Ne(ge(Ut(Jt)))))){constructor(){super();this.placement=kt.BOTTOM_START;this.boundary=St.BOUNDARY;this.strategy=St.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=ib.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,r,s,l)=>{switch(r){case"added":t.setAttribute("tabindex",s===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(s);break;case"removed":{if(s===-1||l.length===0)return;let c=s+1;if(c>=l.length&&(c=s-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=s===0?l[c]:l[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${xr}:not([disabled])`);this.addEventListener(Yt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Jr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,r,s){var l;if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&s!==((l=this.selectedOption)==null?void 0:l.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),y=this.navItems.find(F=>F.value===s),A=null;if(y)A=y;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(F=>{this.onerror&&this.onerror(F)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let r=t.target,s=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{s&&s!==this.selectedOption?this.setSelectedOption(s):this.setSelectedOption(r);break}case"unselected":{s?this.setSelectedOption(s):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(r);break}case"disabled":{this.itemsStore.delete(r);break}default:break}}async firstUpdated(t){await this.updateComplete;let r=this.getFirstSelectedOption();if(r)this.initialSelectedOption=r,this.setSelectedOption(r);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstOption();this.setSelectedOption(s),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let r=t.target;r&&r.tagName===xr.toUpperCase()&&!r.hasAttribute("disabled")&&!r.hasAttribute("soft-disabled")&&(this.setSelectedOption(r),r.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var r,s,l;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(s=(r=this.selectedOption)==null?void 0:r.value)!=null?s:"",this.internals.setFormValue(this.value),(l=this.inputElement)==null||l.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(r=>{r!==t&&r.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,r;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()}formResetCallback(){var r;let t=this.initialSelectedOption||null;((r=this.selectedOption)==null?void 0:r.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var s;let r=this.navItems.find(l=>l.value===t||l.label===t);((s=this.selectedOption)==null?void 0:s.value)!==(r==null?void 0:r.value)&&(this.setSelectedOption(r||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=ad(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var r;return(r=this.debounceSearch)==null||r.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,r){return t.filter(s=>{var l;return(l=s.getAttribute("label"))==null?void 0:l.toLowerCase().startsWith(r.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let r=this.navItems.findIndex(f=>f.tabIndex===0)+1,s=[...this.navItems.slice(r),...this.navItems.slice(0,r)],l=this.filterOptionsBySearchKey(s,t),c=null;if(l.length)[c]=l;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[r],y=this.filterOptionsBySearchKey(s,t[0]),A=y.filter(F=>F===f);c=A.length?A[0]:y[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let r=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===qt.DEFAULT)switch(r){case q.DOWN:case q.UP:case q.ENTER:case q.SPACE:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case q.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case q.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else r===q.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let r=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(r)}handleKeydownPopover(t){this.getKeyboardNavMode()===qt.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,r,s,l,c,f;return _`
|
|
5375
5375
|
${this.renderLabel()}
|
|
5376
5376
|
<div part="container">
|
|
5377
5377
|
<div
|
|
@@ -5454,7 +5454,7 @@
|
|
|
5454
5454
|
</mdc-popover>
|
|
5455
5455
|
</div>
|
|
5456
5456
|
${this.renderHelperText()}
|
|
5457
|
-
`}};
|
|
5457
|
+
`}};tr.styles=[...Jt.styles,...ob],m([u({type:String})],tr.prototype,"placeholder",2),m([u({type:String,reflect:!0})],tr.prototype,"placement",2),m([u({type:String,reflect:!0,attribute:"boundary"})],tr.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"strategy"})],tr.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],tr.prototype,"popoverZIndex",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],tr.prototype,"disableFlip",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],tr.prototype,"backdropAppendTo",2),m([Kt(`[id="${Md}"]`)],tr.prototype,"visualCombobox",2),m([mt()],tr.prototype,"selectedOption",2),m([mt()],tr.prototype,"displayPopover",2);var pp=tr;pp.register(eb);var d0=pp;var mp=class extends X{connectedCallback(){super.connectedCallback(),this.role=tt.LISTBOX}createRenderRoot(){return this}},up=mp;var Od=z.constructTagName("selectlistbox");up.register(Od);var c0=up;is.register(so);var h0=is;var sb=z.constructTagName("skeleton"),nb={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},ab={VARIANT:nb.RECTANGULAR};var p0=H`
|
|
5458
5458
|
:host {
|
|
5459
5459
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
5460
5460
|
--mdc-skeleton-height: 100%;
|
|
@@ -5596,7 +5596,7 @@
|
|
|
5596
5596
|
padding-top: 0.9375rem;
|
|
5597
5597
|
margin: 0 -3rem;
|
|
5598
5598
|
}
|
|
5599
|
-
`,mb=[bt,E0];var on=class extends
|
|
5599
|
+
`,mb=[bt,E0];var on=class extends me{constructor(){super({context:$d.context,initialValue:new $d(Ca.ORIENTATION,Ca.VARIANT)});this.orientation=Ca.ORIENTATION;this.variant=Ca.VARIANT}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}static get Context(){return $d.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> `}};on.styles=[...X.styles,...mb],m([u({type:String,reflect:!0})],on.prototype,"orientation",2),m([u({type:String,reflect:!0})],on.prototype,"variant",2);var as=on;as.register(Dd);var T0=as;var x0=H`
|
|
5600
5600
|
:host {
|
|
5601
5601
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
|
5602
5602
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -5631,7 +5631,7 @@
|
|
|
5631
5631
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
|
5632
5632
|
}
|
|
5633
5633
|
}
|
|
5634
|
-
`,ub=[x0];var sn=class extends X{constructor(){super(...arguments);this.status=bp.STATUS;this.orientation=bp.ORIENTATION;this.stepperContext=
|
|
5634
|
+
`,ub=[x0];var sn=class extends X{constructor(){super(...arguments);this.status=bp.STATUS;this.orientation=bp.ORIENTATION;this.stepperContext=ue.consume({host:this,context:as.Context})}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.orientation||(this.orientation=r.orientation)}render(){return _` <div part="connector"></div> `}};sn.styles=[...X.styles,...ub],m([u({type:String,reflect:!0})],sn.prototype,"status",2),m([u({type:String,reflect:!0})],sn.prototype,"orientation",2);var Tp=sn;Tp.register(hb);var A0=Tp;var S0=H`
|
|
5635
5635
|
:host {
|
|
5636
5636
|
gap: 0.5rem;
|
|
5637
5637
|
border-radius: 0.25rem;
|
|
@@ -5787,7 +5787,7 @@
|
|
|
5787
5787
|
:host([status='error-incomplete']:active) {
|
|
5788
5788
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
|
5789
5789
|
}
|
|
5790
|
-
`,fb=[bt,S0,...At()];var ki=class extends Lt(Ct(Ur(X))){constructor(){super();this.variant=Ep.VARIANT;this.status=Ep.STATUS;this.label="";this.stepperContext=
|
|
5790
|
+
`,fb=[bt,S0,...At()];var ki=class extends Lt(Ct(Ur(X))){constructor(){super();this.variant=Ep.VARIANT;this.status=Ep.STATUS;this.label="";this.stepperContext=ue.consume({host:this,context:as.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.variant||(this.variant=r.variant)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTITEM}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.add("pressed"),r===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.remove("pressed"),r===q.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===wi.COMPLETED?_`<mdc-icon part="status-icon" name=${Pd.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===wi.ERROR_CURRENT||this.status===wi.CURRENT?_`<mdc-icon part="status-icon" name=${Pd.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===wi.NOT_STARTED||this.status===wi.ERROR_INCOMPLETE)?_`<mdc-text part="step-number" tagname=${pt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
|
5791
5791
|
>${this.stepNumber}</mdc-text
|
|
5792
5792
|
>`:j}renderHelpText(){if(!this.helpText)return j;let t=_`<mdc-text
|
|
5793
5793
|
part="help-text"
|
|
@@ -6005,7 +6005,7 @@
|
|
|
6005
6005
|
--mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
|
6006
6006
|
--mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
|
|
6007
6007
|
}
|
|
6008
|
-
`,...At()],gb=_0;var fo=class extends ie(
|
|
6008
|
+
`,...At()],gb=_0;var fo=class extends ie(fe){constructor(){super(...arguments);this.active=Vd.ACTIVE;this.variant=Vd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=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=`${Oo(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(Ap).includes(t)?t:Vd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return _`
|
|
6009
6009
|
<div part="container">
|
|
6010
6010
|
<slot name="prefix">
|
|
6011
6011
|
${this.iconName?_` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:j}
|
|
@@ -6021,7 +6021,7 @@
|
|
|
6021
6021
|
<slot name="chip"></slot>
|
|
6022
6022
|
</div>
|
|
6023
6023
|
<div part="indicator"></div>
|
|
6024
|
-
`}};fo.styles=[...
|
|
6024
|
+
`}};fo.styles=[...fe.styles,...gb],m([u({type:Boolean,reflect:!0})],fo.prototype,"active",2),m([u({type:String,reflect:!0})],fo.prototype,"text",2),m([u({type:String,reflect:!0})],fo.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"tab-id"})],fo.prototype,"tabId",2);var Ar=fo;Ar.register(vb);var C0=Ar;var w0=[Gi,H`
|
|
6025
6025
|
:host {
|
|
6026
6026
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
|
6027
6027
|
--mdc-tablist-gap: 0.5rem;
|
|
@@ -6185,7 +6185,7 @@
|
|
|
6185
6185
|
:host([disabled])::part(resize-button) {
|
|
6186
6186
|
cursor: default;
|
|
6187
6187
|
}
|
|
6188
|
-
`,...At(!0)],Ib=N0;var
|
|
6188
|
+
`,...At(!0)],Ib=N0;var he=class extends Lt(Ct(Ne(ge(Ut(Qe))))){constructor(){super(...arguments);this.rows=wa.ROWS;this.wrap=Cp.SOFT;this.autocapitalize=fd.OFF;this.autocomplete=Sb.OFF;this.resizable=!1;this.characterLimitExceedingFired=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let r=t.currentTarget;r&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||wa.ROWS,r.setPointerCapture(t.pointerId),r.addEventListener("pointermove",this.handlePointerMove),r.addEventListener("pointerup",this.handlePointerUp),r.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let r=t.clientY-this.resizeStartY,s=parseFloat(window.getComputedStyle(this.textarea).lineHeight),l=Math.round(r/s);this.rows=Math.max(1,this.resizeStartRows+l)};this.handlePointerUp=t=>{let r=t.currentTarget;r&&(t.type==="pointerup"&&r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),r.removeEventListener("pointermove",this.handlePointerMove),r.removeEventListener("pointerup",this.handlePointerUp),r.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Ht.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceMaxLengthWarning()}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceMaxLengthWarning()}announceMaxLengthWarning(){this.ariaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.ariaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.ariaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}onChange(t){this.updateValue();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?_`
|
|
6189
6189
|
<mdc-text part="character-counter" tagname="span" type=${wa.CHARACTER_COUNTER_TYPE}>
|
|
6190
6190
|
${this.value.length}/${this.maxCharacterLimit}
|
|
6191
6191
|
</mdc-text>
|
|
@@ -6236,7 +6236,7 @@
|
|
|
6236
6236
|
`:j}
|
|
6237
6237
|
</div>
|
|
6238
6238
|
${this.renderTextareaFooter()}
|
|
6239
|
-
`}};
|
|
6239
|
+
`}};he.styles=[...Qe.styles,...Ib],m([u({type:String})],he.prototype,"placeholder",2),m([u({type:Number,reflect:!0})],he.prototype,"rows",2),m([u({type:Number})],he.prototype,"cols",2),m([u({type:String})],he.prototype,"wrap",2),m([u({type:String})],he.prototype,"autocapitalize",2),m([u({type:String})],he.prototype,"autocomplete",2),m([u({type:String})],he.prototype,"dirname",2),m([u({type:Number})],he.prototype,"maxlength",2),m([u({type:Number})],he.prototype,"minlength",2),m([u({type:Number,attribute:"max-character-limit"})],he.prototype,"maxCharacterLimit",2),m([u({type:String,attribute:"character-limit-announcement"})],he.prototype,"characterLimitAnnouncement",2),m([u({type:Boolean,reflect:!0})],he.prototype,"resizable",2),m([u({type:String,attribute:"resize-button-aria-label"})],he.prototype,"resizeButtonAriaLabel",2),m([Kt("textarea")],he.prototype,"inputElement",2),m([mt()],he.prototype,"ariaLiveAnnouncer",2);var wp=he;wp.register(Ab);var L0=wp;var _b=z.constructTagName("timepicker"),kp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},vo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},Np="timepicker-triggerid",Lp="timepicker-listbox",Re={TIME_FORMAT:vo.TWELVE_HOUR,INTERVAL:30,MIN_HOUR_12:1,MAX_HOUR_12:12,MIN_HOUR_24:0,MAX_HOUR_24:23,MIN_MINUTE:0,MAX_MINUTE:59,DISABLE_FLIP:!1};var M0=H`
|
|
6240
6240
|
:host {
|
|
6241
6241
|
--mdc-timepicker-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
6242
6242
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -6417,7 +6417,7 @@
|
|
|
6417
6417
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
6418
6418
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
6419
6419
|
}
|
|
6420
|
-
`,Cb=[M0,...At(!0)];var Rt=class extends
|
|
6420
|
+
`,Cb=[M0,...At(!0)];var Rt=class extends ge(Ut(Jt)){constructor(){super(...arguments);this.timeFormat=Re.TIME_FORMAT;this.interval=Re.INTERVAL;this.placement=kt.BOTTOM_START;this.strategy=St.STRATEGY;this.disableFlip=Re.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){let t=this.getTimeOptions(),r=this.internalToValue(),s=t.findIndex(l=>l.value===r);this.focusedOptionIndex=s>=0?s:0,this.updateComplete.then(()=>{this.focusCurrentMenuItem()}).catch(()=>{})}focusCurrentMenuItem(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector(`#${Lp}`);if(!t)return;let r=t.querySelectorAll("mdc-option");r[this.focusedOptionIndex]&&r[this.focusedOptionIndex].focus()}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let r=parseInt(t[1],10),s=parseInt(t[2],10);r<0||r>23||s<0||s>59||(this.internalMinutes=String(s).padStart(2,"0"),this.timeFormat===vo.TWELVE_HOUR?r===0?(this.internalPeriod="AM",this.internalHours="12"):r<12?(this.internalPeriod="AM",this.internalHours=String(r).padStart(2,"0")):r===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(r-12).padStart(2,"0")):this.internalHours=String(r).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===vo.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],r=Math.max(1,Math.min(this.interval,60));for(let s=0;s<24*60;s+=r){let l=Math.floor(s/60),c=s%60,f=`${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`,y;if(this.timeFormat===vo.TWELVE_HOUR){let W=l<12?this.localeAmLabel:this.localePmLabel,Q=l%12;Q===0&&(Q=12);let Z=c===0?"00":String(c);y=`${Q}:${Z} ${W}`}else y=`${l}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,F=!this.max||f<=this.max;A&&F&&t.push({label:y,value:f})}return t}handleOptionClick(t){var r;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(r=this.dropdownButton)==null||r.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleSpinbuttonAreaClick(t){var s,l;this.disabled||this.softDisabled||this.readonly||t.target.getAttribute("role")==="spinbutton"||((s=this.hoursInput)==null||s.focus(),(l=this.hoursInput)==null||l.select())}handleBaseKeydown(t){var r;this.disabled||this.softDisabled||this.readonly||t.key===zt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(r=this.dropdownButton)==null||r.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var l;let r=this.getTimeOptions(),s=r.length;if(s!==0)switch(t.key){case zt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%s,this.focusCurrentMenuItem();break}case zt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+s)%s,this.focusCurrentMenuItem();break}case zt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<s&&this.handleOptionClick(r[this.focusedOptionIndex].value);break}case zt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(l=this.dropdownButton)==null||l.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var r,s;switch(t.key){case zt.ARROW_UP:case zt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case zt.TAB:break;case zt.ARROW_LEFT:t.preventDefault(),(r=this.minutesInput)==null||r.focus(),(s=this.minutesInput)==null||s.select();break;default:{t.preventDefault();let l=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===l?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,r){var A,F,W,Q,Z,et;let s=this.timeFormat===vo.TWELVE_HOUR,l,c;r==="hours"?(l=s?Re.MIN_HOUR_12:Re.MIN_HOUR_24,c=s?Re.MAX_HOUR_12:Re.MAX_HOUR_24):(l=Re.MIN_MINUTE,c=Re.MAX_MINUTE);let f=r==="hours"?this.internalHours:this.internalMinutes,y=f?parseInt(f,10):l;switch(t.key){case zt.ARROW_UP:{t.preventDefault(),y=y>=c?l:y+1,this.setSpinbuttonValue(r,y),this.commitValue();break}case zt.ARROW_DOWN:{t.preventDefault(),y=y<=l?c:y-1,this.setSpinbuttonValue(r,y),this.commitValue();break}case zt.ARROW_RIGHT:{t.preventDefault(),r==="hours"?((A=this.minutesInput)==null||A.focus(),(F=this.minutesInput)==null||F.select()):s&&((W=this.periodInput)==null||W.focus(),(Q=this.periodInput)==null||Q.select());break}case zt.ARROW_LEFT:{t.preventDefault(),r==="minutes"&&((Z=this.hoursInput)==null||Z.focus(),(et=this.hoursInput)==null||et.select());break}case zt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,r,l,c)):t.preventDefault();break}}}handleDigitInput(t,r,s,l){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>l&&(c=l),c<s&&(c=s),this.setSpinbuttonValue(r,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(r)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(l/10);if(c>f){let y=c;y>l&&(y=l),y<s&&(y=s),this.setSpinbuttonValue(r,y),this.pendingDigits="",this.commitValue(),this.advanceToNextField(r)}else this.setSpinbuttonValue(r,c),this.pendingDigitTimeout=setTimeout(()=>{let y=c;y<s&&(y=s),this.setSpinbuttonValue(r,y),this.pendingDigits="",this.commitValue(),this.advanceToNextField(r)},1e3)}}setSpinbuttonValue(t,r){let s=String(r).padStart(2,"0");t==="hours"?this.internalHours=s:this.internalMinutes=s,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var r,s;(r=this.minutesInput)==null||r.focus(),(s=this.minutesInput)==null||s.select()}).catch(()=>{}):this.timeFormat===vo.TWELVE_HOUR&&this.updateComplete.then(()=>{var r,s;(r=this.periodInput)==null||r.focus(),(s=this.periodInput)==null||s.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),r=this.internalToValue();return t.map(s=>_`
|
|
6421
6421
|
<mdc-option
|
|
6422
6422
|
label="${s.label}"
|
|
6423
6423
|
?selected="${s.value===r}"
|
|
@@ -6598,7 +6598,7 @@
|
|
|
6598
6598
|
* {
|
|
6599
6599
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
|
6600
6600
|
}
|
|
6601
|
-
`,Nb=[D0];var an=class extends
|
|
6601
|
+
`,Nb=[D0];var an=class extends me{constructor(){super({context:Ud.context,initialValue:new Ud(Rp.THEMECLASS)});this.themeclass=Rp.THEMECLASS}static get Context(){return Ud.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};an.styles=[...me.styles,...Nb],m([mt()],an.prototype,"currentThemeClass",2),m([u({type:String})],an.prototype,"themeclass",2);var Pp=an;Pp.register(Bd);var F0=Pp;var Lb=z.constructTagName("toast"),ka={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Gd={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},er={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:ur[20],BUTTON:hi,PRIMARY_BUTTON:Bt.PRIMARY,SECONDARY_BUTTON:Bt.SECONDARY,TERTIARY_BUTTON:Bt.TERTIARY,VARIANT:ka.CUSTOM};var Mb=a=>{switch(a){case ka.SUCCESS:return Gd.SUCCESS_ICON_NAME;case ka.WARNING:return Gd.WARNING_ICON_NAME;case ka.ERROR:return Gd.ERROR_ICON_NAME;default:return null}};var $0=H`
|
|
6602
6602
|
:host {
|
|
6603
6603
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
6604
6604
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -6683,14 +6683,14 @@
|
|
|
6683
6683
|
mdc-text::part(text) {
|
|
6684
6684
|
margin: 0;
|
|
6685
6685
|
}
|
|
6686
|
-
`,Ob=[$0];var Be=class extends Ns(X){constructor(){super(...arguments);this.variant=
|
|
6687
|
-
<mdc-icon name="${t}" size="${
|
|
6686
|
+
`,Ob=[$0];var Be=class extends Ns(X){constructor(){super(...arguments);this.variant=er.VARIANT;this.headerTagName=er.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,r;this.hasDetailedSlot=(r=(t=this.detailedElements)==null?void 0:t.some(s=>{var l;return(l=s.textContent)==null?void 0:l.trim()}))!=null?r:!1}updateFooterButtonsPresence(){var t,r,s,l;this.hasFooterButtons=((r=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?r:0)>0||((l=(s=this.footerButtonSecondary)==null?void 0:s.length)!=null?l:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?_`
|
|
6687
|
+
<mdc-icon name="${t}" size="${er.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
|
|
6688
6688
|
`:j}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?_`
|
|
6689
6689
|
<mdc-button
|
|
6690
6690
|
variant="tertiary"
|
|
6691
6691
|
part="footer-button-toggle"
|
|
6692
6692
|
@click="${this.toggleDetailVisibility}"
|
|
6693
|
-
postfix-icon="${this.isDetailVisible?
|
|
6693
|
+
postfix-icon="${this.isDetailVisible?er.ARROW_UP_BOLD:er.ARROW_DOWN_BOLD}"
|
|
6694
6694
|
>
|
|
6695
6695
|
${this.isDetailVisible?this.showLessText:this.showMoreText}
|
|
6696
6696
|
</mdc-button>
|
|
@@ -6703,16 +6703,16 @@
|
|
|
6703
6703
|
${this.renderToggleDetailButton()}
|
|
6704
6704
|
<slot
|
|
6705
6705
|
name="footer-button-secondary"
|
|
6706
|
-
@slotchange=${()=>this.handleFooterSlot(
|
|
6706
|
+
@slotchange=${()=>this.handleFooterSlot(er.BUTTON,er.SECONDARY_BUTTON)}
|
|
6707
6707
|
></slot>
|
|
6708
6708
|
<slot
|
|
6709
6709
|
name="footer-button-primary"
|
|
6710
|
-
@slotchange=${()=>this.handleFooterSlot(
|
|
6710
|
+
@slotchange=${()=>this.handleFooterSlot(er.BUTTON,er.PRIMARY_BUTTON)}
|
|
6711
6711
|
></slot>
|
|
6712
6712
|
</div>
|
|
6713
6713
|
</slot>`}render(){var t;return _`
|
|
6714
6714
|
<div part="content-container">
|
|
6715
|
-
${this.variant===
|
|
6715
|
+
${this.variant===er.VARIANT?_`<slot name="content-prefix"></slot>`:_`${this.renderIcon((t=Mb(this.variant))!=null?t:"")}`}
|
|
6716
6716
|
<div part="toast-content">
|
|
6717
6717
|
${this.renderHeader()}
|
|
6718
6718
|
<slot name="toast-body-normal"></slot>
|
|
@@ -6722,9 +6722,9 @@
|
|
|
6722
6722
|
</div>
|
|
6723
6723
|
<mdc-button
|
|
6724
6724
|
part="toast-close-btn"
|
|
6725
|
-
prefix-icon="${
|
|
6726
|
-
variant="${
|
|
6727
|
-
size="${
|
|
6725
|
+
prefix-icon="${er.CANCEL_ICON}"
|
|
6726
|
+
variant="${er.TERTIARY_BUTTON}"
|
|
6727
|
+
size="${er.CLOSE_ICON_SIZE}"
|
|
6728
6728
|
aria-label="${J(this.closeButtonAriaLabel)}"
|
|
6729
6729
|
@click="${this.closeToast}"
|
|
6730
6730
|
></mdc-button>
|
|
@@ -6808,7 +6808,7 @@
|
|
|
6808
6808
|
:host([soft-disabled]) {
|
|
6809
6809
|
pointer-events: none;
|
|
6810
6810
|
}
|
|
6811
|
-
`,...At(!0)],Rb=z0;var ds=class extends Ct(co(Ne(
|
|
6811
|
+
`,...At(!0)],Rb=z0;var ds=class extends Ct(co(Ne(ge(Ut(Qe))))){constructor(){super(...arguments);this.checked=!1;this.size=Gh.SIZE;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault(),r===q.ENTER&&this.getKeyboardNavMode()===qt.DEFAULT&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ba).includes(t)?t:Gh.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return _`
|
|
6812
6812
|
<mdc-statictoggle
|
|
6813
6813
|
?checked="${this.checked}"
|
|
6814
6814
|
?disabled="${this.disabled}"
|
|
@@ -6838,7 +6838,7 @@
|
|
|
6838
6838
|
/>
|
|
6839
6839
|
</mdc-statictoggle>
|
|
6840
6840
|
${this.renderLabelAndHelperText()}
|
|
6841
|
-
`}};ds.styles=[...
|
|
6841
|
+
`}};ds.styles=[...Qe.styles,...Rb],ds.shadowRootOptions={...Qe.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],ds.prototype,"checked",2),m([u({type:String,reflect:!0})],ds.prototype,"size",2);var Fp=ds;Fp.register(Cg);var B0=Fp;function cs(a,o,t){var c;let r=(c=t.initialDeps)!=null?c:[],s;function l(){var f,y,A,F;let W;t.key&&((f=t.debug)!=null&&f.call(t))&&(W=Date.now());let Q=a();if(!(Q.length!==r.length||Q.some((lt,dt)=>r[dt]!==lt)))return s;r=Q;let et;if(t.key&&((y=t.debug)!=null&&y.call(t))&&(et=Date.now()),s=o(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let lt=Math.round((Date.now()-W)*100)/100,dt=Math.round((Date.now()-et)*100)/100,gt=dt/16,It=(wt,Zt)=>{for(wt=String(wt);wt.length<Zt;)wt=" "+wt;return wt};console.info(`%c\u23F1 ${It(dt,5)} /${It(lt,5)} ms`,`
|
|
6842
6842
|
font-size: .6rem;
|
|
6843
6843
|
font-weight: bold;
|
|
6844
6844
|
color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,s),s}return l.updateDeps=f=>{r=f},l}function $p(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var Pb=(a,o)=>Math.abs(a-o)<1.01,Db=(a,o,t)=>{let r;return function(...s){a.clearTimeout(r),r=a.setTimeout(()=>o.apply(this,s),t)}};var Fb=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},H0=a=>a,Vp=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},zb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=c=>{let{width:f,height:y}=c;o({width:Math.round(f),height:Math.round(y)})};if(s(Fb(t)),!r.ResizeObserver)return()=>{};let l=new r.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let A=y.borderBoxSize[0];if(A){s({width:A.inlineSize,height:A.blockSize});return}}s(Fb(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},$b={passive:!0};var Vb=typeof window>"u"?!0:"onscrollend"in window,Bb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=0,l=a.options.useScrollendEvent&&Vb?()=>{}:Db(r,()=>{o(s,!1)},a.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:W,isRtl:Q}=a.options;s=W?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),o(s,F)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,$b);let A=a.options.useScrollendEvent&&Vb;return A&&t.addEventListener("scrollend",y,$b),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",y)}};var U0=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Hb=(a,{adjustments:o=0,behavior:t},r)=>{var s,l;let c=a+o;(l=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||l.call(s,{[r.options.horizontal?"left":"top"]:c,behavior:t})},Kd=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var l;return(l=r())==null?void 0:l.observe(s,{box:"border-box"})},unobserve:s=>{var l;return(l=r())==null?void 0:l.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:H0,rangeExtractor:Vp,onChange:()=>{},measureElement:U0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var r,s;(s=(r=this.options).onChange)==null||s.call(r,this,t)},this.maybeNotify=cs(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,r)=>{let s=new Map,l=new Map;for(let c=r-1;c>=0;c--){let f=t[c];if(s.has(f.lane))continue;let y=l.get(f.lane);if(y==null||f.end>y.end?l.set(f.lane,f):f.end<y.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=cs(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=cs(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,y);for(let F=y;F<t;F++){let W=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),Z=Q?Q.end+this.options.gap:r+s,et=f.get(W),lt=typeof et=="number"?et:this.options.estimateSize(F),dt=Z+lt,gt=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:Z,size:lt,end:dt,key:W,lane:gt}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=cs(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,l)=>this.range=t.length>0&&r>0?G0({measurements:t,outerSize:r,scrollOffset:s,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=cs(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),l=this.measurementsCache[s];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var f;let s=this.measurementsCache[t];if(!s)return;let l=(f=this.itemSizeCache.get(s.key))!=null?f:s.size,c=r-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=cs(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],y=r[f];s.push(y)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return $p(r[Ub(0,r.length-1,s=>$p(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let l=this.getSize(),c=this.getScrollOffset();r==="auto"&&(r=t>=c+l?"end":"start"),r==="center"?t+=(s-l)/2:r==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let l=this.getSize(),c=this.getScrollOffset();if(r==="auto")if(s.end>=c+l-this.options.scrollPaddingEnd)r="end";else if(s.start<=c+this.options.scrollPaddingStart)r="start";else return[c,r];let f=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[W,Q]=F;this._scrollToOffset(W,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),et=this.getOffsetForIndex(t,Q);if(!et){console.warn("Failed to get offset for index:",t);return}Pb(et[0],Z)||y(Q)})},y=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var l;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(l=(t=r[r.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=r.length-1;for(;f>=0&&c.some(y=>y===null);){let y=r[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}s=Math.max(...c.filter(y=>y!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Ub=(a,o,t,r)=>{for(;a<=o;){let s=(a+o)/2|0,l=t(s);if(l<r)a=s+1;else if(l>r)o=s-1;else return s}return a>0?a-1:0};function G0({measurements:a,outerSize:o,scrollOffset:t,lanes:r}){let s=a.length-1,l=y=>a[y].start;if(a.length<=r)return{startIndex:0,endIndex:s};let c=Ub(0,s,l,t),f=c;if(r===1)for(;f<s&&a[f].end<t+o;)f++;else if(r>1){let y=Array(r).fill(0);for(;f<s&&y.some(F=>F<t+o);){let F=a[f];y[F.lane]=F.end,f++}let A=Array(r).fill(t+o);for(;c>=0&&A.some(F=>F>=t);){let F=a[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%r),f=Math.min(s,f+(r-1-f%r))}return{startIndex:c,endIndex:f}}var zp=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,s,l)}};this.virtualizer=new Kd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Wd=class extends zp{constructor(o,t){super(o,{observeElementRect:zb,observeElementOffset:Bb,scrollToFn:Hb,...t})}};var K0={includeEnd:!1},Yd=class{constructor(o,t,r={}){let s={...K0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,l=Math.min(t,r),c=Math.max(t,r);return s?o>=l&&o<=c:o>=l&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:r,end:s}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(r?f>s:f>=s)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var jd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,l)=>o.call(t,r,this.getIndex(r),l))}forEach(o,t){this.items.forEach((r,s,l)=>{o.call(t,r,this.getIndex(r),l)})}findIndex(o,t){let r=this.items.find((s,l,c)=>o.call(t,s,this.getIndex(s),c));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,l)=>o.call(t,r,this.getIndex(r),l))}};var W0=[H`
|
|
@@ -6871,7 +6871,7 @@
|
|
|
6871
6871
|
::slotted(mdc-listitem) {
|
|
6872
6872
|
position: relative;
|
|
6873
6873
|
}
|
|
6874
|
-
`],Gb=W0;var Kb=z.constructTagName("virtualizedlist"),GJ=z.constructTagName("virtualizedwrapper"),Na={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var
|
|
6874
|
+
`],Gb=W0;var Kb=z.constructTagName("virtualizedlist"),GJ=z.constructTagName("virtualizedwrapper"),Na={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var rr=class extends Ut(Zs){constructor(){super();this.virtualizerProps=Na.VIRTUALIZER_PROPS;this.loop=Na.LOOP;this.scrollAnchoring=Na.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Na.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var r,s;this.observeSizeChanges&&this.navItems.find(l=>l===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.orientation=ca.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Yt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,l;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(l=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?l:"data-index";this.virtualizedNavItems=new jd(super.navItems,f=>Number(f.getAttribute(c)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Wd(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==ca.VERTICAL&&(this.orientation=ca.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,l;this.observeSizeChanges&&((l=(s=this.virtualizer)==null?void 0:s.measureElement)==null||l.call(s,r))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var l,c;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let f=Math.abs(this.virtualizerProps.count-((l=t==null?void 0:t.count)!=null?l:0)),y=this.selectedIndex,A=this.firstKey,F=new Yd(y-f,y+f,{includeEnd:!0}),W=(c=Array.from(F).find(Z=>r.options.getItemKey(Z)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(W),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&y!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let Z=r.measurementsCache[this.selectedIndex].end-s[y].end;this.scrollRef.scrollTop+=Z}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var r,s,l,c,f;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(l=this.virtualizer)==null?void 0:l.getVirtualItems)==null?void 0:c.call(l))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var y,A,F,W;let{navItems:r,virtualizerProps:s,virtualizer:l}=this,c=(A=(y=s.rangeExtractor)==null?void 0:y.call(s,t))!=null?A:Vp(t);return this.hiddenIndexes.forEach(Q=>{let Z=r.at(Q);Z&&(Z.removeAttribute("data-virtualized-hidden"),Z.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(W=(F=this.virtualizer)==null?void 0:F.options.getItemKey(this.firstIndex))!=null?W:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var Z;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((Z=l==null?void 0:l.options.count)!=null?Z:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,Z)=>Q-Z),c}updateHiddenItemsPosition(t){let{navItems:r,virtualizerProps:s,virtualizer:l}=this;if(!l||s.count===0)return;let{measurementsCache:c}=l;this.hiddenIndexes.forEach(f=>{let y=r.at(f);if(y){let A=Math.max(t.startIndex-t.overscan,0),F=c[A],W=c[f];y.setAttribute("data-virtualized-hidden","true"),y.style.setProperty("--mdc-virtualizedlist-hidden-top",`${W.start-F.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t)}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var s,l,c,f;switch(this.getActionForKeyEvent(t)){case q.HOME:{(l=(s=this.virtualizer)==null?void 0:s.scrollToIndex)==null||l.call(s,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case q.END:{let y=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,y,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(y));break}case q.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s=!0,l=s){if(this.navItems.find(y=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(y))===t})===void 0)return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s,l),this.setSelectedIndex(t)}),!0;let f=super.resetTabIndexAndSetFocus(t,r,s,l);return this.setSelectedIndex(t),f}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,l;(l=(s=this.virtualizer).scrollToIndex)==null||l.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var l;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),r=(l=t==null?void 0:t.start)!=null?l:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return _`
|
|
6875
6875
|
<slot name="list-header"></slot>
|
|
6876
6876
|
<div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
|
|
6877
6877
|
<div part="wrapper">
|
|
@@ -6880,7 +6880,7 @@
|
|
|
6880
6880
|
</div>
|
|
6881
6881
|
</div>
|
|
6882
6882
|
</div>
|
|
6883
|
-
`}};
|
|
6883
|
+
`}};rr.styles=[...Zs.styles,...Gb],m([u({type:Object})],rr.prototype,"virtualizerProps",2),m([u({type:String,reflect:!0})],rr.prototype,"loop",2),m([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],rr.prototype,"scrollAnchoring",2),m([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],rr.prototype,"observeSizeChanges",2),m([u({type:Boolean,reflect:!0,attribute:"revert-list"})],rr.prototype,"revertList",2),m([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],rr.prototype,"atBottomThreshold",2),m([Kt('[part="scroll"]',!0)],rr.prototype,"scrollRef",2),m([Kt('[part="wrapper"]',!0)],rr.prototype,"wrapperRef",2),m([Kt('[part="container"]',!0)],rr.prototype,"containerRef",2),m([cu({passive:!0})],rr.prototype,"onScrollHandler",1);var Bp=rr;Bp.register(Kb);var Y0=Bp;fe.register(mu);var Wb=z.constructTagName("combobox"),Hp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Yb="list";var Up="combobox-trigger-id";var go=class{static dispatchComboboxEvent(o,t,r,s=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:r==null?void 0:r.value,label:r==null?void 0:r.label},composed:!0,bubbles:s}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var j0=H`
|
|
6884
6884
|
:host {
|
|
6885
6885
|
--mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
6886
6886
|
--mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -6985,7 +6985,7 @@
|
|
|
6985
6985
|
--mdc-icon-fill-color: ButtonText;
|
|
6986
6986
|
}
|
|
6987
6987
|
}
|
|
6988
|
-
`,jb=[j0];var Se=class extends Lt(Ct(io(Ne(
|
|
6988
|
+
`,jb=[j0];var Se=class extends Lt(Ct(io(Ne(ge(Ut(co(Jt))))))){constructor(){super();this.lastCommittedValue="";this.placement=kt.BOTTOM_START;this.boundary=St.BOUNDARY;this.strategy=St.STRATEGY;this.popoverZIndex=void 0;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,r,s,l)=>{switch(r){case"added":t.setAttribute("tabindex",s===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(c=>c.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let c=t;if(c&&(!this.isValidItem(c)||c.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===c);if(f===-1)return;let y=f+1;y>=this.navItems.length&&(y=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let r=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;r&&r.value!==this.value&&this.setSelectedValue(r,!1);break}case"unselected":{r&&this.setSelectedValue(r,!1);break}default:break}};this.addEventListener(Yt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Jr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(xr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,r){return(t.getAttribute("label")||"").toLowerCase().startsWith(r==null?void 0:r.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(r=>this.compareOptionWithValue(r,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,r=!0,s=!1){let l=(t==null?void 0:t.getAttribute("label"))||"",c=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===c&&this.filteredValue===l)){if(this.controlType==="controlled"&&!s){r&&(go.onInputCombobox(this,t),go.onChangeCombobox(this,t));return}this.filteredValue=l,this.value=c,this.lastCommittedValue=c,this.internals.setFormValue(this.value),this.updateHiddenOptions(),t&&this.updateSelectedOption(t),this.setInputValidity(),this.resetHelpText(),r&&!s&&t&&(go.onInputCombobox(this,t),go.onChangeCombobox(this,t))}}resetSelectedValue(){this.controlType!=="controlled"&&(this.value=""),this.internals.setFormValue(this.value),this.resetHelpText()}resetHelpText(){this.invalidCustomValueText&&this.helpText===this.invalidCustomValueText&&(this.helpText="",this.helpTextType=Ht.DEFAULT)}attributeChangedCallback(t,r,s){if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&this.navItems.length){let l=this.getFirstSelectedOption(),c=this.navItems.find(y=>y.value===s),f=null;if(c)f=c;else if(this.placeholder)f=null;else if(l)f=l;else return;this.updateComplete.then(()=>{this.setSelectedValue(f,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let r=this.getFirstSelectedOption();r&&this.controlType!=="controlled"?(this.initialSelectedOption=r,this.setSelectedValue(r)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(r=>r.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,r;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var r;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(r=t==null?void 0:t.label)!=null?r:""),this.setInputValidity()}formStateRestoreCallback(t){let r=this.navItems.find(s=>s.value===t||s.label===t);this.setSelectedValue(r||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(r=>{r.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,r){t!==void 0&&(r?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",r.toString()))}openTooltipIfExists(t){let r=t.getAttribute("id");if(!r)return;let s=this.querySelector(`mdc-tooltip[triggerid="${r}"]`);s==null||s.setAttribute("visible","")}closeTooltipIfExists(t){let r=t.getAttribute("id");if(!r)return;let s=this.querySelector(`mdc-tooltip[triggerid="${r}"][visible]`);s&&s.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),r=t.findIndex(l=>l.hasAttribute("data-focused"));if(r!==-1){this.setSelectedValue(t[r]),this.closePopover();return}let s=this.navItems.find(l=>(l.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(s){this.setSelectedValue(s),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let l=this.navItems.find(c=>c.value===this.lastCommittedValue);this.setSelectedValue(l)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Ht.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,r,s){var l;this.updateOptionAttributes(t[r],!1),this.updateOptionAttributes(t[s],!0),(l=t[s])==null||l.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let r=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),s=r.findIndex(c=>c.hasAttribute("data-focused")),l=this.getKeyboardNavMode()===qt.SPATIAL;switch(this.getActionForKeyEvent(t)){case q.DOWN:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=r.length-1===s?0:s+1;this.updateFocusAndScrollIntoView(r,s,c),t.preventDefault(),this.keyDownEventHandled();break}case q.UP:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=s===-1||s===0?r.length-1:s-1;this.updateFocusAndScrollIntoView(r,s,c),t.preventDefault(),this.keyDownEventHandled();break}case q.ENTER:{if(l&&!this.isOpen)this.openPopover();else{if(s===-1)return;this.setSelectedValue(r[s]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case q.ESCAPE:{s!==-1&&this.updateOptionAttributes(r[s],!1),r.length&&this.shouldDisplayPopover(r.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case q.TAB:{this.closePopover(),this.keyDownEventHandled();break}case q.HOME:case q.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,r=new Set;this.navItems.forEach(s=>{var f;let l=this.compareOptionWithValue(s,this.filteredValue);l?s.removeAttribute("data-hidden"):s.setAttribute("data-hidden","");let c=s.parentElement;if(c&&c.matches(_d)){let y=c;r.add(y),l&&t.set(y,((f=t.get(y))!=null?f:0)+1)}}),r.forEach(s=>{var f;let l=((f=t.get(s))!=null?f:0)>0,c=s.nextElementSibling;l?(s.removeAttribute("data-hidden"),c&&c.matches(oa)&&c.removeAttribute("data-hidden")):(s.setAttribute("data-hidden",""),c&&c.matches(oa)&&c.setAttribute("data-hidden",""))})}handleInputChange(t){var r;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(r=this.getFirstSelectedOption())==null||r.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),go.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var s;t.preventDefault(),t.stopPropagation();let r=(s=t.target.closest(xr))!=null?s:null;r&&!r.hasAttribute("disabled")&&(this.setSelectedValue(r),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t?this.isOpen:!!this.noResultText}renderNativeInput(){return _`
|
|
6989
6989
|
<input
|
|
6990
6990
|
id="${this.inputId}"
|
|
6991
6991
|
name="${this.name}"
|
|
@@ -7080,7 +7080,7 @@
|
|
|
7080
7080
|
</mdc-popover>
|
|
7081
7081
|
</div>
|
|
7082
7082
|
${this.renderHelperText()}
|
|
7083
|
-
`}};Se.styles=[...Pr.styles,...Jt.styles,...jb],m([u({type:String})],Se.prototype,"placeholder",2),m([u({type:String,reflect:!0})],Se.prototype,"placement",2),m([u({type:String,attribute:"no-result-text",reflect:!0})],Se.prototype,"noResultText",2),m([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],Se.prototype,"invalidCustomValueText",2),m([u({type:String,reflect:!0})],Se.prototype,"boundary",2),m([u({type:String,reflect:!0})],Se.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Se.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Se.prototype,"backdropAppendTo",2),m([Kt(`[role="${tt.COMBOBOX}"]`)],Se.prototype,"visualCombobox",2),m([Kt('[part="combobox-button"]')],Se.prototype,"dropDownButton",2),m([$t({selector:Od})],Se.prototype,"slottedListboxes",2),m([mt()],Se.prototype,"isOpen",2),m([mt()],Se.prototype,"filteredValue",2);var Gp=Se;Gp.register(Wb);var q0=Gp;var qb=(a,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(a[s],s);return r},Xb=fi(class extends Yr{constructor(a){if(super(a),a.type!==
|
|
7083
|
+
`}};Se.styles=[...Pr.styles,...Jt.styles,...jb],m([u({type:String})],Se.prototype,"placeholder",2),m([u({type:String,reflect:!0})],Se.prototype,"placement",2),m([u({type:String,attribute:"no-result-text",reflect:!0})],Se.prototype,"noResultText",2),m([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],Se.prototype,"invalidCustomValueText",2),m([u({type:String,reflect:!0})],Se.prototype,"boundary",2),m([u({type:String,reflect:!0})],Se.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Se.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Se.prototype,"backdropAppendTo",2),m([Kt(`[role="${tt.COMBOBOX}"]`)],Se.prototype,"visualCombobox",2),m([Kt('[part="combobox-button"]')],Se.prototype,"dropDownButton",2),m([$t({selector:Od})],Se.prototype,"slottedListboxes",2),m([mt()],Se.prototype,"isOpen",2),m([mt()],Se.prototype,"filteredValue",2);var Gp=Se;Gp.register(Wb);var q0=Gp;var qb=(a,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(a[s],s);return r},Xb=fi(class extends Yr{constructor(a){if(super(a),a.type!==nr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let s=[],l=[],c=0;for(let f of a)s[c]=r?r(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:s}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,r]){var lt;let s=Yu(a),{values:l,keys:c}=this.dt(o,t,r);if(!Array.isArray(s))return this.ut=c,l;let f=(lt=this.ut)!=null?lt:this.ut=[],y=[],A,F,W=0,Q=s.length-1,Z=0,et=l.length-1;for(;W<=Q&&Z<=et;)if(s[W]===null)W++;else if(s[Q]===null)Q--;else if(f[W]===c[Z])y[Z]=ji(s[W],l[Z]),W++,Z++;else if(f[Q]===c[et])y[et]=ji(s[Q],l[et]),Q--,et--;else if(f[W]===c[et])y[et]=ji(s[W],l[et]),ks(a,y[et+1],s[W]),W++,et--;else if(f[Q]===c[Z])y[Z]=ji(s[Q],l[Z]),ks(a,s[W],s[Q]),Q--,Z++;else if(A===void 0&&(A=qb(c,Z,et),F=qb(f,W,Q)),A.has(f[W]))if(A.has(f[Q])){let dt=F.get(c[Z]),gt=dt!==void 0?s[dt]:null;if(gt===null){let It=ks(a,s[W]);ji(It,l[Z]),y[Z]=It}else y[Z]=ji(gt,l[Z]),ks(a,s[W],gt),s[dt]=null;Z++}else xl(s[Q]),Q--;else xl(s[W]),W++;for(;Z<=et;){let dt=ks(a,y[et+1]);ji(dt,l[Z]),y[Z++]=dt}for(;W<=Q;){let dt=s[W++];dt!==null&&xl(dt)}return this.ut=c,Tl(a,y),ke}});var Zb=z.constructTagName("slider"),X0={START:"start",END:"end",UNDEFINED:void 0},bo={MIN:0,MAX:100,STEP:1,STATE:X0.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var Z0=H`
|
|
7084
7084
|
:host {
|
|
7085
7085
|
width: 100%;
|
|
7086
7086
|
--mdc-slider-tooltip-left: 0;
|