@momentum-design/components 0.132.3 → 0.132.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var oT=Object.create;var Oc=Object.defineProperty;var xu=Object.getOwnPropertyDescriptor;var sT=Object.getOwnPropertyNames;var aT=Object.getPrototypeOf,nT=Object.prototype.hasOwnProperty;var lT=(a,i)=>()=>(i||a((i={exports:{}}).exports,i),i.exports);var dT=(a,i,t,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let s of sT(i))!nT.call(a,s)&&s!==t&&Oc(a,s,{get:()=>i[s],enumerable:!(e=xu(i,s))||e.enumerable});return a};var cT=(a,i,t)=>(t=a!=null?oT(aT(a)):{},dT(i||!a||!a.__esModule?Oc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,i,t,e)=>{for(var s=e>1?void 0:e?xu(i,t):i,l=a.length-1,c;l>=0;l--)(c=a[l])&&(s=(e?c(i,t,s):c(s))||s);return e&&s&&Oc(i,t,s),s};var Of=lT((tn,Bl)=>{typeof navigator<"u"&&function(a,i){typeof tn=="object"&&typeof Bl<"u"?Bl.exports=i():typeof define=="function"&&define.amd?define(i):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=i())}(tn,function(){"use strict";var a="http://www.w3.org/2000/svg",i="",t=!1,e=-999999,s=function(o){t=!!o},l=function(){return t},c=function(o){i=o},f=function(){return i};function y(r){return document.createElement(r)}function A(r,o){var n,d=r.length,m;for(n=0;n<d;n+=1){m=r[n].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(o.prototype[p]=m[p])}}function P(r,o){return Object.getOwnPropertyDescriptor(r,o)}function K(r){function o(){}return o.prototype=r,o}var Q=function(){function r(o){this.audios=[],this.audioFactory=o,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),Z=function(){function r(n,d){var m=0,p=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(m=0;m<d;m+=1)p.push(g);return p}function o(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):r(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?o:r}();function tt(r){return Array.apply(null,{length:r})}function lt(r){"@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(r)}var dt=!0,ft=null,It=null,wt="",qt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Kt=!1,Xt=Math.pow,$t=Math.sqrt,ae=Math.floor,cr=Math.max,Me=Math.min,je={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],o,n=r.length;for(o=0;o<n;o+=1)je[r[o]]=Math[r[o]]})();function ze(){return{}}je.random=Math.random,je.abs=function(r){var o=lt(r);if(o==="object"&&r.length){var n=tt(r.length),d,m=r.length;for(d=0;d<m;d+=1)n[d]=Math.abs(r[d]);return n}return Math.abs(r)};var qe=150,Nt=Math.PI/180,he=.5519;function gr(r){Kt=!!r}function br(r){return Kt?Math.round(r):r}function yr(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function Er(r,o,n,d){this.type=r,this.currentTime=o,this.totalTime=n,this.direction=d<0?-1:1}function jn(r,o){this.type=r,this.direction=o<0?-1:1}function km(r,o,n,d){this.type=r,this.currentLoop=n,this.totalLoops=o,this.direction=d<0?-1:1}function Nm(r,o,n){this.type=r,this.firstFrame=o,this.totalFrames=n}function Mm(r,o){this.type=r,this.target=o}function oE(r,o){this.type="renderFrameError",this.nativeError=r,this.currentTime=o}function sE(r){this.type="configError",this.nativeError=r}function lI(r,o){this.type=r,this.nativeError=o}var Xe=function(){var r=0;return function(){return r+=1,wt+"__lottie_element_"+r}}();function Ec(r,o,n){var d,m,p,g,I,b,k,L;switch(g=Math.floor(r*6),I=r*6-g,b=n*(1-o),k=n*(1-I*o),L=n*(1-(1-I)*o),g%6){case 0:d=n,m=L,p=b;break;case 1:d=k,m=n,p=b;break;case 2:d=b,m=n,p=L;break;case 3:d=b,m=k,p=n;break;case 4:d=L,m=b,p=n;break;case 5:d=n,m=b,p=k;break;default:break}return[d,m,p]}function Tc(r,o,n){var d=Math.max(r,o,n),m=Math.min(r,o,n),p=d-m,g,I=d===0?0:p/d,b=d/255;switch(d){case m:g=0;break;case r:g=o-n+p*(o<n?6:0),g/=6*p;break;case o:g=n-r+p*2,g/=6*p;break;case n:g=r-o+p*4,g/=6*p;break;default:break}return[g,I,b]}function Lm(r,o){var n=Tc(r[0]*255,r[1]*255,r[2]*255);return n[1]+=o,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Ec(n[0],n[1],n[2])}function Om(r,o){var n=Tc(r[0]*255,r[1]*255,r[2]*255);return n[2]+=o,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Ec(n[0],n[1],n[2])}function Rm(r,o){var n=Tc(r[0]*255,r[1]*255,r[2]*255);return n[0]+=o/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Ec(n[0],n[1],n[2])}var dI=function(){var r=[],o,n;for(o=0;o<256;o+=1)n=o.toString(16),r[o]=n.length===1?"0"+n:n;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),aE=function(o){dt=!!o},nE=function(){return dt},lE=function(o){ft=o},qn=function(){return ft},cI=function(o){It=o},Dm=function(){return It},Xn=function(o){qe=o},ya=function(){return qe},dE=function(o){wt=o},hI=function(){return wt};function At(r){return document.createElementNS(a,r)}function Zn(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zn=function(n){return typeof n}:Zn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zn(r)}var Ea=function(){var r=1,o=[],n,d,m={onmessage:function(){},postMessage:function(O){n({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return n=x,m}function I(){d||(d=g(function(O){function F(){function H(rt,C){var D,v,E=rt.length,Y,V,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var xt=D.masksProperties;for(V=xt.length,Y=0;Y<V;Y+=1)if(xt[Y].pt.k.i)N(xt[Y].pt.k);else for(gt=xt[Y].pt.k.length,ct=0;ct<gt;ct+=1)xt[Y].pt.k[ct].s&&N(xt[Y].pt.k[ct].s[0]),xt[Y].pt.k[ct].e&&N(xt[Y].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,C),H(D.layers,C)):D.ty===4?_(D.shapes):D.ty===5&&St(D)}}function M(rt,C){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,C),H(rt[D].data.layers,C))}}function w(rt,C){for(var D=0,v=C.length;D<v;){if(C[D].id===rt)return C[D];D+=1}return null}function T(rt,C){var D=w(rt,C);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function _(rt){var C,D=rt.length,v,E;for(C=D-1;C>=0;C-=1)if(rt[C].ty==="sh")if(rt[C].ks.k.i)N(rt[C].ks.k);else for(E=rt[C].ks.k.length,v=0;v<E;v+=1)rt[C].ks.k[v].s&&N(rt[C].ks.k[v].s[0]),rt[C].ks.k[v].e&&N(rt[C].ks.k[v].e[0]);else rt[C].ty==="gr"&&_(rt[C].it)}function N(rt){var C,D=rt.i.length;for(C=0;C<D;C+=1)rt.i[C][0]+=rt.v[C][0],rt.i[C][1]+=rt.v[C][1],rt.o[C][0]+=rt.v[C][0],rt.o[C][1]+=rt.v[C][1]}function $(rt,C){var D=C?C.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var U=function(){var rt=[4,4,14];function C(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),q=function(){var rt=[4,7,99];return function(C){if(C.chars&&!$(rt,C.v)){var D,v=C.chars.length;for(D=0;D<v;D+=1){var E=C.chars[D];E.data&&E.data.shapes&&(_(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},C.chars[D].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function C(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),Tt=function(){var rt=[4,1,9];function C(v){var E,Y=v.length,V,ct;for(E=0;E<Y;E+=1)if(v[E].ty==="gr")C(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,V=0;V<ct;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===4&&C(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function C(v){var E,Y=v.length,V,ct;for(E=Y-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,V=0;V<ct;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&C(v[E].it)}function D(v){var E,Y,V=v.length,ct,gt,xt,Pt;for(Y=0;Y<V;Y+=1){if(E=v[Y],E.hasMask){var Ft=E.masksProperties;for(gt=Ft.length,ct=0;ct<gt;ct+=1)if(Ft[ct].pt.k.i)Ft[ct].pt.k.c=Ft[ct].cl;else for(Pt=Ft[ct].pt.k.length,xt=0;xt<Pt;xt+=1)Ft[ct].pt.k[xt].s&&(Ft[ct].pt.k[xt].s[0].c=Ft[ct].cl),Ft[ct].pt.k[xt].e&&(Ft[ct].pt.k[xt].e[0].c=Ft[ct].cl)}E.ty===4&&C(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function st(rt){rt.__complete||(Tt(rt),U(rt),q(rt),it(rt),ut(rt),H(rt.layers,rt.assets),M(rt.chars,rt.assets),rt.__complete=!0)}function St(rt){rt.t.a.length===0&&"m"in rt.t.p}var ht={};return ht.completeData=st,ht.checkColors=Tt,ht.checkChars=q,ht.checkPathProperties=it,ht.checkShapes=ut,ht.completeLayers=H,ht}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function H(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&Zn(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function M(w,T,_,N){var $,U=new XMLHttpRequest;try{U.responseType="json"}catch{}U.onreadystatechange=function(){if(U.readyState===4)if(U.status===200)$=H(U),_($);else try{$=H(U),_($)}catch(q){N&&N(q)}};try{U.open(["G","E","T"].join(""),w,!0)}catch{U.open(["G","E","T"].join(""),T+"/"+w,!0)}U.send()}return{load:M}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(H){p.dataManager.completeData(H),p.postMessage({id:O.data.id,payload:H,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(H){p.postMessage({id:O.data.id,payload:H,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,F=O.id,R=o[F];o[F]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){r+=1;var F="processId_"+r;return o[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var R=b(O,F);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function L(x,O,F){I();var R=b(O,F);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,F){I();var R=b(O,F);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:L,completeAnimation:G}}(),cE=function(){var r=function(){var M=y("canvas");M.width=1,M.height=1;var w=M.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),M}();function o(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(M,w,T){var _="";if(M.e)_=M.p;else if(w){var N=M.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),_=w+N}else _=T,_+=M.u?M.u:"",_+=M.p;return _}function m(M){var w=0,T=setInterval((function(){var _=M.getBBox();(_.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(M){var w=d(M,this.assetsPath,this.path),T=At("image");qt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var _={img:T,assetData:M};return _}function g(M){var w=d(M,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var _={img:T,assetData:M};return _}function I(M){var w={assetData:M},T=d(M,this.assetsPath,this.path);return Ea.loadData(T,(function(_){w.img=_,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function b(M,w){this.imagesLoadedCb=w;var T,_=M.length;for(T=0;T<_;T+=1)M[T].layers||(!M[T].t||M[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(M[T]))):M[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(M[T]))))}function k(M){this.path=M||""}function L(M){this.assetsPath=M||""}function G(M){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===M)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function R(M,w){M==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function H(){this._imageLoaded=o.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return H.prototype={loadAssets:b,setAssetsPath:L,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:G,createImgData:g,createImageData:p,imageLoaded:o,footageLoaded:n,setCacheType:R},H}();function Pm(){}Pm.prototype={triggerEvent:function(o,n){if(this._cbs[o])for(var d=this._cbs[o],m=0;m<d.length;m+=1)d[m](n)},addEventListener:function(o,n){return this._cbs[o]||(this._cbs[o]=[]),this._cbs[o].push(n),(function(){this.removeEventListener(o,n)}).bind(this)},removeEventListener:function(o,n){if(!n)this._cbs[o]=null;else if(this._cbs[o]){for(var d=0,m=this._cbs[o].length;d<m;)this._cbs[o][d]===n&&(this._cbs[o].splice(d,1),d-=1,m-=1),d+=1;this._cbs[o].length||(this._cbs[o]=null)}}};var hE=function(){function r(o){for(var n=o.split(`\r
|
|
2
|
-
`),d={},m,p=0,g=0;g<n.length;g+=1)m=n[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(o){for(var n=[],d=0;d<o.length;d+=1){var m=o[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(o[d].cm)}catch{try{p.payload=r(o[d].cm)}catch{p.payload={name:o[d].cm}}}n.push(p)}return n}}(),pE=function(){function r(o){this.compositions.push(o)}return function(){function o(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return o.compositions=[],o.currentFrame=0,o.registerComposition=r,o}}(),Ta={},mE=function(o,n){Ta[o]=n};function uE(r){return Ta[r]}function fE(){if(Ta.canvas)return"canvas";for(var r in Ta)if(Ta[r])return r;return""}function xa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xa=function(n){return typeof n}:xa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xa(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Xe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=nE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=pE(),this.imagePreloader=new cE,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 Er("drawnFrame",0,0,0),this.expressionsPlugin=qn()};A([Pm],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var o="svg";r.animType?o=r.animType:r.renderer&&(o=r.renderer);var n=uE(o);this.renderer=new n(this,r.rendererSettings),this.imagePreloader.setCacheType(o,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=o,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Ea.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Ea.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,o){o&&xa(o)!=="object"&&(o=JSON.parse(o));var n={wrapper:r,animationData:o},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:fE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var o=this.animationData.layers,n,d=o.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(n=0;n<d;){if(o[n].id===m[p].id){o[n]=m[p];break}n+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,Ea.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var o=qn();o&&o.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var o=r.shift();this.timeCompleted=o.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ea.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=hE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(o){this.triggerConfigError(o)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=qn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,o){var n=typeof r=="number"?r:void 0,d=typeof o=="number"?o:void 0;this.renderer.updateContainerSize(n,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var o,n=0;n<this.markers.length;n+=1)if(o=this.markers[n],o.payload&&o.payload.name===r)return o;return null},vt.prototype.goToAndStop=function(r,o,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else o?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,o,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,o,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var o=this.currentRawFrame+r*this.frameModifier,n=!1;o>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(o>this.totalFrames?o%this.totalFrames:0)||(n=!0,o=this.totalFrames-1):o>=this.totalFrames?(this.playCount+=1,this.checkSegments(o%this.totalFrames)||(this.setCurrentRawFrameValue(o%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(o):o<0?this.checkSegments(o%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+o%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,o=0)):this.setCurrentRawFrameValue(o),n&&(this.setCurrentRawFrameValue(o),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,o){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-o)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+o)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,o){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>o&&(n=o-r)),this.firstFrame=r,this.totalFrames=o-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,o){if(o&&(this.segments.length=0),xa(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}else this.segments.push(r);this.segments.length&&o&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,o){o&&this.name!==o||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var o="";if(r.e)o=r.p;else if(this.assetsPath){var n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),o=this.assetsPath+n}else o=this.path,o+=r.u?r.u:"",o+=r.p;return o},vt.prototype.getAssetData=function(r){for(var o=0,n=this.assets.length;o<n;){if(r===this.assets[o].id)return this.assets[o];o+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,o,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(o,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Er(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new km(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new jn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Nm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Mm(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Er(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new km(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new jn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Nm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Mm(r,this))},vt.prototype.triggerRenderFrameError=function(r){var o=new oE(r,this.currentFrame);this.triggerEvent("error",o),this.onError&&this.onError.call(this,o)},vt.prototype.triggerConfigError=function(r){var o=new sE(r,this.currentFrame);this.triggerEvent("error",o),this.onError&&this.onError.call(this,o)};var pe=function(){var r={},o=[],n=0,d=0,m=0,p=!0,g=!1;function I(C){for(var D=0,v=C.target;D<d;)o[D].animation===v&&(o.splice(D,1),D-=1,d-=1,v.isPaused||G()),D+=1}function b(C,D){if(!C)return null;for(var v=0;v<d;){if(o[v].elem===C&&o[v].elem!==null)return o[v].animation;v+=1}var E=new vt;return x(E,C),E.setData(C,D),E}function k(){var C,D=o.length,v=[];for(C=0;C<D;C+=1)v.push(o[C].animation);return v}function L(){m+=1,Tt()}function G(){m-=1}function x(C,D){C.addEventListener("destroy",I),C.addEventListener("_active",L),C.addEventListener("_idle",G),o.push({elem:D,animation:C}),d+=1}function O(C){var D=new vt;return x(D,null),D.setParams(C),D}function F(C,D){var v;for(v=0;v<d;v+=1)o[v].animation.setSpeed(C,D)}function R(C,D){var v;for(v=0;v<d;v+=1)o[v].animation.setDirection(C,D)}function H(C){var D;for(D=0;D<d;D+=1)o[D].animation.play(C)}function M(C){var D=C-n,v;for(v=0;v<d;v+=1)o[v].animation.advanceTime(D);n=C,m&&!g?window.requestAnimationFrame(M):p=!0}function w(C){n=C,window.requestAnimationFrame(M)}function T(C){var D;for(D=0;D<d;D+=1)o[D].animation.pause(C)}function _(C,D,v){var E;for(E=0;E<d;E+=1)o[E].animation.goToAndStop(C,D,v)}function N(C){var D;for(D=0;D<d;D+=1)o[D].animation.stop(C)}function $(C){var D;for(D=0;D<d;D+=1)o[D].animation.togglePause(C)}function U(C){var D;for(D=d-1;D>=0;D-=1)o[D].animation.destroy(C)}function q(C,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,V=E.length;for(Y=0;Y<V;Y+=1)v&&E[Y].setAttribute("data-bm-type",v),b(E[Y],C);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=y("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),b(gt,C)}}function it(){var C;for(C=0;C<d;C+=1)o[C].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ut(){g=!0}function st(){g=!1,Tt()}function St(C,D){var v;for(v=0;v<d;v+=1)o[v].animation.setVolume(C,D)}function ht(C){var D;for(D=0;D<d;D+=1)o[D].animation.mute(C)}function rt(C){var D;for(D=0;D<d;D+=1)o[D].animation.unmute(C)}return r.registerAnimation=b,r.loadAnimation=O,r.setSpeed=F,r.setDirection=R,r.play=H,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=q,r.resize=it,r.goToAndStop=_,r.destroy=U,r.freeze=ut,r.unfreeze=st,r.setVolume=St,r.mute=ht,r.unmute=rt,r.getRegisteredAnimations=k,r}(),Aa=function(){var r={};r.getBezierEasing=n;var o={};function n(w,T,_,N,$){var U=$||("bez_"+w+"_"+T+"_"+_+"_"+N).replace(/\./g,"p");if(o[U])return o[U];var q=new M([w,T,_,N]);return o[U]=q,q}var d=4,m=.001,p=1e-7,g=10,I=11,b=1/(I-1),k=typeof Float32Array=="function";function L(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,_){return((L(T,_)*w+G(T,_))*w+x(T))*w}function F(w,T,_){return 3*L(T,_)*w*w+2*G(T,_)*w+x(T)}function R(w,T,_,N,$){var U,q,it=0;do q=T+(_-T)/2,U=O(q,N,$)-w,U>0?_=q:T=q;while(Math.abs(U)>p&&++it<g);return q}function H(w,T,_,N){for(var $=0;$<d;++$){var U=F(T,_,N);if(U===0)return T;var q=O(T,_,N)-w;T-=q/U}return T}function M(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return M.prototype={get:function(T){var _=this._p[0],N=this._p[1],$=this._p[2],U=this._p[3];return this._precomputed||this._precompute(),_===N&&$===U?T:T===0?0:T===1?1:O(this._getTForX(T),N,U)},_precompute:function(){var T=this._p[0],_=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==_||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],_=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*b,T,_)},_getTForX:function(T){for(var _=this._p[0],N=this._p[2],$=this._mSampleValues,U=0,q=1,it=I-1;q!==it&&$[q]<=T;++q)U+=b;--q;var Tt=(T-$[q])/($[q+1]-$[q]),ut=U+Tt*b,st=F(ut,_,N);return st>=m?H(T,ut,_,N):st===0?ut:R(T,U,U+b,_,N)}},r}(),Fm=function(){function r(o){return o.concat(tt(o.length))}return{double:r}}(),Qn=function(){return function(r,o,n){var d=0,m=r,p=tt(m),g={newElement:I,release:b};function I(){var k;return d?(d-=1,k=p[d]):k=o(),k}function b(k){d===m&&(p=Fm.double(p),m*=2),n&&n(k),p[d]=k,d+=1}return g}}(),$m=function(){function r(){return{addedLength:0,percents:Z("float32",ya()),lengths:Z("float32",ya())}}return Qn(8,r)}(),Vm=function(){function r(){return{lengths:[],totalLength:0}}function o(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)$m.release(n.lengths[d]);n.lengths.length=0}return Qn(8,r,o)}();function vE(){var r=Math;function o(x,O,F,R,H,M){var w=x*R+O*H+F*M-H*R-M*x-F*O;return w>-.001&&w<.001}function n(x,O,F,R,H,M,w,T,_){if(F===0&&M===0&&_===0)return o(x,O,R,H,w,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(H-O,2)+r.pow(M-F,2)),$=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(_-F,2)),U=r.sqrt(r.pow(w-R,2)+r.pow(T-H,2)+r.pow(_-M,2)),q;return N>$?N>U?q=N-$-U:q=U-$-N:U>$?q=U-$-N:q=$-N-U,q>-1e-4&&q<1e-4}var d=function(){return function(x,O,F,R){var H=ya(),M,w,T,_,N,$=0,U,q=[],it=[],Tt=$m.newElement();for(T=F.length,M=0;M<H;M+=1){for(N=M/(H-1),U=0,w=0;w<T;w+=1)_=Xt(1-N,3)*x[w]+3*Xt(1-N,2)*N*F[w]+3*(1-N)*Xt(N,2)*R[w]+Xt(N,3)*O[w],q[w]=_,it[w]!==null&&(U+=Xt(q[w]-it[w],2)),it[w]=q[w];U&&(U=$t(U),$+=U),Tt.percents[M]=N,Tt.lengths[M]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=Vm.newElement(),F=x.c,R=x.v,H=x.o,M=x.i,w,T=x._length,_=O.lengths,N=0;for(w=0;w<T-1;w+=1)_[w]=d(R[w],R[w+1],H[w],M[w+1]),N+=_[w].addedLength;return F&&T&&(_[w]=d(R[w],R[0],H[w],M[0]),N+=_[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,R,H){var M=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+R[0]+"_"+R[1]+"_"+H[0]+"_"+H[1]).replace(/\./g,"p");if(!x[M]){var w=ya(),T,_,N,$,U,q=0,it,Tt,ut=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&o(O[0],O[1],F[0],F[1],O[0]+R[0],O[1]+R[1])&&o(O[0],O[1],F[0],F[1],F[0]+H[0],F[1]+H[1])&&(w=2);var st=new p(w);for(N=R.length,T=0;T<w;T+=1){for(Tt=tt(N),U=T/(w-1),it=0,_=0;_<N;_+=1)$=Xt(1-U,3)*O[_]+3*Xt(1-U,2)*U*(O[_]+R[_])+3*(1-U)*Xt(U,2)*(F[_]+H[_])+Xt(U,3)*F[_],Tt[_]=$,ut!==null&&(it+=Xt(Tt[_]-ut[_],2));it=$t(it),q+=it,st.points[T]=new g(it,Tt),ut=Tt}st.segmentLength=q,x[M]=st}return x[M]}}();function b(x,O){var F=O.percents,R=O.lengths,H=F.length,M=ae((H-1)*x),w=x*O.addedLength,T=0;if(M===H-1||M===0||w===R[M])return F[M];for(var _=R[M]>w?-1:1,N=!0;N;)if(R[M]<=w&&R[M+1]>w?(T=(w-R[M])/(R[M+1]-R[M]),N=!1):M+=_,M<0||M>=H-1){if(M===H-1)return F[M];N=!1}return F[M]+(F[M+1]-F[M])*T}function k(x,O,F,R,H,M){var w=b(H,M),T=1-w,_=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[_,N]}var L=Z("float32",8);function G(x,O,F,R,H,M,w){H<0?H=0:H>1&&(H=1);var T=b(H,w);M=M>1?1:M;var _=b(M,w),N,$=x.length,U=1-T,q=1-_,it=U*U*U,Tt=T*U*U*3,ut=T*T*U*3,st=T*T*T,St=U*U*q,ht=T*U*q+U*T*q+U*U*_,rt=T*T*q+U*T*_+T*U*_,C=T*T*_,D=U*q*q,v=T*q*q+U*_*q+U*q*_,E=T*_*q+U*_*_+T*q*_,Y=T*_*_,V=q*q*q,ct=_*q*q+q*_*q+q*q*_,gt=_*_*q+q*_*_+_*q*_,xt=_*_*_;for(N=0;N<$;N+=1)L[N*4]=r.round((it*x[N]+Tt*F[N]+ut*R[N]+st*O[N])*1e3)/1e3,L[N*4+1]=r.round((St*x[N]+ht*F[N]+rt*R[N]+C*O[N])*1e3)/1e3,L[N*4+2]=r.round((D*x[N]+v*F[N]+E*R[N]+Y*O[N])*1e3)/1e3,L[N*4+3]=r.round((V*x[N]+ct*F[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return L}return{getSegmentsLength:m,getNewSegment:G,getPointInSegment:k,buildBezierData:I,pointOnLine2D:o,pointOnLine3D:n}}var Kr=vE(),wo=e,zm=Math.abs;function Bm(r,o){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var m=o.lastIndex,p=m,g=this.keyframes.length-1,I=!0,b,k,L;I;){if(b=this.keyframes[p],k=this.keyframes[p+1],p===g-1&&r>=k.t-n){b.h&&(b=k),m=0;break}if(k.t-n>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}L=this.keyframesMetadata[p]||{};var G,x,O,F,R,H,M=k.t-n,w=b.t-n,T;if(b.to){L.bezierData||(L.bezierData=Kr.buildBezierData(b.s,k.s||b.e,b.to,b.ti));var _=L.bezierData;if(r>=M||r<w){var N=r>=M?_.points.length-1:0;for(x=_.points[N].point.length,G=0;G<x;G+=1)d[G]=_.points[N].point[G]}else{L.__fnct?H=L.__fnct:(H=Aa.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,L.__fnct=H),O=H((r-w)/(M-w));var $=_.segmentLength*O,U,q=o.lastFrame<r&&o._lastKeyframeIndex===p?o._lastAddedLength:0;for(R=o.lastFrame<r&&o._lastKeyframeIndex===p?o._lastPoint:0,I=!0,F=_.points.length;I;){if(q+=_.points[R].partialLength,$===0||O===0||R===_.points.length-1){for(x=_.points[R].point.length,G=0;G<x;G+=1)d[G]=_.points[R].point[G];break}else if($>=q&&$<q+_.points[R+1].partialLength){for(U=($-q)/_.points[R+1].partialLength,x=_.points[R].point.length,G=0;G<x;G+=1)d[G]=_.points[R].point[G]+(_.points[R+1].point[G]-_.points[R].point[G])*U;break}R<F-1?R+=1:I=!1}o._lastPoint=R,o._lastAddedLength=q-_.points[R].partialLength,o._lastKeyframeIndex=p}}else{var it,Tt,ut,st,St;if(g=b.s.length,T=k.s||b.e,this.sh&&b.h!==1)if(r>=M)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=w)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ht=Hm(b.s),rt=Hm(T),C=(r-w)/(M-w);bE(d,gE(ht,rt,C))}else for(p=0;p<g;p+=1)b.h!==1&&(r>=M?O=1:r<w?O=0:(b.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[p]?H=L.__fnct[p]:(it=b.o.x[p]===void 0?b.o.x[0]:b.o.x[p],Tt=b.o.y[p]===void 0?b.o.y[0]:b.o.y[p],ut=b.i.x[p]===void 0?b.i.x[0]:b.i.x[p],st=b.i.y[p]===void 0?b.i.y[0]:b.i.y[p],H=Aa.getBezierEasing(it,Tt,ut,st).get,L.__fnct[p]=H)):L.__fnct?H=L.__fnct:(it=b.o.x,Tt=b.o.y,ut=b.i.x,st=b.i.y,H=Aa.getBezierEasing(it,Tt,ut,st).get,b.keyframeMetadata=H),O=H((r-w)/(M-w)))),T=k.s||b.e,St=b.h===1?b.s[p]:b.s[p]+(T[p]-b.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return o.lastIndex=m,d}function gE(r,o,n){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],b=o[0],k=o[1],L=o[2],G=o[3],x,O,F,R,H;return O=m*b+p*k+g*L+I*G,O<0&&(O=-O,b=-b,k=-k,L=-L,G=-G),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),R=Math.sin((1-n)*x)/F,H=Math.sin(n*x)/F):(R=1-n,H=n),d[0]=R*m+H*b,d[1]=R*p+H*k,d[2]=R*g+H*L,d[3]=R*I+H*G,d}function bE(r,o){var n=o[0],d=o[1],m=o[2],p=o[3],g=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),b=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=g/Nt,r[1]=I/Nt,r[2]=b/Nt}function Hm(r){var o=r[0]*Nt,n=r[1]*Nt,d=r[2]*Nt,m=Math.cos(o/2),p=Math.cos(n/2),g=Math.cos(d/2),I=Math.sin(o/2),b=Math.sin(n/2),k=Math.sin(d/2),L=m*p*g-I*b*k,G=I*b*g+m*p*k,x=I*p*g+m*b*k,O=m*b*g-I*p*k;return[G,x,O,L]}function Um(){var r=this.comp.renderedFrame-this.offsetTime,o=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==wo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<o&&r<o))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function Jn(r){var o;if(this.propType==="unidimensional")o=r*this.mult,zm(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)o=r[n]*this.mult,zm(this.v[n]-o)>1e-5&&(this.v[n]=o,this._mdf=!0),n+=1}function tl(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,o=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(r=0;r<o;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function el(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function yE(r,o,n,d){this.propType="unidimensional",this.mult=n||1,this.data=o,this.v=n?o.k*n:o.k,this.pv=o.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=tl,this.setVValue=Jn,this.addEffect=el}function EE(r,o,n,d){this.propType="multidimensional",this.mult=n||1,this.data=o,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=o.k.length;for(this.v=Z("float32",p),this.pv=Z("float32",p),this.vel=Z("float32",p),m=0;m<p;m+=1)this.v[m]=o.k[m]*this.mult,this.pv[m]=o.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=tl,this.setVValue=Jn,this.addEffect=el}function TE(r,o,n,d){this.propType="unidimensional",this.keyframes=o.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:wo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=o,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=wo,this.pv=wo,this._isFirstFrame=!0,this.getValue=tl,this.setVValue=Jn,this.interpolateValue=Bm,this.effectsSequence=[Um.bind(this)],this.addEffect=el}function xE(r,o,n,d){this.propType="multidimensional";var m,p=o.k.length,g,I,b,k;for(m=0;m<p-1;m+=1)o.k[m].to&&o.k[m].s&&o.k[m+1]&&o.k[m+1].s&&(g=o.k[m].s,I=o.k[m+1].s,b=o.k[m].to,k=o.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&Kr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+b[0],g[1]+b[1])&&Kr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&Kr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Kr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(o.k[m].to=null,o.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&b[0]===0&&b[1]===0&&k[0]===0&&k[1]===0&&(g.length===2||g[2]===I[2]&&b[2]===0&&k[2]===0)&&(o.k[m].to=null,o.k[m].ti=null));this.effectsSequence=[Um.bind(this)],this.data=o,this.keyframes=o.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=tl,this.setVValue=Jn,this.interpolateValue=Bm,this.frameId=-1;var L=o.k[0].s.length;for(this.v=Z("float32",L),this.pv=Z("float32",L),m=0;m<L;m+=1)this.v[m]=wo,this.pv[m]=wo;this._caching={lastFrame:wo,lastIndex:0,value:Z("float32",L)},this.addEffect=el}var at=function(){function r(n,d,m,p,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new yE(n,d,p,g);else if(typeof d.k[0]=="number")I=new EE(n,d,p,g);else switch(m){case 0:I=new TE(n,d,p,g);break;case 1:I=new xE(n,d,p,g);break;default:break}return I.effectsSequence.length&&g.addDynamicProperty(I),I}var o={getProp:r};return o}();function Ie(){}Ie.prototype={addDynamicProperty:function(o){this.dynamicProperties.indexOf(o)===-1&&(this.dynamicProperties.push(o),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var o,n=this.dynamicProperties.length;for(o=0;o<n;o+=1)this.dynamicProperties[o].getValue(),this.dynamicProperties[o]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(o){this.container=o,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var ko=function(){function r(){return Z("float32",2)}return Qn(8,r)}();function pi(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}pi.prototype.setPathData=function(r,o){this.c=r,this.setLength(o);for(var n=0;n<o;)this.v[n]=ko.newElement(),this.o[n]=ko.newElement(),this.i[n]=ko.newElement(),n+=1},pi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},pi.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},pi.prototype.setXYAt=function(r,o,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=ko.newElement()),p[d][0]=r,p[d][1]=o},pi.prototype.setTripleAt=function(r,o,n,d,m,p,g,I){this.setXYAt(r,o,"v",g,I),this.setXYAt(n,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},pi.prototype.reverse=function(){var r=new pi;r.setPathData(this.c,this._length);var o=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(o[0][0],o[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(o[p][0],o[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},pi.prototype.length=function(){return this._length};var Le=function(){function r(){return new pi}function o(m){var p=m._length,g;for(g=0;g<p;g+=1)ko.release(m.v[g]),ko.release(m.i[g]),ko.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=Qn(4,r,o);return d.clone=n,d}();function xc(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}xc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},xc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)Le.release(this.shapes[r]);this._length=0};var Ss=function(){var r={newShapeCollection:m,release:p},o=0,n=4,d=tt(n);function m(){var g;return o?(o-=1,g=d[o]):g=new xc,g}function p(g){var I,b=g._length;for(I=0;I<b;I+=1)Le.release(g.shapes[I]);g._length=0,o===n&&(d=Fm.double(d),n*=2),d[o]=g,o+=1}return r}(),rl=function(){var r=-999999;function o(M,w,T){var _=T.lastIndex,N,$,U,q,it,Tt,ut,st,St,ht=this.keyframes;if(M<ht[0].t-this.offsetTime)N=ht[0].s[0],U=!0,_=0;else if(M>=ht[ht.length-1].t-this.offsetTime)N=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],U=!0;else{for(var rt=_,C=ht.length-1,D=!0,v,E,Y;D&&(v=ht[rt],E=ht[rt+1],!(E.t-this.offsetTime>M));)rt<C-1?rt+=1:D=!1;if(Y=this.keyframesMetadata[rt]||{},U=v.h===1,_=rt,!U){if(M>=E.t-this.offsetTime)st=1;else if(M<v.t-this.offsetTime)st=0;else{var V;Y.__fnct?V=Y.__fnct:(V=Aa.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=V),st=V((M-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=w._length,ut=N.i[0].length,T.lastIndex=_,q=0;q<Tt;q+=1)for(it=0;it<ut;it+=1)St=U?N.i[q][it]:N.i[q][it]+($.i[q][it]-N.i[q][it])*st,w.i[q][it]=St,St=U?N.o[q][it]:N.o[q][it]+($.o[q][it]-N.o[q][it])*st,w.o[q][it]=St,St=U?N.v[q][it]:N.v[q][it]+($.v[q][it]-N.v[q][it])*st,w.v[q][it]=St}function n(){var M=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==r&&(_<w&&M<w||_>T&&M>T)||(this._caching.lastIndex=_<M?this._caching.lastIndex:0,this.interpolateShape(M,this.pv,this._caching)),this._caching.lastFrame=M,this.pv}function d(){this.paths=this.localShapeCollection}function m(M,w){if(M._length!==w._length||M.c!==w.c)return!1;var T,_=M._length;for(T=0;T<_;T+=1)if(M.v[T][0]!==w.v[T][0]||M.v[T][1]!==w.v[T][1]||M.o[T][0]!==w.o[T][0]||M.o[T][1]!==w.o[T][1]||M.i[T][0]!==w.i[T][0]||M.i[T][1]!==w.i[T][1])return!1;return!0}function p(M){m(this.v,M)||(this.v=Le.clone(M),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var M;this.kf?M=this.pv:this.data.ks?M=this.data.ks.k:M=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)M=this.effectsSequence[w](M);this.setVValue(M),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(M,w,T){this.propType="shape",this.comp=M.comp,this.container=M,this.elem=M,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var _=T===3?w.pt.k:w.ks.k;this.v=Le.clone(_),this.pv=Le.clone(this.v),this.localShapeCollection=Ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=o,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=b;function k(M,w,T){this.propType="shape",this.comp=M.comp,this.elem=M,this.container=M,this.offsetTime=M.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=Le.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=Le.clone(this.v),this.localShapeCollection=Ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=g,k.prototype.interpolateShape=o,k.prototype.setVValue=p,k.prototype.addEffect=b;var L=function(){var M=he;function w(T,_){this.v=Le.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ss.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=at.getProp(T,_.p,1,0,this),this.s=at.getProp(T,_.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 _=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,U=this.s.v[1]/2,q=this.d!==3,it=this.v;it.v[0][0]=_,it.v[0][1]=N-U,it.v[1][0]=q?_+$:_-$,it.v[1][1]=N,it.v[2][0]=_,it.v[2][1]=N+U,it.v[3][0]=q?_-$:_+$,it.v[3][1]=N,it.i[0][0]=q?_-$*M:_+$*M,it.i[0][1]=N-U,it.i[1][0]=q?_+$:_-$,it.i[1][1]=N-U*M,it.i[2][0]=q?_+$*M:_-$*M,it.i[2][1]=N+U,it.i[3][0]=q?_-$:_+$,it.i[3][1]=N+U*M,it.o[0][0]=q?_+$*M:_-$*M,it.o[0][1]=N-U,it.o[1][0]=q?_+$:_-$,it.o[1][1]=N+U*M,it.o[2][0]=q?_-$*M:_+$*M,it.o[2][1]=N+U,it.o[3][0]=q?_-$:_+$,it.o[3][1]=N-U*M}},A([Ie],w),w}(),G=function(){function M(w,T){this.v=Le.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=at.getProp(w,T.ir,0,0,this),this.is=at.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(w,T.pt,0,0,this),this.p=at.getProp(w,T.p,1,0,this),this.r=at.getProp(w,T.r,0,Nt,this),this.or=at.getProp(w,T.or,0,0,this),this.os=at.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ss.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return M.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,_=Math.PI*2/T,N=!0,$=this.or.v,U=this.ir.v,q=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ut=2*Math.PI*U/(T*2),st,St,ht,rt,C=-Math.PI/2;C+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){St=N?$:U,ht=N?q:it,rt=N?Tt:ut;var v=St*Math.cos(C),E=St*Math.sin(C),Y=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-Y*rt*ht*D,E-V*rt*ht*D,v+Y*rt*ht*D,E+V*rt*ht*D,st,!0),N=!N,C+=_*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),_=Math.PI*2/T,N=this.or.v,$=this.os.v,U=2*Math.PI*N/(T*4),q,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,q=0;q<T;q+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),St=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ht=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-St*U*$*Tt,st-ht*U*$*Tt,ut+St*U*$*Tt,st+ht*U*$*Tt,q,!0),it+=_*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Ie],M),M}(),x=function(){function M(w,T){this.v=Le.newElement(),this.v.c=!0,this.localShapeCollection=Ss.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=at.getProp(w,T.p,1,0,this),this.s=at.getProp(w,T.s,1,0,this),this.r=at.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return M.prototype={convertRectToPath:function(){var T=this.p.v[0],_=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,U=Me(N,$,this.r.v),q=U*(1-he);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,_-$+U,T+N,_-$+U,T+N,_-$+q,0,!0),this.v.setTripleAt(T+N,_+$-U,T+N,_+$-q,T+N,_+$-U,1,!0),U!==0?(this.v.setTripleAt(T+N-U,_+$,T+N-U,_+$,T+N-q,_+$,2,!0),this.v.setTripleAt(T-N+U,_+$,T-N+q,_+$,T-N+U,_+$,3,!0),this.v.setTripleAt(T-N,_+$-U,T-N,_+$-U,T-N,_+$-q,4,!0),this.v.setTripleAt(T-N,_-$+U,T-N,_-$+q,T-N,_-$+U,5,!0),this.v.setTripleAt(T-N+U,_-$,T-N+U,_-$,T-N+q,_-$,6,!0),this.v.setTripleAt(T+N-U,_-$,T+N-q,_-$,T+N-U,_-$,7,!0)):(this.v.setTripleAt(T-N,_+$,T-N+q,_+$,T-N,_+$,2),this.v.setTripleAt(T-N,_-$,T-N,_-$+q,T-N,_-$,3))):(this.v.setTripleAt(T+N,_-$+U,T+N,_-$+q,T+N,_-$+U,0,!0),U!==0?(this.v.setTripleAt(T+N-U,_-$,T+N-U,_-$,T+N-q,_-$,1,!0),this.v.setTripleAt(T-N+U,_-$,T-N+q,_-$,T-N+U,_-$,2,!0),this.v.setTripleAt(T-N,_-$+U,T-N,_-$+U,T-N,_-$+q,3,!0),this.v.setTripleAt(T-N,_+$-U,T-N,_+$-q,T-N,_+$-U,4,!0),this.v.setTripleAt(T-N+U,_+$,T-N+U,_+$,T-N+q,_+$,5,!0),this.v.setTripleAt(T+N-U,_+$,T+N-q,_+$,T+N-U,_+$,6,!0),this.v.setTripleAt(T+N,_+$-U,T+N,_+$-U,T+N,_+$-q,7,!0)):(this.v.setTripleAt(T-N,_-$,T-N+q,_-$,T-N,_-$,1,!0),this.v.setTripleAt(T-N,_+$,T-N,_+$-q,T-N,_+$,2,!0),this.v.setTripleAt(T+N,_+$,T+N-q,_+$,T+N,_+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ie],M),M}();function O(M,w,T){var _;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?_=new k(M,w,T):_=new I(M,w,T)}else T===5?_=new x(M,w):T===6?_=new L(M,w):T===7&&(_=new G(M,w));return _.k&&M.addDynamicProperty(_),_}function F(){return I}function R(){return k}var H={};return H.getShapeProp=O,H.getConstructorFunction=F,H.getKeyframedConstructorFunction=R,H}();var Oe=function(){var r=Math.cos,o=Math.sin,n=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),Y=o(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),Y=o(v);return this._t(1,0,0,0,0,E,-Y,0,0,Y,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),Y=o(v);return this._t(E,0,Y,0,0,1,0,0,-Y,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),Y=o(v);return this._t(E,-Y,0,0,Y,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 L(v,E){return this.shear(n(v),n(E))}function G(v,E){var Y=r(E),V=o(E);return this._t(Y,V,0,0,-V,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-V,0,0,V,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,E,Y){return!Y&&Y!==0&&(Y=1),v===1&&E===1&&Y===1?this:this._t(v,0,0,0,0,E,0,0,0,0,Y,0,0,0,0,1)}function O(v,E,Y,V,ct,gt,xt,Pt,Ft,me,Qe,Yr,Je,_e,hr,Wt){return this.props[0]=v,this.props[1]=E,this.props[2]=Y,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Pt,this.props[8]=Ft,this.props[9]=me,this.props[10]=Qe,this.props[11]=Yr,this.props[12]=Je,this.props[13]=_e,this.props[14]=hr,this.props[15]=Wt,this}function F(v,E,Y){return Y=Y||0,v!==0||E!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,Y,1):this}function R(v,E,Y,V,ct,gt,xt,Pt,Ft,me,Qe,Yr,Je,_e,hr,Wt){var pt=this.props;if(v===1&&E===0&&Y===0&&V===0&&ct===0&>===1&&xt===0&&Pt===0&&Ft===0&&me===0&&Qe===1&&Yr===0)return pt[12]=pt[12]*v+pt[15]*Je,pt[13]=pt[13]*gt+pt[15]*_e,pt[14]=pt[14]*Qe+pt[15]*hr,pt[15]*=Wt,this._identityCalculated=!1,this;var fi=pt[0],Yi=pt[1],vi=pt[2],jr=pt[3],gi=pt[4],bi=pt[5],tr=pt[6],ji=pt[7],qi=pt[8],Rr=pt[9],Xi=pt[10],Dr=pt[11],Oo=pt[12],hl=pt[13],pl=pt[14],ml=pt[15];return pt[0]=fi*v+Yi*ct+vi*Ft+jr*Je,pt[1]=fi*E+Yi*gt+vi*me+jr*_e,pt[2]=fi*Y+Yi*xt+vi*Qe+jr*hr,pt[3]=fi*V+Yi*Pt+vi*Yr+jr*Wt,pt[4]=gi*v+bi*ct+tr*Ft+ji*Je,pt[5]=gi*E+bi*gt+tr*me+ji*_e,pt[6]=gi*Y+bi*xt+tr*Qe+ji*hr,pt[7]=gi*V+bi*Pt+tr*Yr+ji*Wt,pt[8]=qi*v+Rr*ct+Xi*Ft+Dr*Je,pt[9]=qi*E+Rr*gt+Xi*me+Dr*_e,pt[10]=qi*Y+Rr*xt+Xi*Qe+Dr*hr,pt[11]=qi*V+Rr*Pt+Xi*Yr+Dr*Wt,pt[12]=Oo*v+hl*ct+pl*Ft+ml*Je,pt[13]=Oo*E+hl*gt+pl*me+ml*_e,pt[14]=Oo*Y+hl*xt+pl*Qe+ml*hr,pt[15]=Oo*V+hl*Pt+pl*Yr+ml*Wt,this._identityCalculated=!1,this}function H(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function M(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function 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 _(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,Y){return{x:v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}}function $(v,E,Y){return v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12]}function U(v,E,Y){return v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13]}function q(v,E,Y){return v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,Y=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new Oe;return Pt.props[0]=E,Pt.props[1]=Y,Pt.props[4]=V,Pt.props[5]=ct,Pt.props[12]=gt,Pt.props[13]=xt,Pt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,Y=v.length,V=[];for(E=0;E<Y;E+=1)V[E]=Tt(v[E]);return V}function st(v,E,Y){var V=Z("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=Y[0],V[5]=Y[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Pt=this.props[5],Ft=this.props[12],me=this.props[13];V[0]=v[0]*ct+v[1]*xt+Ft,V[1]=v[0]*gt+v[1]*Pt+me,V[2]=E[0]*ct+E[1]*xt+Ft,V[3]=E[0]*gt+E[1]*Pt+me,V[4]=Y[0]*ct+Y[1]*xt+Ft,V[5]=Y[0]*gt+Y[1]*Pt+me}return V}function St(v,E,Y){var V;return this.isIdentity()?V=[v,E,Y]:V=[v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]],V}function ht(v,E){if(this.isIdentity())return v+","+E;var Y=this.props;return Math.round((v*Y[0]+E*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+E*Y[5]+Y[13])*100)/100}function rt(){for(var v=0,E=this.props,Y="matrix3d(",V=1e4;v<16;)Y+=d(E[v]*V)/V,Y+=v===15?")":",",v+=1;return Y}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=C(v[0]),Y=C(v[1]),V=C(v[4]),ct=C(v[5]),gt=C(v[12]),xt=C(v[13]);return"matrix("+E+","+Y+","+V+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=b,this.skew=L,this.skewFromAxis=G,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=R,this.multiply=H,this.applyToPoint=N,this.applyToX=$,this.applyToY=U,this.applyToZ=q,this.applyToPointArray=St,this.applyToTriplePoints=st,this.applyToPointStringified=ht,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=_,this.equals=w,this.inversePoints=ut,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=M,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function il(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?il=function(n){return typeof n}:il=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},il(r)}var Ht={},ol="__[STANDALONE]__",Gm="__[ANIMATIONDATA]__",Km="";function AE(r){c(r)}function Wm(){ol===!0?pe.searchAnimations(Gm,ol,Km):pe.searchAnimations()}function SE(r){aE(r)}function IE(r){dE(r)}function _E(r){return ol===!0&&(r.animationData=JSON.parse(Gm)),pe.loadAnimation(r)}function CE(r){if(typeof r=="string")switch(r){case"high":Xn(200);break;default:case"medium":Xn(50);break;case"low":Xn(10);break}else!isNaN(r)&&r>1&&Xn(r);ya()>=50?gr(!1):gr(!0)}function wE(){return typeof navigator<"u"}function kE(r,o){r==="expressions"&&lE(o)}function NE(r){switch(r){case"propertyFactory":return at;case"shapePropertyFactory":return rl;case"matrix":return Oe;default:return null}}Ht.play=pe.play,Ht.pause=pe.pause,Ht.setLocationHref=AE,Ht.togglePause=pe.togglePause,Ht.setSpeed=pe.setSpeed,Ht.setDirection=pe.setDirection,Ht.stop=pe.stop,Ht.searchAnimations=Wm,Ht.registerAnimation=pe.registerAnimation,Ht.loadAnimation=_E,Ht.setSubframeRendering=SE,Ht.resize=pe.resize,Ht.goToAndStop=pe.goToAndStop,Ht.destroy=pe.destroy,Ht.setQuality=CE,Ht.inBrowser=wE,Ht.installPlugin=kE,Ht.freeze=pe.freeze,Ht.unfreeze=pe.unfreeze,Ht.setVolume=pe.setVolume,Ht.mute=pe.mute,Ht.unmute=pe.unmute,Ht.getRegisteredAnimations=pe.getRegisteredAnimations,Ht.useWebWorker=s,Ht.setIDPrefix=IE,Ht.__getFactory=NE,Ht.version="5.12.2";function ME(){document.readyState==="complete"&&(clearInterval(RE),Wm())}function LE(r){for(var o=Ym.split("&"),n=0;n<o.length;n+=1){var d=o[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var Ym="";if(ol){var jm=document.getElementsByTagName("script"),OE=jm.length-1,qm=jm[OE]||{src:""};Ym=qm.src?qm.src.replace(/^[^\?]+\??/,""):"",Km=LE("renderer")}var RE=setInterval(ME,100);try{!((typeof tn>"u"?"undefined":il(tn))==="object"&&typeof Bl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ht)}catch{}var Bi=function(){var r={},o={};r.registerModifier=n,r.getModifier=d;function n(m,p){o[m]||(o[m]=p)}function d(m,p,g){return new o[m](p,g)}return r}();function Tr(){}Tr.prototype.initModifierProperties=function(){},Tr.prototype.addShapeToModifier=function(){},Tr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var o={shape:r.sh,data:r,localShapeCollection:Ss.newShapeCollection()};this.shapes.push(o),this.addShapeToModifier(o),this._isAnimated&&r.setAsAnimated()}},Tr.prototype.init=function(r,o){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,o),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Tr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ie],Tr);function Or(){}A([Tr],Or),Or.prototype.initModifierProperties=function(r,o){this.s=at.getProp(r,o.s,0,.01,this),this.e=at.getProp(r,o.e,0,.01,this),this.o=at.getProp(r,o.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=o.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Or.prototype.addShapeToModifier=function(r){r.pathsData=[]},Or.prototype.calculateShapeEdges=function(r,o,n,d,m){var p=[];o<=1?p.push({s:r,e:o}):r>=1?p.push({s:r-1,e:o-1}):(p.push({s:r,e:1}),p.push({s:0,e:o-1}));var g=[],I,b=p.length,k;for(I=0;I<b;I+=1)if(k=p[I],!(k.e*m<d||k.s*m>d+n)){var L,G;k.s*m<=d?L=0:L=(k.s*m-d)/n,k.e*m>=d+n?G=1:G=(k.e*m-d)/n,g.push([L,G])}return g.length||g.push([0,0]),g},Or.prototype.releasePathsData=function(r){var o,n=r.length;for(o=0;o<n;o+=1)Vm.release(r[o]);return r.length=0,r},Or.prototype.processShapes=function(r){var o,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?o=1+d:this.s.v<0?o=0+d:o=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,o>n){var m=o;o=n,n=m}o=Math.round(o*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=o,this.eValue=n}else o=this.sValue,n=this.eValue;var p,g,I=this.shapes.length,b,k,L,G,x,O=0;if(n===o)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&o===0||n===0&&o===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var F=[],R,H;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,k=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(L=this.releasePathsData(R.pathsData),b=0;b<k;b+=1)G=Kr.getSegmentsLength(p.shapes[b]),L.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=L}O+=x,R.shape._mdf=!0}var M=o,w=n,T=0,_;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(H=R.localShapeCollection,H.releaseShapes(),this.m===2&&I>1?(_=this.calculateShapeEdges(o,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):_=[[M,w]],k=_.length,b=0;b<k;b+=1){M=_[b][0],w=_[b][1],F.length=0,w<=1?F.push({s:R.totalShapeLength*M,e:R.totalShapeLength*w}):M>=1?F.push({s:R.totalShapeLength*(M-1),e:R.totalShapeLength*(w-1)}):(F.push({s:R.totalShapeLength*M,e:R.totalShapeLength}),F.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var U=N.pop();this.addPaths(N,H),N=this.addShapes(R,F[1],U)}else this.addPaths(N,H),N=this.addShapes(R,F[1])}this.addPaths(N,H)}}R.shape.paths=H}}},Or.prototype.addPaths=function(r,o){var n,d=r.length;for(n=0;n<d;n+=1)o.addShape(r[n])},Or.prototype.addSegment=function(r,o,n,d,m,p,g){m.setXYAt(o[0],o[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Or.prototype.addSegmentFromArray=function(r,o,n,d){o.setXYAt(r[1],r[5],"o",n),o.setXYAt(r[2],r[6],"i",n+1),d&&o.setXYAt(r[0],r[4],"v",n),o.setXYAt(r[3],r[7],"v",n+1)},Or.prototype.addShapes=function(r,o,n){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,b,k=0,L,G,x,O,F=[],R,H=!0;for(n?(G=n._length,R=n._length):(n=Le.newElement(),G=0,R=0),F.push(n),p=0;p<g;p+=1){for(x=d[p].lengths,n.c=m[p].c,b=m[p].c?x.length:x.length+1,I=1;I<b;I+=1)if(L=x[I-1],k+L.addedLength<o.s)k+=L.addedLength,n.c=!1;else if(k>o.e){n.c=!1;break}else o.s<=k&&o.e>=k+L.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,G,H),H=!1):(O=Kr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(o.s-k)/L.addedLength,(o.e-k)/L.addedLength,x[I-1]),this.addSegmentFromArray(O,n,G,H),H=!1,n.c=!1),k+=L.addedLength,G+=1;if(m[p].c&&x.length){if(L=x[I-1],k<=o.e){var M=x[I-1].addedLength;o.s<=k&&o.e>=k+M?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,G,H),H=!1):(O=Kr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(o.s-k)/M,(o.e-k)/M,x[I-1]),this.addSegmentFromArray(O,n,G,H),H=!1,n.c=!1)}else n.c=!1;k+=L.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>o.e)break;p<g-1&&(n=Le.newElement(),H=!0,F.push(n),G=0)}return F};function Sa(){}A([Tr],Sa),Sa.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.amount=at.getProp(r,o.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Sa.prototype.processPath=function(r,o){var n=o/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=Le.newElement();g.c=r.c;var I,b,k,L,G,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,b=r.v[p][1]+(d[1]-r.v[p][1])*n,k=r.o[p][0]+(d[0]-r.o[p][0])*-n,L=r.o[p][1]+(d[1]-r.o[p][1])*-n,G=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,g.setTripleAt(I,b,k,L,G,x,p);return g},Sa.prototype.processShapes=function(r){var o,n,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,o=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(o[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Ac=function(){var r=[0,0];function o(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 L,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?(L=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?(L=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)):(L=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){L=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(L[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),L[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?(L[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),L[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)):(L=[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=r,L=G;this.v.rotate(-Math.atan2(L[1]-G[1],L[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 m(){}function p(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,k,L){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Oe,this.pre=new Oe,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||b),k.p&&k.p.s?(this.px=at.getProp(b,k.p.x,0,0,this),this.py=at.getProp(b,k.p.y,0,0,this),k.p.z&&(this.pz=at.getProp(b,k.p.z,0,0,this))):this.p=at.getProp(b,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=at.getProp(b,k.rx,0,Nt,this),this.ry=at.getProp(b,k.ry,0,Nt,this),this.rz=at.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=at.getProp(b,k.or,1,Nt,this),this.or.sh=!0}else this.r=at.getProp(b,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=at.getProp(b,k.sk,0,Nt,this),this.sa=at.getProp(b,k.sa,0,Nt,this)),this.a=at.getProp(b,k.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(b,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=at.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:o,getValue:n,precalculateMatrix:d,autoOrient:m},A([Ie],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Ie.prototype.addDynamicProperty;function I(b,k,L){return new g(b,k,L)}return{getTransformProperty:I}}();function Wr(){}A([Tr],Wr),Wr.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.c=at.getProp(r,o.c,0,null,this),this.o=at.getProp(r,o.o,0,null,this),this.tr=Ac.getTransformProperty(r,o.tr,this),this.so=at.getProp(r,o.tr.so,0,.01,this),this.eo=at.getProp(r,o.tr.eo,0,.01,this),this.data=o,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Oe,this.rMatrix=new Oe,this.sMatrix=new Oe,this.tMatrix=new Oe,this.matrix=new Oe},Wr.prototype.applyTransforms=function(r,o,n,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),b=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),o.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),o.rotate(-d.r.v*g*m),o.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Wr.prototype.init=function(r,o,n,d){for(this.elem=r,this.arr=o,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,o[n]);n>0;)n-=1,this._elements.unshift(o[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Wr.prototype.resetElements=function(r){var o,n=r.length;for(o=0;o<n;o+=1)r[o]._processed=!1,r[o].ty==="gr"&&this.resetElements(r[o].it)},Wr.prototype.cloneElements=function(r){var o=JSON.parse(JSON.stringify(r));return this.resetElements(o),o},Wr.prototype.changeGroupRender=function(r,o){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=o,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,o)},Wr.prototype.processShapes=function(r){var o,n,d,m,p,g=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}p=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=p<I,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var L=this.elemsData[d].it,G=L[L.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,H=this.rMatrix.props,M=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,_;p;){if(o=this.elemsData[d].it,n=o[o.length-1].transform.mProps.v.props,_=n.length,o[o.length-1].transform.mProps._mdf=!0,o[o.length-1].transform.op._mdf=!0,o[o.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&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<_;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<_;T+=1)n[T]=this.matrix.props[T];w+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)o=this.elemsData[d].it,n=o[o.length-1].transform.mProps.v.props,o[o.length-1].transform.mProps._mdf=!1,o[o.length-1].transform.op._mdf=!1,p-=1,d+=m;return g},Wr.prototype.addShape=function(){};function Ia(){}A([Tr],Ia),Ia.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.rd=at.getProp(r,o.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ia.prototype.processPath=function(r,o){var n=Le.newElement();n.c=r.c;var d,m=r._length,p,g,I,b,k,L,G=0,x,O,F,R,H,M;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],G),G+=1):(d===0?b=r.v[m-1]:b=r.v[d-1],k=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=k?Math.min(k/2,o)/k:0,H=p[0]+(b[0]-p[0])*L,x=H,M=p[1]-(p[1]-b[1])*L,O=M,F=x-(x-p[0])*he,R=O-(O-p[1])*he,n.setTripleAt(x,O,F,R,H,M,G),G+=1,d===m-1?b=r.v[0]:b=r.v[d+1],k=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=k?Math.min(k/2,o)/k:0,F=p[0]+(b[0]-p[0])*L,x=F,R=p[1]+(b[1]-p[1])*L,O=R,H=x-(x-p[0])*he,M=O-(O-p[1])*he,n.setTripleAt(x,O,F,R,H,M,G),G+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],G),G+=1);return n},Ia.prototype.processShapes=function(r){var o,n,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,o=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(o[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function sl(r,o){return Math.abs(r-o)*1e5<=Math.min(Math.abs(r),Math.abs(o))}function Sc(r){return Math.abs(r)<=1e-5}function Xm(r,o,n){return r*(1-n)+o*n}function Hi(r,o,n){return[Xm(r[0],o[0],n),Xm(r[1],o[1],n)]}function DE(r,o,n){if(r===0)return[];var d=o*o-4*r*n;if(d<0)return[];var m=-o/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function Zm(r,o,n,d){return[-r+3*o-3*n+d,3*r-6*o+3*n,-3*r+3*o,r]}function Qm(r){return new oe(r,r,r,r,!1)}function oe(r,o,n,d,m){m&&_s(r,o)&&(o=Hi(r,d,1/3)),m&&_s(n,d)&&(n=Hi(r,d,2/3));var p=Zm(r[0],o[0],n[0],d[0]),g=Zm(r[1],o[1],n[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,o,n,d]}oe.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},oe.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},oe.prototype.tangentAngle=function(r){var o=this.derivative(r);return Math.atan2(o[1],o[0])},oe.prototype.normalAngle=function(r){var o=this.derivative(r);return Math.atan2(o[0],o[1])},oe.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Sc(r))return[];var o=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=o*o-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Sc(d)?d>0&&d<1?[o]:[]:[o-d,o+d].filter(function(m){return m>0&&m<1})},oe.prototype.split=function(r){if(r<=0)return[Qm(this.points[0]),this];if(r>=1)return[this,Qm(this.points[this.points.length-1])];var o=Hi(this.points[0],this.points[1],r),n=Hi(this.points[1],this.points[2],r),d=Hi(this.points[2],this.points[3],r),m=Hi(o,n,r),p=Hi(n,d,r),g=Hi(m,p,r);return[new oe(this.points[0],o,m,g,!0),new oe(g,p,d,this.points[3],!0)]};function Jm(r,o){var n=r.points[0][o],d=r.points[r.points.length-1][o];if(n>d){var m=d;d=n,n=m}for(var p=DE(3*r.a[o],2*r.b[o],r.c[o]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[o];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}oe.prototype.bounds=function(){return{x:Jm(this,0),y:Jm(this,1)}},oe.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function al(r,o,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(o+n)/2,t1:o,t2:n}}function tu(r){var o=r.bez.split(.5);return[al(o[0],r.t1,r.t),al(o[1],r.t,r.t2)]}function PE(r,o){return Math.abs(r.cx-o.cx)*2<r.width+o.width&&Math.abs(r.cy-o.cy)*2<r.height+o.height}function _a(r,o,n,d,m,p){if(PE(r,o)){if(n>=p||r.width<=d&&r.height<=d&&o.width<=d&&o.height<=d){m.push([r.t,o.t]);return}var g=tu(r),I=tu(o);_a(g[0],I[0],n+1,d,m,p),_a(g[0],I[1],n+1,d,m,p),_a(g[1],I[0],n+1,d,m,p),_a(g[1],I[1],n+1,d,m,p)}}oe.prototype.intersections=function(r,o,n){o===void 0&&(o=2),n===void 0&&(n=7);var d=[];return _a(al(this,0,1),al(r,0,1),0,o,d,n),d},oe.shapeSegment=function(r,o){var n=(o+1)%r.length();return new oe(r.v[o],r.o[o],r.i[n],r.v[n],!0)},oe.shapeSegmentInverted=function(r,o){var n=(o+1)%r.length();return new oe(r.v[n],r.i[n],r.o[o],r.v[o],!0)};function Ic(r,o){return[r[1]*o[2]-r[2]*o[1],r[2]*o[0]-r[0]*o[2],r[0]*o[1]-r[1]*o[0]]}function nl(r,o,n,d){var m=[r[0],r[1],1],p=[o[0],o[1],1],g=[n[0],n[1],1],I=[d[0],d[1],1],b=Ic(Ic(m,p),Ic(g,I));return Sc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function Is(r,o,n){return[r[0]+Math.cos(o)*n,r[1]-Math.sin(o)*n]}function _c(r,o){return Math.hypot(r[0]-o[0],r[1]-o[1])}function _s(r,o){return sl(r[0],o[0])&&sl(r[1],o[1])}function Ca(){}A([Tr],Ca),Ca.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.amplitude=at.getProp(r,o.s,0,null,this),this.frequency=at.getProp(r,o.r,0,null,this),this.pointsType=at.getProp(r,o.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function eu(r,o,n,d,m,p,g){var I=n-Math.PI/2,b=n+Math.PI/2,k=o[0]+Math.cos(n)*d*m,L=o[1]-Math.sin(n)*d*m;r.setTripleAt(k,L,k+Math.cos(I)*p,L-Math.sin(I)*p,k+Math.cos(b)*g,L-Math.sin(b)*g,r.length())}function FE(r,o){var n=[o[0]-r[0],o[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function $E(r,o){var n=o===0?r.length()-1:o-1,d=(o+1)%r.length(),m=r.v[n],p=r.v[d],g=FE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function ru(r,o,n,d,m,p,g){var I=$E(o,n),b=o.v[n%o._length],k=o.v[n===0?o._length-1:n-1],L=o.v[(n+1)%o._length],G=p===2?Math.sqrt(Math.pow(b[0]-k[0],2)+Math.pow(b[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(b[0]-L[0],2)+Math.pow(b[1]-L[1],2)):0;eu(r,o.v[n%o._length],I,g,d,x/((m+1)*2),G/((m+1)*2),p)}function VE(r,o,n,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+1),b=m===2?Math.sqrt(Math.pow(o.points[3][0]-o.points[0][0],2)+Math.pow(o.points[3][1]-o.points[0][1],2)):0,k=o.normalAngle(I),L=o.point(I);eu(r,L,k,p,n,b/((d+1)*2),b/((d+1)*2),m),p=-p}return p}Ca.prototype.processPath=function(r,o,n,d){var m=r._length,p=Le.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=oe.shapeSegment(r,0);ru(p,r,0,o,n,d,g);for(var b=0;b<m;b+=1)g=VE(p,I,o,n,d,-g),b===m-1&&!r.c?I=null:I=oe.shapeSegment(r,(b+1)%m),ru(p,r,b+1,o,n,d,g);return p},Ca.prototype.processShapes=function(r){var o,n,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var k,L;for(n=0;n<d;n+=1){if(k=this.shapes[n],L=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),k.shape._mdf=!0,o=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(o[m],g,I,b));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Cc(r,o,n){var d=Math.atan2(o[0]-r[0],o[1]-r[1]);return[Is(r,d,n),Is(o,d,n)]}function Cs(r,o){var n,d,m,p,g,I,b;b=Cc(r.points[0],r.points[1],o),n=b[0],d=b[1],b=Cc(r.points[1],r.points[2],o),m=b[0],p=b[1],b=Cc(r.points[2],r.points[3],o),g=b[0],I=b[1];var k=nl(n,d,m,p);k===null&&(k=d);var L=nl(g,I,m,p);return L===null&&(L=g),new oe(n,k,L,I)}function iu(r,o,n,d,m){var p=o.points[3],g=n.points[0];if(d===3||_s(p,g))return p;if(d===2){var I=-o.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,k=nl(p,Is(p,I+Math.PI/2,100),g,Is(g,I+Math.PI/2,100)),L=k?_c(k,p):_c(p,g)/2,G=Is(p,I,2*L*he);return r.setXYAt(G[0],G[1],"o",r.length()-1),G=Is(g,b,2*L*he),r.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],r.length()),g}var x=_s(p,o.points[2])?o.points[0]:o.points[2],O=_s(g,n.points[1])?n.points[3]:n.points[1],F=nl(x,p,g,O);return F&&_c(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function ou(r,o){var n=r.intersections(o);return n.length&&sl(n[0][0],1)&&n.shift(),n.length?n[0]:null}function su(r,o){var n=r.slice(),d=o.slice(),m=ou(r[r.length-1],o[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=o[0].split(m[1])[1]),r.length>1&&o.length>1&&(m=ou(r[0],o[o.length-1]),m)?[[r[0].split(m[0])[0]],[o[o.length-1].split(m[1])[1]]]:[n,d]}function zE(r){for(var o,n=1;n<r.length;n+=1)o=su(r[n-1],r[n]),r[n-1]=o[0],r[n]=o[1];return r.length>1&&(o=su(r[r.length-1],r[0]),r[r.length-1]=o[0],r[0]=o[1]),r}function au(r,o){var n=r.inflectionPoints(),d,m,p,g;if(n.length===0)return[Cs(r,o)];if(n.length===1||sl(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[Cs(d,o),Cs(m,o)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),g=p[0],m=p[1],[Cs(d,o),Cs(g,o),Cs(m,o)]}function wa(){}A([Tr],wa),wa.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.amount=at.getProp(r,o.a,0,null,this),this.miterLimit=at.getProp(r,o.ml,0,null,this),this.lineJoin=o.lj,this._isAnimated=this.amount.effectsSequence.length!==0},wa.prototype.processPath=function(r,o,n,d){var m=Le.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,b,k=[];for(g=0;g<p;g+=1)b=oe.shapeSegment(r,g),k.push(au(b,o));if(!r.c)for(g=p-1;g>=0;g-=1)b=oe.shapeSegmentInverted(r,g),k.push(au(b,o));k=zE(k);var L=null,G=null;for(g=0;g<k.length;g+=1){var x=k[g];for(G&&(L=iu(m,G,x[0],n,d)),G=x[x.length-1],I=0;I<x.length;I+=1)b=x[I],L&&_s(b.points[0],L)?m.setXYAt(b.points[1][0],b.points[1][1],"o",m.length()-1):m.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],m.length()),m.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],m.length()),L=b.points[3]}return k.length&&iu(m,G,k[0][0],n,d),m},wa.prototype.processShapes=function(r){var o,n,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,b=this.lineJoin;if(g!==0){var k,L;for(n=0;n<d;n+=1){if(k=this.shapes[n],L=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),k.shape._mdf=!0,o=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(o[m],g,b,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nu(r){for(var o=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=o.length,p,g=0;g<m;g+=1)switch(p=o[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var No=function(){var r=5e3,o={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,g=917626,I=65039,b=8205,k=127462,L=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var D=C.split(","),v,E=D.length,Y=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&Y.push(D[v]);return Y.join(",")}function O(C,D){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var Y=E.offsetWidth;return E.style.fontFamily=x(C)+", "+D,{node:E,w:Y,parent:v}}function F(){var C,D=this.fonts.length,v,E,Y=D;for(C=0;C<D;C+=1)this.fonts[C].loaded?Y-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(Y-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(Y-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));Y!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,D){var v=document.body&&D?"svg":"canvas",E,Y=nu(C);if(v==="svg"){var V=At("text");V.style.fontSize="100px",V.setAttribute("font-family",C.fFamily),V.setAttribute("font-style",Y.style),V.setAttribute("font-weight",Y.weight),V.textContent="1",C.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",C.fClass)):V.style.fontFamily=C.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=Y.style+" "+Y.weight+" 100px "+C.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function H(C,D){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(Qe){Qe.helper=R(Qe),Qe.cache={}}),this.fonts=C.list;return}var v=C.list,E,Y=v.length,V=Y;for(E=0;E<Y;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Ft=y("link");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.type="text/css",Ft.rel="stylesheet",Ft.href=v[E].fPath,document.body.appendChild(Ft)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var me=y("link");me.setAttribute("f-forigin",v[E].fOrigin),me.setAttribute("f-origin",v[E].origin),me.setAttribute("rel","stylesheet"),me.setAttribute("href",v[E].fPath),D.appendChild(me)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function M(C){if(C){this.chars||(this.chars=[]);var D,v=C.length,E,Y=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<Y;)this.chars[E].style===C[D].style&&this.chars[E].fFamily===C[D].fFamily&&this.chars[E].ch===C[D].ch&&(V=!0),E+=1;V||(this.chars.push(C[D]),Y+=1)}}}function w(C,D,v){for(var E=0,Y=this.chars.length;E<Y;){if(this.chars[E].ch===C&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,D,v)),o}function T(C,D,v){var E=this.getFontByName(D),Y=C;if(!E.cache[Y]){var V=E.helper;if(C===" "){var ct=V.measureText("|"+C+"|"),gt=V.measureText("||");E.cache[Y]=(ct-gt)/100}else E.cache[Y]=V.measureText(C)/100}return E.cache[Y]*v}function _(C){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===C)return this.fonts[D];D+=1}return this.fonts[0]}function N(C){var D=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(C,D){var v=C.toString(16)+D.toString(16);return G.indexOf(v)!==-1}function U(C){return C===b}function q(C){return C===I}function it(C){var D=N(C);return D>=k&&D<=L}function Tt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return n.indexOf(C)!==-1}function st(C,D){var v=N(C.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(C.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(C.substr(D,2))===m}function St(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=$,ht.isZeroWidthJoiner=U,ht.isFlagEmoji=Tt,ht.isRegionalCode=it,ht.isCombinedCharacter=ut,ht.isRegionalFlag=st,ht.isVariationSelector=q,ht.BLACK_FLAG_CODE_POINT=d;var rt={addChars:M,addFonts:H,getCharData:w,getFontByName:_,measureText:T,checkLoadedFonts:F,setIsLoaded:St};return ht.prototype=rt,ht}();function lu(r){this.animationData=r}lu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function BE(r){return new lu(r)}function ll(){}ll.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(o){this.renderableComponents.indexOf(o)===-1&&this.renderableComponents.push(o)},removeRenderableComponent:function(o){this.renderableComponents.indexOf(o)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(o),1)},prepareRenderableFrame:function(o){this.checkLayerLimits(o)},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(o){this.data.ip-this.data.st<=o&&this.data.op-this.data.st>o?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 o,n=this.renderableComponents.length;for(o=0;o<n;o+=1)this.renderableComponents[o].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 wc=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(o){return r[o]||""}}();function HE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function UE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function GE(r,o,n){this.p=at.getProp(o,r.v,1,0,n)}function KE(r,o,n){this.p=at.getProp(o,r.v,1,0,n)}function WE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function YE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function jE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function qE(){this.p={}}function du(r,o){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new ka(n[d],o),this.effectElements.push(p)}function ka(r,o){this.init(r,o)}A([Ie],ka),ka.prototype.getValue=ka.prototype.iterateDynamicProperties,ka.prototype.init=function(r,o){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(o);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new HE(p[n],o,this);break;case 1:m=new UE(p[n],o,this);break;case 2:m=new GE(p[n],o,this);break;case 3:m=new KE(p[n],o,this);break;case 4:case 7:m=new jE(p[n],o,this);break;case 10:m=new WE(p[n],o,this);break;case 11:m=new YE(p[n],o,this);break;case 5:m=new du(p[n],o,this);break;default:m=new qE(p[n],o,this);break}m&&this.effectElements.push(m)}};function Ui(){}Ui.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var o=0,n=this.data.masksProperties.length;o<n;){if(this.data.masksProperties[o].mode!=="n"&&this.data.masksProperties[o].cl!==!1)return!0;o+=1}return!1},initExpressions:function(){var o=Dm();if(o){var n=o("layer"),d=o("effects"),m=o("shape"),p=o("text"),g=o("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var o=wc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=o},initBaseData:function(o,n,d){this.globalData=n,this.comp=d,this.data=o,this.layerId=Xe(),this.data.sr||(this.data.sr=1),this.effectsManager=new du(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Gi(){}Gi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(o,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(o){this.dynamicProperties.indexOf(o)===-1&&this.dynamicProperties.push(o)}};function Ki(r,o,n){this.initFrame(),this.initRenderable(),this.assetData=o.getAssetData(r.refId),this.footageData=o.imageLoader.getAsset(this.assetData),this.initBaseData(r,o,n)}Ki.prototype.prepareFrame=function(){},A([ll,Ui,Gi],Ki),Ki.prototype.getBaseElement=function(){return null},Ki.prototype.renderFrame=function(){},Ki.prototype.destroy=function(){},Ki.prototype.initExpressions=function(){var r=Dm();if(r){var o=r("footage");this.layerInterface=o(this)}},Ki.prototype.getFootageData=function(){return this.footageData};function Ze(r,o,n){this.initFrame(),this.initRenderable(),this.assetData=o.getAssetData(r.refId),this.initBaseData(r,o,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?at.getProp(this,r.tm,0,o.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}Ze.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var o=this.tm.v;this._currentTime=o}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([ll,Ui,Gi],Ze),Ze.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))},Ze.prototype.show=function(){},Ze.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ze.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ze.prototype.resume=function(){this._canPlay=!0},Ze.prototype.setRate=function(r){this.audio.rate(r)},Ze.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},Ze.prototype.getBaseElement=function(){return null},Ze.prototype.destroy=function(){},Ze.prototype.sourceRectAtTime=function(){},Ze.prototype.initExpressions=function(){};function Re(){}Re.prototype.checkLayers=function(r){var o,n=this.layers.length,d;for(this.completeLayers=!0,o=n-1;o>=0;o-=1)this.elements[o]||(d=this.layers[o],d.ip-d.st<=r-this.layers[o].st&&d.op-d.st>r-this.layers[o].st&&this.buildItem(o)),this.completeLayers=this.elements[o]?this.completeLayers:!1;this.checkPendingElements()},Re.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Re.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Re.prototype.createAudio=function(r){return new Ze(r,this.globalData,this)},Re.prototype.createFootage=function(r){return new Ki(r,this.globalData,this)},Re.prototype.buildAllItems=function(){var r,o=this.layers.length;for(r=0;r<o;r+=1)this.buildItem(r);this.checkPendingElements()},Re.prototype.includeLayers=function(r){this.completeLayers=!1;var o,n=r.length,d,m=this.layers.length;for(o=0;o<n;o+=1)for(d=0;d<m;){if(this.layers[d].id===r[o].id){this.layers[d]=r[o];break}d+=1}},Re.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Re.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Re.prototype.buildElementParenting=function(r,o,n){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==o&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Re.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Re.prototype.searchExtraCompositions=function(r){var o,n=r.length;for(o=0;o<n;o+=1)if(r[o].xt){var d=this.createComp(r[o]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Re.prototype.getElementById=function(r){var o,n=this.elements.length;for(o=0;o<n;o+=1)if(this.elements[o].data.ind===r)return this.elements[o];return null},Re.prototype.getElementByPath=function(r){var o=r.shift(),n;if(typeof o=="number")n=this.elements[o];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===o){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Re.prototype.setupGlobalData=function(r,o){this.globalData.fontManager=new No,this.globalData.slotManager=BE(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,o),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var XE={TRANSFORM_EFFECT:"transformEFfect"};function ws(){}ws.prototype={initTransform:function(){var o=new Oe;this.finalTransform={mProp:this.data.ks?Ac.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:o,localMat:o,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 o,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(o=this.finalTransform.mProp.v.props,n.cloneFromProps(o),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var o=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;o<n;)this.localTransforms[o]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[o]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),o+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),o=1;o<n;o+=1){var m=this.localTransforms[o].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(o=0;o<n;o+=1)p*=this.localTransforms[o].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var o=this.renderableEffectsManager.getEffects(XE.TRANSFORM_EFFECT);if(o.length){this.localTransforms=[],this.finalTransform.localMat=new Oe;var n=0,d=o.length;for(n=0;n<d;n+=1)this.localTransforms.push(o[n])}}},globalToLocal:function(o){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=n.length,I;for(p=0;p<g;p+=1)I=n[p].mat.applyToPointArray(0,0,0),o=[o[0]-I[0],o[1]-I[1],0];return o},mHelper:new Oe};function Mo(r,o,n){this.data=r,this.element=o,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(p),this.solidPath="";var g,I=this.masksProperties,b=0,k=[],L,G,x=Xe(),O,F,R,H,M="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(M="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&b===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:at.getProp(this.element,I[m].o,0,.01,this.element),prop:rl.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(M="mask",w="mask",H=at.getProp(this.element,I[m].x,0,null,this.element),T=Xe(),F=At("filter"),F.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),F.appendChild(R),d.appendChild(F),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,H=null),this.storedData[m]={elem:g,x:H,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){G=k.length;var _=At("g");for(L=0;L<G;L+=1)_.appendChild(k[L]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),_.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),k.length=0,k.push(_)}else k.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:at.getProp(this.element,I[m].o,0,.01,this.element),prop:rl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=At(M),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);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)}Mo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Mo.prototype.renderFrame=function(r){var o=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",o.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Mo.prototype.getMaskelement=function(){return this.maskElement},Mo.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Mo.prototype.drawPath=function(r,o,n){var d=" M"+o.v[0][0]+","+o.v[0][1],m,p;for(p=o._length,m=1;m<p;m+=1)d+=" C"+o.o[m-1][0]+","+o.o[m-1][1]+" "+o.i[m][0]+","+o.i[m][1]+" "+o.v[m][0]+","+o.v[m][1];if(o.c&&p>1&&(d+=" C"+o.o[m-1][0]+","+o.o[m-1][1]+" "+o.i[0][0]+","+o.i[0][1]+" "+o.v[0][0]+","+o.v[0][1]),n.lastPath!==d){var g="";n.elem&&(o.c&&(g=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},Mo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Na=function(){var r={};r.createFilter=o,r.createAlphaToLuminanceFilter=n;function o(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),cu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),dl={},hu="filter_result_";function kc(r){var o,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=Xe(),p=Na.createFilter(m,!0),g=0;this.filters=[];var I;for(o=0;o<d;o+=1){I=null;var b=r.data.ef[o].ty;if(dl[b]){var k=dl[b].effect;I=new k(p,r.effectsManager.effectElements[o],r,hu+g,n),n=hu+g,dl[b].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}kc.prototype.renderFrame=function(r){var o,n=this.filters.length;for(o=0;o<n;o+=1)this.filters[o].renderFrame(r)},kc.prototype.getEffects=function(r){var o,n=this.filters.length,d=[];for(o=0;o<n;o+=1)this.filters[o].type===r&&d.push(this.filters[o]);return d};function pI(r,o,n){dl[r]={effect:o,countsAsEffect:n}}function Ma(){}Ma.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var o=null;if(this.data.td){this.matteMasks={};var n=At("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),o=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),o=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=At("clipPath"),m=At("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=Xe();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,o?o.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Mo(this.data,this,this.globalData),this.renderableEffectsManager=new kc(this),this.searchEffectTransforms()},getMatte:function(o){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[o]){var n=this.layerId+"_"+o,d,m,p,g;if(o===1||o===3){var I=At("mask");I.setAttribute("id",n),I.setAttribute("mask-type",o===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!cu.maskType&&o===1&&(I.setAttribute("mask-type","luminance"),d=Xe(),m=Na.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Na.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(o===2){var b=At("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var k=At("g");b.appendChild(k),d=Xe(),m=Na.createFilter(d);var L=At("feComponentTransfer");L.setAttribute("in","SourceGraphic"),m.appendChild(L);var G=At("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),L.appendChild(G),this.globalData.defs.appendChild(m);var x=At("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),cu.maskType||(b.setAttribute("mask-type","luminance"),m.appendChild(Na.createAlphaToLuminanceFilter()),g=At("g"),k.appendChild(x),g.appendChild(this.layerElement),k.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[o]=n}return this.matteMasks[o]},setMatte:function(o){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+o+")")}};function ks(){}ks.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(o){this.hierarchy=o},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function La(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([ll,K(r)],La)})();function Oa(r,o,n){this.assetData=o.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=o.slotManager.getProp(this.assetData)),this.initElement(r,o,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Ui,ws,Ma,ks,Gi,La],Oa),Oa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Oa.prototype.sourceRectAtTime=function(){return this.sourceRect};function ZE(r,o){this.elem=r,this.pos=o}function pu(){}pu.prototype={addShapeToModifiers:function(o){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(o)},isShapeInAnimatedModifiers:function(o){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(o))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var o,n=this.shapes.length;for(o=0;o<n;o+=1)this.shapes[o].sh.reset();n=this.shapeModifiers.length;var d;for(o=n-1;o>=0&&(d=this.shapeModifiers[o].processShapes(this._isFirstFrame),!d);o-=1);}},searchProcessedElement:function(o){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===o)return n[d].pos;d+=1}return 0},addProcessedElement:function(o,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===o){d[m].pos=n;return}d.push(new ZE(o,n))},prepareFrame:function(o){this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)}};var mu={1:"butt",2:"round",3:"square"},uu={1:"miter",2:"round",3:"bevel"};function fu(r,o,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=o,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}fu.prototype.setAsAnimated=function(){this._isAnimated=!0};function vu(r,o){this.data=r,this.type=r.ty,this.d="",this.lvl=o,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}vu.prototype.reset=function(){this.d="",this._mdf=!1};function cl(r,o,n,d){this.elem=r,this.frameId=-1,this.dataProps=tt(o.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",o.length?o.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var m,p=o.length||0,g;for(m=0;m<p;m+=1)g=at.getProp(r,o[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:o[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}cl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var o=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),o=0;o<n;o+=1)this.dataProps[o].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[o].p.v:this.dashArray[o]=this.dataProps[o].p.v:this.dashoffset[0]=this.dataProps[o].p.v}},A([Ie],cl);function gu(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(r,o.o,0,.01,this),this.w=at.getProp(r,o.w,0,null,this),this.d=new cl(r,o.d||{},"svg",this),this.c=at.getProp(r,o.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Ie],gu);function bu(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(r,o.o,0,.01,this),this.c=at.getProp(r,o.c,1,255,this),this.style=n}A([Ie],bu);function yu(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Ie],yu);function Ra(r,o,n){this.data=o,this.c=Z("uint8c",o.p*4);var d=o.k.k[0].s?o.k.k[0].s.length-o.p*4:o.k.k.length-o.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=at.getProp(r,o.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ra.prototype.comparePoints=function(r,o){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[o*4+n*2]),m>.01)return!1;n+=1}return!0},Ra.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,o=this.data.k.k.length;r<o;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ra.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var o,n=this.data.p*4,d,m;for(o=0;o<n;o+=1)d=o%4===0?100:255,m=Math.round(this.prop.v[o]*d),this.c[o]!==m&&(this.c[o]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,o=this.data.p*4;o<n;o+=1)d=o%2===0?100:1,m=o%2===0?Math.round(this.prop.v[o]*100):this.prop.v[o],this.o[o-this.data.p*4]!==m&&(this.o[o-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ie],Ra);function Ns(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,o,n)}Ns.prototype.initGradientData=function(r,o,n){this.o=at.getProp(r,o.o,0,.01,this),this.s=at.getProp(r,o.s,1,null,this),this.e=at.getProp(r,o.e,1,null,this),this.h=at.getProp(r,o.h||{k:0},0,.01,this),this.a=at.getProp(r,o.a||{k:0},0,Nt,this),this.g=new Ra(r,o.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,o),this.setGradientOpacity(o,n),this._isAnimated=!!this._isAnimated},Ns.prototype.setGradientData=function(r,o){var n=Xe(),d=At(o.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=o.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(o.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ns.prototype.setGradientOpacity=function(r,o){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=Xe(),b=Xe();p.setAttribute("id",b);var k=At(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var L=this.stops;for(d=r.g.p*4;d<m;d+=2)n=At("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),L.push(n);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",mu[r.lc||2]),g.setAttribute("stroke-linejoin",uu[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=L,this.maskId=b,o.msElem=g}},A([Ie],Ns);function Eu(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(r,o.w,0,null,this),this.d=new cl(r,o.d||{},"svg",this),this.initGradientData(r,o,n),this._isAnimated=!!this._isAnimated}A([Ns,Ie],Eu);function QE(){this.it=[],this.prevViewData=[],this.gr=At("g")}function JE(r,o,n){this.transform={mProps:r,op:o,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Tu=function(o,n,d,m){if(n===0)return"";var p=o.o,g=o.i,I=o.v,b,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(b=1;b<n;b+=1)k+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[b][0],g[b][1])+" "+m.applyToPointStringified(I[b][0],I[b][1]);return d&&n&&(k+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},tT=function(){var r=new Oe,o=new Oe,n={createRenderFunction:d};function d(G){switch(G.ty){case"fl":return I;case"gf":return k;case"gs":return b;case"st":return L;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(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 p(){}function g(G,x,O){var F,R,H,M,w,T,_=x.styles.length,N=x.lvl,$,U,q,it;for(T=0;T<_;T+=1){if(M=x.sh._mdf||O,x.styles[T].lvl<N){for(U=o.reset(),q=N-x.styles[T].lvl,it=x.transformers.length-1;!M&&q>0;)M=x.transformers[it].mProps._mdf||M,q-=1,it-=1;if(M)for(q=N-x.styles[T].lvl,it=x.transformers.length-1;q>0;)U.multiply(x.transformers[it].mProps.v),q-=1,it-=1}else U=r;if($=x.sh.paths,R=$._length,M){for(H="",F=0;F<R;F+=1)w=$.shapes[F],w&&w._length&&(H+=Tu(w,w._length,w.c,U));x.caches[T]=H}else H=x.caches[T];x.styles[T].d+=G.hd===!0?"":H,x.styles[T]._mdf=M||x.styles[T]._mdf}}function I(G,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){k(G,x,O),L(G,x,O)}function k(G,x,O){var F=x.gf,R=x.g._hasOpacity,H=x.s.v,M=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",_=T==="x1"?"y1":"cy";F.setAttribute(T,H[0]),F.setAttribute(_,H[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,H[0]),x.of.setAttribute(_,H[1]))}var N,$,U,q;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(U=N.length,$=0;$<U;$+=1)q=N[$],q.setAttribute("offset",it[$*4]+"%"),q.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,U=N.length,$=0;$<U;$+=1)q=N[$],x.g._collapsable||q.setAttribute("offset",Tt[$*2]+"%"),q.setAttribute("stop-opacity",Tt[$*2+1])}if(G.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",M[0]),F.setAttribute("y2",M[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",M[0]),x.of.setAttribute("y2",M[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)),F.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)));var st=Math.atan2(M[1]-H[1],M[0]-H[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var ht=ut*St,rt=Math.cos(st+x.a.v)*ht+H[0],C=Math.sin(st+x.a.v)*ht+H[1];F.setAttribute("fx",rt),F.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function L(G,x,O){var F=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(F.pElem.setAttribute("stroke-dasharray",R.dashStr),F.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return n}();function ne(r,o,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,o,n),this.prevViewData=[]}A([Ui,ws,Ma,pu,ks,Gi,La],ne),ne.prototype.initSecondaryElement=function(){},ne.prototype.identityMatrix=new Oe,ne.prototype.buildExpressionInterface=function(){},ne.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ne.prototype.filterUniqueShapes=function(){var r,o=this.shapes.length,n,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<o;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(g.push(n),I=n._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},ne.prototype.setShapesAsAnimated=function(r){var o,n=r.length;for(o=0;o<n;o+=1)r[o].setAsAnimated()},ne.prototype.createStyleElement=function(r,o){var n,d=new vu(r,o),m=d.pElem;if(r.ty==="st")n=new gu(this,r,d);else if(r.ty==="fl")n=new bu(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ns:Eu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new yu(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",mu[r.lc||2]),m.setAttribute("stroke-linejoin",uu[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=wc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},ne.prototype.createGroupElement=function(r){var o=new QE;return r.ln&&o.gr.setAttribute("id",r.ln),r.cl&&o.gr.setAttribute("class",r.cl),r.bm&&(o.gr.style["mix-blend-mode"]=wc(r.bm)),o},ne.prototype.createTransformElement=function(r,o){var n=Ac.getTransformProperty(this,r,this),d=new JE(n,n.o,o);return this.addToAnimatedContents(r,d),d},ne.prototype.createShapeElement=function(r,o,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=rl.getShapeProp(this,r,d,this),p=new fu(o,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ne.prototype.addToAnimatedContents=function(r,o){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===o)return;n+=1}this.animatedContents.push({fn:tT.createRenderFunction(r),element:o,data:r})},ne.prototype.setElementStyles=function(r){var o=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||o.push(this.stylesList[n])},ne.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,o=this.itemsData.length;for(r=0;r<o;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),o=this.dynamicProperties.length,r=0;r<o;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},ne.prototype.searchShapes=function(r,o,n,d,m,p,g){var I=[].concat(p),b,k=r.length-1,L,G,x=[],O=[],F,R,H;for(b=k;b>=0;b-=1){if(H=this.searchProcessedElement(r[b]),H?o[b]=n[H-1]:r[b]._render=g,r[b].ty==="fl"||r[b].ty==="st"||r[b].ty==="gf"||r[b].ty==="gs"||r[b].ty==="no")H?o[b].style.closed=!1:o[b]=this.createStyleElement(r[b],m),r[b]._render&&o[b].style.pElem.parentNode!==d&&d.appendChild(o[b].style.pElem),x.push(o[b].style);else if(r[b].ty==="gr"){if(!H)o[b]=this.createGroupElement(r[b]);else for(G=o[b].it.length,L=0;L<G;L+=1)o[b].prevViewData[L]=o[b].it[L];this.searchShapes(r[b].it,o[b].it,o[b].prevViewData,o[b].gr,m+1,I,g),r[b]._render&&o[b].gr.parentNode!==d&&d.appendChild(o[b].gr)}else r[b].ty==="tr"?(H||(o[b]=this.createTransformElement(r[b],d)),F=o[b].transform,I.push(F)):r[b].ty==="sh"||r[b].ty==="rc"||r[b].ty==="el"||r[b].ty==="sr"?(H||(o[b]=this.createShapeElement(r[b],I,m)),this.setElementStyles(o[b])):r[b].ty==="tm"||r[b].ty==="rd"||r[b].ty==="ms"||r[b].ty==="pb"||r[b].ty==="zz"||r[b].ty==="op"?(H?(R=o[b],R.closed=!1):(R=Bi.getModifier(r[b].ty),R.init(this,r[b]),o[b]=R,this.shapeModifiers.push(R)),O.push(R)):r[b].ty==="rp"&&(H?(R=o[b],R.closed=!0):(R=Bi.getModifier(r[b].ty),o[b]=R,R.init(this,r,b,o),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[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},ne.prototype.renderInnerContent=function(){this.renderModifiers();var r,o=this.stylesList.length;for(r=0;r<o;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<o;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},ne.prototype.renderShape=function(){var r,o=this.animatedContents.length,n;for(r=0;r<o;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},ne.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Nc(r,o,n,d,m,p){this.o=r,this.sw=o,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!o,sc:!!n,fc:!!d,m:!0,p:!0}}Nc.prototype.update=function(r,o,n,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==o&&(this.sw=o,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,g=!0),g};function Be(r,o){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,o.d&&o.d.sid&&(o.d=r.globalData.slotManager.getProp(o.d)),this.data=o,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Be.prototype.defaultBoxWidth=[0,0],Be.prototype.copyData=function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n]);return r},Be.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Be.prototype.searchProperty=function(){return this.searchKeyframes()},Be.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Be.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},Be.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var o=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);o!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Be.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,o=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>o);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Be.prototype.buildFinalText=function(r){for(var o=[],n=0,d=r.length,m,p,g=!1,I=!1,b="";n<d;)g=I,I=!1,m=r.charCodeAt(n),b=r.charAt(n),No.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?No.isRegionalFlag(r,n)?b=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(No.isModifier(m,p)?(b=r.substr(n,2),g=!0):No.isFlagEmoji(r.substr(n,4))?b=r.substr(n,4):b=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),No.isVariationSelector(m)&&(g=!0)):No.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(o[o.length-1]+=b,g=!1):o.push(b),n+=b.length;return o},Be.prototype.completeTextData=function(r){r.__complete=!0;var o=this.elem.globalData.fontManager,n=this.data,d=[],m,p,g,I=0,b,k=n.m.g,L=0,G=0,x=0,O=[],F=0,R=0,H,M,w=o.getFontByName(r.f),T,_=0,N=nu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,U;if(r.sz)for(var q=!0,it=r.sz[0],Tt=r.sz[1],ut,st;q;){st=this.buildFinalText(r.t),ut=0,F=0,p=st.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)U=st[m].charCodeAt(0),g=!1,st[m]===" "?St=m:(U===13||U===3)&&(F=0,g=!0,ut+=r.finalLineHeight||r.finalSize*1.2),o.chars?(T=o.getCharData(st[m],w.fStyle,w.fFamily),_=g?0:T.w*r.finalSize/100):_=o.measureText(st[m],r.f,r.finalSize),F+_>it&&st[m]!==" "?(St===-1?p+=1:m=St,ut+=r.finalLineHeight||r.finalSize*1.2,st.splice(m,St===m?1:0,"\r"),St=-1,F=0):(F+=_,F+=$);ut+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ut?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=st,p=r.finalText.length,q=!1)}F=-$,_=0;var ht=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],U=rt.charCodeAt(0),U===13||U===3?(ht=0,O.push(F),R=F>R?F:R,F=-2*$,b="",g=!0,x+=1):b=rt,o.chars?(T=o.getCharData(rt,w.fStyle,o.getFontByName(r.f).fFamily),_=g?0:T.w*r.finalSize/100):_=o.measureText(b,r.f,r.finalSize),rt===" "?ht+=_+$:(F+=_+$+ht,ht=0),d.push({l:_,an:_,add:L,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),k==2){if(L+=_,b===""||b===" "||m===p-1){for((b===""||b===" ")&&(L-=_);G<=m;)d[G].an=L,d[G].ind=I,d[G].extra=_,G+=1;I+=1,L=0}}else if(k==3){if(L+=_,b===""||m===p-1){for(b===""&&(L-=_);G<=m;)d[G].an=L,d[G].ind=I,d[G].extra=_,G+=1;L=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=F>R?F:R,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var C=n.a,D,v;M=C.length;var E,Y,V=[];for(H=0;H<M;H+=1){for(D=C[H],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),Y=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[H]=Y,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(Y),Y+=1);n.a[H].s.totalChars=Y;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[H]&&(ct=v.anIndexes[H],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[H]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},Be.prototype.updateDocumentData=function(r,o){o=o===void 0?this.keysIndex:o;var n=this.copyData({},this.data.d.k[o].s);n=this.copyData(n,r),this.data.d.k[o].s=n,this.recalculate(o),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Be.prototype.recalculate=function(r){var o=this.data.d.k[r].s;o.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(o)},Be.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Be.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var eT=function(){var r=Math.max,o=Math.min,n=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=at.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=at.getProp(p,g.e,0,0,this):this.e={v:100},this.o=at.getProp(p,g.o||{k:0},0,0,this),this.xe=at.getProp(p,g.xe||{k:0},0,0,this),this.ne=at.getProp(p,g.ne||{k:0},0,0,this),this.sm=at.getProp(p,g.sm||{k:100},0,0,this),this.a=at.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,b=0,k=1,L=1;this.ne.v>0?I=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:L=1+this.xe.v/100;var G=Aa.getBezierEasing(I,b,k,L).get,x=0,O=this.finalS,F=this.finalE,R=this.data.sh;if(R===2)F===O?x=g>=F?1:0:x=r(0,o(.5/(F-O)+(g-O)/(F-O),1)),x=G(x);else if(R===3)F===O?x=g>=F?0:1:x=1-r(0,o(.5/(F-O)+(g-O)/(F-O),1)),x=G(x);else if(R===4)F===O?x=0:(x=r(0,o(.5/(F-O)+(g-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(F===O)x=0;else{var H=F-O;g=o(r(0,g+.5-O),F-O);var M=-H/2+g,w=H/2;x=Math.sqrt(1-M*M/(w*w))}x=G(x)}else R===6?(F===O?x=0:(g=o(r(0,g+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(F-O)))/2),x=G(x)):(g>=n(O)&&(g-O<0?x=r(0,o(o(F,1)-(O-g),1)):x=r(0,o(F-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var _=.5-T*.5;x<_?x=0:(x=(x-_)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/I,k=this.s.v/I+b,L=this.e.v/I+b;if(k>L){var G=k;k=L,L=G}this.finalS=k,this.finalE=L}},A([Ie],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function rT(r,o,n){var d={propType:!1},m=at.getProp,p=o.a;this.a={r:p.r?m(r,p.r,0,Nt,n):d,rx:p.rx?m(r,p.rx,0,Nt,n):d,ry:p.ry?m(r,p.ry,0,Nt,n):d,sk:p.sk?m(r,p.sk,0,Nt,n):d,sa:p.sa?m(r,p.sa,0,Nt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=eT.getTextSelectorProp(r,o.s,n),this.s.t=o.s.t}function Lo(r,o,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=o,this._elem=n,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Lo.prototype.searchProperties=function(){var r,o=this._textData.a.length,n,d=at.getProp;for(r=0;r<o;r+=1)n=this._textData.a[r],this._animatorsData[r]=new rT(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)},Lo.prototype.getMeasures=function(r,o){if(this.lettersChangedFlag=o,!(!this._mdf&&!this._isFirstFrame&&!o&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,b,k,L,G,x=r.l,O,F,R,H,M,w,T,_,N,$,U,q,it,Tt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var St;for(q=0,L=0;L<G;L+=1)St=Kr.buildBezierData(st.v[L],st.v[L+1],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[L+1][0]-st.v[L+1][0],st.i[L+1][1]-st.v[L+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength;L=G,ut.v.c&&(St=Kr.buildBezierData(st.v[L],st.v[0],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,H=0,M=!0,$=O.segments,F<0&&ut.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,_=N[w-1],R=N[w],U=R.partialLength}G=x.length,b=0,k=0;var ht=r.finalSize*1.2*.714,rt=!0,C,D,v,E,Y;E=d.length;var V,ct=-1,gt,xt,Pt,Ft=F,me=T,Qe=w,Yr=-1,Je,_e,hr,Wt,pt,fi,Yi,vi,jr="",gi=this.defaultPropsArray,bi;if(r.j===2||r.j===1){var tr=0,ji=0,qi=r.j===2?-.5:-1,Rr=0,Xi=!0;for(L=0;L<G;L+=1)if(x[L].n){for(tr&&(tr+=ji);Rr<L;)x[Rr].animatorJustifyOffset=tr,Rr+=1;tr=0,Xi=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(Xi&&r.j===2&&(ji+=C.t.v*qi),D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?tr+=C.t.v*V[0]*qi:tr+=C.t.v*V*qi);Xi=!1}for(tr&&(tr+=ji);Rr<L;)x[Rr].animatorJustifyOffset=tr,Rr+=1}for(L=0;L<G;L+=1){if(p.reset(),Je=1,x[L].n)b=0,k+=r.yOffset,k+=rt?1:0,F=Ft,rt=!1,this._hasMaskedPath&&(T=me,w=Qe,N=$[T].points,_=N[w-1],R=N[w],U=R.partialLength,H=0),jr="",vi="",fi="",bi="",gi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Yr!==x[L].line){switch(r.j){case 1:F+=q-r.lineWidths[x[L].line];break;case 2:F+=(q-r.lineWidths[x[L].line])/2;break;default:break}Yr=x[L].line}ct!==x[L].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[L].an/2,ct=x[L].ind),F+=n[0]*x[L].an*.005;var Dr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Dr+=C.p.v[0]*V[0]:Dr+=C.p.v[0]*V),C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Dr+=C.a.v[0]*V[0]:Dr+=C.a.v[0]*V);for(M=!0,this._pathData.a.v&&(F=x[0].an*.5+(q-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(G-1),F+=this._pathData.f.v);M;)H+U>=F+Dr||!N?(it=(F+Dr-H)/R.partialLength,xt=_.point[0]+(R.point[0]-_.point[0])*it,Pt=_.point[1]+(R.point[1]-_.point[1])*it,p.translate(-n[0]*x[L].an*.005,-(n[1]*ht)*.01),M=!1):N&&(H+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ut.v.c?(w=0,T=0,N=$[T].points):(H-=R.partialLength,N=null)),N&&(_=R,R=N[w],U=R.partialLength));gt=x[L].an/2-x[L].add,p.translate(-gt,0,0)}else gt=x[L].an/2-x[L].add,p.translate(-gt,0,0),p.translate(-n[0]*x[L].an*.005,-n[1]*ht*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),(b!==0||r.j!==0)&&(this._hasMaskedPath?V.length?F+=C.t.v*V[0]:F+=C.t.v*V:V.length?b+=C.t.v*V[0]:b+=C.t.v*V));for(r.strokeWidthAnim&&(hr=r.sw||0),r.strokeColorAnim&&(r.sc?_e=[r.sc[0],r.sc[1],r.sc[2]]:_e=[0,0,0]),r.fillColorAnim&&r.fc&&(Wt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-C.a.v[0]*V[0],-C.a.v[1]*V[1],C.a.v[2]*V[2]):p.translate(-C.a.v[0]*V,-C.a.v[1]*V,C.a.v[2]*V));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(C.s.v[0]-1)*V[0],1+(C.s.v[1]-1)*V[1],1):p.scale(1+(C.s.v[0]-1)*V,1+(C.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(C=d[v].a,D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),C.sk.propType&&(V.length?p.skewFromAxis(-C.sk.v*V[0],C.sa.v*V[1]):p.skewFromAxis(-C.sk.v*V,C.sa.v*V)),C.r.propType&&(V.length?p.rotateZ(-C.r.v*V[2]):p.rotateZ(-C.r.v*V)),C.ry.propType&&(V.length?p.rotateY(C.ry.v*V[1]):p.rotateY(C.ry.v*V)),C.rx.propType&&(V.length?p.rotateX(C.rx.v*V[0]):p.rotateX(C.rx.v*V)),C.o.propType&&(V.length?Je+=(C.o.v*V[0]-Je)*V[0]:Je+=(C.o.v*V-Je)*V),r.strokeWidthAnim&&C.sw.propType&&(V.length?hr+=C.sw.v*V[0]:hr+=C.sw.v*V),r.strokeColorAnim&&C.sc.propType)for(pt=0;pt<3;pt+=1)V.length?_e[pt]+=(C.sc.v[pt]-_e[pt])*V[0]:_e[pt]+=(C.sc.v[pt]-_e[pt])*V;if(r.fillColorAnim&&r.fc){if(C.fc.propType)for(pt=0;pt<3;pt+=1)V.length?Wt[pt]+=(C.fc.v[pt]-Wt[pt])*V[0]:Wt[pt]+=(C.fc.v[pt]-Wt[pt])*V;C.fh.propType&&(V.length?Wt=Rm(Wt,C.fh.v*V[0]):Wt=Rm(Wt,C.fh.v*V)),C.fs.propType&&(V.length?Wt=Lm(Wt,C.fs.v*V[0]):Wt=Lm(Wt,C.fs.v*V)),C.fb.propType&&(V.length?Wt=Om(Wt,C.fb.v*V[0]):Wt=Om(Wt,C.fb.v*V))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,C.p.v[1]*V[0],-C.p.v[2]*V[1]):p.translate(0,C.p.v[1]*V,-C.p.v[2]*V):V.length?p.translate(C.p.v[0]*V[0],C.p.v[1]*V[1],-C.p.v[2]*V[2]):p.translate(C.p.v[0]*V,C.p.v[1]*V,-C.p.v[2]*V));if(r.strokeWidthAnim&&(fi=hr<0?0:hr),r.strokeColorAnim&&(Yi="rgb("+Math.round(_e[0]*255)+","+Math.round(_e[1]*255)+","+Math.round(_e[2]*255)+")"),r.fillColorAnim&&r.fc&&(vi="rgb("+Math.round(Wt[0]*255)+","+Math.round(Wt[1]*255)+","+Math.round(Wt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,n[1]*ht*.01+k,0),this._pathData.p.v){Tt=(R.point[1]-_.point[1])/(R.point[0]-_.point[0]);var Oo=Math.atan(Tt)*180/Math.PI;R.point[0]<_.point[0]&&(Oo+=180),p.rotate(-Oo*Math.PI/180)}p.translate(xt,Pt,0),F-=n[0]*x[L].an*.005,x[L+1]&&ct!==x[L+1].ind&&(F+=x[L].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(b,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line]),0,0);break;case 2:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(n[0]*x[L].an*.005,n[1]*ht*.01,0),b+=x[L].l+r.tr*.001*r.finalSize}g==="html"?jr=p.toCSS():g==="svg"?jr=p.to2dCSS():gi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],bi=Je}I<=L?(Y=new Nc(bi,fi,Yi,vi,jr,gi),this.renderedLetters.push(Y),I+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[L],this.lettersChangedFlag=Y.update(bi,fi,Yi,vi,jr,gi)||this.lettersChangedFlag)}}},Lo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Lo.prototype.mHelper=new Oe,Lo.prototype.defaultPropsArray=[],A([Ie],Lo);function xr(){}xr.prototype.initElement=function(r,o,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,o,n),this.textProperty=new Be(this,r.t,this.dynamicProperties),this.textAnimator=new Lo(r.t,this.renderType,this),this.initTransform(r,o,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},xr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},xr.prototype.createPathShape=function(r,o){var n,d=o.length,m,p="";for(n=0;n<d;n+=1)o[n].ty==="sh"&&(m=o[n].ks.k,p+=Tu(m,m.i.length,!0,r));return p},xr.prototype.updateDocumentData=function(r,o){this.textProperty.updateDocumentData(r,o)},xr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},xr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},xr.prototype.applyTextPropertiesToMatrix=function(r,o,n,d,m){switch(r.ps&&o.translate(r.ps[0],r.ps[1]+r.ascent,0),o.translate(0,-r.ls,0),r.j){case 1:o.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n]),0,0);break;case 2:o.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}o.translate(d,m,0)},xr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},xr.prototype.emptyProp=new Nc,xr.prototype.destroy=function(){},xr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var iT={shapes:[]};function mi(r,o,n){this.textSpans=[],this.renderType="svg",this.initElement(r,o,n)}A([Ui,ws,Ma,ks,Gi,La,xr],mi),mi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},mi.prototype.buildTextContents=function(r){for(var o=0,n=r.length,d=[],m="";o<n;)r[o]==="\r"||r[o]===""?(d.push(m),m=""):m+=r[o],o+=1;return d.push(m),d},mi.prototype.buildShapeData=function(r,o){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=o,d.s.k[1]=o)}}return r},mi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,o,n=this.textProperty.currentData;this.renderedLetters=tt(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],I=!!this.globalData.fontManager.chars;o=g.length;var b,k=this.mHelper,L="",G=this.data.singleShape,x=0,O=0,F=!0,R=n.tr*.001*n.finalSize;if(G&&!I&&!n.sz){var H=this.textContainer,M="start";switch(n.j){case 1:M="end";break;case 2:M="middle";break;default:M="start";break}H.setAttribute("text-anchor",M),H.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(o=w.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<o;r+=1)b=this.textSpans[r].span||At("tspan"),b.textContent=w[r],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",H.appendChild(b),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(H)}else{var T=this.textSpans.length,_;for(r=0;r<o;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!G||r===0){if(b=T>r?this.textSpans[r].span:At(I?"g":"text"),T<=r){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=b,I){var N=At("g");b.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(k.reset(),G&&(g[r].n&&(x=-R,O+=n.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(n,k,g[r].line,x,O),x+=g[r].l||0,x+=R),I){_=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(_.t===1)$=new Da(_.data,this.globalData,this);else{var U=iT;_.data&&_.data.shapes&&(U=this.buildShapeData(_.data,n.finalSize)),$=new ne(U,this.globalData,this)}if(this.textSpans[r].glyph){var q=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(q.layerElement),q.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),_.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),b.textContent=g[r].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",L)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},mi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},mi.prototype.getValue=function(){var r,o=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<o;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},mi.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,o,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;o=d.length;var m,p,g;for(r=0;r<o;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Mc(r,o,n){this.initElement(r,o,n)}A([Oa],Mc),Mc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Wi(r,o,n){this.initFrame(),this.initBaseData(r,o,n),this.initFrame(),this.initTransform(r,o,n),this.initHierarchy()}Wi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Wi.prototype.renderFrame=function(){},Wi.prototype.getBaseElement=function(){return null},Wi.prototype.destroy=function(){},Wi.prototype.sourceRectAtTime=function(){},Wi.prototype.hide=function(){},A([Ui,ws,ks,Gi],Wi);function Ee(){}A([Re],Ee),Ee.prototype.createNull=function(r){return new Wi(r,this.globalData,this)},Ee.prototype.createShape=function(r){return new ne(r,this.globalData,this)},Ee.prototype.createText=function(r){return new mi(r,this.globalData,this)},Ee.prototype.createImage=function(r){return new Oa(r,this.globalData,this)},Ee.prototype.createSolid=function(r){return new Mc(r,this.globalData,this)},Ee.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var o=this.globalData.defs;this.setupGlobalData(r,o),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var n=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=Xe();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),o.appendChild(n),this.layers=r.layers,this.elements=tt(r.layers.length)},Ee.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,o=this.layers?this.layers.length:0;for(r=0;r<o;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ee.prototype.updateContainerSize=function(){},Ee.prototype.findIndexByInd=function(r){var o=0,n=this.layers.length;for(o=0;o<n;o+=1)if(this.layers[o].ind===r)return o;return-1},Ee.prototype.buildItem=function(r){var o=this.elements;if(!(o[r]||this.layers[r].ty===99)){o[r]=!0;var n=this.createItem(this.layers[r]);if(o[r]=n,qn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=o[d],p=m.getMatte(this.layers[r].tt);n.setMatte(p)}}}},Ee.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var o=0,n=this.elements.length;o<n;){if(this.elements[o]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):o-1,m=this.elements[d],p=m.getMatte(this.layers[o].tt);r.setMatte(p);break}o+=1}}},Ee.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var o,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),o=n-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].prepareFrame(r-this.layers[o].st);if(this.globalData._mdf)for(o=0;o<n;o+=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()}},Ee.prototype.appendElementInPos=function(r,o){var n=r.getBaseElement();if(n){for(var d=0,m;d<o;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Ee.prototype.hide=function(){this.layerElement.style.display="none"},Ee.prototype.show=function(){this.layerElement.style.display="block"};function ui(){}A([Ui,ws,ks,Gi,La],ui),ui.prototype.initElement=function(r,o,n){this.initFrame(),this.initBaseData(r,o,n),this.initTransform(r,o,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!o.progressiveLoad)&&this.buildAllItems(),this.hide()},ui.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var o=this.tm.v;o===this.data.op&&(o=this.data.op-1),this.renderedFrame=o}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))}},ui.prototype.renderInnerContent=function(){var r,o=this.layers.length;for(r=0;r<o;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},ui.prototype.setElements=function(r){this.elements=r},ui.prototype.getElements=function(){return this.elements},ui.prototype.destroyElements=function(){var r,o=this.layers.length;for(r=0;r<o;r+=1)this.elements[r]&&this.elements[r].destroy()},ui.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Da(r,o,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(r,o,n),this.tm=r.tm?at.getProp(this,r.tm,0,o.frameRate,this):{_placeholder:!0}}A([Ee,ui,Ma],Da),Da.prototype.createComp=function(r){return new Da(r,this.globalData,this)};function Lc(r,o){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var n="";if(o&&o.title){var d=At("title"),m=Xe();d.setAttribute("id",m),d.textContent=o.title,this.svgElement.appendChild(d),n+=m}if(o&&o.description){var p=At("desc"),g=Xe();p.setAttribute("id",g),p.textContent=o.description,this.svgElement.appendChild(p),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=At("defs");this.svgElement.appendChild(I);var b=At("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:o&&o.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:o&&o.contentVisibility||"visible",progressiveLoad:o&&o.progressiveLoad||!1,hideOnTransparent:!(o&&o.hideOnTransparent===!1),viewBoxOnly:o&&o.viewBoxOnly||!1,viewBoxSize:o&&o.viewBoxSize||!1,className:o&&o.className||"",id:o&&o.id||"",focusable:o&&o.focusable,filterSize:{width:o&&o.filterSize&&o.filterSize.width||"100%",height:o&&o.filterSize&&o.filterSize.height||"100%",x:o&&o.filterSize&&o.filterSize.x||"0%",y:o&&o.filterSize&&o.filterSize.y||"0%"},width:o&&o.width,height:o&&o.height,runExpressions:!o||o.runExpressions===void 0||o.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ee],Lc),Lc.prototype.createComp=function(r){return new Da(r,this.globalData,this)},mE("svg",Lc),Bi.registerModifier("tm",Or),Bi.registerModifier("pb",Sa),Bi.registerModifier("rp",Wr),Bi.registerModifier("rd",Ia),Bi.registerModifier("zz",Ca),Bi.registerModifier("op",wa),Ht})});var ul=globalThis,fl=ul.ShadowRoot&&(ul.ShadyCSS===void 0||ul.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rc=Symbol(),Au=new WeakMap,Pa=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==Rc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(fl&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=Au.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Au.set(t,i))}return i}toString(){return this.cssText}},Su=a=>new Pa(typeof a=="string"?a:a+"",void 0,Rc),B=(a,...i)=>{let t=a.length===1?a[0]:i.reduce((e,s,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[l+1],a[0]);return new Pa(t,a,Rc)},Dc=(a,i)=>{if(fl)a.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),s=ul.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,a.appendChild(e)}},vl=fl?a=>a:a=>a instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Su(t)})(a):a;var{is:hT,defineProperty:pT,getOwnPropertyDescriptor:mT,getOwnPropertyNames:uT,getOwnPropertySymbols:fT,getPrototypeOf:vT}=Object,Zi=globalThis,Iu=Zi.trustedTypes,gT=Iu?Iu.emptyScript:"",Pc=Zi.reactiveElementPolyfillSupport,Fa=(a,i)=>a,$a={toAttribute(a,i){switch(i){case Boolean:a=a?gT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,i){let t=a;switch(i){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},gl=(a,i)=>!hT(a,i),_u={attribute:!0,type:String,converter:$a,reflect:!1,hasChanged:gl},Cu,wu;(Cu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(wu=Zi.litPropertyMetadata)!=null||(Zi.litPropertyMetadata=new WeakMap);var yi=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=_u){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(i,e,t);s!==void 0&&pT(this.prototype,i,s)}}static getPropertyDescriptor(i,t,e){var c;let{get:s,set:l}=(c=mT(this.prototype,i))!=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(i,y,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:_u}static _$Ei(){if(this.hasOwnProperty(Fa("elementProperties")))return;let i=vT(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Fa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fa("properties"))){let t=this.properties,e=[...uT(t),...fT(t)];for(let s of e)this.createProperty(s,t[s])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let s of e)t.unshift(vl(s))}else i!==void 0&&t.push(vl(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Dc(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var l;let e=this.constructor.elementProperties.get(i),s=this.constructor._$Eu(i,e);if(s!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:$a).toAttribute(t,e.type);this._$Em=i,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(i,t){var l;let e=this.constructor,s=e._$Eh.get(i);if(s!==void 0&&this._$Em!==s){let c=e.getPropertyOptions(s),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:$a;this._$Em=s,this[s]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(i,t,e){var s;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((s=e.hasChanged)!=null?s:gl)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var s;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(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 i=!1,this._$EU(),l}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostUpdated)==null?void 0:s.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},ku;yi.elementStyles=[],yi.shadowRootOptions={mode:"open"},yi[Fa("elementProperties")]=new Map,yi[Fa("finalized")]=new Map,Pc==null||Pc({ReactiveElement:yi}),((ku=Zi.reactiveElementVersions)!=null?ku:Zi.reactiveElementVersions=[]).push("2.0.4");var za=globalThis,bl=za.trustedTypes,Nu=bl?bl.createPolicy("lit-html",{createHTML:a=>a}):void 0,Vc="$lit$",Ei=`lit$${Math.random().toFixed(9).slice(2)}$`,zc="?"+Ei,bT=`<${zc}>`,Po=document,Ba=()=>Po.createComment(""),Ha=a=>a===null||typeof a!="object"&&typeof a!="function",Bc=Array.isArray,Fu=a=>Bc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Fc=`[
|
|
3
|
-
\f\r]`,Va=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mu=/-->/g,Lu=/>/g,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ou=/'/g,Ru=/"/g,$u=/^(?:script|style|textarea|title)$/i,Hc=a=>(i,...t)=>({_$litType$:a,strings:i,values:t}),S=Hc(1),bI=Hc(2),yI=Hc(3),De=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Du=new WeakMap,Do=Po.createTreeWalker(Po,129);function Vu(a,i){if(!Bc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nu!==void 0?Nu.createHTML(i):i}var zu=(a,i)=>{let t=a.length-1,e=[],s,l=i===2?"<svg>":i===3?"<math>":"",c=Va;for(let f=0;f<t;f++){let y=a[f],A,P,K=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,P=c.exec(y),P!==null);)Q=c.lastIndex,c===Va?P[1]==="!--"?c=Mu:P[1]!==void 0?c=Lu:P[2]!==void 0?($u.test(P[2])&&(s=RegExp("</"+P[2],"g")),c=Ro):P[3]!==void 0&&(c=Ro):c===Ro?P[0]===">"?(c=s!=null?s:Va,K=-1):P[1]===void 0?K=-2:(K=c.lastIndex-P[2].length,A=P[1],c=P[3]===void 0?Ro:P[3]==='"'?Ru:Ou):c===Ru||c===Ou?c=Ro:c===Mu||c===Lu?c=Va:(c=Ro,s=void 0);let Z=c===Ro&&a[f+1].startsWith("/>")?" ":"";l+=c===Va?y+bT:K>=0?(e.push(A),y.slice(0,K)+Vc+y.slice(K)+Ei+Z):y+Ei+(K===-2?f:Z)}return[Vu(a,l+(a[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),e]},Ua=class a{constructor({strings:i,_$litType$:t},e){let s;this.parts=[];let l=0,c=0,f=i.length-1,y=this.parts,[A,P]=zu(i,t);if(this.el=a.createElement(A,e),Do.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(s=Do.nextNode())!==null&&y.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let K of s.getAttributeNames())if(K.endsWith(Vc)){let Q=P[c++],Z=s.getAttribute(K).split(Ei),tt=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:tt[2],strings:Z,ctor:tt[1]==="."?El:tt[1]==="?"?Tl:tt[1]==="@"?xl:$o}),s.removeAttribute(K)}else K.startsWith(Ei)&&(y.push({type:6,index:l}),s.removeAttribute(K));if($u.test(s.tagName)){let K=s.textContent.split(Ei),Q=K.length-1;if(Q>0){s.textContent=bl?bl.emptyScript:"";for(let Z=0;Z<Q;Z++)s.append(K[Z],Ba()),Do.nextNode(),y.push({type:2,index:++l});s.append(K[Q],Ba())}}}else if(s.nodeType===8)if(s.data===zc)y.push({type:2,index:l});else{let K=-1;for(;(K=s.data.indexOf(Ei,K+1))!==-1;)y.push({type:7,index:l}),K+=Ei.length-1}l++}}static createElement(i,t){let e=Po.createElement("template");return e.innerHTML=i,e}};function Fo(a,i,t=a,e){var c,f,y;if(i===De)return i;let s=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Ha(i)?void 0:i._$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,e)),e!==void 0?((y=t.o)!=null?y:t.o=[])[e]=s:t.l=s),s!==void 0&&(i=Fo(a,s._$AS(a,i.values),s,e)),i}var yl=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var A;let{el:{content:t},parts:e}=this._$AD,s=((A=i==null?void 0:i.creationScope)!=null?A:Po).importNode(t,!0);Do.currentNode=s;let l=Do.nextNode(),c=0,f=0,y=e[0];for(;y!==void 0;){if(c===y.index){let P;y.type===2?P=new Ms(l,l.nextSibling,this,i):y.type===1?P=new y.ctor(l,y.name,y.strings,this,i):y.type===6&&(P=new Al(l,this,i)),this._$AV.push(P),y=e[++f]}c!==(y==null?void 0:y.index)&&(l=Do.nextNode(),c++)}return Do.currentNode=Po,s}p(i){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(i,e,t),t+=e.strings.length-2):e._$AI(i[t])),t++}},Ms=class a{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,e,s){var l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=e,this.options=s,this.v=(l=s==null?void 0:s.isConnected)!=null?l:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=Fo(this,i,t),Ha(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==De&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Fu(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==W&&Ha(this._$AH)?this._$AA.nextSibling.data=i:this.T(Po.createTextNode(i)),this._$AH=i}$(i){var l;let{values:t,_$litType$:e}=i,s=typeof e=="number"?this._$AC(i):(e.el===void 0&&(e.el=Ua.createElement(Vu(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===s)this._$AH.p(t);else{let c=new yl(s,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(i){let t=Du.get(i.strings);return t===void 0&&Du.set(i.strings,t=new Ua(i)),t}k(i){Bc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of i)s===t.length?t.push(e=new a(this.O(Ba()),this.O(Ba()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(i=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);i&&i!==this._$AB;){let s=i.nextSibling;i.remove(),i=s}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},$o=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,e,s,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(i,t=this,e,s){let l=this.strings,c=!1;if(l===void 0)i=Fo(this,i,t,0),c=!Ha(i)||i!==this._$AH&&i!==De,c&&(this._$AH=i);else{let f=i,y,A;for(i=l[0],y=0;y<l.length-1;y++)A=Fo(this,f[e+y],t,y),A===De&&(A=this._$AH[y]),c||(c=!Ha(A)||A!==this._$AH[y]),A===W?i=W:i!==W&&(i+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!s&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},El=class extends $o{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},Tl=class extends $o{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},xl=class extends $o{constructor(i,t,e,s,l){super(i,t,e,s,l),this.type=5}_$AI(i,t=this){var c;if((i=(c=Fo(this,i,t,0))!=null?c:W)===De)return;let e=this._$AH,s=i===W&&e!==W||i.capture!==e.capture||i.once!==e.once||i.passive!==e.passive,l=i!==W&&(e===W||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,i):this._$AH.handleEvent(i)}},Al=class{constructor(i,t,e){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(i){Fo(this,i)}},Bu={M:Vc,P:Ei,A:zc,C:1,L:zu,R:yl,D:Fu,V:Fo,I:Ms,H:$o,N:Tl,U:xl,B:El,F:Al},$c=za.litHtmlPolyfillSupport,Pu;$c==null||$c(Ua,Ms),((Pu=za.litHtmlVersions)!=null?Pu:za.litHtmlVersions=[]).push("3.2.0");var Hu=(a,i,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:i,s=e._$litPart$;if(s===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=s=new Ms(i.insertBefore(Ba(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var Qi=class extends yi{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=Hu(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return De}},Uu;Qi._$litElement$=!0,Qi.finalized=!0,(Uu=globalThis.litElementHydrateSupport)==null||Uu.call(globalThis,{LitElement:Qi});var Uc=globalThis.litElementPolyfillSupport;Uc==null||Uc({LitElement:Qi});var Gu;((Gu=globalThis.litElementVersions)!=null?Gu:globalThis.litElementVersions=[]).push("4.1.0");var yT={attribute:!0,type:String,converter:$a,reflect:!1,hasChanged:gl},ET=(a=yT,i,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let y=i.get.call(this);i.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let y=this[c];i.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(i,t)=>typeof t=="object"?ET(a,i,t):((e,s,l)=>{let c=s.hasOwnProperty(l);return s.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(s,l):void 0})(a,i,t)}function nt(a){return u({...a,state:!0,attribute:!1})}function Ku(a){return(i,t)=>{let e=typeof i=="function"?i:i[t];Object.assign(e,a)}}var qr=(a,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(a,i,t),t);function Ut(a,i){return(t,e,s)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(i){let{get:c,set:f}=typeof e=="object"?t:s!=null?s:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return qr(t,e,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return qr(t,e,{get(){return l(this)}})}}var Gc;function Wu(a){return(i,t)=>qr(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:Gc!=null?Gc:Gc=document.createDocumentFragment()).querySelectorAll(a)}})}function Gt(a){return(i,t)=>{let{slot:e,selector:s}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return qr(i,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return s===void 0?f:f.filter(P=>P.matches(s))}})}}function Yu(a){return(i,t)=>{let{slot:e}=a!=null?a:{},s="slot"+(e?`[name=${e}]`:":not([name])");return qr(i,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 TT={PREFIX:"mdc",SEPARATOR:"-"},xT={NAMESPACE:TT},Kc=xT;var AT=a=>[Kc.NAMESPACE.PREFIX,a].join(Kc.NAMESPACE.SEPARATOR),z={constructTagName:AT};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var ju=z.constructTagName("buttonsimple"),Vo={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},Ls={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ga={SIZE:Vo[32],TYPE:Ls.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ti=z.constructTagName("button"),Vt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ka={40:40,32:32,28:28,24:24},Ar={64:64,52:52,20:20,...Ka},zo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Os={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},er={VARIANT:Vt.PRIMARY,SIZE:Ka[32],COLOR:zo.DEFAULT,TYPE_INTERNAL:Os.ICON,TYPE:Ls.BUTTON,INVERTED:!1};var Sl=a=>{class i extends a{constructor(){super(...arguments);this.variant=er.VARIANT;this.color=er.COLOR;this.typeInternal=er.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(Vt).includes(s)?s:er.VARIANT)}setColor(s){!Object.values(zo).includes(s)||this.variant===Vt.TERTIARY?this.setAttribute("color",`${er.COLOR}`):this.setAttribute("color",s)}setSize(s){let c=this.typeInternal===Os.ICON?Object.values(Ar).includes(s)&&!(s===Ar[20]&&this.variant!==Vt.TERTIARY):Object.values(Ka).includes(s);this.setAttribute("size",c?`${s}`:`${er.SIZE}`)}inferButtonType(){var A,P,K,Q,Z,tt;let s=(P=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:P.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,l=(Q=(K=this.shadowRoot)==null?void 0:K.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=(tt=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,y=this.postfixIcon||f&&f>0;s&&(c||y)?(this.typeInternal=Os.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(c||y)?(this.typeInternal=Os.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Os.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),h([u({type:String})],i.prototype,"variant",2),h([u({type:String})],i.prototype,"color",2),h([nt()],i.prototype,"typeInternal",2),i};var qu=B`
|
|
1
|
+
"use strict";(()=>{var oT=Object.create;var Oc=Object.defineProperty;var xu=Object.getOwnPropertyDescriptor;var sT=Object.getOwnPropertyNames;var aT=Object.getPrototypeOf,nT=Object.prototype.hasOwnProperty;var lT=(a,i)=>()=>(i||a((i={exports:{}}).exports,i),i.exports);var dT=(a,i,t,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let s of sT(i))!nT.call(a,s)&&s!==t&&Oc(a,s,{get:()=>i[s],enumerable:!(e=xu(i,s))||e.enumerable});return a};var cT=(a,i,t)=>(t=a!=null?oT(aT(a)):{},dT(i||!a||!a.__esModule?Oc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,i,t,e)=>{for(var s=e>1?void 0:e?xu(i,t):i,l=a.length-1,c;l>=0;l--)(c=a[l])&&(s=(e?c(i,t,s):c(s))||s);return e&&s&&Oc(i,t,s),s};var Of=lT((tn,Bl)=>{typeof navigator<"u"&&function(a,i){typeof tn=="object"&&typeof Bl<"u"?Bl.exports=i():typeof define=="function"&&define.amd?define(i):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=i())}(tn,function(){"use strict";var a="http://www.w3.org/2000/svg",i="",t=!1,e=-999999,s=function(o){t=!!o},l=function(){return t},c=function(o){i=o},f=function(){return i};function y(r){return document.createElement(r)}function A(r,o){var n,d=r.length,m;for(n=0;n<d;n+=1){m=r[n].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(o.prototype[p]=m[p])}}function P(r,o){return Object.getOwnPropertyDescriptor(r,o)}function K(r){function o(){}return o.prototype=r,o}var Q=function(){function r(o){this.audios=[],this.audioFactory=o,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),Z=function(){function r(n,d){var m=0,p=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(m=0;m<d;m+=1)p.push(g);return p}function o(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):r(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?o:r}();function tt(r){return Array.apply(null,{length:r})}function lt(r){"@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(r)}var dt=!0,ft=null,It=null,wt="",qt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Kt=!1,Xt=Math.pow,$t=Math.sqrt,ae=Math.floor,cr=Math.max,Me=Math.min,je={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],o,n=r.length;for(o=0;o<n;o+=1)je[r[o]]=Math[r[o]]})();function ze(){return{}}je.random=Math.random,je.abs=function(r){var o=lt(r);if(o==="object"&&r.length){var n=tt(r.length),d,m=r.length;for(d=0;d<m;d+=1)n[d]=Math.abs(r[d]);return n}return Math.abs(r)};var qe=150,Nt=Math.PI/180,he=.5519;function gr(r){Kt=!!r}function br(r){return Kt?Math.round(r):r}function yr(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function Er(r,o,n,d){this.type=r,this.currentTime=o,this.totalTime=n,this.direction=d<0?-1:1}function jn(r,o){this.type=r,this.direction=o<0?-1:1}function km(r,o,n,d){this.type=r,this.currentLoop=n,this.totalLoops=o,this.direction=d<0?-1:1}function Nm(r,o,n){this.type=r,this.firstFrame=o,this.totalFrames=n}function Mm(r,o){this.type=r,this.target=o}function oE(r,o){this.type="renderFrameError",this.nativeError=r,this.currentTime=o}function sE(r){this.type="configError",this.nativeError=r}function lI(r,o){this.type=r,this.nativeError=o}var Xe=function(){var r=0;return function(){return r+=1,wt+"__lottie_element_"+r}}();function Ec(r,o,n){var d,m,p,g,I,b,k,L;switch(g=Math.floor(r*6),I=r*6-g,b=n*(1-o),k=n*(1-I*o),L=n*(1-(1-I)*o),g%6){case 0:d=n,m=L,p=b;break;case 1:d=k,m=n,p=b;break;case 2:d=b,m=n,p=L;break;case 3:d=b,m=k,p=n;break;case 4:d=L,m=b,p=n;break;case 5:d=n,m=b,p=k;break;default:break}return[d,m,p]}function Tc(r,o,n){var d=Math.max(r,o,n),m=Math.min(r,o,n),p=d-m,g,I=d===0?0:p/d,b=d/255;switch(d){case m:g=0;break;case r:g=o-n+p*(o<n?6:0),g/=6*p;break;case o:g=n-r+p*2,g/=6*p;break;case n:g=r-o+p*4,g/=6*p;break;default:break}return[g,I,b]}function Lm(r,o){var n=Tc(r[0]*255,r[1]*255,r[2]*255);return n[1]+=o,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Ec(n[0],n[1],n[2])}function Om(r,o){var n=Tc(r[0]*255,r[1]*255,r[2]*255);return n[2]+=o,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Ec(n[0],n[1],n[2])}function Rm(r,o){var n=Tc(r[0]*255,r[1]*255,r[2]*255);return n[0]+=o/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Ec(n[0],n[1],n[2])}var dI=function(){var r=[],o,n;for(o=0;o<256;o+=1)n=o.toString(16),r[o]=n.length===1?"0"+n:n;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),aE=function(o){dt=!!o},nE=function(){return dt},lE=function(o){ft=o},qn=function(){return ft},cI=function(o){It=o},Dm=function(){return It},Xn=function(o){qe=o},ya=function(){return qe},dE=function(o){wt=o},hI=function(){return wt};function At(r){return document.createElementNS(a,r)}function Zn(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zn=function(n){return typeof n}:Zn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zn(r)}var Ea=function(){var r=1,o=[],n,d,m={onmessage:function(){},postMessage:function(O){n({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return n=x,m}function I(){d||(d=g(function(O){function F(){function H(rt,C){var D,v,E=rt.length,Y,V,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var xt=D.masksProperties;for(V=xt.length,Y=0;Y<V;Y+=1)if(xt[Y].pt.k.i)N(xt[Y].pt.k);else for(gt=xt[Y].pt.k.length,ct=0;ct<gt;ct+=1)xt[Y].pt.k[ct].s&&N(xt[Y].pt.k[ct].s[0]),xt[Y].pt.k[ct].e&&N(xt[Y].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,C),H(D.layers,C)):D.ty===4?_(D.shapes):D.ty===5&&St(D)}}function M(rt,C){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,C),H(rt[D].data.layers,C))}}function w(rt,C){for(var D=0,v=C.length;D<v;){if(C[D].id===rt)return C[D];D+=1}return null}function T(rt,C){var D=w(rt,C);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function _(rt){var C,D=rt.length,v,E;for(C=D-1;C>=0;C-=1)if(rt[C].ty==="sh")if(rt[C].ks.k.i)N(rt[C].ks.k);else for(E=rt[C].ks.k.length,v=0;v<E;v+=1)rt[C].ks.k[v].s&&N(rt[C].ks.k[v].s[0]),rt[C].ks.k[v].e&&N(rt[C].ks.k[v].e[0]);else rt[C].ty==="gr"&&_(rt[C].it)}function N(rt){var C,D=rt.i.length;for(C=0;C<D;C+=1)rt.i[C][0]+=rt.v[C][0],rt.i[C][1]+=rt.v[C][1],rt.o[C][0]+=rt.v[C][0],rt.o[C][1]+=rt.v[C][1]}function $(rt,C){var D=C?C.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var U=function(){var rt=[4,4,14];function C(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),q=function(){var rt=[4,7,99];return function(C){if(C.chars&&!$(rt,C.v)){var D,v=C.chars.length;for(D=0;D<v;D+=1){var E=C.chars[D];E.data&&E.data.shapes&&(_(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},C.chars[D].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function C(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),Tt=function(){var rt=[4,1,9];function C(v){var E,Y=v.length,V,ct;for(E=0;E<Y;E+=1)if(v[E].ty==="gr")C(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,V=0;V<ct;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===4&&C(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function C(v){var E,Y=v.length,V,ct;for(E=Y-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,V=0;V<ct;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&C(v[E].it)}function D(v){var E,Y,V=v.length,ct,gt,xt,Dt;for(Y=0;Y<V;Y+=1){if(E=v[Y],E.hasMask){var Pt=E.masksProperties;for(gt=Pt.length,ct=0;ct<gt;ct+=1)if(Pt[ct].pt.k.i)Pt[ct].pt.k.c=Pt[ct].cl;else for(Dt=Pt[ct].pt.k.length,xt=0;xt<Dt;xt+=1)Pt[ct].pt.k[xt].s&&(Pt[ct].pt.k[xt].s[0].c=Pt[ct].cl),Pt[ct].pt.k[xt].e&&(Pt[ct].pt.k[xt].e[0].c=Pt[ct].cl)}E.ty===4&&C(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function st(rt){rt.__complete||(Tt(rt),U(rt),q(rt),it(rt),ut(rt),H(rt.layers,rt.assets),M(rt.chars,rt.assets),rt.__complete=!0)}function St(rt){rt.t.a.length===0&&"m"in rt.t.p}var ht={};return ht.completeData=st,ht.checkColors=Tt,ht.checkChars=q,ht.checkPathProperties=it,ht.checkShapes=ut,ht.completeLayers=H,ht}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function H(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&Zn(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function M(w,T,_,N){var $,U=new XMLHttpRequest;try{U.responseType="json"}catch{}U.onreadystatechange=function(){if(U.readyState===4)if(U.status===200)$=H(U),_($);else try{$=H(U),_($)}catch(q){N&&N(q)}};try{U.open(["G","E","T"].join(""),w,!0)}catch{U.open(["G","E","T"].join(""),T+"/"+w,!0)}U.send()}return{load:M}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(H){p.dataManager.completeData(H),p.postMessage({id:O.data.id,payload:H,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(H){p.postMessage({id:O.data.id,payload:H,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,F=O.id,R=o[F];o[F]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){r+=1;var F="processId_"+r;return o[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var R=b(O,F);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function L(x,O,F){I();var R=b(O,F);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,F){I();var R=b(O,F);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:L,completeAnimation:G}}(),cE=function(){var r=function(){var M=y("canvas");M.width=1,M.height=1;var w=M.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),M}();function o(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(M,w,T){var _="";if(M.e)_=M.p;else if(w){var N=M.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),_=w+N}else _=T,_+=M.u?M.u:"",_+=M.p;return _}function m(M){var w=0,T=setInterval((function(){var _=M.getBBox();(_.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(M){var w=d(M,this.assetsPath,this.path),T=At("image");qt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var _={img:T,assetData:M};return _}function g(M){var w=d(M,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var _={img:T,assetData:M};return _}function I(M){var w={assetData:M},T=d(M,this.assetsPath,this.path);return Ea.loadData(T,(function(_){w.img=_,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function b(M,w){this.imagesLoadedCb=w;var T,_=M.length;for(T=0;T<_;T+=1)M[T].layers||(!M[T].t||M[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(M[T]))):M[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(M[T]))))}function k(M){this.path=M||""}function L(M){this.assetsPath=M||""}function G(M){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===M)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function R(M,w){M==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function H(){this._imageLoaded=o.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return H.prototype={loadAssets:b,setAssetsPath:L,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:G,createImgData:g,createImageData:p,imageLoaded:o,footageLoaded:n,setCacheType:R},H}();function Pm(){}Pm.prototype={triggerEvent:function(o,n){if(this._cbs[o])for(var d=this._cbs[o],m=0;m<d.length;m+=1)d[m](n)},addEventListener:function(o,n){return this._cbs[o]||(this._cbs[o]=[]),this._cbs[o].push(n),(function(){this.removeEventListener(o,n)}).bind(this)},removeEventListener:function(o,n){if(!n)this._cbs[o]=null;else if(this._cbs[o]){for(var d=0,m=this._cbs[o].length;d<m;)this._cbs[o][d]===n&&(this._cbs[o].splice(d,1),d-=1,m-=1),d+=1;this._cbs[o].length||(this._cbs[o]=null)}}};var hE=function(){function r(o){for(var n=o.split(`\r
|
|
2
|
+
`),d={},m,p=0,g=0;g<n.length;g+=1)m=n[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(o){for(var n=[],d=0;d<o.length;d+=1){var m=o[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(o[d].cm)}catch{try{p.payload=r(o[d].cm)}catch{p.payload={name:o[d].cm}}}n.push(p)}return n}}(),pE=function(){function r(o){this.compositions.push(o)}return function(){function o(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return o.compositions=[],o.currentFrame=0,o.registerComposition=r,o}}(),Ta={},mE=function(o,n){Ta[o]=n};function uE(r){return Ta[r]}function fE(){if(Ta.canvas)return"canvas";for(var r in Ta)if(Ta[r])return r;return""}function xa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xa=function(n){return typeof n}:xa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xa(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Xe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=nE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=pE(),this.imagePreloader=new cE,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 Er("drawnFrame",0,0,0),this.expressionsPlugin=qn()};A([Pm],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var o="svg";r.animType?o=r.animType:r.renderer&&(o=r.renderer);var n=uE(o);this.renderer=new n(this,r.rendererSettings),this.imagePreloader.setCacheType(o,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=o,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Ea.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Ea.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,o){o&&xa(o)!=="object"&&(o=JSON.parse(o));var n={wrapper:r,animationData:o},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:fE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var o=this.animationData.layers,n,d=o.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(n=0;n<d;){if(o[n].id===m[p].id){o[n]=m[p];break}n+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,Ea.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var o=qn();o&&o.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var o=r.shift();this.timeCompleted=o.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ea.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=hE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(o){this.triggerConfigError(o)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=qn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,o){var n=typeof r=="number"?r:void 0,d=typeof o=="number"?o:void 0;this.renderer.updateContainerSize(n,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var o,n=0;n<this.markers.length;n+=1)if(o=this.markers[n],o.payload&&o.payload.name===r)return o;return null},vt.prototype.goToAndStop=function(r,o,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else o?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,o,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,o,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var o=this.currentRawFrame+r*this.frameModifier,n=!1;o>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(o>this.totalFrames?o%this.totalFrames:0)||(n=!0,o=this.totalFrames-1):o>=this.totalFrames?(this.playCount+=1,this.checkSegments(o%this.totalFrames)||(this.setCurrentRawFrameValue(o%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(o):o<0?this.checkSegments(o%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+o%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,o=0)):this.setCurrentRawFrameValue(o),n&&(this.setCurrentRawFrameValue(o),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,o){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-o)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+o)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,o){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>o&&(n=o-r)),this.firstFrame=r,this.totalFrames=o-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,o){if(o&&(this.segments.length=0),xa(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}else this.segments.push(r);this.segments.length&&o&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,o){o&&this.name!==o||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var o="";if(r.e)o=r.p;else if(this.assetsPath){var n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),o=this.assetsPath+n}else o=this.path,o+=r.u?r.u:"",o+=r.p;return o},vt.prototype.getAssetData=function(r){for(var o=0,n=this.assets.length;o<n;){if(r===this.assets[o].id)return this.assets[o];o+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,o,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(o,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Er(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new km(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new jn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Nm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Mm(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Er(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new km(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new jn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Nm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Mm(r,this))},vt.prototype.triggerRenderFrameError=function(r){var o=new oE(r,this.currentFrame);this.triggerEvent("error",o),this.onError&&this.onError.call(this,o)},vt.prototype.triggerConfigError=function(r){var o=new sE(r,this.currentFrame);this.triggerEvent("error",o),this.onError&&this.onError.call(this,o)};var pe=function(){var r={},o=[],n=0,d=0,m=0,p=!0,g=!1;function I(C){for(var D=0,v=C.target;D<d;)o[D].animation===v&&(o.splice(D,1),D-=1,d-=1,v.isPaused||G()),D+=1}function b(C,D){if(!C)return null;for(var v=0;v<d;){if(o[v].elem===C&&o[v].elem!==null)return o[v].animation;v+=1}var E=new vt;return x(E,C),E.setData(C,D),E}function k(){var C,D=o.length,v=[];for(C=0;C<D;C+=1)v.push(o[C].animation);return v}function L(){m+=1,Tt()}function G(){m-=1}function x(C,D){C.addEventListener("destroy",I),C.addEventListener("_active",L),C.addEventListener("_idle",G),o.push({elem:D,animation:C}),d+=1}function O(C){var D=new vt;return x(D,null),D.setParams(C),D}function F(C,D){var v;for(v=0;v<d;v+=1)o[v].animation.setSpeed(C,D)}function R(C,D){var v;for(v=0;v<d;v+=1)o[v].animation.setDirection(C,D)}function H(C){var D;for(D=0;D<d;D+=1)o[D].animation.play(C)}function M(C){var D=C-n,v;for(v=0;v<d;v+=1)o[v].animation.advanceTime(D);n=C,m&&!g?window.requestAnimationFrame(M):p=!0}function w(C){n=C,window.requestAnimationFrame(M)}function T(C){var D;for(D=0;D<d;D+=1)o[D].animation.pause(C)}function _(C,D,v){var E;for(E=0;E<d;E+=1)o[E].animation.goToAndStop(C,D,v)}function N(C){var D;for(D=0;D<d;D+=1)o[D].animation.stop(C)}function $(C){var D;for(D=0;D<d;D+=1)o[D].animation.togglePause(C)}function U(C){var D;for(D=d-1;D>=0;D-=1)o[D].animation.destroy(C)}function q(C,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,V=E.length;for(Y=0;Y<V;Y+=1)v&&E[Y].setAttribute("data-bm-type",v),b(E[Y],C);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=y("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),b(gt,C)}}function it(){var C;for(C=0;C<d;C+=1)o[C].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ut(){g=!0}function st(){g=!1,Tt()}function St(C,D){var v;for(v=0;v<d;v+=1)o[v].animation.setVolume(C,D)}function ht(C){var D;for(D=0;D<d;D+=1)o[D].animation.mute(C)}function rt(C){var D;for(D=0;D<d;D+=1)o[D].animation.unmute(C)}return r.registerAnimation=b,r.loadAnimation=O,r.setSpeed=F,r.setDirection=R,r.play=H,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=q,r.resize=it,r.goToAndStop=_,r.destroy=U,r.freeze=ut,r.unfreeze=st,r.setVolume=St,r.mute=ht,r.unmute=rt,r.getRegisteredAnimations=k,r}(),Aa=function(){var r={};r.getBezierEasing=n;var o={};function n(w,T,_,N,$){var U=$||("bez_"+w+"_"+T+"_"+_+"_"+N).replace(/\./g,"p");if(o[U])return o[U];var q=new M([w,T,_,N]);return o[U]=q,q}var d=4,m=.001,p=1e-7,g=10,I=11,b=1/(I-1),k=typeof Float32Array=="function";function L(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,_){return((L(T,_)*w+G(T,_))*w+x(T))*w}function F(w,T,_){return 3*L(T,_)*w*w+2*G(T,_)*w+x(T)}function R(w,T,_,N,$){var U,q,it=0;do q=T+(_-T)/2,U=O(q,N,$)-w,U>0?_=q:T=q;while(Math.abs(U)>p&&++it<g);return q}function H(w,T,_,N){for(var $=0;$<d;++$){var U=F(T,_,N);if(U===0)return T;var q=O(T,_,N)-w;T-=q/U}return T}function M(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return M.prototype={get:function(T){var _=this._p[0],N=this._p[1],$=this._p[2],U=this._p[3];return this._precomputed||this._precompute(),_===N&&$===U?T:T===0?0:T===1?1:O(this._getTForX(T),N,U)},_precompute:function(){var T=this._p[0],_=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==_||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],_=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*b,T,_)},_getTForX:function(T){for(var _=this._p[0],N=this._p[2],$=this._mSampleValues,U=0,q=1,it=I-1;q!==it&&$[q]<=T;++q)U+=b;--q;var Tt=(T-$[q])/($[q+1]-$[q]),ut=U+Tt*b,st=F(ut,_,N);return st>=m?H(T,ut,_,N):st===0?ut:R(T,U,U+b,_,N)}},r}(),Fm=function(){function r(o){return o.concat(tt(o.length))}return{double:r}}(),Qn=function(){return function(r,o,n){var d=0,m=r,p=tt(m),g={newElement:I,release:b};function I(){var k;return d?(d-=1,k=p[d]):k=o(),k}function b(k){d===m&&(p=Fm.double(p),m*=2),n&&n(k),p[d]=k,d+=1}return g}}(),$m=function(){function r(){return{addedLength:0,percents:Z("float32",ya()),lengths:Z("float32",ya())}}return Qn(8,r)}(),Vm=function(){function r(){return{lengths:[],totalLength:0}}function o(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)$m.release(n.lengths[d]);n.lengths.length=0}return Qn(8,r,o)}();function vE(){var r=Math;function o(x,O,F,R,H,M){var w=x*R+O*H+F*M-H*R-M*x-F*O;return w>-.001&&w<.001}function n(x,O,F,R,H,M,w,T,_){if(F===0&&M===0&&_===0)return o(x,O,R,H,w,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(H-O,2)+r.pow(M-F,2)),$=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(_-F,2)),U=r.sqrt(r.pow(w-R,2)+r.pow(T-H,2)+r.pow(_-M,2)),q;return N>$?N>U?q=N-$-U:q=U-$-N:U>$?q=U-$-N:q=$-N-U,q>-1e-4&&q<1e-4}var d=function(){return function(x,O,F,R){var H=ya(),M,w,T,_,N,$=0,U,q=[],it=[],Tt=$m.newElement();for(T=F.length,M=0;M<H;M+=1){for(N=M/(H-1),U=0,w=0;w<T;w+=1)_=Xt(1-N,3)*x[w]+3*Xt(1-N,2)*N*F[w]+3*(1-N)*Xt(N,2)*R[w]+Xt(N,3)*O[w],q[w]=_,it[w]!==null&&(U+=Xt(q[w]-it[w],2)),it[w]=q[w];U&&(U=$t(U),$+=U),Tt.percents[M]=N,Tt.lengths[M]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=Vm.newElement(),F=x.c,R=x.v,H=x.o,M=x.i,w,T=x._length,_=O.lengths,N=0;for(w=0;w<T-1;w+=1)_[w]=d(R[w],R[w+1],H[w],M[w+1]),N+=_[w].addedLength;return F&&T&&(_[w]=d(R[w],R[0],H[w],M[0]),N+=_[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,R,H){var M=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+R[0]+"_"+R[1]+"_"+H[0]+"_"+H[1]).replace(/\./g,"p");if(!x[M]){var w=ya(),T,_,N,$,U,q=0,it,Tt,ut=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&o(O[0],O[1],F[0],F[1],O[0]+R[0],O[1]+R[1])&&o(O[0],O[1],F[0],F[1],F[0]+H[0],F[1]+H[1])&&(w=2);var st=new p(w);for(N=R.length,T=0;T<w;T+=1){for(Tt=tt(N),U=T/(w-1),it=0,_=0;_<N;_+=1)$=Xt(1-U,3)*O[_]+3*Xt(1-U,2)*U*(O[_]+R[_])+3*(1-U)*Xt(U,2)*(F[_]+H[_])+Xt(U,3)*F[_],Tt[_]=$,ut!==null&&(it+=Xt(Tt[_]-ut[_],2));it=$t(it),q+=it,st.points[T]=new g(it,Tt),ut=Tt}st.segmentLength=q,x[M]=st}return x[M]}}();function b(x,O){var F=O.percents,R=O.lengths,H=F.length,M=ae((H-1)*x),w=x*O.addedLength,T=0;if(M===H-1||M===0||w===R[M])return F[M];for(var _=R[M]>w?-1:1,N=!0;N;)if(R[M]<=w&&R[M+1]>w?(T=(w-R[M])/(R[M+1]-R[M]),N=!1):M+=_,M<0||M>=H-1){if(M===H-1)return F[M];N=!1}return F[M]+(F[M+1]-F[M])*T}function k(x,O,F,R,H,M){var w=b(H,M),T=1-w,_=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[_,N]}var L=Z("float32",8);function G(x,O,F,R,H,M,w){H<0?H=0:H>1&&(H=1);var T=b(H,w);M=M>1?1:M;var _=b(M,w),N,$=x.length,U=1-T,q=1-_,it=U*U*U,Tt=T*U*U*3,ut=T*T*U*3,st=T*T*T,St=U*U*q,ht=T*U*q+U*T*q+U*U*_,rt=T*T*q+U*T*_+T*U*_,C=T*T*_,D=U*q*q,v=T*q*q+U*_*q+U*q*_,E=T*_*q+U*_*_+T*q*_,Y=T*_*_,V=q*q*q,ct=_*q*q+q*_*q+q*q*_,gt=_*_*q+q*_*_+_*q*_,xt=_*_*_;for(N=0;N<$;N+=1)L[N*4]=r.round((it*x[N]+Tt*F[N]+ut*R[N]+st*O[N])*1e3)/1e3,L[N*4+1]=r.round((St*x[N]+ht*F[N]+rt*R[N]+C*O[N])*1e3)/1e3,L[N*4+2]=r.round((D*x[N]+v*F[N]+E*R[N]+Y*O[N])*1e3)/1e3,L[N*4+3]=r.round((V*x[N]+ct*F[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return L}return{getSegmentsLength:m,getNewSegment:G,getPointInSegment:k,buildBezierData:I,pointOnLine2D:o,pointOnLine3D:n}}var Kr=vE(),Co=e,zm=Math.abs;function Bm(r,o){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var m=o.lastIndex,p=m,g=this.keyframes.length-1,I=!0,b,k,L;I;){if(b=this.keyframes[p],k=this.keyframes[p+1],p===g-1&&r>=k.t-n){b.h&&(b=k),m=0;break}if(k.t-n>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}L=this.keyframesMetadata[p]||{};var G,x,O,F,R,H,M=k.t-n,w=b.t-n,T;if(b.to){L.bezierData||(L.bezierData=Kr.buildBezierData(b.s,k.s||b.e,b.to,b.ti));var _=L.bezierData;if(r>=M||r<w){var N=r>=M?_.points.length-1:0;for(x=_.points[N].point.length,G=0;G<x;G+=1)d[G]=_.points[N].point[G]}else{L.__fnct?H=L.__fnct:(H=Aa.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,L.__fnct=H),O=H((r-w)/(M-w));var $=_.segmentLength*O,U,q=o.lastFrame<r&&o._lastKeyframeIndex===p?o._lastAddedLength:0;for(R=o.lastFrame<r&&o._lastKeyframeIndex===p?o._lastPoint:0,I=!0,F=_.points.length;I;){if(q+=_.points[R].partialLength,$===0||O===0||R===_.points.length-1){for(x=_.points[R].point.length,G=0;G<x;G+=1)d[G]=_.points[R].point[G];break}else if($>=q&&$<q+_.points[R+1].partialLength){for(U=($-q)/_.points[R+1].partialLength,x=_.points[R].point.length,G=0;G<x;G+=1)d[G]=_.points[R].point[G]+(_.points[R+1].point[G]-_.points[R].point[G])*U;break}R<F-1?R+=1:I=!1}o._lastPoint=R,o._lastAddedLength=q-_.points[R].partialLength,o._lastKeyframeIndex=p}}else{var it,Tt,ut,st,St;if(g=b.s.length,T=k.s||b.e,this.sh&&b.h!==1)if(r>=M)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=w)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ht=Hm(b.s),rt=Hm(T),C=(r-w)/(M-w);bE(d,gE(ht,rt,C))}else for(p=0;p<g;p+=1)b.h!==1&&(r>=M?O=1:r<w?O=0:(b.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[p]?H=L.__fnct[p]:(it=b.o.x[p]===void 0?b.o.x[0]:b.o.x[p],Tt=b.o.y[p]===void 0?b.o.y[0]:b.o.y[p],ut=b.i.x[p]===void 0?b.i.x[0]:b.i.x[p],st=b.i.y[p]===void 0?b.i.y[0]:b.i.y[p],H=Aa.getBezierEasing(it,Tt,ut,st).get,L.__fnct[p]=H)):L.__fnct?H=L.__fnct:(it=b.o.x,Tt=b.o.y,ut=b.i.x,st=b.i.y,H=Aa.getBezierEasing(it,Tt,ut,st).get,b.keyframeMetadata=H),O=H((r-w)/(M-w)))),T=k.s||b.e,St=b.h===1?b.s[p]:b.s[p]+(T[p]-b.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return o.lastIndex=m,d}function gE(r,o,n){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],b=o[0],k=o[1],L=o[2],G=o[3],x,O,F,R,H;return O=m*b+p*k+g*L+I*G,O<0&&(O=-O,b=-b,k=-k,L=-L,G=-G),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),R=Math.sin((1-n)*x)/F,H=Math.sin(n*x)/F):(R=1-n,H=n),d[0]=R*m+H*b,d[1]=R*p+H*k,d[2]=R*g+H*L,d[3]=R*I+H*G,d}function bE(r,o){var n=o[0],d=o[1],m=o[2],p=o[3],g=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),b=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=g/Nt,r[1]=I/Nt,r[2]=b/Nt}function Hm(r){var o=r[0]*Nt,n=r[1]*Nt,d=r[2]*Nt,m=Math.cos(o/2),p=Math.cos(n/2),g=Math.cos(d/2),I=Math.sin(o/2),b=Math.sin(n/2),k=Math.sin(d/2),L=m*p*g-I*b*k,G=I*b*g+m*p*k,x=I*p*g+m*b*k,O=m*b*g-I*p*k;return[G,x,O,L]}function Um(){var r=this.comp.renderedFrame-this.offsetTime,o=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Co&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<o&&r<o))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function Jn(r){var o;if(this.propType==="unidimensional")o=r*this.mult,zm(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)o=r[n]*this.mult,zm(this.v[n]-o)>1e-5&&(this.v[n]=o,this._mdf=!0),n+=1}function tl(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,o=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(r=0;r<o;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function el(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function yE(r,o,n,d){this.propType="unidimensional",this.mult=n||1,this.data=o,this.v=n?o.k*n:o.k,this.pv=o.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=tl,this.setVValue=Jn,this.addEffect=el}function EE(r,o,n,d){this.propType="multidimensional",this.mult=n||1,this.data=o,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=o.k.length;for(this.v=Z("float32",p),this.pv=Z("float32",p),this.vel=Z("float32",p),m=0;m<p;m+=1)this.v[m]=o.k[m]*this.mult,this.pv[m]=o.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=tl,this.setVValue=Jn,this.addEffect=el}function TE(r,o,n,d){this.propType="unidimensional",this.keyframes=o.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Co,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=o,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Co,this.pv=Co,this._isFirstFrame=!0,this.getValue=tl,this.setVValue=Jn,this.interpolateValue=Bm,this.effectsSequence=[Um.bind(this)],this.addEffect=el}function xE(r,o,n,d){this.propType="multidimensional";var m,p=o.k.length,g,I,b,k;for(m=0;m<p-1;m+=1)o.k[m].to&&o.k[m].s&&o.k[m+1]&&o.k[m+1].s&&(g=o.k[m].s,I=o.k[m+1].s,b=o.k[m].to,k=o.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&Kr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+b[0],g[1]+b[1])&&Kr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&Kr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Kr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(o.k[m].to=null,o.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&b[0]===0&&b[1]===0&&k[0]===0&&k[1]===0&&(g.length===2||g[2]===I[2]&&b[2]===0&&k[2]===0)&&(o.k[m].to=null,o.k[m].ti=null));this.effectsSequence=[Um.bind(this)],this.data=o,this.keyframes=o.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=tl,this.setVValue=Jn,this.interpolateValue=Bm,this.frameId=-1;var L=o.k[0].s.length;for(this.v=Z("float32",L),this.pv=Z("float32",L),m=0;m<L;m+=1)this.v[m]=Co,this.pv[m]=Co;this._caching={lastFrame:Co,lastIndex:0,value:Z("float32",L)},this.addEffect=el}var at=function(){function r(n,d,m,p,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new yE(n,d,p,g);else if(typeof d.k[0]=="number")I=new EE(n,d,p,g);else switch(m){case 0:I=new TE(n,d,p,g);break;case 1:I=new xE(n,d,p,g);break;default:break}return I.effectsSequence.length&&g.addDynamicProperty(I),I}var o={getProp:r};return o}();function Ie(){}Ie.prototype={addDynamicProperty:function(o){this.dynamicProperties.indexOf(o)===-1&&(this.dynamicProperties.push(o),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var o,n=this.dynamicProperties.length;for(o=0;o<n;o+=1)this.dynamicProperties[o].getValue(),this.dynamicProperties[o]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(o){this.container=o,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var wo=function(){function r(){return Z("float32",2)}return Qn(8,r)}();function pi(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}pi.prototype.setPathData=function(r,o){this.c=r,this.setLength(o);for(var n=0;n<o;)this.v[n]=wo.newElement(),this.o[n]=wo.newElement(),this.i[n]=wo.newElement(),n+=1},pi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},pi.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},pi.prototype.setXYAt=function(r,o,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=wo.newElement()),p[d][0]=r,p[d][1]=o},pi.prototype.setTripleAt=function(r,o,n,d,m,p,g,I){this.setXYAt(r,o,"v",g,I),this.setXYAt(n,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},pi.prototype.reverse=function(){var r=new pi;r.setPathData(this.c,this._length);var o=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(o[0][0],o[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(o[p][0],o[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},pi.prototype.length=function(){return this._length};var Le=function(){function r(){return new pi}function o(m){var p=m._length,g;for(g=0;g<p;g+=1)wo.release(m.v[g]),wo.release(m.i[g]),wo.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=Qn(4,r,o);return d.clone=n,d}();function xc(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}xc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},xc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)Le.release(this.shapes[r]);this._length=0};var Ss=function(){var r={newShapeCollection:m,release:p},o=0,n=4,d=tt(n);function m(){var g;return o?(o-=1,g=d[o]):g=new xc,g}function p(g){var I,b=g._length;for(I=0;I<b;I+=1)Le.release(g.shapes[I]);g._length=0,o===n&&(d=Fm.double(d),n*=2),d[o]=g,o+=1}return r}(),rl=function(){var r=-999999;function o(M,w,T){var _=T.lastIndex,N,$,U,q,it,Tt,ut,st,St,ht=this.keyframes;if(M<ht[0].t-this.offsetTime)N=ht[0].s[0],U=!0,_=0;else if(M>=ht[ht.length-1].t-this.offsetTime)N=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],U=!0;else{for(var rt=_,C=ht.length-1,D=!0,v,E,Y;D&&(v=ht[rt],E=ht[rt+1],!(E.t-this.offsetTime>M));)rt<C-1?rt+=1:D=!1;if(Y=this.keyframesMetadata[rt]||{},U=v.h===1,_=rt,!U){if(M>=E.t-this.offsetTime)st=1;else if(M<v.t-this.offsetTime)st=0;else{var V;Y.__fnct?V=Y.__fnct:(V=Aa.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=V),st=V((M-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=w._length,ut=N.i[0].length,T.lastIndex=_,q=0;q<Tt;q+=1)for(it=0;it<ut;it+=1)St=U?N.i[q][it]:N.i[q][it]+($.i[q][it]-N.i[q][it])*st,w.i[q][it]=St,St=U?N.o[q][it]:N.o[q][it]+($.o[q][it]-N.o[q][it])*st,w.o[q][it]=St,St=U?N.v[q][it]:N.v[q][it]+($.v[q][it]-N.v[q][it])*st,w.v[q][it]=St}function n(){var M=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==r&&(_<w&&M<w||_>T&&M>T)||(this._caching.lastIndex=_<M?this._caching.lastIndex:0,this.interpolateShape(M,this.pv,this._caching)),this._caching.lastFrame=M,this.pv}function d(){this.paths=this.localShapeCollection}function m(M,w){if(M._length!==w._length||M.c!==w.c)return!1;var T,_=M._length;for(T=0;T<_;T+=1)if(M.v[T][0]!==w.v[T][0]||M.v[T][1]!==w.v[T][1]||M.o[T][0]!==w.o[T][0]||M.o[T][1]!==w.o[T][1]||M.i[T][0]!==w.i[T][0]||M.i[T][1]!==w.i[T][1])return!1;return!0}function p(M){m(this.v,M)||(this.v=Le.clone(M),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var M;this.kf?M=this.pv:this.data.ks?M=this.data.ks.k:M=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)M=this.effectsSequence[w](M);this.setVValue(M),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(M,w,T){this.propType="shape",this.comp=M.comp,this.container=M,this.elem=M,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var _=T===3?w.pt.k:w.ks.k;this.v=Le.clone(_),this.pv=Le.clone(this.v),this.localShapeCollection=Ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=o,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=b;function k(M,w,T){this.propType="shape",this.comp=M.comp,this.elem=M,this.container=M,this.offsetTime=M.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=Le.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=Le.clone(this.v),this.localShapeCollection=Ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=g,k.prototype.interpolateShape=o,k.prototype.setVValue=p,k.prototype.addEffect=b;var L=function(){var M=he;function w(T,_){this.v=Le.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ss.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=at.getProp(T,_.p,1,0,this),this.s=at.getProp(T,_.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 _=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,U=this.s.v[1]/2,q=this.d!==3,it=this.v;it.v[0][0]=_,it.v[0][1]=N-U,it.v[1][0]=q?_+$:_-$,it.v[1][1]=N,it.v[2][0]=_,it.v[2][1]=N+U,it.v[3][0]=q?_-$:_+$,it.v[3][1]=N,it.i[0][0]=q?_-$*M:_+$*M,it.i[0][1]=N-U,it.i[1][0]=q?_+$:_-$,it.i[1][1]=N-U*M,it.i[2][0]=q?_+$*M:_-$*M,it.i[2][1]=N+U,it.i[3][0]=q?_-$:_+$,it.i[3][1]=N+U*M,it.o[0][0]=q?_+$*M:_-$*M,it.o[0][1]=N-U,it.o[1][0]=q?_+$:_-$,it.o[1][1]=N+U*M,it.o[2][0]=q?_-$*M:_+$*M,it.o[2][1]=N+U,it.o[3][0]=q?_-$:_+$,it.o[3][1]=N-U*M}},A([Ie],w),w}(),G=function(){function M(w,T){this.v=Le.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=at.getProp(w,T.ir,0,0,this),this.is=at.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(w,T.pt,0,0,this),this.p=at.getProp(w,T.p,1,0,this),this.r=at.getProp(w,T.r,0,Nt,this),this.or=at.getProp(w,T.or,0,0,this),this.os=at.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ss.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return M.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,_=Math.PI*2/T,N=!0,$=this.or.v,U=this.ir.v,q=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ut=2*Math.PI*U/(T*2),st,St,ht,rt,C=-Math.PI/2;C+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){St=N?$:U,ht=N?q:it,rt=N?Tt:ut;var v=St*Math.cos(C),E=St*Math.sin(C),Y=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-Y*rt*ht*D,E-V*rt*ht*D,v+Y*rt*ht*D,E+V*rt*ht*D,st,!0),N=!N,C+=_*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),_=Math.PI*2/T,N=this.or.v,$=this.os.v,U=2*Math.PI*N/(T*4),q,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,q=0;q<T;q+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),St=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ht=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-St*U*$*Tt,st-ht*U*$*Tt,ut+St*U*$*Tt,st+ht*U*$*Tt,q,!0),it+=_*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Ie],M),M}(),x=function(){function M(w,T){this.v=Le.newElement(),this.v.c=!0,this.localShapeCollection=Ss.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=at.getProp(w,T.p,1,0,this),this.s=at.getProp(w,T.s,1,0,this),this.r=at.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return M.prototype={convertRectToPath:function(){var T=this.p.v[0],_=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,U=Me(N,$,this.r.v),q=U*(1-he);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,_-$+U,T+N,_-$+U,T+N,_-$+q,0,!0),this.v.setTripleAt(T+N,_+$-U,T+N,_+$-q,T+N,_+$-U,1,!0),U!==0?(this.v.setTripleAt(T+N-U,_+$,T+N-U,_+$,T+N-q,_+$,2,!0),this.v.setTripleAt(T-N+U,_+$,T-N+q,_+$,T-N+U,_+$,3,!0),this.v.setTripleAt(T-N,_+$-U,T-N,_+$-U,T-N,_+$-q,4,!0),this.v.setTripleAt(T-N,_-$+U,T-N,_-$+q,T-N,_-$+U,5,!0),this.v.setTripleAt(T-N+U,_-$,T-N+U,_-$,T-N+q,_-$,6,!0),this.v.setTripleAt(T+N-U,_-$,T+N-q,_-$,T+N-U,_-$,7,!0)):(this.v.setTripleAt(T-N,_+$,T-N+q,_+$,T-N,_+$,2),this.v.setTripleAt(T-N,_-$,T-N,_-$+q,T-N,_-$,3))):(this.v.setTripleAt(T+N,_-$+U,T+N,_-$+q,T+N,_-$+U,0,!0),U!==0?(this.v.setTripleAt(T+N-U,_-$,T+N-U,_-$,T+N-q,_-$,1,!0),this.v.setTripleAt(T-N+U,_-$,T-N+q,_-$,T-N+U,_-$,2,!0),this.v.setTripleAt(T-N,_-$+U,T-N,_-$+U,T-N,_-$+q,3,!0),this.v.setTripleAt(T-N,_+$-U,T-N,_+$-q,T-N,_+$-U,4,!0),this.v.setTripleAt(T-N+U,_+$,T-N+U,_+$,T-N+q,_+$,5,!0),this.v.setTripleAt(T+N-U,_+$,T+N-q,_+$,T+N-U,_+$,6,!0),this.v.setTripleAt(T+N,_+$-U,T+N,_+$-U,T+N,_+$-q,7,!0)):(this.v.setTripleAt(T-N,_-$,T-N+q,_-$,T-N,_-$,1,!0),this.v.setTripleAt(T-N,_+$,T-N,_+$-q,T-N,_+$,2,!0),this.v.setTripleAt(T+N,_+$,T+N-q,_+$,T+N,_+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ie],M),M}();function O(M,w,T){var _;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?_=new k(M,w,T):_=new I(M,w,T)}else T===5?_=new x(M,w):T===6?_=new L(M,w):T===7&&(_=new G(M,w));return _.k&&M.addDynamicProperty(_),_}function F(){return I}function R(){return k}var H={};return H.getShapeProp=O,H.getConstructorFunction=F,H.getKeyframedConstructorFunction=R,H}();var Oe=function(){var r=Math.cos,o=Math.sin,n=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),Y=o(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),Y=o(v);return this._t(1,0,0,0,0,E,-Y,0,0,Y,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),Y=o(v);return this._t(E,0,Y,0,0,1,0,0,-Y,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),Y=o(v);return this._t(E,-Y,0,0,Y,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 L(v,E){return this.shear(n(v),n(E))}function G(v,E){var Y=r(E),V=o(E);return this._t(Y,V,0,0,-V,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-V,0,0,V,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,E,Y){return!Y&&Y!==0&&(Y=1),v===1&&E===1&&Y===1?this:this._t(v,0,0,0,0,E,0,0,0,0,Y,0,0,0,0,1)}function O(v,E,Y,V,ct,gt,xt,Dt,Pt,me,Qe,Yr,Je,_e,hr,Wt){return this.props[0]=v,this.props[1]=E,this.props[2]=Y,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Dt,this.props[8]=Pt,this.props[9]=me,this.props[10]=Qe,this.props[11]=Yr,this.props[12]=Je,this.props[13]=_e,this.props[14]=hr,this.props[15]=Wt,this}function F(v,E,Y){return Y=Y||0,v!==0||E!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,Y,1):this}function R(v,E,Y,V,ct,gt,xt,Dt,Pt,me,Qe,Yr,Je,_e,hr,Wt){var pt=this.props;if(v===1&&E===0&&Y===0&&V===0&&ct===0&>===1&&xt===0&&Dt===0&&Pt===0&&me===0&&Qe===1&&Yr===0)return pt[12]=pt[12]*v+pt[15]*Je,pt[13]=pt[13]*gt+pt[15]*_e,pt[14]=pt[14]*Qe+pt[15]*hr,pt[15]*=Wt,this._identityCalculated=!1,this;var fi=pt[0],Yi=pt[1],vi=pt[2],jr=pt[3],gi=pt[4],bi=pt[5],tr=pt[6],ji=pt[7],qi=pt[8],Rr=pt[9],Xi=pt[10],Dr=pt[11],Lo=pt[12],hl=pt[13],pl=pt[14],ml=pt[15];return pt[0]=fi*v+Yi*ct+vi*Pt+jr*Je,pt[1]=fi*E+Yi*gt+vi*me+jr*_e,pt[2]=fi*Y+Yi*xt+vi*Qe+jr*hr,pt[3]=fi*V+Yi*Dt+vi*Yr+jr*Wt,pt[4]=gi*v+bi*ct+tr*Pt+ji*Je,pt[5]=gi*E+bi*gt+tr*me+ji*_e,pt[6]=gi*Y+bi*xt+tr*Qe+ji*hr,pt[7]=gi*V+bi*Dt+tr*Yr+ji*Wt,pt[8]=qi*v+Rr*ct+Xi*Pt+Dr*Je,pt[9]=qi*E+Rr*gt+Xi*me+Dr*_e,pt[10]=qi*Y+Rr*xt+Xi*Qe+Dr*hr,pt[11]=qi*V+Rr*Dt+Xi*Yr+Dr*Wt,pt[12]=Lo*v+hl*ct+pl*Pt+ml*Je,pt[13]=Lo*E+hl*gt+pl*me+ml*_e,pt[14]=Lo*Y+hl*xt+pl*Qe+ml*hr,pt[15]=Lo*V+hl*Dt+pl*Yr+ml*Wt,this._identityCalculated=!1,this}function H(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function M(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function 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 _(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,Y){return{x:v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}}function $(v,E,Y){return v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12]}function U(v,E,Y){return v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13]}function q(v,E,Y){return v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,Y=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Dt=new Oe;return Dt.props[0]=E,Dt.props[1]=Y,Dt.props[4]=V,Dt.props[5]=ct,Dt.props[12]=gt,Dt.props[13]=xt,Dt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,Y=v.length,V=[];for(E=0;E<Y;E+=1)V[E]=Tt(v[E]);return V}function st(v,E,Y){var V=Z("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=Y[0],V[5]=Y[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Dt=this.props[5],Pt=this.props[12],me=this.props[13];V[0]=v[0]*ct+v[1]*xt+Pt,V[1]=v[0]*gt+v[1]*Dt+me,V[2]=E[0]*ct+E[1]*xt+Pt,V[3]=E[0]*gt+E[1]*Dt+me,V[4]=Y[0]*ct+Y[1]*xt+Pt,V[5]=Y[0]*gt+Y[1]*Dt+me}return V}function St(v,E,Y){var V;return this.isIdentity()?V=[v,E,Y]:V=[v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]],V}function ht(v,E){if(this.isIdentity())return v+","+E;var Y=this.props;return Math.round((v*Y[0]+E*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+E*Y[5]+Y[13])*100)/100}function rt(){for(var v=0,E=this.props,Y="matrix3d(",V=1e4;v<16;)Y+=d(E[v]*V)/V,Y+=v===15?")":",",v+=1;return Y}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=C(v[0]),Y=C(v[1]),V=C(v[4]),ct=C(v[5]),gt=C(v[12]),xt=C(v[13]);return"matrix("+E+","+Y+","+V+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=b,this.skew=L,this.skewFromAxis=G,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=R,this.multiply=H,this.applyToPoint=N,this.applyToX=$,this.applyToY=U,this.applyToZ=q,this.applyToPointArray=St,this.applyToTriplePoints=st,this.applyToPointStringified=ht,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=_,this.equals=w,this.inversePoints=ut,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=M,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function il(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?il=function(n){return typeof n}:il=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},il(r)}var Ht={},ol="__[STANDALONE]__",Gm="__[ANIMATIONDATA]__",Km="";function AE(r){c(r)}function Wm(){ol===!0?pe.searchAnimations(Gm,ol,Km):pe.searchAnimations()}function SE(r){aE(r)}function IE(r){dE(r)}function _E(r){return ol===!0&&(r.animationData=JSON.parse(Gm)),pe.loadAnimation(r)}function CE(r){if(typeof r=="string")switch(r){case"high":Xn(200);break;default:case"medium":Xn(50);break;case"low":Xn(10);break}else!isNaN(r)&&r>1&&Xn(r);ya()>=50?gr(!1):gr(!0)}function wE(){return typeof navigator<"u"}function kE(r,o){r==="expressions"&&lE(o)}function NE(r){switch(r){case"propertyFactory":return at;case"shapePropertyFactory":return rl;case"matrix":return Oe;default:return null}}Ht.play=pe.play,Ht.pause=pe.pause,Ht.setLocationHref=AE,Ht.togglePause=pe.togglePause,Ht.setSpeed=pe.setSpeed,Ht.setDirection=pe.setDirection,Ht.stop=pe.stop,Ht.searchAnimations=Wm,Ht.registerAnimation=pe.registerAnimation,Ht.loadAnimation=_E,Ht.setSubframeRendering=SE,Ht.resize=pe.resize,Ht.goToAndStop=pe.goToAndStop,Ht.destroy=pe.destroy,Ht.setQuality=CE,Ht.inBrowser=wE,Ht.installPlugin=kE,Ht.freeze=pe.freeze,Ht.unfreeze=pe.unfreeze,Ht.setVolume=pe.setVolume,Ht.mute=pe.mute,Ht.unmute=pe.unmute,Ht.getRegisteredAnimations=pe.getRegisteredAnimations,Ht.useWebWorker=s,Ht.setIDPrefix=IE,Ht.__getFactory=NE,Ht.version="5.12.2";function ME(){document.readyState==="complete"&&(clearInterval(RE),Wm())}function LE(r){for(var o=Ym.split("&"),n=0;n<o.length;n+=1){var d=o[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var Ym="";if(ol){var jm=document.getElementsByTagName("script"),OE=jm.length-1,qm=jm[OE]||{src:""};Ym=qm.src?qm.src.replace(/^[^\?]+\??/,""):"",Km=LE("renderer")}var RE=setInterval(ME,100);try{!((typeof tn>"u"?"undefined":il(tn))==="object"&&typeof Bl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ht)}catch{}var Bi=function(){var r={},o={};r.registerModifier=n,r.getModifier=d;function n(m,p){o[m]||(o[m]=p)}function d(m,p,g){return new o[m](p,g)}return r}();function Tr(){}Tr.prototype.initModifierProperties=function(){},Tr.prototype.addShapeToModifier=function(){},Tr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var o={shape:r.sh,data:r,localShapeCollection:Ss.newShapeCollection()};this.shapes.push(o),this.addShapeToModifier(o),this._isAnimated&&r.setAsAnimated()}},Tr.prototype.init=function(r,o){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,o),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Tr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ie],Tr);function Or(){}A([Tr],Or),Or.prototype.initModifierProperties=function(r,o){this.s=at.getProp(r,o.s,0,.01,this),this.e=at.getProp(r,o.e,0,.01,this),this.o=at.getProp(r,o.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=o.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Or.prototype.addShapeToModifier=function(r){r.pathsData=[]},Or.prototype.calculateShapeEdges=function(r,o,n,d,m){var p=[];o<=1?p.push({s:r,e:o}):r>=1?p.push({s:r-1,e:o-1}):(p.push({s:r,e:1}),p.push({s:0,e:o-1}));var g=[],I,b=p.length,k;for(I=0;I<b;I+=1)if(k=p[I],!(k.e*m<d||k.s*m>d+n)){var L,G;k.s*m<=d?L=0:L=(k.s*m-d)/n,k.e*m>=d+n?G=1:G=(k.e*m-d)/n,g.push([L,G])}return g.length||g.push([0,0]),g},Or.prototype.releasePathsData=function(r){var o,n=r.length;for(o=0;o<n;o+=1)Vm.release(r[o]);return r.length=0,r},Or.prototype.processShapes=function(r){var o,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?o=1+d:this.s.v<0?o=0+d:o=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,o>n){var m=o;o=n,n=m}o=Math.round(o*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=o,this.eValue=n}else o=this.sValue,n=this.eValue;var p,g,I=this.shapes.length,b,k,L,G,x,O=0;if(n===o)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&o===0||n===0&&o===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var F=[],R,H;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,k=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(L=this.releasePathsData(R.pathsData),b=0;b<k;b+=1)G=Kr.getSegmentsLength(p.shapes[b]),L.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=L}O+=x,R.shape._mdf=!0}var M=o,w=n,T=0,_;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(H=R.localShapeCollection,H.releaseShapes(),this.m===2&&I>1?(_=this.calculateShapeEdges(o,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):_=[[M,w]],k=_.length,b=0;b<k;b+=1){M=_[b][0],w=_[b][1],F.length=0,w<=1?F.push({s:R.totalShapeLength*M,e:R.totalShapeLength*w}):M>=1?F.push({s:R.totalShapeLength*(M-1),e:R.totalShapeLength*(w-1)}):(F.push({s:R.totalShapeLength*M,e:R.totalShapeLength}),F.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var U=N.pop();this.addPaths(N,H),N=this.addShapes(R,F[1],U)}else this.addPaths(N,H),N=this.addShapes(R,F[1])}this.addPaths(N,H)}}R.shape.paths=H}}},Or.prototype.addPaths=function(r,o){var n,d=r.length;for(n=0;n<d;n+=1)o.addShape(r[n])},Or.prototype.addSegment=function(r,o,n,d,m,p,g){m.setXYAt(o[0],o[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Or.prototype.addSegmentFromArray=function(r,o,n,d){o.setXYAt(r[1],r[5],"o",n),o.setXYAt(r[2],r[6],"i",n+1),d&&o.setXYAt(r[0],r[4],"v",n),o.setXYAt(r[3],r[7],"v",n+1)},Or.prototype.addShapes=function(r,o,n){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,b,k=0,L,G,x,O,F=[],R,H=!0;for(n?(G=n._length,R=n._length):(n=Le.newElement(),G=0,R=0),F.push(n),p=0;p<g;p+=1){for(x=d[p].lengths,n.c=m[p].c,b=m[p].c?x.length:x.length+1,I=1;I<b;I+=1)if(L=x[I-1],k+L.addedLength<o.s)k+=L.addedLength,n.c=!1;else if(k>o.e){n.c=!1;break}else o.s<=k&&o.e>=k+L.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,G,H),H=!1):(O=Kr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(o.s-k)/L.addedLength,(o.e-k)/L.addedLength,x[I-1]),this.addSegmentFromArray(O,n,G,H),H=!1,n.c=!1),k+=L.addedLength,G+=1;if(m[p].c&&x.length){if(L=x[I-1],k<=o.e){var M=x[I-1].addedLength;o.s<=k&&o.e>=k+M?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,G,H),H=!1):(O=Kr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(o.s-k)/M,(o.e-k)/M,x[I-1]),this.addSegmentFromArray(O,n,G,H),H=!1,n.c=!1)}else n.c=!1;k+=L.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>o.e)break;p<g-1&&(n=Le.newElement(),H=!0,F.push(n),G=0)}return F};function Sa(){}A([Tr],Sa),Sa.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.amount=at.getProp(r,o.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Sa.prototype.processPath=function(r,o){var n=o/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=Le.newElement();g.c=r.c;var I,b,k,L,G,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,b=r.v[p][1]+(d[1]-r.v[p][1])*n,k=r.o[p][0]+(d[0]-r.o[p][0])*-n,L=r.o[p][1]+(d[1]-r.o[p][1])*-n,G=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,g.setTripleAt(I,b,k,L,G,x,p);return g},Sa.prototype.processShapes=function(r){var o,n,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,o=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(o[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Ac=function(){var r=[0,0];function o(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 L,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?(L=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?(L=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)):(L=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){L=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(L[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),L[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?(L[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),L[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)):(L=[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=r,L=G;this.v.rotate(-Math.atan2(L[1]-G[1],L[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 m(){}function p(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,k,L){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Oe,this.pre=new Oe,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||b),k.p&&k.p.s?(this.px=at.getProp(b,k.p.x,0,0,this),this.py=at.getProp(b,k.p.y,0,0,this),k.p.z&&(this.pz=at.getProp(b,k.p.z,0,0,this))):this.p=at.getProp(b,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=at.getProp(b,k.rx,0,Nt,this),this.ry=at.getProp(b,k.ry,0,Nt,this),this.rz=at.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=at.getProp(b,k.or,1,Nt,this),this.or.sh=!0}else this.r=at.getProp(b,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=at.getProp(b,k.sk,0,Nt,this),this.sa=at.getProp(b,k.sa,0,Nt,this)),this.a=at.getProp(b,k.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(b,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=at.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:o,getValue:n,precalculateMatrix:d,autoOrient:m},A([Ie],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Ie.prototype.addDynamicProperty;function I(b,k,L){return new g(b,k,L)}return{getTransformProperty:I}}();function Wr(){}A([Tr],Wr),Wr.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.c=at.getProp(r,o.c,0,null,this),this.o=at.getProp(r,o.o,0,null,this),this.tr=Ac.getTransformProperty(r,o.tr,this),this.so=at.getProp(r,o.tr.so,0,.01,this),this.eo=at.getProp(r,o.tr.eo,0,.01,this),this.data=o,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Oe,this.rMatrix=new Oe,this.sMatrix=new Oe,this.tMatrix=new Oe,this.matrix=new Oe},Wr.prototype.applyTransforms=function(r,o,n,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),b=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),o.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),o.rotate(-d.r.v*g*m),o.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Wr.prototype.init=function(r,o,n,d){for(this.elem=r,this.arr=o,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,o[n]);n>0;)n-=1,this._elements.unshift(o[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Wr.prototype.resetElements=function(r){var o,n=r.length;for(o=0;o<n;o+=1)r[o]._processed=!1,r[o].ty==="gr"&&this.resetElements(r[o].it)},Wr.prototype.cloneElements=function(r){var o=JSON.parse(JSON.stringify(r));return this.resetElements(o),o},Wr.prototype.changeGroupRender=function(r,o){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=o,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,o)},Wr.prototype.processShapes=function(r){var o,n,d,m,p,g=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}p=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=p<I,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var L=this.elemsData[d].it,G=L[L.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,H=this.rMatrix.props,M=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,_;p;){if(o=this.elemsData[d].it,n=o[o.length-1].transform.mProps.v.props,_=n.length,o[o.length-1].transform.mProps._mdf=!0,o[o.length-1].transform.op._mdf=!0,o[o.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&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<_;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<_;T+=1)n[T]=this.matrix.props[T];w+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)o=this.elemsData[d].it,n=o[o.length-1].transform.mProps.v.props,o[o.length-1].transform.mProps._mdf=!1,o[o.length-1].transform.op._mdf=!1,p-=1,d+=m;return g},Wr.prototype.addShape=function(){};function Ia(){}A([Tr],Ia),Ia.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.rd=at.getProp(r,o.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ia.prototype.processPath=function(r,o){var n=Le.newElement();n.c=r.c;var d,m=r._length,p,g,I,b,k,L,G=0,x,O,F,R,H,M;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],G),G+=1):(d===0?b=r.v[m-1]:b=r.v[d-1],k=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=k?Math.min(k/2,o)/k:0,H=p[0]+(b[0]-p[0])*L,x=H,M=p[1]-(p[1]-b[1])*L,O=M,F=x-(x-p[0])*he,R=O-(O-p[1])*he,n.setTripleAt(x,O,F,R,H,M,G),G+=1,d===m-1?b=r.v[0]:b=r.v[d+1],k=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=k?Math.min(k/2,o)/k:0,F=p[0]+(b[0]-p[0])*L,x=F,R=p[1]+(b[1]-p[1])*L,O=R,H=x-(x-p[0])*he,M=O-(O-p[1])*he,n.setTripleAt(x,O,F,R,H,M,G),G+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],G),G+=1);return n},Ia.prototype.processShapes=function(r){var o,n,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,o=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(o[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function sl(r,o){return Math.abs(r-o)*1e5<=Math.min(Math.abs(r),Math.abs(o))}function Sc(r){return Math.abs(r)<=1e-5}function Xm(r,o,n){return r*(1-n)+o*n}function Hi(r,o,n){return[Xm(r[0],o[0],n),Xm(r[1],o[1],n)]}function DE(r,o,n){if(r===0)return[];var d=o*o-4*r*n;if(d<0)return[];var m=-o/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function Zm(r,o,n,d){return[-r+3*o-3*n+d,3*r-6*o+3*n,-3*r+3*o,r]}function Qm(r){return new oe(r,r,r,r,!1)}function oe(r,o,n,d,m){m&&_s(r,o)&&(o=Hi(r,d,1/3)),m&&_s(n,d)&&(n=Hi(r,d,2/3));var p=Zm(r[0],o[0],n[0],d[0]),g=Zm(r[1],o[1],n[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,o,n,d]}oe.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},oe.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},oe.prototype.tangentAngle=function(r){var o=this.derivative(r);return Math.atan2(o[1],o[0])},oe.prototype.normalAngle=function(r){var o=this.derivative(r);return Math.atan2(o[0],o[1])},oe.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Sc(r))return[];var o=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=o*o-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Sc(d)?d>0&&d<1?[o]:[]:[o-d,o+d].filter(function(m){return m>0&&m<1})},oe.prototype.split=function(r){if(r<=0)return[Qm(this.points[0]),this];if(r>=1)return[this,Qm(this.points[this.points.length-1])];var o=Hi(this.points[0],this.points[1],r),n=Hi(this.points[1],this.points[2],r),d=Hi(this.points[2],this.points[3],r),m=Hi(o,n,r),p=Hi(n,d,r),g=Hi(m,p,r);return[new oe(this.points[0],o,m,g,!0),new oe(g,p,d,this.points[3],!0)]};function Jm(r,o){var n=r.points[0][o],d=r.points[r.points.length-1][o];if(n>d){var m=d;d=n,n=m}for(var p=DE(3*r.a[o],2*r.b[o],r.c[o]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[o];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}oe.prototype.bounds=function(){return{x:Jm(this,0),y:Jm(this,1)}},oe.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function al(r,o,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(o+n)/2,t1:o,t2:n}}function tu(r){var o=r.bez.split(.5);return[al(o[0],r.t1,r.t),al(o[1],r.t,r.t2)]}function PE(r,o){return Math.abs(r.cx-o.cx)*2<r.width+o.width&&Math.abs(r.cy-o.cy)*2<r.height+o.height}function _a(r,o,n,d,m,p){if(PE(r,o)){if(n>=p||r.width<=d&&r.height<=d&&o.width<=d&&o.height<=d){m.push([r.t,o.t]);return}var g=tu(r),I=tu(o);_a(g[0],I[0],n+1,d,m,p),_a(g[0],I[1],n+1,d,m,p),_a(g[1],I[0],n+1,d,m,p),_a(g[1],I[1],n+1,d,m,p)}}oe.prototype.intersections=function(r,o,n){o===void 0&&(o=2),n===void 0&&(n=7);var d=[];return _a(al(this,0,1),al(r,0,1),0,o,d,n),d},oe.shapeSegment=function(r,o){var n=(o+1)%r.length();return new oe(r.v[o],r.o[o],r.i[n],r.v[n],!0)},oe.shapeSegmentInverted=function(r,o){var n=(o+1)%r.length();return new oe(r.v[n],r.i[n],r.o[o],r.v[o],!0)};function Ic(r,o){return[r[1]*o[2]-r[2]*o[1],r[2]*o[0]-r[0]*o[2],r[0]*o[1]-r[1]*o[0]]}function nl(r,o,n,d){var m=[r[0],r[1],1],p=[o[0],o[1],1],g=[n[0],n[1],1],I=[d[0],d[1],1],b=Ic(Ic(m,p),Ic(g,I));return Sc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function Is(r,o,n){return[r[0]+Math.cos(o)*n,r[1]-Math.sin(o)*n]}function _c(r,o){return Math.hypot(r[0]-o[0],r[1]-o[1])}function _s(r,o){return sl(r[0],o[0])&&sl(r[1],o[1])}function Ca(){}A([Tr],Ca),Ca.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.amplitude=at.getProp(r,o.s,0,null,this),this.frequency=at.getProp(r,o.r,0,null,this),this.pointsType=at.getProp(r,o.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function eu(r,o,n,d,m,p,g){var I=n-Math.PI/2,b=n+Math.PI/2,k=o[0]+Math.cos(n)*d*m,L=o[1]-Math.sin(n)*d*m;r.setTripleAt(k,L,k+Math.cos(I)*p,L-Math.sin(I)*p,k+Math.cos(b)*g,L-Math.sin(b)*g,r.length())}function FE(r,o){var n=[o[0]-r[0],o[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function $E(r,o){var n=o===0?r.length()-1:o-1,d=(o+1)%r.length(),m=r.v[n],p=r.v[d],g=FE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function ru(r,o,n,d,m,p,g){var I=$E(o,n),b=o.v[n%o._length],k=o.v[n===0?o._length-1:n-1],L=o.v[(n+1)%o._length],G=p===2?Math.sqrt(Math.pow(b[0]-k[0],2)+Math.pow(b[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(b[0]-L[0],2)+Math.pow(b[1]-L[1],2)):0;eu(r,o.v[n%o._length],I,g,d,x/((m+1)*2),G/((m+1)*2),p)}function VE(r,o,n,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+1),b=m===2?Math.sqrt(Math.pow(o.points[3][0]-o.points[0][0],2)+Math.pow(o.points[3][1]-o.points[0][1],2)):0,k=o.normalAngle(I),L=o.point(I);eu(r,L,k,p,n,b/((d+1)*2),b/((d+1)*2),m),p=-p}return p}Ca.prototype.processPath=function(r,o,n,d){var m=r._length,p=Le.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=oe.shapeSegment(r,0);ru(p,r,0,o,n,d,g);for(var b=0;b<m;b+=1)g=VE(p,I,o,n,d,-g),b===m-1&&!r.c?I=null:I=oe.shapeSegment(r,(b+1)%m),ru(p,r,b+1,o,n,d,g);return p},Ca.prototype.processShapes=function(r){var o,n,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var k,L;for(n=0;n<d;n+=1){if(k=this.shapes[n],L=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),k.shape._mdf=!0,o=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(o[m],g,I,b));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Cc(r,o,n){var d=Math.atan2(o[0]-r[0],o[1]-r[1]);return[Is(r,d,n),Is(o,d,n)]}function Cs(r,o){var n,d,m,p,g,I,b;b=Cc(r.points[0],r.points[1],o),n=b[0],d=b[1],b=Cc(r.points[1],r.points[2],o),m=b[0],p=b[1],b=Cc(r.points[2],r.points[3],o),g=b[0],I=b[1];var k=nl(n,d,m,p);k===null&&(k=d);var L=nl(g,I,m,p);return L===null&&(L=g),new oe(n,k,L,I)}function iu(r,o,n,d,m){var p=o.points[3],g=n.points[0];if(d===3||_s(p,g))return p;if(d===2){var I=-o.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,k=nl(p,Is(p,I+Math.PI/2,100),g,Is(g,I+Math.PI/2,100)),L=k?_c(k,p):_c(p,g)/2,G=Is(p,I,2*L*he);return r.setXYAt(G[0],G[1],"o",r.length()-1),G=Is(g,b,2*L*he),r.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],r.length()),g}var x=_s(p,o.points[2])?o.points[0]:o.points[2],O=_s(g,n.points[1])?n.points[3]:n.points[1],F=nl(x,p,g,O);return F&&_c(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function ou(r,o){var n=r.intersections(o);return n.length&&sl(n[0][0],1)&&n.shift(),n.length?n[0]:null}function su(r,o){var n=r.slice(),d=o.slice(),m=ou(r[r.length-1],o[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=o[0].split(m[1])[1]),r.length>1&&o.length>1&&(m=ou(r[0],o[o.length-1]),m)?[[r[0].split(m[0])[0]],[o[o.length-1].split(m[1])[1]]]:[n,d]}function zE(r){for(var o,n=1;n<r.length;n+=1)o=su(r[n-1],r[n]),r[n-1]=o[0],r[n]=o[1];return r.length>1&&(o=su(r[r.length-1],r[0]),r[r.length-1]=o[0],r[0]=o[1]),r}function au(r,o){var n=r.inflectionPoints(),d,m,p,g;if(n.length===0)return[Cs(r,o)];if(n.length===1||sl(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[Cs(d,o),Cs(m,o)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),g=p[0],m=p[1],[Cs(d,o),Cs(g,o),Cs(m,o)]}function wa(){}A([Tr],wa),wa.prototype.initModifierProperties=function(r,o){this.getValue=this.processKeys,this.amount=at.getProp(r,o.a,0,null,this),this.miterLimit=at.getProp(r,o.ml,0,null,this),this.lineJoin=o.lj,this._isAnimated=this.amount.effectsSequence.length!==0},wa.prototype.processPath=function(r,o,n,d){var m=Le.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,b,k=[];for(g=0;g<p;g+=1)b=oe.shapeSegment(r,g),k.push(au(b,o));if(!r.c)for(g=p-1;g>=0;g-=1)b=oe.shapeSegmentInverted(r,g),k.push(au(b,o));k=zE(k);var L=null,G=null;for(g=0;g<k.length;g+=1){var x=k[g];for(G&&(L=iu(m,G,x[0],n,d)),G=x[x.length-1],I=0;I<x.length;I+=1)b=x[I],L&&_s(b.points[0],L)?m.setXYAt(b.points[1][0],b.points[1][1],"o",m.length()-1):m.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],m.length()),m.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],m.length()),L=b.points[3]}return k.length&&iu(m,G,k[0][0],n,d),m},wa.prototype.processShapes=function(r){var o,n,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,b=this.lineJoin;if(g!==0){var k,L;for(n=0;n<d;n+=1){if(k=this.shapes[n],L=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),k.shape._mdf=!0,o=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(o[m],g,b,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nu(r){for(var o=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=o.length,p,g=0;g<m;g+=1)switch(p=o[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var ko=function(){var r=5e3,o={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,g=917626,I=65039,b=8205,k=127462,L=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var D=C.split(","),v,E=D.length,Y=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&Y.push(D[v]);return Y.join(",")}function O(C,D){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var Y=E.offsetWidth;return E.style.fontFamily=x(C)+", "+D,{node:E,w:Y,parent:v}}function F(){var C,D=this.fonts.length,v,E,Y=D;for(C=0;C<D;C+=1)this.fonts[C].loaded?Y-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(Y-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(Y-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));Y!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,D){var v=document.body&&D?"svg":"canvas",E,Y=nu(C);if(v==="svg"){var V=At("text");V.style.fontSize="100px",V.setAttribute("font-family",C.fFamily),V.setAttribute("font-style",Y.style),V.setAttribute("font-weight",Y.weight),V.textContent="1",C.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",C.fClass)):V.style.fontFamily=C.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=Y.style+" "+Y.weight+" 100px "+C.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function H(C,D){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(Qe){Qe.helper=R(Qe),Qe.cache={}}),this.fonts=C.list;return}var v=C.list,E,Y=v.length,V=Y;for(E=0;E<Y;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Dt=y("style");Dt.setAttribute("f-forigin",v[E].fOrigin),Dt.setAttribute("f-origin",v[E].origin),Dt.setAttribute("f-family",v[E].fFamily),Dt.type="text/css",Dt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Dt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Pt=y("link");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.type="text/css",Pt.rel="stylesheet",Pt.href=v[E].fPath,document.body.appendChild(Pt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var me=y("link");me.setAttribute("f-forigin",v[E].fOrigin),me.setAttribute("f-origin",v[E].origin),me.setAttribute("rel","stylesheet"),me.setAttribute("href",v[E].fPath),D.appendChild(me)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function M(C){if(C){this.chars||(this.chars=[]);var D,v=C.length,E,Y=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<Y;)this.chars[E].style===C[D].style&&this.chars[E].fFamily===C[D].fFamily&&this.chars[E].ch===C[D].ch&&(V=!0),E+=1;V||(this.chars.push(C[D]),Y+=1)}}}function w(C,D,v){for(var E=0,Y=this.chars.length;E<Y;){if(this.chars[E].ch===C&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,D,v)),o}function T(C,D,v){var E=this.getFontByName(D),Y=C;if(!E.cache[Y]){var V=E.helper;if(C===" "){var ct=V.measureText("|"+C+"|"),gt=V.measureText("||");E.cache[Y]=(ct-gt)/100}else E.cache[Y]=V.measureText(C)/100}return E.cache[Y]*v}function _(C){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===C)return this.fonts[D];D+=1}return this.fonts[0]}function N(C){var D=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(C,D){var v=C.toString(16)+D.toString(16);return G.indexOf(v)!==-1}function U(C){return C===b}function q(C){return C===I}function it(C){var D=N(C);return D>=k&&D<=L}function Tt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return n.indexOf(C)!==-1}function st(C,D){var v=N(C.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(C.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(C.substr(D,2))===m}function St(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=$,ht.isZeroWidthJoiner=U,ht.isFlagEmoji=Tt,ht.isRegionalCode=it,ht.isCombinedCharacter=ut,ht.isRegionalFlag=st,ht.isVariationSelector=q,ht.BLACK_FLAG_CODE_POINT=d;var rt={addChars:M,addFonts:H,getCharData:w,getFontByName:_,measureText:T,checkLoadedFonts:F,setIsLoaded:St};return ht.prototype=rt,ht}();function lu(r){this.animationData=r}lu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function BE(r){return new lu(r)}function ll(){}ll.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(o){this.renderableComponents.indexOf(o)===-1&&this.renderableComponents.push(o)},removeRenderableComponent:function(o){this.renderableComponents.indexOf(o)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(o),1)},prepareRenderableFrame:function(o){this.checkLayerLimits(o)},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(o){this.data.ip-this.data.st<=o&&this.data.op-this.data.st>o?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 o,n=this.renderableComponents.length;for(o=0;o<n;o+=1)this.renderableComponents[o].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 wc=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(o){return r[o]||""}}();function HE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function UE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function GE(r,o,n){this.p=at.getProp(o,r.v,1,0,n)}function KE(r,o,n){this.p=at.getProp(o,r.v,1,0,n)}function WE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function YE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function jE(r,o,n){this.p=at.getProp(o,r.v,0,0,n)}function qE(){this.p={}}function du(r,o){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new ka(n[d],o),this.effectElements.push(p)}function ka(r,o){this.init(r,o)}A([Ie],ka),ka.prototype.getValue=ka.prototype.iterateDynamicProperties,ka.prototype.init=function(r,o){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(o);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new HE(p[n],o,this);break;case 1:m=new UE(p[n],o,this);break;case 2:m=new GE(p[n],o,this);break;case 3:m=new KE(p[n],o,this);break;case 4:case 7:m=new jE(p[n],o,this);break;case 10:m=new WE(p[n],o,this);break;case 11:m=new YE(p[n],o,this);break;case 5:m=new du(p[n],o,this);break;default:m=new qE(p[n],o,this);break}m&&this.effectElements.push(m)}};function Ui(){}Ui.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var o=0,n=this.data.masksProperties.length;o<n;){if(this.data.masksProperties[o].mode!=="n"&&this.data.masksProperties[o].cl!==!1)return!0;o+=1}return!1},initExpressions:function(){var o=Dm();if(o){var n=o("layer"),d=o("effects"),m=o("shape"),p=o("text"),g=o("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var o=wc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=o},initBaseData:function(o,n,d){this.globalData=n,this.comp=d,this.data=o,this.layerId=Xe(),this.data.sr||(this.data.sr=1),this.effectsManager=new du(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Gi(){}Gi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(o,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(o){this.dynamicProperties.indexOf(o)===-1&&this.dynamicProperties.push(o)}};function Ki(r,o,n){this.initFrame(),this.initRenderable(),this.assetData=o.getAssetData(r.refId),this.footageData=o.imageLoader.getAsset(this.assetData),this.initBaseData(r,o,n)}Ki.prototype.prepareFrame=function(){},A([ll,Ui,Gi],Ki),Ki.prototype.getBaseElement=function(){return null},Ki.prototype.renderFrame=function(){},Ki.prototype.destroy=function(){},Ki.prototype.initExpressions=function(){var r=Dm();if(r){var o=r("footage");this.layerInterface=o(this)}},Ki.prototype.getFootageData=function(){return this.footageData};function Ze(r,o,n){this.initFrame(),this.initRenderable(),this.assetData=o.getAssetData(r.refId),this.initBaseData(r,o,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?at.getProp(this,r.tm,0,o.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}Ze.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var o=this.tm.v;this._currentTime=o}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([ll,Ui,Gi],Ze),Ze.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))},Ze.prototype.show=function(){},Ze.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ze.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ze.prototype.resume=function(){this._canPlay=!0},Ze.prototype.setRate=function(r){this.audio.rate(r)},Ze.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},Ze.prototype.getBaseElement=function(){return null},Ze.prototype.destroy=function(){},Ze.prototype.sourceRectAtTime=function(){},Ze.prototype.initExpressions=function(){};function Re(){}Re.prototype.checkLayers=function(r){var o,n=this.layers.length,d;for(this.completeLayers=!0,o=n-1;o>=0;o-=1)this.elements[o]||(d=this.layers[o],d.ip-d.st<=r-this.layers[o].st&&d.op-d.st>r-this.layers[o].st&&this.buildItem(o)),this.completeLayers=this.elements[o]?this.completeLayers:!1;this.checkPendingElements()},Re.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Re.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Re.prototype.createAudio=function(r){return new Ze(r,this.globalData,this)},Re.prototype.createFootage=function(r){return new Ki(r,this.globalData,this)},Re.prototype.buildAllItems=function(){var r,o=this.layers.length;for(r=0;r<o;r+=1)this.buildItem(r);this.checkPendingElements()},Re.prototype.includeLayers=function(r){this.completeLayers=!1;var o,n=r.length,d,m=this.layers.length;for(o=0;o<n;o+=1)for(d=0;d<m;){if(this.layers[d].id===r[o].id){this.layers[d]=r[o];break}d+=1}},Re.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Re.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Re.prototype.buildElementParenting=function(r,o,n){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==o&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Re.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Re.prototype.searchExtraCompositions=function(r){var o,n=r.length;for(o=0;o<n;o+=1)if(r[o].xt){var d=this.createComp(r[o]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Re.prototype.getElementById=function(r){var o,n=this.elements.length;for(o=0;o<n;o+=1)if(this.elements[o].data.ind===r)return this.elements[o];return null},Re.prototype.getElementByPath=function(r){var o=r.shift(),n;if(typeof o=="number")n=this.elements[o];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===o){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Re.prototype.setupGlobalData=function(r,o){this.globalData.fontManager=new ko,this.globalData.slotManager=BE(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,o),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var XE={TRANSFORM_EFFECT:"transformEFfect"};function ws(){}ws.prototype={initTransform:function(){var o=new Oe;this.finalTransform={mProp:this.data.ks?Ac.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:o,localMat:o,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 o,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(o=this.finalTransform.mProp.v.props,n.cloneFromProps(o),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var o=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;o<n;)this.localTransforms[o]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[o]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),o+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),o=1;o<n;o+=1){var m=this.localTransforms[o].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(o=0;o<n;o+=1)p*=this.localTransforms[o].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var o=this.renderableEffectsManager.getEffects(XE.TRANSFORM_EFFECT);if(o.length){this.localTransforms=[],this.finalTransform.localMat=new Oe;var n=0,d=o.length;for(n=0;n<d;n+=1)this.localTransforms.push(o[n])}}},globalToLocal:function(o){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=n.length,I;for(p=0;p<g;p+=1)I=n[p].mat.applyToPointArray(0,0,0),o=[o[0]-I[0],o[1]-I[1],0];return o},mHelper:new Oe};function No(r,o,n){this.data=r,this.element=o,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(p),this.solidPath="";var g,I=this.masksProperties,b=0,k=[],L,G,x=Xe(),O,F,R,H,M="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(M="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&b===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:at.getProp(this.element,I[m].o,0,.01,this.element),prop:rl.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(M="mask",w="mask",H=at.getProp(this.element,I[m].x,0,null,this.element),T=Xe(),F=At("filter"),F.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),F.appendChild(R),d.appendChild(F),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,H=null),this.storedData[m]={elem:g,x:H,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){G=k.length;var _=At("g");for(L=0;L<G;L+=1)_.appendChild(k[L]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),_.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),k.length=0,k.push(_)}else k.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:at.getProp(this.element,I[m].o,0,.01,this.element),prop:rl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=At(M),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);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)}No.prototype.getMaskProperty=function(r){return this.viewData[r].prop},No.prototype.renderFrame=function(r){var o=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",o.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},No.prototype.getMaskelement=function(){return this.maskElement},No.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},No.prototype.drawPath=function(r,o,n){var d=" M"+o.v[0][0]+","+o.v[0][1],m,p;for(p=o._length,m=1;m<p;m+=1)d+=" C"+o.o[m-1][0]+","+o.o[m-1][1]+" "+o.i[m][0]+","+o.i[m][1]+" "+o.v[m][0]+","+o.v[m][1];if(o.c&&p>1&&(d+=" C"+o.o[m-1][0]+","+o.o[m-1][1]+" "+o.i[0][0]+","+o.i[0][1]+" "+o.v[0][0]+","+o.v[0][1]),n.lastPath!==d){var g="";n.elem&&(o.c&&(g=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},No.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Na=function(){var r={};r.createFilter=o,r.createAlphaToLuminanceFilter=n;function o(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),cu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),dl={},hu="filter_result_";function kc(r){var o,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=Xe(),p=Na.createFilter(m,!0),g=0;this.filters=[];var I;for(o=0;o<d;o+=1){I=null;var b=r.data.ef[o].ty;if(dl[b]){var k=dl[b].effect;I=new k(p,r.effectsManager.effectElements[o],r,hu+g,n),n=hu+g,dl[b].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}kc.prototype.renderFrame=function(r){var o,n=this.filters.length;for(o=0;o<n;o+=1)this.filters[o].renderFrame(r)},kc.prototype.getEffects=function(r){var o,n=this.filters.length,d=[];for(o=0;o<n;o+=1)this.filters[o].type===r&&d.push(this.filters[o]);return d};function pI(r,o,n){dl[r]={effect:o,countsAsEffect:n}}function Ma(){}Ma.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var o=null;if(this.data.td){this.matteMasks={};var n=At("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),o=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),o=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=At("clipPath"),m=At("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=Xe();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,o?o.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new No(this.data,this,this.globalData),this.renderableEffectsManager=new kc(this),this.searchEffectTransforms()},getMatte:function(o){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[o]){var n=this.layerId+"_"+o,d,m,p,g;if(o===1||o===3){var I=At("mask");I.setAttribute("id",n),I.setAttribute("mask-type",o===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!cu.maskType&&o===1&&(I.setAttribute("mask-type","luminance"),d=Xe(),m=Na.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Na.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(o===2){var b=At("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var k=At("g");b.appendChild(k),d=Xe(),m=Na.createFilter(d);var L=At("feComponentTransfer");L.setAttribute("in","SourceGraphic"),m.appendChild(L);var G=At("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),L.appendChild(G),this.globalData.defs.appendChild(m);var x=At("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),cu.maskType||(b.setAttribute("mask-type","luminance"),m.appendChild(Na.createAlphaToLuminanceFilter()),g=At("g"),k.appendChild(x),g.appendChild(this.layerElement),k.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[o]=n}return this.matteMasks[o]},setMatte:function(o){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+o+")")}};function ks(){}ks.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(o){this.hierarchy=o},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function La(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([ll,K(r)],La)})();function Oa(r,o,n){this.assetData=o.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=o.slotManager.getProp(this.assetData)),this.initElement(r,o,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Ui,ws,Ma,ks,Gi,La],Oa),Oa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Oa.prototype.sourceRectAtTime=function(){return this.sourceRect};function ZE(r,o){this.elem=r,this.pos=o}function pu(){}pu.prototype={addShapeToModifiers:function(o){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(o)},isShapeInAnimatedModifiers:function(o){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(o))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var o,n=this.shapes.length;for(o=0;o<n;o+=1)this.shapes[o].sh.reset();n=this.shapeModifiers.length;var d;for(o=n-1;o>=0&&(d=this.shapeModifiers[o].processShapes(this._isFirstFrame),!d);o-=1);}},searchProcessedElement:function(o){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===o)return n[d].pos;d+=1}return 0},addProcessedElement:function(o,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===o){d[m].pos=n;return}d.push(new ZE(o,n))},prepareFrame:function(o){this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)}};var mu={1:"butt",2:"round",3:"square"},uu={1:"miter",2:"round",3:"bevel"};function fu(r,o,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=o,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}fu.prototype.setAsAnimated=function(){this._isAnimated=!0};function vu(r,o){this.data=r,this.type=r.ty,this.d="",this.lvl=o,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}vu.prototype.reset=function(){this.d="",this._mdf=!1};function cl(r,o,n,d){this.elem=r,this.frameId=-1,this.dataProps=tt(o.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",o.length?o.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var m,p=o.length||0,g;for(m=0;m<p;m+=1)g=at.getProp(r,o[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:o[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}cl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var o=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),o=0;o<n;o+=1)this.dataProps[o].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[o].p.v:this.dashArray[o]=this.dataProps[o].p.v:this.dashoffset[0]=this.dataProps[o].p.v}},A([Ie],cl);function gu(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(r,o.o,0,.01,this),this.w=at.getProp(r,o.w,0,null,this),this.d=new cl(r,o.d||{},"svg",this),this.c=at.getProp(r,o.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Ie],gu);function bu(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(r,o.o,0,.01,this),this.c=at.getProp(r,o.c,1,255,this),this.style=n}A([Ie],bu);function yu(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Ie],yu);function Ra(r,o,n){this.data=o,this.c=Z("uint8c",o.p*4);var d=o.k.k[0].s?o.k.k[0].s.length-o.p*4:o.k.k.length-o.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=at.getProp(r,o.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ra.prototype.comparePoints=function(r,o){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[o*4+n*2]),m>.01)return!1;n+=1}return!0},Ra.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,o=this.data.k.k.length;r<o;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ra.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var o,n=this.data.p*4,d,m;for(o=0;o<n;o+=1)d=o%4===0?100:255,m=Math.round(this.prop.v[o]*d),this.c[o]!==m&&(this.c[o]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,o=this.data.p*4;o<n;o+=1)d=o%2===0?100:1,m=o%2===0?Math.round(this.prop.v[o]*100):this.prop.v[o],this.o[o-this.data.p*4]!==m&&(this.o[o-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ie],Ra);function Ns(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,o,n)}Ns.prototype.initGradientData=function(r,o,n){this.o=at.getProp(r,o.o,0,.01,this),this.s=at.getProp(r,o.s,1,null,this),this.e=at.getProp(r,o.e,1,null,this),this.h=at.getProp(r,o.h||{k:0},0,.01,this),this.a=at.getProp(r,o.a||{k:0},0,Nt,this),this.g=new Ra(r,o.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,o),this.setGradientOpacity(o,n),this._isAnimated=!!this._isAnimated},Ns.prototype.setGradientData=function(r,o){var n=Xe(),d=At(o.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=o.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(o.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ns.prototype.setGradientOpacity=function(r,o){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=Xe(),b=Xe();p.setAttribute("id",b);var k=At(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var L=this.stops;for(d=r.g.p*4;d<m;d+=2)n=At("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),L.push(n);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",mu[r.lc||2]),g.setAttribute("stroke-linejoin",uu[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=L,this.maskId=b,o.msElem=g}},A([Ie],Ns);function Eu(r,o,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(r,o.w,0,null,this),this.d=new cl(r,o.d||{},"svg",this),this.initGradientData(r,o,n),this._isAnimated=!!this._isAnimated}A([Ns,Ie],Eu);function QE(){this.it=[],this.prevViewData=[],this.gr=At("g")}function JE(r,o,n){this.transform={mProps:r,op:o,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Tu=function(o,n,d,m){if(n===0)return"";var p=o.o,g=o.i,I=o.v,b,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(b=1;b<n;b+=1)k+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[b][0],g[b][1])+" "+m.applyToPointStringified(I[b][0],I[b][1]);return d&&n&&(k+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},tT=function(){var r=new Oe,o=new Oe,n={createRenderFunction:d};function d(G){switch(G.ty){case"fl":return I;case"gf":return k;case"gs":return b;case"st":return L;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(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 p(){}function g(G,x,O){var F,R,H,M,w,T,_=x.styles.length,N=x.lvl,$,U,q,it;for(T=0;T<_;T+=1){if(M=x.sh._mdf||O,x.styles[T].lvl<N){for(U=o.reset(),q=N-x.styles[T].lvl,it=x.transformers.length-1;!M&&q>0;)M=x.transformers[it].mProps._mdf||M,q-=1,it-=1;if(M)for(q=N-x.styles[T].lvl,it=x.transformers.length-1;q>0;)U.multiply(x.transformers[it].mProps.v),q-=1,it-=1}else U=r;if($=x.sh.paths,R=$._length,M){for(H="",F=0;F<R;F+=1)w=$.shapes[F],w&&w._length&&(H+=Tu(w,w._length,w.c,U));x.caches[T]=H}else H=x.caches[T];x.styles[T].d+=G.hd===!0?"":H,x.styles[T]._mdf=M||x.styles[T]._mdf}}function I(G,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){k(G,x,O),L(G,x,O)}function k(G,x,O){var F=x.gf,R=x.g._hasOpacity,H=x.s.v,M=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",_=T==="x1"?"y1":"cy";F.setAttribute(T,H[0]),F.setAttribute(_,H[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,H[0]),x.of.setAttribute(_,H[1]))}var N,$,U,q;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(U=N.length,$=0;$<U;$+=1)q=N[$],q.setAttribute("offset",it[$*4]+"%"),q.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,U=N.length,$=0;$<U;$+=1)q=N[$],x.g._collapsable||q.setAttribute("offset",Tt[$*2]+"%"),q.setAttribute("stop-opacity",Tt[$*2+1])}if(G.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",M[0]),F.setAttribute("y2",M[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",M[0]),x.of.setAttribute("y2",M[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)),F.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)));var st=Math.atan2(M[1]-H[1],M[0]-H[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var ht=ut*St,rt=Math.cos(st+x.a.v)*ht+H[0],C=Math.sin(st+x.a.v)*ht+H[1];F.setAttribute("fx",rt),F.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function L(G,x,O){var F=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(F.pElem.setAttribute("stroke-dasharray",R.dashStr),F.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return n}();function ne(r,o,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,o,n),this.prevViewData=[]}A([Ui,ws,Ma,pu,ks,Gi,La],ne),ne.prototype.initSecondaryElement=function(){},ne.prototype.identityMatrix=new Oe,ne.prototype.buildExpressionInterface=function(){},ne.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ne.prototype.filterUniqueShapes=function(){var r,o=this.shapes.length,n,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<o;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(g.push(n),I=n._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},ne.prototype.setShapesAsAnimated=function(r){var o,n=r.length;for(o=0;o<n;o+=1)r[o].setAsAnimated()},ne.prototype.createStyleElement=function(r,o){var n,d=new vu(r,o),m=d.pElem;if(r.ty==="st")n=new gu(this,r,d);else if(r.ty==="fl")n=new bu(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ns:Eu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new yu(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",mu[r.lc||2]),m.setAttribute("stroke-linejoin",uu[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=wc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},ne.prototype.createGroupElement=function(r){var o=new QE;return r.ln&&o.gr.setAttribute("id",r.ln),r.cl&&o.gr.setAttribute("class",r.cl),r.bm&&(o.gr.style["mix-blend-mode"]=wc(r.bm)),o},ne.prototype.createTransformElement=function(r,o){var n=Ac.getTransformProperty(this,r,this),d=new JE(n,n.o,o);return this.addToAnimatedContents(r,d),d},ne.prototype.createShapeElement=function(r,o,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=rl.getShapeProp(this,r,d,this),p=new fu(o,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ne.prototype.addToAnimatedContents=function(r,o){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===o)return;n+=1}this.animatedContents.push({fn:tT.createRenderFunction(r),element:o,data:r})},ne.prototype.setElementStyles=function(r){var o=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||o.push(this.stylesList[n])},ne.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,o=this.itemsData.length;for(r=0;r<o;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),o=this.dynamicProperties.length,r=0;r<o;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},ne.prototype.searchShapes=function(r,o,n,d,m,p,g){var I=[].concat(p),b,k=r.length-1,L,G,x=[],O=[],F,R,H;for(b=k;b>=0;b-=1){if(H=this.searchProcessedElement(r[b]),H?o[b]=n[H-1]:r[b]._render=g,r[b].ty==="fl"||r[b].ty==="st"||r[b].ty==="gf"||r[b].ty==="gs"||r[b].ty==="no")H?o[b].style.closed=!1:o[b]=this.createStyleElement(r[b],m),r[b]._render&&o[b].style.pElem.parentNode!==d&&d.appendChild(o[b].style.pElem),x.push(o[b].style);else if(r[b].ty==="gr"){if(!H)o[b]=this.createGroupElement(r[b]);else for(G=o[b].it.length,L=0;L<G;L+=1)o[b].prevViewData[L]=o[b].it[L];this.searchShapes(r[b].it,o[b].it,o[b].prevViewData,o[b].gr,m+1,I,g),r[b]._render&&o[b].gr.parentNode!==d&&d.appendChild(o[b].gr)}else r[b].ty==="tr"?(H||(o[b]=this.createTransformElement(r[b],d)),F=o[b].transform,I.push(F)):r[b].ty==="sh"||r[b].ty==="rc"||r[b].ty==="el"||r[b].ty==="sr"?(H||(o[b]=this.createShapeElement(r[b],I,m)),this.setElementStyles(o[b])):r[b].ty==="tm"||r[b].ty==="rd"||r[b].ty==="ms"||r[b].ty==="pb"||r[b].ty==="zz"||r[b].ty==="op"?(H?(R=o[b],R.closed=!1):(R=Bi.getModifier(r[b].ty),R.init(this,r[b]),o[b]=R,this.shapeModifiers.push(R)),O.push(R)):r[b].ty==="rp"&&(H?(R=o[b],R.closed=!0):(R=Bi.getModifier(r[b].ty),o[b]=R,R.init(this,r,b,o),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[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},ne.prototype.renderInnerContent=function(){this.renderModifiers();var r,o=this.stylesList.length;for(r=0;r<o;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<o;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},ne.prototype.renderShape=function(){var r,o=this.animatedContents.length,n;for(r=0;r<o;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},ne.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Nc(r,o,n,d,m,p){this.o=r,this.sw=o,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!o,sc:!!n,fc:!!d,m:!0,p:!0}}Nc.prototype.update=function(r,o,n,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==o&&(this.sw=o,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,g=!0),g};function Be(r,o){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,o.d&&o.d.sid&&(o.d=r.globalData.slotManager.getProp(o.d)),this.data=o,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Be.prototype.defaultBoxWidth=[0,0],Be.prototype.copyData=function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n]);return r},Be.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Be.prototype.searchProperty=function(){return this.searchKeyframes()},Be.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Be.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},Be.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var o=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);o!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Be.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,o=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>o);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Be.prototype.buildFinalText=function(r){for(var o=[],n=0,d=r.length,m,p,g=!1,I=!1,b="";n<d;)g=I,I=!1,m=r.charCodeAt(n),b=r.charAt(n),ko.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?ko.isRegionalFlag(r,n)?b=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(ko.isModifier(m,p)?(b=r.substr(n,2),g=!0):ko.isFlagEmoji(r.substr(n,4))?b=r.substr(n,4):b=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),ko.isVariationSelector(m)&&(g=!0)):ko.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(o[o.length-1]+=b,g=!1):o.push(b),n+=b.length;return o},Be.prototype.completeTextData=function(r){r.__complete=!0;var o=this.elem.globalData.fontManager,n=this.data,d=[],m,p,g,I=0,b,k=n.m.g,L=0,G=0,x=0,O=[],F=0,R=0,H,M,w=o.getFontByName(r.f),T,_=0,N=nu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,U;if(r.sz)for(var q=!0,it=r.sz[0],Tt=r.sz[1],ut,st;q;){st=this.buildFinalText(r.t),ut=0,F=0,p=st.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)U=st[m].charCodeAt(0),g=!1,st[m]===" "?St=m:(U===13||U===3)&&(F=0,g=!0,ut+=r.finalLineHeight||r.finalSize*1.2),o.chars?(T=o.getCharData(st[m],w.fStyle,w.fFamily),_=g?0:T.w*r.finalSize/100):_=o.measureText(st[m],r.f,r.finalSize),F+_>it&&st[m]!==" "?(St===-1?p+=1:m=St,ut+=r.finalLineHeight||r.finalSize*1.2,st.splice(m,St===m?1:0,"\r"),St=-1,F=0):(F+=_,F+=$);ut+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ut?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=st,p=r.finalText.length,q=!1)}F=-$,_=0;var ht=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],U=rt.charCodeAt(0),U===13||U===3?(ht=0,O.push(F),R=F>R?F:R,F=-2*$,b="",g=!0,x+=1):b=rt,o.chars?(T=o.getCharData(rt,w.fStyle,o.getFontByName(r.f).fFamily),_=g?0:T.w*r.finalSize/100):_=o.measureText(b,r.f,r.finalSize),rt===" "?ht+=_+$:(F+=_+$+ht,ht=0),d.push({l:_,an:_,add:L,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),k==2){if(L+=_,b===""||b===" "||m===p-1){for((b===""||b===" ")&&(L-=_);G<=m;)d[G].an=L,d[G].ind=I,d[G].extra=_,G+=1;I+=1,L=0}}else if(k==3){if(L+=_,b===""||m===p-1){for(b===""&&(L-=_);G<=m;)d[G].an=L,d[G].ind=I,d[G].extra=_,G+=1;L=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=F>R?F:R,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var C=n.a,D,v;M=C.length;var E,Y,V=[];for(H=0;H<M;H+=1){for(D=C[H],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),Y=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[H]=Y,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(Y),Y+=1);n.a[H].s.totalChars=Y;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[H]&&(ct=v.anIndexes[H],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[H]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},Be.prototype.updateDocumentData=function(r,o){o=o===void 0?this.keysIndex:o;var n=this.copyData({},this.data.d.k[o].s);n=this.copyData(n,r),this.data.d.k[o].s=n,this.recalculate(o),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Be.prototype.recalculate=function(r){var o=this.data.d.k[r].s;o.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(o)},Be.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Be.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var eT=function(){var r=Math.max,o=Math.min,n=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=at.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=at.getProp(p,g.e,0,0,this):this.e={v:100},this.o=at.getProp(p,g.o||{k:0},0,0,this),this.xe=at.getProp(p,g.xe||{k:0},0,0,this),this.ne=at.getProp(p,g.ne||{k:0},0,0,this),this.sm=at.getProp(p,g.sm||{k:100},0,0,this),this.a=at.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,b=0,k=1,L=1;this.ne.v>0?I=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:L=1+this.xe.v/100;var G=Aa.getBezierEasing(I,b,k,L).get,x=0,O=this.finalS,F=this.finalE,R=this.data.sh;if(R===2)F===O?x=g>=F?1:0:x=r(0,o(.5/(F-O)+(g-O)/(F-O),1)),x=G(x);else if(R===3)F===O?x=g>=F?0:1:x=1-r(0,o(.5/(F-O)+(g-O)/(F-O),1)),x=G(x);else if(R===4)F===O?x=0:(x=r(0,o(.5/(F-O)+(g-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(F===O)x=0;else{var H=F-O;g=o(r(0,g+.5-O),F-O);var M=-H/2+g,w=H/2;x=Math.sqrt(1-M*M/(w*w))}x=G(x)}else R===6?(F===O?x=0:(g=o(r(0,g+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(F-O)))/2),x=G(x)):(g>=n(O)&&(g-O<0?x=r(0,o(o(F,1)-(O-g),1)):x=r(0,o(F-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var _=.5-T*.5;x<_?x=0:(x=(x-_)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/I,k=this.s.v/I+b,L=this.e.v/I+b;if(k>L){var G=k;k=L,L=G}this.finalS=k,this.finalE=L}},A([Ie],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function rT(r,o,n){var d={propType:!1},m=at.getProp,p=o.a;this.a={r:p.r?m(r,p.r,0,Nt,n):d,rx:p.rx?m(r,p.rx,0,Nt,n):d,ry:p.ry?m(r,p.ry,0,Nt,n):d,sk:p.sk?m(r,p.sk,0,Nt,n):d,sa:p.sa?m(r,p.sa,0,Nt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=eT.getTextSelectorProp(r,o.s,n),this.s.t=o.s.t}function Mo(r,o,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=o,this._elem=n,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Mo.prototype.searchProperties=function(){var r,o=this._textData.a.length,n,d=at.getProp;for(r=0;r<o;r+=1)n=this._textData.a[r],this._animatorsData[r]=new rT(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)},Mo.prototype.getMeasures=function(r,o){if(this.lettersChangedFlag=o,!(!this._mdf&&!this._isFirstFrame&&!o&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,b,k,L,G,x=r.l,O,F,R,H,M,w,T,_,N,$,U,q,it,Tt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var St;for(q=0,L=0;L<G;L+=1)St=Kr.buildBezierData(st.v[L],st.v[L+1],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[L+1][0]-st.v[L+1][0],st.i[L+1][1]-st.v[L+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength;L=G,ut.v.c&&(St=Kr.buildBezierData(st.v[L],st.v[0],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,H=0,M=!0,$=O.segments,F<0&&ut.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,_=N[w-1],R=N[w],U=R.partialLength}G=x.length,b=0,k=0;var ht=r.finalSize*1.2*.714,rt=!0,C,D,v,E,Y;E=d.length;var V,ct=-1,gt,xt,Dt,Pt=F,me=T,Qe=w,Yr=-1,Je,_e,hr,Wt,pt,fi,Yi,vi,jr="",gi=this.defaultPropsArray,bi;if(r.j===2||r.j===1){var tr=0,ji=0,qi=r.j===2?-.5:-1,Rr=0,Xi=!0;for(L=0;L<G;L+=1)if(x[L].n){for(tr&&(tr+=ji);Rr<L;)x[Rr].animatorJustifyOffset=tr,Rr+=1;tr=0,Xi=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(Xi&&r.j===2&&(ji+=C.t.v*qi),D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?tr+=C.t.v*V[0]*qi:tr+=C.t.v*V*qi);Xi=!1}for(tr&&(tr+=ji);Rr<L;)x[Rr].animatorJustifyOffset=tr,Rr+=1}for(L=0;L<G;L+=1){if(p.reset(),Je=1,x[L].n)b=0,k+=r.yOffset,k+=rt?1:0,F=Pt,rt=!1,this._hasMaskedPath&&(T=me,w=Qe,N=$[T].points,_=N[w-1],R=N[w],U=R.partialLength,H=0),jr="",vi="",fi="",bi="",gi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Yr!==x[L].line){switch(r.j){case 1:F+=q-r.lineWidths[x[L].line];break;case 2:F+=(q-r.lineWidths[x[L].line])/2;break;default:break}Yr=x[L].line}ct!==x[L].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[L].an/2,ct=x[L].ind),F+=n[0]*x[L].an*.005;var Dr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Dr+=C.p.v[0]*V[0]:Dr+=C.p.v[0]*V),C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Dr+=C.a.v[0]*V[0]:Dr+=C.a.v[0]*V);for(M=!0,this._pathData.a.v&&(F=x[0].an*.5+(q-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(G-1),F+=this._pathData.f.v);M;)H+U>=F+Dr||!N?(it=(F+Dr-H)/R.partialLength,xt=_.point[0]+(R.point[0]-_.point[0])*it,Dt=_.point[1]+(R.point[1]-_.point[1])*it,p.translate(-n[0]*x[L].an*.005,-(n[1]*ht)*.01),M=!1):N&&(H+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ut.v.c?(w=0,T=0,N=$[T].points):(H-=R.partialLength,N=null)),N&&(_=R,R=N[w],U=R.partialLength));gt=x[L].an/2-x[L].add,p.translate(-gt,0,0)}else gt=x[L].an/2-x[L].add,p.translate(-gt,0,0),p.translate(-n[0]*x[L].an*.005,-n[1]*ht*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),(b!==0||r.j!==0)&&(this._hasMaskedPath?V.length?F+=C.t.v*V[0]:F+=C.t.v*V:V.length?b+=C.t.v*V[0]:b+=C.t.v*V));for(r.strokeWidthAnim&&(hr=r.sw||0),r.strokeColorAnim&&(r.sc?_e=[r.sc[0],r.sc[1],r.sc[2]]:_e=[0,0,0]),r.fillColorAnim&&r.fc&&(Wt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-C.a.v[0]*V[0],-C.a.v[1]*V[1],C.a.v[2]*V[2]):p.translate(-C.a.v[0]*V,-C.a.v[1]*V,C.a.v[2]*V));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(C.s.v[0]-1)*V[0],1+(C.s.v[1]-1)*V[1],1):p.scale(1+(C.s.v[0]-1)*V,1+(C.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(C=d[v].a,D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),C.sk.propType&&(V.length?p.skewFromAxis(-C.sk.v*V[0],C.sa.v*V[1]):p.skewFromAxis(-C.sk.v*V,C.sa.v*V)),C.r.propType&&(V.length?p.rotateZ(-C.r.v*V[2]):p.rotateZ(-C.r.v*V)),C.ry.propType&&(V.length?p.rotateY(C.ry.v*V[1]):p.rotateY(C.ry.v*V)),C.rx.propType&&(V.length?p.rotateX(C.rx.v*V[0]):p.rotateX(C.rx.v*V)),C.o.propType&&(V.length?Je+=(C.o.v*V[0]-Je)*V[0]:Je+=(C.o.v*V-Je)*V),r.strokeWidthAnim&&C.sw.propType&&(V.length?hr+=C.sw.v*V[0]:hr+=C.sw.v*V),r.strokeColorAnim&&C.sc.propType)for(pt=0;pt<3;pt+=1)V.length?_e[pt]+=(C.sc.v[pt]-_e[pt])*V[0]:_e[pt]+=(C.sc.v[pt]-_e[pt])*V;if(r.fillColorAnim&&r.fc){if(C.fc.propType)for(pt=0;pt<3;pt+=1)V.length?Wt[pt]+=(C.fc.v[pt]-Wt[pt])*V[0]:Wt[pt]+=(C.fc.v[pt]-Wt[pt])*V;C.fh.propType&&(V.length?Wt=Rm(Wt,C.fh.v*V[0]):Wt=Rm(Wt,C.fh.v*V)),C.fs.propType&&(V.length?Wt=Lm(Wt,C.fs.v*V[0]):Wt=Lm(Wt,C.fs.v*V)),C.fb.propType&&(V.length?Wt=Om(Wt,C.fb.v*V[0]):Wt=Om(Wt,C.fb.v*V))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,C.p.v[1]*V[0],-C.p.v[2]*V[1]):p.translate(0,C.p.v[1]*V,-C.p.v[2]*V):V.length?p.translate(C.p.v[0]*V[0],C.p.v[1]*V[1],-C.p.v[2]*V[2]):p.translate(C.p.v[0]*V,C.p.v[1]*V,-C.p.v[2]*V));if(r.strokeWidthAnim&&(fi=hr<0?0:hr),r.strokeColorAnim&&(Yi="rgb("+Math.round(_e[0]*255)+","+Math.round(_e[1]*255)+","+Math.round(_e[2]*255)+")"),r.fillColorAnim&&r.fc&&(vi="rgb("+Math.round(Wt[0]*255)+","+Math.round(Wt[1]*255)+","+Math.round(Wt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,n[1]*ht*.01+k,0),this._pathData.p.v){Tt=(R.point[1]-_.point[1])/(R.point[0]-_.point[0]);var Lo=Math.atan(Tt)*180/Math.PI;R.point[0]<_.point[0]&&(Lo+=180),p.rotate(-Lo*Math.PI/180)}p.translate(xt,Dt,0),F-=n[0]*x[L].an*.005,x[L+1]&&ct!==x[L+1].ind&&(F+=x[L].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(b,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line]),0,0);break;case 2:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(n[0]*x[L].an*.005,n[1]*ht*.01,0),b+=x[L].l+r.tr*.001*r.finalSize}g==="html"?jr=p.toCSS():g==="svg"?jr=p.to2dCSS():gi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],bi=Je}I<=L?(Y=new Nc(bi,fi,Yi,vi,jr,gi),this.renderedLetters.push(Y),I+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[L],this.lettersChangedFlag=Y.update(bi,fi,Yi,vi,jr,gi)||this.lettersChangedFlag)}}},Mo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Mo.prototype.mHelper=new Oe,Mo.prototype.defaultPropsArray=[],A([Ie],Mo);function xr(){}xr.prototype.initElement=function(r,o,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,o,n),this.textProperty=new Be(this,r.t,this.dynamicProperties),this.textAnimator=new Mo(r.t,this.renderType,this),this.initTransform(r,o,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},xr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},xr.prototype.createPathShape=function(r,o){var n,d=o.length,m,p="";for(n=0;n<d;n+=1)o[n].ty==="sh"&&(m=o[n].ks.k,p+=Tu(m,m.i.length,!0,r));return p},xr.prototype.updateDocumentData=function(r,o){this.textProperty.updateDocumentData(r,o)},xr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},xr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},xr.prototype.applyTextPropertiesToMatrix=function(r,o,n,d,m){switch(r.ps&&o.translate(r.ps[0],r.ps[1]+r.ascent,0),o.translate(0,-r.ls,0),r.j){case 1:o.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n]),0,0);break;case 2:o.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}o.translate(d,m,0)},xr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},xr.prototype.emptyProp=new Nc,xr.prototype.destroy=function(){},xr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var iT={shapes:[]};function mi(r,o,n){this.textSpans=[],this.renderType="svg",this.initElement(r,o,n)}A([Ui,ws,Ma,ks,Gi,La,xr],mi),mi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},mi.prototype.buildTextContents=function(r){for(var o=0,n=r.length,d=[],m="";o<n;)r[o]==="\r"||r[o]===""?(d.push(m),m=""):m+=r[o],o+=1;return d.push(m),d},mi.prototype.buildShapeData=function(r,o){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=o,d.s.k[1]=o)}}return r},mi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,o,n=this.textProperty.currentData;this.renderedLetters=tt(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],I=!!this.globalData.fontManager.chars;o=g.length;var b,k=this.mHelper,L="",G=this.data.singleShape,x=0,O=0,F=!0,R=n.tr*.001*n.finalSize;if(G&&!I&&!n.sz){var H=this.textContainer,M="start";switch(n.j){case 1:M="end";break;case 2:M="middle";break;default:M="start";break}H.setAttribute("text-anchor",M),H.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(o=w.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<o;r+=1)b=this.textSpans[r].span||At("tspan"),b.textContent=w[r],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",H.appendChild(b),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(H)}else{var T=this.textSpans.length,_;for(r=0;r<o;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!G||r===0){if(b=T>r?this.textSpans[r].span:At(I?"g":"text"),T<=r){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=b,I){var N=At("g");b.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(k.reset(),G&&(g[r].n&&(x=-R,O+=n.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(n,k,g[r].line,x,O),x+=g[r].l||0,x+=R),I){_=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(_.t===1)$=new Da(_.data,this.globalData,this);else{var U=iT;_.data&&_.data.shapes&&(U=this.buildShapeData(_.data,n.finalSize)),$=new ne(U,this.globalData,this)}if(this.textSpans[r].glyph){var q=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(q.layerElement),q.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),_.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),b.textContent=g[r].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",L)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},mi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},mi.prototype.getValue=function(){var r,o=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<o;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},mi.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,o,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;o=d.length;var m,p,g;for(r=0;r<o;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Mc(r,o,n){this.initElement(r,o,n)}A([Oa],Mc),Mc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Wi(r,o,n){this.initFrame(),this.initBaseData(r,o,n),this.initFrame(),this.initTransform(r,o,n),this.initHierarchy()}Wi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Wi.prototype.renderFrame=function(){},Wi.prototype.getBaseElement=function(){return null},Wi.prototype.destroy=function(){},Wi.prototype.sourceRectAtTime=function(){},Wi.prototype.hide=function(){},A([Ui,ws,ks,Gi],Wi);function Ee(){}A([Re],Ee),Ee.prototype.createNull=function(r){return new Wi(r,this.globalData,this)},Ee.prototype.createShape=function(r){return new ne(r,this.globalData,this)},Ee.prototype.createText=function(r){return new mi(r,this.globalData,this)},Ee.prototype.createImage=function(r){return new Oa(r,this.globalData,this)},Ee.prototype.createSolid=function(r){return new Mc(r,this.globalData,this)},Ee.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var o=this.globalData.defs;this.setupGlobalData(r,o),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var n=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=Xe();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),o.appendChild(n),this.layers=r.layers,this.elements=tt(r.layers.length)},Ee.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,o=this.layers?this.layers.length:0;for(r=0;r<o;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ee.prototype.updateContainerSize=function(){},Ee.prototype.findIndexByInd=function(r){var o=0,n=this.layers.length;for(o=0;o<n;o+=1)if(this.layers[o].ind===r)return o;return-1},Ee.prototype.buildItem=function(r){var o=this.elements;if(!(o[r]||this.layers[r].ty===99)){o[r]=!0;var n=this.createItem(this.layers[r]);if(o[r]=n,qn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=o[d],p=m.getMatte(this.layers[r].tt);n.setMatte(p)}}}},Ee.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var o=0,n=this.elements.length;o<n;){if(this.elements[o]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):o-1,m=this.elements[d],p=m.getMatte(this.layers[o].tt);r.setMatte(p);break}o+=1}}},Ee.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var o,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),o=n-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].prepareFrame(r-this.layers[o].st);if(this.globalData._mdf)for(o=0;o<n;o+=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()}},Ee.prototype.appendElementInPos=function(r,o){var n=r.getBaseElement();if(n){for(var d=0,m;d<o;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Ee.prototype.hide=function(){this.layerElement.style.display="none"},Ee.prototype.show=function(){this.layerElement.style.display="block"};function ui(){}A([Ui,ws,ks,Gi,La],ui),ui.prototype.initElement=function(r,o,n){this.initFrame(),this.initBaseData(r,o,n),this.initTransform(r,o,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!o.progressiveLoad)&&this.buildAllItems(),this.hide()},ui.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var o=this.tm.v;o===this.data.op&&(o=this.data.op-1),this.renderedFrame=o}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))}},ui.prototype.renderInnerContent=function(){var r,o=this.layers.length;for(r=0;r<o;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},ui.prototype.setElements=function(r){this.elements=r},ui.prototype.getElements=function(){return this.elements},ui.prototype.destroyElements=function(){var r,o=this.layers.length;for(r=0;r<o;r+=1)this.elements[r]&&this.elements[r].destroy()},ui.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Da(r,o,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(r,o,n),this.tm=r.tm?at.getProp(this,r.tm,0,o.frameRate,this):{_placeholder:!0}}A([Ee,ui,Ma],Da),Da.prototype.createComp=function(r){return new Da(r,this.globalData,this)};function Lc(r,o){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var n="";if(o&&o.title){var d=At("title"),m=Xe();d.setAttribute("id",m),d.textContent=o.title,this.svgElement.appendChild(d),n+=m}if(o&&o.description){var p=At("desc"),g=Xe();p.setAttribute("id",g),p.textContent=o.description,this.svgElement.appendChild(p),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=At("defs");this.svgElement.appendChild(I);var b=At("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:o&&o.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:o&&o.contentVisibility||"visible",progressiveLoad:o&&o.progressiveLoad||!1,hideOnTransparent:!(o&&o.hideOnTransparent===!1),viewBoxOnly:o&&o.viewBoxOnly||!1,viewBoxSize:o&&o.viewBoxSize||!1,className:o&&o.className||"",id:o&&o.id||"",focusable:o&&o.focusable,filterSize:{width:o&&o.filterSize&&o.filterSize.width||"100%",height:o&&o.filterSize&&o.filterSize.height||"100%",x:o&&o.filterSize&&o.filterSize.x||"0%",y:o&&o.filterSize&&o.filterSize.y||"0%"},width:o&&o.width,height:o&&o.height,runExpressions:!o||o.runExpressions===void 0||o.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ee],Lc),Lc.prototype.createComp=function(r){return new Da(r,this.globalData,this)},mE("svg",Lc),Bi.registerModifier("tm",Or),Bi.registerModifier("pb",Sa),Bi.registerModifier("rp",Wr),Bi.registerModifier("rd",Ia),Bi.registerModifier("zz",Ca),Bi.registerModifier("op",wa),Ht})});var ul=globalThis,fl=ul.ShadowRoot&&(ul.ShadyCSS===void 0||ul.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rc=Symbol(),Au=new WeakMap,Pa=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==Rc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(fl&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=Au.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Au.set(t,i))}return i}toString(){return this.cssText}},Su=a=>new Pa(typeof a=="string"?a:a+"",void 0,Rc),B=(a,...i)=>{let t=a.length===1?a[0]:i.reduce((e,s,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[l+1],a[0]);return new Pa(t,a,Rc)},Dc=(a,i)=>{if(fl)a.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),s=ul.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,a.appendChild(e)}},vl=fl?a=>a:a=>a instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Su(t)})(a):a;var{is:hT,defineProperty:pT,getOwnPropertyDescriptor:mT,getOwnPropertyNames:uT,getOwnPropertySymbols:fT,getPrototypeOf:vT}=Object,Zi=globalThis,Iu=Zi.trustedTypes,gT=Iu?Iu.emptyScript:"",Pc=Zi.reactiveElementPolyfillSupport,Fa=(a,i)=>a,$a={toAttribute(a,i){switch(i){case Boolean:a=a?gT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,i){let t=a;switch(i){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},gl=(a,i)=>!hT(a,i),_u={attribute:!0,type:String,converter:$a,reflect:!1,hasChanged:gl},Cu,wu;(Cu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(wu=Zi.litPropertyMetadata)!=null||(Zi.litPropertyMetadata=new WeakMap);var yi=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=_u){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(i,e,t);s!==void 0&&pT(this.prototype,i,s)}}static getPropertyDescriptor(i,t,e){var c;let{get:s,set:l}=(c=mT(this.prototype,i))!=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(i,y,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:_u}static _$Ei(){if(this.hasOwnProperty(Fa("elementProperties")))return;let i=vT(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Fa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fa("properties"))){let t=this.properties,e=[...uT(t),...fT(t)];for(let s of e)this.createProperty(s,t[s])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let s of e)t.unshift(vl(s))}else i!==void 0&&t.push(vl(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Dc(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var l;let e=this.constructor.elementProperties.get(i),s=this.constructor._$Eu(i,e);if(s!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:$a).toAttribute(t,e.type);this._$Em=i,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(i,t){var l;let e=this.constructor,s=e._$Eh.get(i);if(s!==void 0&&this._$Em!==s){let c=e.getPropertyOptions(s),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:$a;this._$Em=s,this[s]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(i,t,e){var s;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((s=e.hasChanged)!=null?s:gl)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var s;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(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 i=!1,this._$EU(),l}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostUpdated)==null?void 0:s.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},ku;yi.elementStyles=[],yi.shadowRootOptions={mode:"open"},yi[Fa("elementProperties")]=new Map,yi[Fa("finalized")]=new Map,Pc==null||Pc({ReactiveElement:yi}),((ku=Zi.reactiveElementVersions)!=null?ku:Zi.reactiveElementVersions=[]).push("2.0.4");var za=globalThis,bl=za.trustedTypes,Nu=bl?bl.createPolicy("lit-html",{createHTML:a=>a}):void 0,Vc="$lit$",Ei=`lit$${Math.random().toFixed(9).slice(2)}$`,zc="?"+Ei,bT=`<${zc}>`,Do=document,Ba=()=>Do.createComment(""),Ha=a=>a===null||typeof a!="object"&&typeof a!="function",Bc=Array.isArray,Fu=a=>Bc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Fc=`[
|
|
3
|
+
\f\r]`,Va=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mu=/-->/g,Lu=/>/g,Oo=RegExp(`>|${Fc}(?:([^\\s"'>=/]+)(${Fc}*=${Fc}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ou=/'/g,Ru=/"/g,$u=/^(?:script|style|textarea|title)$/i,Hc=a=>(i,...t)=>({_$litType$:a,strings:i,values:t}),S=Hc(1),bI=Hc(2),yI=Hc(3),De=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Du=new WeakMap,Ro=Do.createTreeWalker(Do,129);function Vu(a,i){if(!Bc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nu!==void 0?Nu.createHTML(i):i}var zu=(a,i)=>{let t=a.length-1,e=[],s,l=i===2?"<svg>":i===3?"<math>":"",c=Va;for(let f=0;f<t;f++){let y=a[f],A,P,K=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,P=c.exec(y),P!==null);)Q=c.lastIndex,c===Va?P[1]==="!--"?c=Mu:P[1]!==void 0?c=Lu:P[2]!==void 0?($u.test(P[2])&&(s=RegExp("</"+P[2],"g")),c=Oo):P[3]!==void 0&&(c=Oo):c===Oo?P[0]===">"?(c=s!=null?s:Va,K=-1):P[1]===void 0?K=-2:(K=c.lastIndex-P[2].length,A=P[1],c=P[3]===void 0?Oo:P[3]==='"'?Ru:Ou):c===Ru||c===Ou?c=Oo:c===Mu||c===Lu?c=Va:(c=Oo,s=void 0);let Z=c===Oo&&a[f+1].startsWith("/>")?" ":"";l+=c===Va?y+bT:K>=0?(e.push(A),y.slice(0,K)+Vc+y.slice(K)+Ei+Z):y+Ei+(K===-2?f:Z)}return[Vu(a,l+(a[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),e]},Ua=class a{constructor({strings:i,_$litType$:t},e){let s;this.parts=[];let l=0,c=0,f=i.length-1,y=this.parts,[A,P]=zu(i,t);if(this.el=a.createElement(A,e),Ro.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(s=Ro.nextNode())!==null&&y.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let K of s.getAttributeNames())if(K.endsWith(Vc)){let Q=P[c++],Z=s.getAttribute(K).split(Ei),tt=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:tt[2],strings:Z,ctor:tt[1]==="."?El:tt[1]==="?"?Tl:tt[1]==="@"?xl:Fo}),s.removeAttribute(K)}else K.startsWith(Ei)&&(y.push({type:6,index:l}),s.removeAttribute(K));if($u.test(s.tagName)){let K=s.textContent.split(Ei),Q=K.length-1;if(Q>0){s.textContent=bl?bl.emptyScript:"";for(let Z=0;Z<Q;Z++)s.append(K[Z],Ba()),Ro.nextNode(),y.push({type:2,index:++l});s.append(K[Q],Ba())}}}else if(s.nodeType===8)if(s.data===zc)y.push({type:2,index:l});else{let K=-1;for(;(K=s.data.indexOf(Ei,K+1))!==-1;)y.push({type:7,index:l}),K+=Ei.length-1}l++}}static createElement(i,t){let e=Do.createElement("template");return e.innerHTML=i,e}};function Po(a,i,t=a,e){var c,f,y;if(i===De)return i;let s=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Ha(i)?void 0:i._$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,e)),e!==void 0?((y=t.o)!=null?y:t.o=[])[e]=s:t.l=s),s!==void 0&&(i=Po(a,s._$AS(a,i.values),s,e)),i}var yl=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var A;let{el:{content:t},parts:e}=this._$AD,s=((A=i==null?void 0:i.creationScope)!=null?A:Do).importNode(t,!0);Ro.currentNode=s;let l=Ro.nextNode(),c=0,f=0,y=e[0];for(;y!==void 0;){if(c===y.index){let P;y.type===2?P=new Ms(l,l.nextSibling,this,i):y.type===1?P=new y.ctor(l,y.name,y.strings,this,i):y.type===6&&(P=new Al(l,this,i)),this._$AV.push(P),y=e[++f]}c!==(y==null?void 0:y.index)&&(l=Ro.nextNode(),c++)}return Ro.currentNode=Do,s}p(i){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(i,e,t),t+=e.strings.length-2):e._$AI(i[t])),t++}},Ms=class a{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,e,s){var l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=e,this.options=s,this.v=(l=s==null?void 0:s.isConnected)!=null?l:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=Po(this,i,t),Ha(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==De&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Fu(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==W&&Ha(this._$AH)?this._$AA.nextSibling.data=i:this.T(Do.createTextNode(i)),this._$AH=i}$(i){var l;let{values:t,_$litType$:e}=i,s=typeof e=="number"?this._$AC(i):(e.el===void 0&&(e.el=Ua.createElement(Vu(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===s)this._$AH.p(t);else{let c=new yl(s,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(i){let t=Du.get(i.strings);return t===void 0&&Du.set(i.strings,t=new Ua(i)),t}k(i){Bc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of i)s===t.length?t.push(e=new a(this.O(Ba()),this.O(Ba()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(i=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);i&&i!==this._$AB;){let s=i.nextSibling;i.remove(),i=s}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Fo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,e,s,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(i,t=this,e,s){let l=this.strings,c=!1;if(l===void 0)i=Po(this,i,t,0),c=!Ha(i)||i!==this._$AH&&i!==De,c&&(this._$AH=i);else{let f=i,y,A;for(i=l[0],y=0;y<l.length-1;y++)A=Po(this,f[e+y],t,y),A===De&&(A=this._$AH[y]),c||(c=!Ha(A)||A!==this._$AH[y]),A===W?i=W:i!==W&&(i+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!s&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},El=class extends Fo{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},Tl=class extends Fo{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},xl=class extends Fo{constructor(i,t,e,s,l){super(i,t,e,s,l),this.type=5}_$AI(i,t=this){var c;if((i=(c=Po(this,i,t,0))!=null?c:W)===De)return;let e=this._$AH,s=i===W&&e!==W||i.capture!==e.capture||i.once!==e.once||i.passive!==e.passive,l=i!==W&&(e===W||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,i):this._$AH.handleEvent(i)}},Al=class{constructor(i,t,e){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(i){Po(this,i)}},Bu={M:Vc,P:Ei,A:zc,C:1,L:zu,R:yl,D:Fu,V:Po,I:Ms,H:Fo,N:Tl,U:xl,B:El,F:Al},$c=za.litHtmlPolyfillSupport,Pu;$c==null||$c(Ua,Ms),((Pu=za.litHtmlVersions)!=null?Pu:za.litHtmlVersions=[]).push("3.2.0");var Hu=(a,i,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:i,s=e._$litPart$;if(s===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=s=new Ms(i.insertBefore(Ba(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var Qi=class extends yi{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=Hu(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return De}},Uu;Qi._$litElement$=!0,Qi.finalized=!0,(Uu=globalThis.litElementHydrateSupport)==null||Uu.call(globalThis,{LitElement:Qi});var Uc=globalThis.litElementPolyfillSupport;Uc==null||Uc({LitElement:Qi});var Gu;((Gu=globalThis.litElementVersions)!=null?Gu:globalThis.litElementVersions=[]).push("4.1.0");var yT={attribute:!0,type:String,converter:$a,reflect:!1,hasChanged:gl},ET=(a=yT,i,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let y=i.get.call(this);i.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let y=this[c];i.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(i,t)=>typeof t=="object"?ET(a,i,t):((e,s,l)=>{let c=s.hasOwnProperty(l);return s.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(s,l):void 0})(a,i,t)}function nt(a){return u({...a,state:!0,attribute:!1})}function Ku(a){return(i,t)=>{let e=typeof i=="function"?i:i[t];Object.assign(e,a)}}var qr=(a,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(a,i,t),t);function Ut(a,i){return(t,e,s)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(i){let{get:c,set:f}=typeof e=="object"?t:s!=null?s:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return qr(t,e,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return qr(t,e,{get(){return l(this)}})}}var Gc;function Wu(a){return(i,t)=>qr(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:Gc!=null?Gc:Gc=document.createDocumentFragment()).querySelectorAll(a)}})}function Gt(a){return(i,t)=>{let{slot:e,selector:s}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return qr(i,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return s===void 0?f:f.filter(P=>P.matches(s))}})}}function Yu(a){return(i,t)=>{let{slot:e}=a!=null?a:{},s="slot"+(e?`[name=${e}]`:":not([name])");return qr(i,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 TT={PREFIX:"mdc",SEPARATOR:"-"},xT={NAMESPACE:TT},Kc=xT;var AT=a=>[Kc.NAMESPACE.PREFIX,a].join(Kc.NAMESPACE.SEPARATOR),z={constructTagName:AT};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var ju=z.constructTagName("buttonsimple"),$o={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},Ls={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ga={SIZE:$o[32],TYPE:Ls.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ti=z.constructTagName("button"),Vt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ka={40:40,32:32,28:28,24:24},Ar={64:64,52:52,20:20,...Ka},Vo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Os={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},er={VARIANT:Vt.PRIMARY,SIZE:Ka[32],COLOR:Vo.DEFAULT,TYPE_INTERNAL:Os.ICON,TYPE:Ls.BUTTON,INVERTED:!1};var Sl=a=>{class i extends a{constructor(){super(...arguments);this.variant=er.VARIANT;this.color=er.COLOR;this.typeInternal=er.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(Vt).includes(s)?s:er.VARIANT)}setColor(s){!Object.values(Vo).includes(s)||this.variant===Vt.TERTIARY?this.setAttribute("color",`${er.COLOR}`):this.setAttribute("color",s)}setSize(s){let c=this.typeInternal===Os.ICON?Object.values(Ar).includes(s)&&!(s===Ar[20]&&this.variant!==Vt.TERTIARY):Object.values(Ka).includes(s);this.setAttribute("size",c?`${s}`:`${er.SIZE}`)}inferButtonType(){var A,P,K,Q,Z,tt;let s=(P=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:P.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,l=(Q=(K=this.shadowRoot)==null?void 0:K.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=(tt=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,y=this.postfixIcon||f&&f>0;s&&(c||y)?(this.typeInternal=Os.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(c||y)?(this.typeInternal=Os.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Os.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),h([u({type:String})],i.prototype,"variant",2),h([u({type:String})],i.prototype,"color",2),h([nt()],i.prototype,"typeInternal",2),i};var qu=B`
|
|
5
5
|
:host {
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
|
-
`,Zu=ST;var Cl=class extends X{constructor({context:i,initialValue:t}){super(),this.context=new Ds(this,{context:i,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};Cl.styles=[...X.styles,Zu];var Qu=Cl;var Te=Qu;var Pe=a=>{class i 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 h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],i.prototype,"autoFocusOnMount",2),i};var ee=a=>{class i extends a{}return h([u({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var Xr=a=>{class i extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var _t={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 IT=a=>{let{host:i,context:t,subscribe:e,callback:s,syncProperties:l}=a,c=(s||l)&&(f=>{l&&l.forEach(y=>{i.requestUpdate(y)}),s==null||s(f)});return new Rs(i,{context:t,callback:c,subscribe:e!=null?e:!0})},_T={consume:IT},xe=_T;var Ju=(a,i)=>!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING),tf=(a,i)=>!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING),CT=a=>a.getClientRects().length===0,wT=a=>{let{width:i,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:s}=a;return e+s+t+i===0},ef=a=>{if(!(a instanceof Element))return!1;let i=getComputedStyle(a),{overflowX:t,overflowY:e}=i;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},kT=a=>wT(a)||CT(a),NT=a=>{let{display:i,opacity:t,visibility:e}=a.style;return i==="none"||t==="0"||e==="hidden"||e==="collapse"},MT=a=>{let i=getComputedStyle(a);return i.visibility==="hidden"||i.height==="0"||i.display==="none"},LT=a=>getComputedStyle(a).display==="contents",OT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||NT(a)||!LT(a)&&(MT(a)||kT(a)),RT=a=>a.disabled,DT=a=>a.getAttribute("tabindex")!=="-1",PT=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),FT=(a,i)=>i.some(t=>a.matches(t));var Ps=(a,i={})=>{var f,y;if(!a)return[];let t=new Set((f=i==null?void 0:i.excludedElements)!=null?f:[]),e=(y=i==null?void 0:i.includeSelectors)!=null?y:[],s=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(OT(A)||RT(A))?"stop":FT(A,e)||DT(A)&&PT(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&s.add(A);let P=[];A instanceof HTMLElement&&A.shadowRoot?P=Array.from(A.shadowRoot.children):A.children.length&&(P=Array.from(A.children)),P.forEach(K=>{let Q=K,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]},Wa=(a=document)=>{var t;let i=a instanceof Document?a.activeElement:a;for(;(t=i==null?void 0:i.shadowRoot)!=null&&t.activeElement;)i=i.shadowRoot.activeElement;return i},rf=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Yc=a=>{let i=a.getRootNode();return i!==document&&i instanceof ShadowRoot?Yc(i.host):a},of=a=>{let i=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,i.push(t);else break}return i};var xi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};xi.stack=new Set,xi.currentKeydownListener=null;var wl=z.constructTagName("spatialnavigationprovider");var jc={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 $T=wl,qc=$T;var sf=a=>{let{x:i,y:t,width:e,height:s,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=i+e/2,P=t+s/2;return{x:i,y:t,width:e,height:s,left:l,top:c,right:f,bottom:y,xMid:A,yMid:P}},VT=(a,i,t)=>Math.abs(t==="horizontal"?i.yMid-a.yMid:i.xMid-a.xMid),zT=(a,i)=>i==="horizontal"?a.height/2:a.width/2,BT=(a,i,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,i.bottom)-Math.max(a.top,i.top)):Math.max(0,Math.min(a.right,i.right)-Math.max(a.left,i.left)),HT=(a,i,t)=>i==="horizontal"?t/a.height:t/a.width,UT=(a,i,t,e)=>{let s=i.xMid-a.xMid,l=i.yMid-a.yMid,c=Math.sqrt(s*s+l*l),f=VT(a,i,t)+zT(a,t)*e.orthogonalWeight[t],y=BT(a,i,t),A=HT(a,t,y)*e.alignWeight;return c+f-A-Math.sqrt(y)},af=(a,i,t,e)=>{if(!a||i.length===0)return[];if(i.length===1)return i[0]===a?[]:[{candidate:i[0],distance:0}];let s=sf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return i.reduce((c,f)=>{if(f===a)return c;let y=sf(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=UT(s,y,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Bo=class extends UIEvent{constructor(i,t,e){super(i,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var Ya=class extends Te{constructor(){super({context:qc});this.navigationKeyMapping=jc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=jc.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],s=new Bo("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(s)),s.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Bo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Wa();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return qc}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,s])=>[s,e]))},this.context.updateObservers())}initActiveElement(t){let e=Ps(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let s=t[0];s&&this.setActiveElementAndFocus(s)}}focusNext(t,e){let s=xi.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||ef(y)){c.push(...Ps(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||y===s||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,e){var s;if(t){let l=new Bo("navbeforefocus",t,e);if((s=this.getActiveElement())==null||s.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var y,A;if(t.length===0)return;let s=this.getActiveElement(),l=Wa();if((!s||!t.includes(s)||s!==l)&&(l&&t.includes(l)?s=l:[s]=t,this.setActiveElement(s)),s!==Wa())return s;let c=`data-spatial-${e}`;if(l){let P=of(l).find(Q=>Q.hasAttribute(c)),K=P==null?void 0:P.getAttribute(c);if(P&&K){let Q=(y=P.getRootNode())==null?void 0:y.getElementById(K);if(Q)return Q}}return(A=af(s,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Bo("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Wa();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Ps(this.root).find(s=>s.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],Ya.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],Ya.prototype,"distanceCalculationWeights",2);var Xc=Ya;Xc.register(wl);var nf=Xc;var j={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},GT={[_t.ARROW_UP]:j.UP,[_t.ARROW_DOWN]:j.DOWN,[_t.ARROW_LEFT]:j.LEFT,[_t.ARROW_RIGHT]:j.RIGHT,[_t.ENTER]:j.ENTER,[_t.SPACE]:j.SPACE,[_t.ESCAPE]:j.ESCAPE,[_t.TAB]:j.TAB,[_t.HOME]:j.HOME,[_t.END]:j.END},Zt={DEFAULT:"default",SPATIAL:"spatial"},kt=a=>{class i extends a{constructor(){super(...arguments);this.spatialNavigationContext=xe.consume({host:this,context:nf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?Zt.SPATIAL:Zt.DEFAULT}getActionForKeyEvent(s,l=!1){var y,A,P;let f=((P=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?P:GT)[s.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===j.LEFT)return j.RIGHT;if(f===j.RIGHT)return j.LEFT}return f}isDirectionAction(s){return s===j.UP||s===j.DOWN||s===j.LEFT||s===j.RIGHT}}return i};var Lt=a=>{class i 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 i};var bt=B`
|
|
18
|
+
`,Zu=ST;var Cl=class extends X{constructor({context:i,initialValue:t}){super(),this.context=new Ds(this,{context:i,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};Cl.styles=[...X.styles,Zu];var Qu=Cl;var Te=Qu;var Pe=a=>{class i 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 h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],i.prototype,"autoFocusOnMount",2),i};var ee=a=>{class i extends a{}return h([u({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var Xr=a=>{class i extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var _t={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 IT=a=>{let{host:i,context:t,subscribe:e,callback:s,syncProperties:l}=a,c=(s||l)&&(f=>{l&&l.forEach(y=>{i.requestUpdate(y)}),s==null||s(f)});return new Rs(i,{context:t,callback:c,subscribe:e!=null?e:!0})},_T={consume:IT},xe=_T;var Ju=(a,i)=>!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING),tf=(a,i)=>!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING),CT=a=>a.getClientRects().length===0,wT=a=>{let{width:i,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:s}=a;return e+s+t+i===0},ef=a=>{if(!(a instanceof Element))return!1;let i=getComputedStyle(a),{overflowX:t,overflowY:e}=i;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},kT=a=>wT(a)||CT(a),NT=a=>{let{display:i,opacity:t,visibility:e}=a.style;return i==="none"||t==="0"||e==="hidden"||e==="collapse"},MT=a=>{let i=getComputedStyle(a);return i.visibility==="hidden"||i.height==="0"||i.display==="none"},LT=a=>getComputedStyle(a).display==="contents",OT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||NT(a)||!LT(a)&&(MT(a)||kT(a)),RT=a=>a.disabled,DT=a=>a.getAttribute("tabindex")!=="-1",PT=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),FT=(a,i)=>i.some(t=>a.matches(t));var Ps=(a,i={})=>{var f,y;if(!a)return[];let t=new Set((f=i==null?void 0:i.excludedElements)!=null?f:[]),e=(y=i==null?void 0:i.includeSelectors)!=null?y:[],s=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(OT(A)||RT(A))?"stop":FT(A,e)||DT(A)&&PT(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&s.add(A);let P=[];A instanceof HTMLElement&&A.shadowRoot?P=Array.from(A.shadowRoot.children):A.children.length&&(P=Array.from(A.children)),P.forEach(K=>{let Q=K,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]},Wa=(a=document)=>{var t;let i=a instanceof Document?a.activeElement:a;for(;(t=i==null?void 0:i.shadowRoot)!=null&&t.activeElement;)i=i.shadowRoot.activeElement;return i},rf=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Yc=a=>{let i=a.getRootNode();return i!==document&&i instanceof ShadowRoot?Yc(i.host):a},of=a=>{let i=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,i.push(t);else break}return i};var xi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};xi.stack=new Set,xi.currentKeydownListener=null;var wl=z.constructTagName("spatialnavigationprovider");var jc={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 $T=wl,qc=$T;var sf=a=>{let{x:i,y:t,width:e,height:s,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=i+e/2,P=t+s/2;return{x:i,y:t,width:e,height:s,left:l,top:c,right:f,bottom:y,xMid:A,yMid:P}},VT=(a,i,t)=>Math.abs(t==="horizontal"?i.yMid-a.yMid:i.xMid-a.xMid),zT=(a,i)=>i==="horizontal"?a.height/2:a.width/2,BT=(a,i,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,i.bottom)-Math.max(a.top,i.top)):Math.max(0,Math.min(a.right,i.right)-Math.max(a.left,i.left)),HT=(a,i,t)=>i==="horizontal"?t/a.height:t/a.width,UT=(a,i,t,e)=>{let s=i.xMid-a.xMid,l=i.yMid-a.yMid,c=Math.sqrt(s*s+l*l),f=VT(a,i,t)+zT(a,t)*e.orthogonalWeight[t],y=BT(a,i,t),A=HT(a,t,y)*e.alignWeight;return c+f-A-Math.sqrt(y)},af=(a,i,t,e)=>{if(!a||i.length===0)return[];if(i.length===1)return i[0]===a?[]:[{candidate:i[0],distance:0}];let s=sf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return i.reduce((c,f)=>{if(f===a)return c;let y=sf(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=UT(s,y,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var zo=class extends UIEvent{constructor(i,t,e){super(i,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var Ya=class extends Te{constructor(){super({context:qc});this.navigationKeyMapping=jc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=jc.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],s=new zo("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(s)),s.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new zo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Wa();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return qc}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,s])=>[s,e]))},this.context.updateObservers())}initActiveElement(t){let e=Ps(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let s=t[0];s&&this.setActiveElementAndFocus(s)}}focusNext(t,e){let s=xi.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||ef(y)){c.push(...Ps(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||y===s||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,e){var s;if(t){let l=new zo("navbeforefocus",t,e);if((s=this.getActiveElement())==null||s.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var y,A;if(t.length===0)return;let s=this.getActiveElement(),l=Wa();if((!s||!t.includes(s)||s!==l)&&(l&&t.includes(l)?s=l:[s]=t,this.setActiveElement(s)),s!==Wa())return s;let c=`data-spatial-${e}`;if(l){let P=of(l).find(Q=>Q.hasAttribute(c)),K=P==null?void 0:P.getAttribute(c);if(P&&K){let Q=(y=P.getRootNode())==null?void 0:y.getElementById(K);if(Q)return Q}}return(A=af(s,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new zo("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Wa();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Ps(this.root).find(s=>s.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],Ya.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],Ya.prototype,"distanceCalculationWeights",2);var Xc=Ya;Xc.register(wl);var nf=Xc;var j={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},GT={[_t.ARROW_UP]:j.UP,[_t.ARROW_DOWN]:j.DOWN,[_t.ARROW_LEFT]:j.LEFT,[_t.ARROW_RIGHT]:j.RIGHT,[_t.ENTER]:j.ENTER,[_t.SPACE]:j.SPACE,[_t.ESCAPE]:j.ESCAPE,[_t.TAB]:j.TAB,[_t.HOME]:j.HOME,[_t.END]:j.END},Zt={DEFAULT:"default",SPATIAL:"spatial"},kt=a=>{class i extends a{constructor(){super(...arguments);this.spatialNavigationContext=xe.consume({host:this,context:nf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?Zt.SPATIAL:Zt.DEFAULT}getActionForKeyEvent(s,l=!1){var y,A,P;let f=((P=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?P:GT)[s.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===j.LEFT)return j.RIGHT;if(f===j.RIGHT)return j.LEFT}return f}isDirectionAction(s){return s===j.UP||s===j.DOWN||s===j.LEFT||s===j.RIGHT}}return i};var Lt=a=>{class i 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 i};var bt=B`
|
|
19
19
|
:host {
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
:host::part(postfix-icon) {
|
|
417
417
|
flex-shrink: 0;
|
|
418
418
|
}
|
|
419
|
-
`,df=[WT];var
|
|
419
|
+
`,df=[WT];var Bo=a=>{let i=a.split("-"),t=["bold","filled","regular","light"];return i.filter(e=>!t.includes(e)).join("-")};var Jr=class extends kl(Sl(ue)){constructor(){super(...arguments);this.size=er.SIZE;this.inverted=er.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Bo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Bo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
|
|
420
420
|
<slot name="prefix" part="prefix">
|
|
421
421
|
${this.prefixFilledIconName?S` <mdc-icon
|
|
422
422
|
name="${this.prefixFilledIconName}"
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
length-unit="rem"
|
|
433
433
|
></mdc-icon>`:""}
|
|
434
434
|
</slot>
|
|
435
|
-
`}};Jr.styles=[...ue.styles,...df],h([Ut('slot[part="button-text"]')],Jr.prototype,"buttonTextPart",2),h([u({type:Number})],Jr.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Jr.prototype,"inverted",2),h([u({type:String,reflect:!0})],Jr.prototype,"role",2),h([nt()],Jr.prototype,"prefixFilledIconName",2),h([nt()],Jr.prototype,"postfixFilledIconName",2);var
|
|
435
|
+
`}};Jr.styles=[...ue.styles,...df],h([Ut('slot[part="button-text"]')],Jr.prototype,"buttonTextPart",2),h([u({type:Number})],Jr.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Jr.prototype,"inverted",2),h([u({type:String,reflect:!0})],Jr.prototype,"role",2),h([nt()],Jr.prototype,"prefixFilledIconName",2),h([nt()],Jr.prototype,"postfixFilledIconName",2);var Ho=Jr;var Nl=z.constructTagName("iconprovider"),cf=["svg"],hf=["em","rem","px","%"],YT={px:16,em:1,rem:1,"%":100},Ai={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:YT.em,ICON_SET:"momentum-icons"};var Ml=class{};Ml.context=Nl;var Ll=Ml;var ti=class extends Te{constructor(){super({context:Ll.context,initialValue:new Ll});this.iconSet=Ai.ICON_SET;this.fileExtension=Ai.FILE_EXTENSION;this.lengthUnit=Ai.LENGTH_UNIT;this.size=Ai.SIZE}static get Context(){return Ll.context}updateValuesInContext(){this.fileExtension&&cf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ai.FILE_EXTENSION,this.context.value.fileExtension=Ai.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&&hf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ai.LENGTH_UNIT,this.context.value.lengthUnit=Ai.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ti.prototype,"iconSet",2),h([u({type:String})],ti.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ti.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ti.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ti.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ti.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ti.prototype,"cacheName",2);var ja=ti;var jT=[bt,B`
|
|
436
436
|
:host {
|
|
437
437
|
--mdc-icon-fill-color: currentColor;
|
|
438
438
|
--mdc-icon-size: var(--computed-icon-size);
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
width: 100%;
|
|
448
448
|
fill: var(--mdc-icon-fill-color);
|
|
449
449
|
}
|
|
450
|
-
`,...yt()],pf=jT;var qa={},mf=async a=>(qa[a]===void 0&&(qa[a]=new Map),{async set(i,t){qa[a].set(i.url,await t.text())},async get(i){return qa[a].get(i.url)},async delete(i){qa[a].delete(i.url)}}),uf=async a=>{let i=await caches.open(a);return{set:async(t,e)=>{await i.put(t,e)},get:async t=>{let e=await i.match(t);return e==null?void 0:e.text()},delete:async t=>{await i.delete(t)}}},Ol=async(a,i)=>i==="in-memory-cache"?mf(a):uf(a);var ff=async a=>fetch(a).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),vf=async({url:a,name:i,fileExtension:t,cacheStrategy:e,cacheName:s,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${i}.${t}`,{signal:c});return!s||!e||!["in-memory-cache","web-cache-api"].includes(e)?ff(f).then(y=>y.text()):Ol(s,e).then(y=>y.get(f).then(A=>A||ff(f.clone()).then(P=>{var K;return P.status<400&&P.headers.has("content-type")?(K=y.set)==null?void 0:K.call(y,f,P.clone()).then(()=>P.text()):P.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${i}, ${A}`)}))};var gf=z.constructTagName("icon"),Zc={NAME:void 0,SIZE:1};var mr=class extends X{constructor(){super();this.name=Zc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=xe.consume({host:this,context:ja.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:s,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&s&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return vf({url:s,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let P=this.prepareIconElement(A);this.handleIconLoadedSuccess(P)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:Zc.SIZE}updated(t){var e,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!==((e=this.iconProviderContext.value)==null?void 0:e.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 S` ${this.iconData} `}};mr.styles=[...X.styles,...pf],h([nt()],mr.prototype,"iconData",2),h([nt()],mr.prototype,"lengthUnitFromContext",2),h([nt()],mr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],mr.prototype,"name",2),h([u({type:Number})],mr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],mr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],mr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],mr.prototype,"ariaLabelledby",2),h([nt()],mr.prototype,"abortController",2);var Qc=mr;Qc.register(gf);var qT=Qc;
|
|
450
|
+
`,...yt()],pf=jT;var qa={},mf=async a=>(qa[a]===void 0&&(qa[a]=new Map),{async set(i,t){qa[a].set(i.url,await t.text())},async get(i){return qa[a].get(i.url)},async delete(i){qa[a].delete(i.url)}}),uf=async a=>{let i=await caches.open(a);return{set:async(t,e)=>{await i.put(t,e)},get:async t=>{let e=await i.match(t);return e==null?void 0:e.text()},delete:async t=>{await i.delete(t)}}},Ol=async(a,i)=>i==="in-memory-cache"?mf(a):uf(a);var ff=async a=>fetch(a).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),vf=async({url:a,name:i,fileExtension:t,cacheStrategy:e,cacheName:s,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${i}.${t}`,{signal:c});return!s||!e||!["in-memory-cache","web-cache-api"].includes(e)?ff(f).then(y=>y.text()):Ol(s,e).then(y=>y.get(f).then(A=>A||ff(f.clone()).then(P=>{var K;return P.status<400&&P.headers.has("content-type")?(K=y.set)==null?void 0:K.call(y,f,P.clone()).then(()=>P.text()):P.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${i}, ${A}`)}))};var gf=z.constructTagName("icon"),Zc={NAME:void 0,SIZE:1};var mr=class extends X{constructor(){super();this.name=Zc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=xe.consume({host:this,context:ja.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:s,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&s&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return vf({url:s,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let P=this.prepareIconElement(A);this.handleIconLoadedSuccess(P)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:Zc.SIZE}updated(t){var e,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!==((e=this.iconProviderContext.value)==null?void 0:e.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 S` ${this.iconData} `}};mr.styles=[...X.styles,...pf],h([nt()],mr.prototype,"iconData",2),h([nt()],mr.prototype,"lengthUnitFromContext",2),h([nt()],mr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],mr.prototype,"name",2),h([u({type:Number})],mr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],mr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],mr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],mr.prototype,"ariaLabelledby",2),h([nt()],mr.prototype,"abortController",2);var Qc=mr;Qc.register(gf);var qT=Qc;Ho.register(Ti);var XT=Ho;var bf=B`
|
|
451
451
|
:host::part(text) {
|
|
452
452
|
font-size: unset;
|
|
453
453
|
font-weight: unset;
|
|
@@ -697,7 +697,7 @@
|
|
|
697
697
|
display: block;
|
|
698
698
|
font-family: var(--mdc-text-font-family);
|
|
699
699
|
}
|
|
700
|
-
`,bf],yf=ZT;var Xa=z.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},mt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Ce={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:mt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var
|
|
700
|
+
`,bf],yf=ZT;var Xa=z.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},mt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Ce={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:mt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Uo=class extends kl(X){constructor(){super(...arguments);this.type=Ce.TYPE;this.tagname=Ce.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[mt.SPAN,mt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case mt.H1:return S`<h1 part=${Ce.CSS_PART_TEXT}><slot></slot></h1>`;case mt.H2:return S`<h2 part=${Ce.CSS_PART_TEXT}><slot></slot></h2>`;case mt.H3:return S`<h3 part=${Ce.CSS_PART_TEXT}><slot></slot></h3>`;case mt.H4:return S`<h4 part=${Ce.CSS_PART_TEXT}><slot></slot></h4>`;case mt.H5:return S`<h5 part=${Ce.CSS_PART_TEXT}><slot></slot></h5>`;case mt.H6:return S`<h6 part=${Ce.CSS_PART_TEXT}><slot></slot></h6>`;case mt.DIV:return S`<div part=${Ce.CSS_PART_TEXT}><slot></slot></div>`;case mt.SPAN:return S`<span part=${Ce.CSS_PART_TEXT}><slot></slot></span>`;case mt.SMALL:return S`<small part=${Ce.CSS_PART_TEXT}><slot></slot></small>`;case mt.P:default:return S`<p part=${Ce.CSS_PART_TEXT}><slot></slot></p>`}}};Uo.styles=[...X.styles,...yf],h([Ut(`[part='${Ce.CSS_PART_TEXT}']`)],Uo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],Uo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Uo.prototype,"tagname",2);var Jc=Uo;Jc.register(Xa);var QT=Jc;var J=a=>a!=null?a:W;var we=[];for(let a=0;a<256;++a)we.push((a+256).toString(16).slice(1));function Ef(a,i=0){return(we[a[i+0]]+we[a[i+1]]+we[a[i+2]]+we[a[i+3]]+"-"+we[a[i+4]]+we[a[i+5]]+"-"+we[a[i+6]]+we[a[i+7]]+"-"+we[a[i+8]]+we[a[i+9]]+"-"+we[a[i+10]]+we[a[i+11]]+we[a[i+12]]+we[a[i+13]]+we[a[i+14]]+we[a[i+15]]).toLowerCase()}var th,JT=new Uint8Array(16);function eh(){if(!th){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");th=crypto.getRandomValues.bind(crypto)}return th(JT)}var tx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),rh={randomUUID:tx};function ex(a,i,t){var s,l,c;if(rh.randomUUID&&!i&&!a)return rh.randomUUID();a=a||{};let e=(c=(l=a.random)!=null?l:(s=a.rng)==null?void 0:s.call(a))!=null?c:eh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,i){if(t=t||0,t<0||t+16>i.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)i[t+f]=e[f];return i}return Ef(e)}var Fe=ex;var Tf=z.constructTagName("accordiongroup"),ih={SMALL:"small",LARGE:"large"},rx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Za={SIZE:ih.SMALL,VARIANT:rx.STACKED};var Rl=z.constructTagName("accordionbutton"),Qa={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},ix={DEFAULT:"default",BORDERLESS:"borderless"},eo={EXPANDED:!1,SIZE:ih.SMALL,DATA_ARIA_LEVEL:3,VARIANT:ix.DEFAULT,ICON_NAME:Qa.ARROW_UP};var ox=B`
|
|
701
701
|
:host {
|
|
702
702
|
--mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
703
703
|
--mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
|
|
@@ -1044,7 +1044,7 @@
|
|
|
1044
1044
|
--mdc-chip-icon-color: ButtonText;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
`,If=[bt,cx,...yt()];var _f=z.constructTagName("alertchip"),
|
|
1047
|
+
`,If=[bt,cx,...yt()];var _f=z.constructTagName("alertchip"),Go={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},$s={VARIANT:Go.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:$o[24],ROLE:et.BUTTON};var Cf=a=>({[Go.ERROR]:"error-legacy-badge-filled",[Go.INFORMATIONAL]:"info-badge-filled",[Go.NEUTRAL]:"dnd-presence-badge-filled",[Go.SUCCESS]:"check-circle-badge-filled",[Go.WARNING]:"warning-badge-filled"})[a];var Vs=class extends le(ue){constructor(){super(...arguments);this.variant=$s.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=$s.SIZE,this.role=$s.ROLE}render(){return S`
|
|
1048
1048
|
<mdc-icon part="icon" name="${this.iconName||Cf(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
|
1049
1049
|
${this.label?S`<mdc-text part="label" type="${$s.TEXT_TYPE}" tagname="${$s.TAG_NAME}"
|
|
1050
1050
|
>${this.label}</mdc-text
|
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
:host svg {
|
|
1054
1054
|
display: block;
|
|
1055
1055
|
}
|
|
1056
|
-
`],Rf=gx;var Df=z.constructTagName("animation"),ch={AUTO_PLAY:!0,LOOP:"true"};var _i=class extends X{constructor(){super(...arguments);this.loop=ch.LOOP;this.autoplay=ch.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Mf();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=Pf.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.name&&dh[this.name]?import(`@momentum-design/animations/dist/lottie${dh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${Lf(this.containerRef)}></div>`}};_i.styles=[...X.styles,...Rf],h([u({type:String,reflect:!0})],_i.prototype,"name",2),h([u({type:String,reflect:!0})],_i.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],_i.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],_i.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],_i.prototype,"ariaLabelledby",2);var hh=_i;hh.register(Df);var bx=hh;var Hl=a=>{class i 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),xi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),xi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Ps(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 h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Ul=a=>{class i extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Gl=z.constructTagName("link"),Kl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Wl={LARGE:1,MIDSIZE:.875,SMALL:.75},Ff={LINK_SIZE:Kl.LARGE};var $f=z.constructTagName("card"),ph={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},yx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ae={VARIANT:ph.BORDER,ORIENTATION:yx.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Gl,BUTTON:Ti};var Bs=a=>{class i extends a{updateFooterButtonColors(e){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(l=>{e===ph.PROMOTIONAL?l.setAttribute("color",
|
|
1056
|
+
`],Rf=gx;var Df=z.constructTagName("animation"),ch={AUTO_PLAY:!0,LOOP:"true"};var _i=class extends X{constructor(){super(...arguments);this.loop=ch.LOOP;this.autoplay=ch.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Mf();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=Pf.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.name&&dh[this.name]?import(`@momentum-design/animations/dist/lottie${dh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${Lf(this.containerRef)}></div>`}};_i.styles=[...X.styles,...Rf],h([u({type:String,reflect:!0})],_i.prototype,"name",2),h([u({type:String,reflect:!0})],_i.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],_i.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],_i.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],_i.prototype,"ariaLabelledby",2);var hh=_i;hh.register(Df);var bx=hh;var Hl=a=>{class i 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),xi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),xi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Ps(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 h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Ul=a=>{class i extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Gl=z.constructTagName("link"),Kl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Wl={LARGE:1,MIDSIZE:.875,SMALL:.75},Ff={LINK_SIZE:Kl.LARGE};var $f=z.constructTagName("card"),ph={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},yx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ae={VARIANT:ph.BORDER,ORIENTATION:yx.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Gl,BUTTON:Ti};var Bs=a=>{class i extends a{updateFooterButtonColors(e){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(l=>{e===ph.PROMOTIONAL?l.setAttribute("color",Vo.PROMOTIONAL):l.setAttribute("color",Vo.DEFAULT)})}handleFooterSlot(e,s){var c,f,y;let l=[];e===Ae.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:e===Ae.BUTTON&&s===Vt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:e===Ae.BUTTON&&s===Vt.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(e)||A.remove(),s&&A.setAttribute("variant",s)})}renderFooter(){return S` <slot name="footer">
|
|
1057
1057
|
<div part="footer">
|
|
1058
1058
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Ae.LINK)}></slot>
|
|
1059
1059
|
<slot
|
|
@@ -1645,7 +1645,7 @@
|
|
|
1645
1645
|
:host::part(mdc-presence-icon__scheduled) {
|
|
1646
1646
|
color: var(--mdc-presence-scheduled-background-color);
|
|
1647
1647
|
}
|
|
1648
|
-
`],nv=Nx;var lv=a=>{switch(a){case $e.AWAY:return"recents-presence-badge-filled";case $e.AWAY_CALLING:return"away-calling-presence-filled";case $e.BUSY:return"busy-presence-bold";case $e.DND:return"dnd-presence-badge-filled";case $e.MEETING:return"camera-filled";case $e.ON_CALL:return"handset-filled";case $e.ON_DEVICE:return"generic-device-video-badge-filled";case $e.ON_MOBILE:return"phone-badge-filled";case $e.PAUSE:return"pause-badge-filled";case $e.PTO:return"pto-presence-filled";case $e.PRESENTING:return"share-screen-badge-filled";case $e.QUIET:return"quiet-hours-presence-filled";case $e.SCHEDULED:return"meetings-presence-badge-filled";case $e.ACTIVE:default:return"active-presence-small-filled"}},dv=a=>({[de[124]]:2.25,[de[88]]:1.625,[de[72]]:1.3125,[de[64]]:1.1875,[de[48]]:.875,[de[32]]:.875,[de[24]]:.875})[a]||.875;var
|
|
1648
|
+
`],nv=Nx;var lv=a=>{switch(a){case $e.AWAY:return"recents-presence-badge-filled";case $e.AWAY_CALLING:return"away-calling-presence-filled";case $e.BUSY:return"busy-presence-bold";case $e.DND:return"dnd-presence-badge-filled";case $e.MEETING:return"camera-filled";case $e.ON_CALL:return"handset-filled";case $e.ON_DEVICE:return"generic-device-video-badge-filled";case $e.ON_MOBILE:return"phone-badge-filled";case $e.PAUSE:return"pause-badge-filled";case $e.PTO:return"pto-presence-filled";case $e.PRESENTING:return"share-screen-badge-filled";case $e.QUIET:return"quiet-hours-presence-filled";case $e.SCHEDULED:return"meetings-presence-badge-filled";case $e.ACTIVE:default:return"active-presence-small-filled"}},dv=a=>({[de[124]]:2.25,[de[88]]:1.625,[de[72]]:1.3125,[de[64]]:1.1875,[de[48]]:.875,[de[32]]:.875,[de[24]]:.875})[a]||.875;var Ko=class extends X{constructor(){super(...arguments);this.type=Ws.TYPE;this.size=Ws.SIZE;this.currentIconType=Ws.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(de).includes(t)?`${t}`:Ws.SIZE.toString())}get icon(){let t=lv(this.type);return t==="active-presence-small-filled"&&(this.type=Ws.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
|
|
1649
1649
|
<div part="presence-content">
|
|
1650
1650
|
<mdc-icon
|
|
1651
1651
|
part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
|
@@ -1655,7 +1655,7 @@
|
|
|
1655
1655
|
@error="${this.handleOnError}"
|
|
1656
1656
|
></mdc-icon>
|
|
1657
1657
|
</div>
|
|
1658
|
-
`}};
|
|
1658
|
+
`}};Ko.styles=[...X.styles,...nv],h([u({type:String,reflect:!0})],Ko.prototype,"type",2),h([u({type:Number,reflect:!0})],Ko.prototype,"size",2),h([nt()],Ko.prototype,"currentIconType",2);var Ah=Ko;Ah.register(iv);var Mx=Ah;xh.register(ev);var Lx=xh;var Ox=[bt,B`
|
|
1659
1659
|
:host {
|
|
1660
1660
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
|
1661
1661
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
|
@@ -1813,7 +1813,7 @@
|
|
|
1813
1813
|
width: 100%;
|
|
1814
1814
|
object-fit: contain;
|
|
1815
1815
|
}
|
|
1816
|
-
`,uv=[Fx];var
|
|
1816
|
+
`,uv=[Fx];var Wo=class extends X{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let i=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(i),Promise.reject(i)}updated(i){super.updated(i),i.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),i.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(i,t,e){let c=new DOMParser().parseFromString(i.strings[0],"text/html").querySelector(t);return c&&Object.entries(e).forEach(([f,y])=>{c.setAttribute(f,y)}),c||i}injectHtmlAttributes(i,t){return Object.entries(t).forEach(([e,s])=>{i.setAttribute(e,s)}),i}handleBrandVisualLoadedSuccess(i){this.brandVisualData=this.injectTemplateAttributes(i,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(i){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:i}});this.dispatchEvent(t)}render(){return S` ${this.brandVisualData} `}};Wo.styles=[...X.styles,...uv],h([nt()],Wo.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],Wo.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],Wo.prototype,"altText",2);var Ch=Wo;var fv=z.constructTagName("brandvisual");Ch.register(fv);var $x=Ch;var Vx=B`
|
|
1817
1817
|
:host {
|
|
1818
1818
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
1819
1819
|
--mdc-bullet-size: 0.25rem;
|
|
@@ -2087,7 +2087,7 @@
|
|
|
2087
2087
|
${this.prefixIcon?S`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2088
2088
|
<slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
|
|
2089
2089
|
${this.postfixIcon?S`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2090
|
-
`}};js.styles=[...
|
|
2090
|
+
`}};js.styles=[...Ho.styles,...Av],h([u({type:Number,reflect:!0})],js.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],js.prototype,"softDisabled",2);var Nh=js;var Sv=z.constructTagName("buttonlink");Nh.register(Sv);var jx=Nh;var od=a=>{class i extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ae.VARIANT;this.orientation=Ae.ORIENTATION;this.titleTagName=Ae.TAGNAME;this.subtitleTagName=Ae.TAGNAME}renderImage(){return this.imageSrc?S`<div part="image-wrapper">
|
|
2091
2091
|
<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
|
|
2092
2092
|
</div>`:W}renderIcon(){return this.iconName?S`<mdc-icon
|
|
2093
2093
|
part="icon"
|
|
@@ -2410,7 +2410,7 @@
|
|
|
2410
2410
|
--mdc-staticcheckbox-icon-color: GrayText;
|
|
2411
2411
|
}
|
|
2412
2412
|
}
|
|
2413
|
-
`],Nv=tA;var Mv=z.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Se={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},
|
|
2413
|
+
`],Nv=tA;var Mv=z.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Se={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Yo={TONAL:"tonal",CONTRAST:"contrast"},Rh={ABSOLUTE:"absolute",FIXED:"fixed"},eA={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:Se.CLICK,COLOR:Yo.TONAL,STRATEGY:Rh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:eA.VIEWPORT,BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1},Ni={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Lv=z.constructTagName("formfieldwrapper"),jt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ft={VALIDATION:jt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:Rh.ABSOLUTE},ln={TAGNAME:mt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Ov=z.constructTagName("checkbox"),ld={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Rv={ERROR:jt.ERROR,DEFAULT:jt.DEFAULT};var Dv=z.constructTagName("staticcheckbox");var no=class extends ee(X){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
|
|
2414
2414
|
<mdc-icon
|
|
2415
2415
|
part="checkbox-icon"
|
|
2416
2416
|
name="${this.indeterminate?ld.INDETERMINATE:ld.CHECKED}"
|
|
@@ -2579,8 +2579,8 @@
|
|
|
2579
2579
|
--mdc-staticradio-outer-circle-background-color: GrayText;
|
|
2580
2580
|
}
|
|
2581
2581
|
}
|
|
2582
|
-
`],Fv=sA;var
|
|
2583
|
-
<span part="radio-icon" class="radio-icon"></span>`}};qo.styles=[...X.styles,...Fv],h([u({type:Boolean,reflect:!0})],qo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],qo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],qo.prototype,"softDisabled",2);var Fh=qo;var $v=z.constructTagName("staticradio");Fh.register($v);var aA=Fh;Ph.register(dd);var nA=Ph;var si=Math.min,Ge=Math.max,cn=Math.round,hn=Math.floor,$r=a=>({x:a,y:a}),lA={left:"right",right:"left",bottom:"top",top:"bottom"},dA={start:"end",end:"start"};function hd(a,i,t){return Ge(a,si(i,t))}function Xo(a,i){return typeof a=="function"?a(i):a}function Mi(a){return a.split("-")[0]}function Zo(a){return a.split("-")[1]}function $h(a){return a==="x"?"y":"x"}function pd(a){return a==="y"?"height":"width"}var cA=new Set(["top","bottom"]);function ai(a){return cA.has(Mi(a))?"y":"x"}function md(a){return $h(ai(a))}function Bv(a,i,t){t===void 0&&(t=!1);let e=Zo(a),s=md(a),l=pd(s),c=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[l]>i.floating[l]&&(c=dn(c)),[c,dn(c)]}function Hv(a){let i=dn(a);return[cd(a),i,cd(i)]}function cd(a){return a.replace(/start|end/g,i=>dA[i])}var Vv=["left","right"],zv=["right","left"],hA=["top","bottom"],pA=["bottom","top"];function mA(a,i,t){switch(a){case"top":case"bottom":return t?i?zv:Vv:i?Vv:zv;case"left":case"right":return i?hA:pA;default:return[]}}function Uv(a,i,t,e){let s=Zo(a),l=mA(Mi(a),t==="start",e);return s&&(l=l.map(c=>c+"-"+s),i&&(l=l.concat(l.map(cd)))),l}function dn(a){return a.replace(/left|right|bottom|top/g,i=>lA[i])}function uA(a){return{top:0,right:0,bottom:0,left:0,...a}}function Vh(a){return typeof a!="number"?uA(a):{top:a,right:a,bottom:a,left:a}}function Qo(a){let{x:i,y:t,width:e,height:s}=a;return{width:e,height:s,top:t,left:i,right:i+e,bottom:t+s,x:i,y:t}}function Gv(a,i,t){let{reference:e,floating:s}=a,l=ai(i),c=md(i),f=pd(c),y=Mi(i),A=l==="y",P=e.x+e.width/2-s.width/2,K=e.y+e.height/2-s.height/2,Q=e[f]/2-s[f]/2,Z;switch(y){case"top":Z={x:P,y:e.y-s.height};break;case"bottom":Z={x:P,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:K};break;case"left":Z={x:e.x-s.width,y:K};break;default:Z={x:e.x,y:e.y}}switch(Zo(i)){case"start":Z[c]-=Q*(t&&A?-1:1);break;case"end":Z[c]+=Q*(t&&A?-1:1);break}return Z}var Kv=async(a,i,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(i)),A=await c.getElementRects({reference:a,floating:i,strategy:s}),{x:P,y:K}=Gv(A,e,y),Q=e,Z={},tt=0;for(let lt=0;lt<f.length;lt++){let{name:dt,fn:ft}=f[lt],{x:It,y:wt,data:qt,reset:Kt}=await ft({x:P,y:K,initialPlacement:e,placement:Q,strategy:s,middlewareData:Z,rects:A,platform:c,elements:{reference:a,floating:i}});P=It!=null?It:P,K=wt!=null?wt:K,Z={...Z,[dt]:{...Z[dt],...qt}},Kt&&tt<=50&&(tt++,typeof Kt=="object"&&(Kt.placement&&(Q=Kt.placement),Kt.rects&&(A=Kt.rects===!0?await c.getElementRects({reference:a,floating:i,strategy:s}):Kt.rects),{x:P,y:K}=Gv(A,Q,y)),lt=-1)}return{x:P,y:K,placement:Q,strategy:s,middlewareData:Z}};async function ud(a,i){var t;i===void 0&&(i={});let{x:e,y:s,platform:l,rects:c,elements:f,strategy:y}=a,{boundary:A="clippingAncestors",rootBoundary:P="viewport",elementContext:K="floating",altBoundary:Q=!1,padding:Z=0}=Xo(i,a),tt=Vh(Z),dt=f[Q?K==="floating"?"reference":"floating":K],ft=Qo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(dt)))==null||t?dt:dt.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:P,strategy:y})),It=K==="floating"?{x:e,y:s,width:c.floating.width,height:c.floating.height}:c.reference,wt=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),qt=await(l.isElement==null?void 0:l.isElement(wt))?await(l.getScale==null?void 0:l.getScale(wt))||{x:1,y:1}:{x:1,y:1},Kt=Qo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:wt,strategy:y}):It);return{top:(ft.top-Kt.top+tt.top)/qt.y,bottom:(Kt.bottom-ft.bottom+tt.bottom)/qt.y,left:(ft.left-Kt.left+tt.left)/qt.x,right:(Kt.right-ft.right+tt.right)/qt.x}}var Wv=a=>({name:"arrow",options:a,async fn(i){let{x:t,y:e,placement:s,rects:l,platform:c,elements:f,middlewareData:y}=i,{element:A,padding:P=0}=Xo(a,i)||{};if(A==null)return{};let K=Vh(P),Q={x:t,y:e},Z=md(s),tt=pd(Z),lt=await c.getDimensions(A),dt=Z==="y",ft=dt?"top":"left",It=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",qt=l.reference[tt]+l.reference[Z]-Q[Z]-l.floating[tt],Kt=Q[Z]-l.reference[Z],Xt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),$t=Xt?Xt[wt]:0;(!$t||!await(c.isElement==null?void 0:c.isElement(Xt)))&&($t=f.floating[wt]||l.floating[tt]);let ae=qt/2-Kt/2,cr=$t/2-lt[tt]/2-1,Me=si(K[ft],cr),je=si(K[It],cr),ze=Me,qe=$t-lt[tt]-je,Nt=$t/2-lt[tt]/2+ae,he=hd(ze,Nt,qe),gr=!y.arrow&&Zo(s)!=null&&Nt!==he&&l.reference[tt]/2-(Nt<ze?Me:je)-lt[tt]/2<0,br=gr?Nt<ze?Nt-ze:Nt-qe:0;return{[Z]:Q[Z]+br,data:{[Z]:he,centerOffset:Nt-he-br,...gr&&{alignmentOffset:br}},reset:gr}}});var Yv=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var t,e;let{placement:s,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=i,{mainAxis:P=!0,crossAxis:K=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:lt=!0,...dt}=Xo(a,i);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ft=Mi(s),It=ai(f),wt=Mi(f)===f,qt=await(y.isRTL==null?void 0:y.isRTL(A.floating)),Kt=Q||(wt||!lt?[dn(f)]:Hv(f)),Xt=tt!=="none";!Q&&Xt&&Kt.push(...Uv(f,lt,tt,qt));let $t=[f,...Kt],ae=await ud(i,dt),cr=[],Me=((e=l.flip)==null?void 0:e.overflows)||[];if(P&&cr.push(ae[ft]),K){let Nt=Bv(s,c,qt);cr.push(ae[Nt[0]],ae[Nt[1]])}if(Me=[...Me,{placement:s,overflows:cr}],!cr.every(Nt=>Nt<=0)){var je,ze;let Nt=(((je=l.flip)==null?void 0:je.index)||0)+1,he=$t[Nt];if(he&&(!(K==="alignment"?It!==ai(he):!1)||Me.every(yr=>yr.overflows[0]>0&&ai(yr.placement)===It)))return{data:{index:Nt,overflows:Me},reset:{placement:he}};let gr=(ze=Me.filter(br=>br.overflows[0]<=0).sort((br,yr)=>br.overflows[1]-yr.overflows[1])[0])==null?void 0:ze.placement;if(!gr)switch(Z){case"bestFit":{var qe;let br=(qe=Me.filter(yr=>{if(Xt){let Er=ai(yr.placement);return Er===It||Er==="y"}return!0}).map(yr=>[yr.placement,yr.overflows.filter(Er=>Er>0).reduce((Er,jn)=>Er+jn,0)]).sort((yr,Er)=>yr[1]-Er[1])[0])==null?void 0:qe[0];br&&(gr=br);break}case"initialPlacement":gr=f;break}if(s!==gr)return{reset:{placement:gr}}}return{}}}};var fA=new Set(["left","top"]);async function vA(a,i){let{placement:t,platform:e,elements:s}=a,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),c=Mi(t),f=Zo(t),y=ai(t)==="y",A=fA.has(c)?-1:1,P=l&&y?-1:1,K=Xo(i,a),{mainAxis:Q,crossAxis:Z,alignmentAxis:tt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return f&&typeof tt=="number"&&(Z=f==="end"?tt*-1:tt),y?{x:Z*P,y:Q*A}:{x:Q*A,y:Z*P}}var jv=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var t,e;let{x:s,y:l,placement:c,middlewareData:f}=i,y=await vA(i,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:s+y.x,y:l+y.y,data:{...y,placement:c}}}}},qv=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){let{x:t,y:e,placement:s}=i,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:dt=>{let{x:ft,y:It}=dt;return{x:ft,y:It}}},...y}=Xo(a,i),A={x:t,y:e},P=await ud(i,y),K=ai(Mi(s)),Q=$h(K),Z=A[Q],tt=A[K];if(l){let dt=Q==="y"?"top":"left",ft=Q==="y"?"bottom":"right",It=Z+P[dt],wt=Z-P[ft];Z=hd(It,Z,wt)}if(c){let dt=K==="y"?"top":"left",ft=K==="y"?"bottom":"right",It=tt+P[dt],wt=tt-P[ft];tt=hd(It,tt,wt)}let lt=f.fn({...i,[Q]:Z,[K]:tt});return{...lt,data:{x:lt.x-t,y:lt.y-e,enabled:{[Q]:l,[K]:c}}}}}};var Xv=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var t,e;let{placement:s,rects:l,platform:c,elements:f}=i,{apply:y=()=>{},...A}=Xo(a,i),P=await ud(i,A),K=Mi(s),Q=Zo(s),Z=ai(s)==="y",{width:tt,height:lt}=l.floating,dt,ft;K==="top"||K==="bottom"?(dt=K,ft=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ft=K,dt=Q==="end"?"top":"bottom");let It=lt-P.top-P.bottom,wt=tt-P.left-P.right,qt=si(lt-P[dt],It),Kt=si(tt-P[ft],wt),Xt=!i.middlewareData.shift,$t=qt,ae=Kt;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ae=wt),(e=i.middlewareData.shift)!=null&&e.enabled.y&&($t=It),Xt&&!Q){let Me=Ge(P.left,0),je=Ge(P.right,0),ze=Ge(P.top,0),qe=Ge(P.bottom,0);Z?ae=tt-2*(Me!==0||je!==0?Me+je:Ge(P.left,P.right)):$t=lt-2*(ze!==0||qe!==0?ze+qe:Ge(P.top,P.bottom))}await y({...i,availableWidth:ae,availableHeight:$t});let cr=await c.getDimensions(f.floating);return tt!==cr.width||lt!==cr.height?{reset:{rects:!0}}:{}}}};function fd(){return typeof window<"u"}function Jo(a){return Qv(a)?(a.nodeName||"").toLowerCase():"#document"}function rr(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function Vr(a){var i;return(i=(Qv(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function Qv(a){return fd()?a instanceof Node||a instanceof rr(a).Node:!1}function _r(a){return fd()?a instanceof Element||a instanceof rr(a).Element:!1}function zr(a){return fd()?a instanceof HTMLElement||a instanceof rr(a).HTMLElement:!1}function Zv(a){return!fd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof rr(a).ShadowRoot}var gA=new Set(["inline","contents"]);function Qs(a){let{overflow:i,overflowX:t,overflowY:e,display:s}=Cr(a);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!gA.has(s)}var bA=new Set(["table","td","th"]);function Jv(a){return bA.has(Jo(a))}var yA=[":popover-open",":modal"];function pn(a){return yA.some(i=>{try{return a.matches(i)}catch{return!1}})}var EA=["transform","translate","scale","rotate","perspective"],TA=["transform","translate","scale","rotate","perspective","filter"],xA=["paint","layout","strict","content"];function vd(a){let i=gd(),t=_r(a)?Cr(a):a;return EA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||TA.some(e=>(t.willChange||"").includes(e))||xA.some(e=>(t.contain||"").includes(e))}function tg(a){let i=Li(a);for(;zr(i)&&!ts(i);){if(vd(i))return i;if(pn(i))return null;i=Li(i)}return null}function gd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var AA=new Set(["html","body","#document"]);function ts(a){return AA.has(Jo(a))}function Cr(a){return rr(a).getComputedStyle(a)}function mn(a){return _r(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Li(a){if(Jo(a)==="html")return a;let i=a.assignedSlot||a.parentNode||Zv(a)&&a.host||Vr(a);return Zv(i)?i.host:i}function eg(a){let i=Li(a);return ts(i)?a.ownerDocument?a.ownerDocument.body:a.body:zr(i)&&Qs(i)?i:eg(i)}function Zs(a,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let s=eg(a),l=s===((e=a.ownerDocument)==null?void 0:e.body),c=rr(s);if(l){let f=bd(c);return i.concat(c,c.visualViewport||[],Qs(s)?s:[],f&&t?Zs(f):[])}return i.concat(s,Zs(s,[],t))}function bd(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function og(a){let i=Cr(a),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,s=zr(a),l=s?a.offsetWidth:t,c=s?a.offsetHeight:e,f=cn(t)!==l||cn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Bh(a){return _r(a)?a:a.contextElement}function Js(a){let i=Bh(a);if(!zr(i))return $r(1);let t=i.getBoundingClientRect(),{width:e,height:s,$:l}=og(i),c=(l?cn(t.width):t.width)/e,f=(l?cn(t.height):t.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var SA=$r(0);function sg(a){let i=rr(a);return!gd()||!i.visualViewport?SA:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function IA(a,i,t){return i===void 0&&(i=!1),!t||i&&t!==rr(a)?!1:i}function es(a,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),l=Bh(a),c=$r(1);i&&(e?_r(e)&&(c=Js(e)):c=Js(a));let f=IA(l,t,e)?sg(l):$r(0),y=(s.left+f.x)/c.x,A=(s.top+f.y)/c.y,P=s.width/c.x,K=s.height/c.y;if(l){let Q=rr(l),Z=e&&_r(e)?rr(e):e,tt=Q,lt=bd(tt);for(;lt&&e&&Z!==tt;){let dt=Js(lt),ft=lt.getBoundingClientRect(),It=Cr(lt),wt=ft.left+(lt.clientLeft+parseFloat(It.paddingLeft))*dt.x,qt=ft.top+(lt.clientTop+parseFloat(It.paddingTop))*dt.y;y*=dt.x,A*=dt.y,P*=dt.x,K*=dt.y,y+=wt,A+=qt,tt=rr(lt),lt=bd(tt)}}return Qo({width:P,height:K,x:y,y:A})}function Hh(a,i){let t=mn(a).scrollLeft;return i?i.left+t:es(Vr(a)).left+t}function ag(a,i,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),s=e.left+i.scrollLeft-(t?0:Hh(a,e)),l=e.top+i.scrollTop;return{x:s,y:l}}function _A(a){let{elements:i,rect:t,offsetParent:e,strategy:s}=a,l=s==="fixed",c=Vr(e),f=i?pn(i.floating):!1;if(e===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=$r(1),P=$r(0),K=zr(e);if((K||!K&&!l)&&((Jo(e)!=="body"||Qs(c))&&(y=mn(e)),zr(e))){let Z=es(e);A=Js(e),P.x=Z.x+e.clientLeft,P.y=Z.y+e.clientTop}let Q=c&&!K&&!l?ag(c,y,!0):$r(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+P.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+P.y+Q.y}}function CA(a){return Array.from(a.getClientRects())}function wA(a){let i=Vr(a),t=mn(a),e=a.ownerDocument.body,s=Ge(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),l=Ge(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Hh(a),f=-t.scrollTop;return Cr(e).direction==="rtl"&&(c+=Ge(i.clientWidth,e.clientWidth)-s),{width:s,height:l,x:c,y:f}}function kA(a,i){let t=rr(a),e=Vr(a),s=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,y=0;if(s){l=s.width,c=s.height;let A=gd();(!A||A&&i==="fixed")&&(f=s.offsetLeft,y=s.offsetTop)}return{width:l,height:c,x:f,y}}var NA=new Set(["absolute","fixed"]);function MA(a,i){let t=es(a,!0,i==="fixed"),e=t.top+a.clientTop,s=t.left+a.clientLeft,l=zr(a)?Js(a):$r(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,y=s*l.x,A=e*l.y;return{width:c,height:f,x:y,y:A}}function rg(a,i,t){let e;if(i==="viewport")e=kA(a,t);else if(i==="document")e=wA(Vr(a));else if(_r(i))e=MA(i,t);else{let s=sg(a);e={x:i.x-s.x,y:i.y-s.y,width:i.width,height:i.height}}return Qo(e)}function ng(a,i){let t=Li(a);return t===i||!_r(t)||ts(t)?!1:Cr(t).position==="fixed"||ng(t,i)}function LA(a,i){let t=i.get(a);if(t)return t;let e=Zs(a,[],!1).filter(f=>_r(f)&&Jo(f)!=="body"),s=null,l=Cr(a).position==="fixed",c=l?Li(a):a;for(;_r(c)&&!ts(c);){let f=Cr(c),y=vd(c);!y&&f.position==="fixed"&&(s=null),(l?!y&&!s:!y&&f.position==="static"&&!!s&&NA.has(s.position)||Qs(c)&&!y&&ng(a,c))?e=e.filter(P=>P!==c):s=f,c=Li(c)}return i.set(a,e),e}function OA(a){let{element:i,boundary:t,rootBoundary:e,strategy:s}=a,c=[...t==="clippingAncestors"?pn(i)?[]:LA(i,this._c):[].concat(t),e],f=c[0],y=c.reduce((A,P)=>{let K=rg(i,P,s);return A.top=Ge(K.top,A.top),A.right=si(K.right,A.right),A.bottom=si(K.bottom,A.bottom),A.left=Ge(K.left,A.left),A},rg(i,f,s));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function RA(a){let{width:i,height:t}=og(a);return{width:i,height:t}}function DA(a,i,t){let e=zr(i),s=Vr(i),l=t==="fixed",c=es(a,!0,l,i),f={scrollLeft:0,scrollTop:0},y=$r(0);function A(){y.x=Hh(s)}if(e||!e&&!l)if((Jo(i)!=="body"||Qs(s))&&(f=mn(i)),e){let Z=es(i,!0,l,i);y.x=Z.x+i.clientLeft,y.y=Z.y+i.clientTop}else s&&A();l&&!e&&s&&A();let P=s&&!e&&!l?ag(s,f):$r(0),K=c.left+f.scrollLeft-y.x-P.x,Q=c.top+f.scrollTop-y.y-P.y;return{x:K,y:Q,width:c.width,height:c.height}}function zh(a){return Cr(a).position==="static"}function ig(a,i){if(!zr(a)||Cr(a).position==="fixed")return null;if(i)return i(a);let t=a.offsetParent;return Vr(a)===t&&(t=t.ownerDocument.body),t}function lg(a,i){let t=rr(a);if(pn(a))return t;if(!zr(a)){let s=Li(a);for(;s&&!ts(s);){if(_r(s)&&!zh(s))return s;s=Li(s)}return t}let e=ig(a,i);for(;e&&Jv(e)&&zh(e);)e=ig(e,i);return e&&ts(e)&&zh(e)&&!vd(e)?t:e||tg(a)||t}var PA=async function(a){let i=this.getOffsetParent||lg,t=this.getDimensions,e=await t(a.floating);return{reference:DA(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function FA(a){return Cr(a).direction==="rtl"}var $A={convertOffsetParentRelativeRectToViewportRelativeRect:_A,getDocumentElement:Vr,getClippingRect:OA,getOffsetParent:lg,getElementRects:PA,getClientRects:CA,getDimensions:RA,getScale:Js,isElement:_r,isRTL:FA};function dg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function VA(a,i){let t=null,e,s=Vr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=a.getBoundingClientRect(),{left:P,top:K,width:Q,height:Z}=A;if(f||i(),!Q||!Z)return;let tt=hn(K),lt=hn(s.clientWidth-(P+Q)),dt=hn(s.clientHeight-(K+Z)),ft=hn(P),wt={rootMargin:-tt+"px "+-lt+"px "+-dt+"px "+-ft+"px",threshold:Ge(0,si(1,y))||1},qt=!0;function Kt(Xt){let $t=Xt[0].intersectionRatio;if($t!==y){if(!qt)return c();$t?c(!1,$t):e=setTimeout(()=>{c(!1,1e-7)},1e3)}$t===1&&!dg(A,a.getBoundingClientRect())&&c(),qt=!1}try{t=new IntersectionObserver(Kt,{...wt,root:s.ownerDocument})}catch{t=new IntersectionObserver(Kt,wt)}t.observe(a)}return c(!0),l}function cg(a,i,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,A=Bh(a),P=s||l?[...A?Zs(A):[],...Zs(i)]:[];P.forEach(ft=>{s&&ft.addEventListener("scroll",t,{passive:!0}),l&&ft.addEventListener("resize",t)});let K=A&&f?VA(A,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(ft=>{let[It]=ft;It&&It.target===A&&Z&&(Z.unobserve(i),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var wt;(wt=Z)==null||wt.observe(i)})),t()}),A&&!y&&Z.observe(A),Z.observe(i));let tt,lt=y?es(a):null;y&&dt();function dt(){let ft=es(a);lt&&!dg(lt,ft)&&t(),lt=ft,tt=requestAnimationFrame(dt)}return t(),()=>{var ft;P.forEach(It=>{s&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),K==null||K(),(ft=Z)==null||ft.disconnect(),Z=null,y&&cancelAnimationFrame(tt)}}var hg=jv;var pg=qv,mg=Yv,ug=Xv;var fg=Wv;var vg=(a,i,t)=>{let e=new Map,s={platform:$A,...t},l={...s.platform,_c:e};return Kv(a,i,{...s,platform:l})};var yd=class{constructor(i){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;i.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(i,t,e,...s){this.nameToIntervalId.has(i)&&clearInterval(this.nameToIntervalId.get(i));let l=window.setInterval(t,e,...s);return this.nameToIntervalId.set(i,l),l}clearInterval(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,i);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(i,t,e,...s){this.nameToTimeoutId.has(i)&&clearTimeout(this.nameToTimeoutId.get(i));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(i)},e,...s);return this.nameToTimeoutId.set(i,l),l}clearTimeout(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,i);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(i,t){var e;if(typeof t=="number"){let s=t;return[(e=[...i.entries()].find(([,c])=>c===t))==null?void 0:e[0],s]}return[t,i.get(t)]}};var Oi=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var zA=B`
|
|
2582
|
+
`],Fv=sA;var jo=class extends ee(X){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
|
|
2583
|
+
<span part="radio-icon" class="radio-icon"></span>`}};jo.styles=[...X.styles,...Fv],h([u({type:Boolean,reflect:!0})],jo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],jo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],jo.prototype,"softDisabled",2);var Fh=jo;var $v=z.constructTagName("staticradio");Fh.register($v);var aA=Fh;Ph.register(dd);var nA=Ph;var si=Math.min,Ge=Math.max,cn=Math.round,hn=Math.floor,$r=a=>({x:a,y:a}),lA={left:"right",right:"left",bottom:"top",top:"bottom"},dA={start:"end",end:"start"};function hd(a,i,t){return Ge(a,si(i,t))}function qo(a,i){return typeof a=="function"?a(i):a}function Mi(a){return a.split("-")[0]}function Xo(a){return a.split("-")[1]}function $h(a){return a==="x"?"y":"x"}function pd(a){return a==="y"?"height":"width"}var cA=new Set(["top","bottom"]);function ai(a){return cA.has(Mi(a))?"y":"x"}function md(a){return $h(ai(a))}function Bv(a,i,t){t===void 0&&(t=!1);let e=Xo(a),s=md(a),l=pd(s),c=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[l]>i.floating[l]&&(c=dn(c)),[c,dn(c)]}function Hv(a){let i=dn(a);return[cd(a),i,cd(i)]}function cd(a){return a.replace(/start|end/g,i=>dA[i])}var Vv=["left","right"],zv=["right","left"],hA=["top","bottom"],pA=["bottom","top"];function mA(a,i,t){switch(a){case"top":case"bottom":return t?i?zv:Vv:i?Vv:zv;case"left":case"right":return i?hA:pA;default:return[]}}function Uv(a,i,t,e){let s=Xo(a),l=mA(Mi(a),t==="start",e);return s&&(l=l.map(c=>c+"-"+s),i&&(l=l.concat(l.map(cd)))),l}function dn(a){return a.replace(/left|right|bottom|top/g,i=>lA[i])}function uA(a){return{top:0,right:0,bottom:0,left:0,...a}}function Vh(a){return typeof a!="number"?uA(a):{top:a,right:a,bottom:a,left:a}}function Zo(a){let{x:i,y:t,width:e,height:s}=a;return{width:e,height:s,top:t,left:i,right:i+e,bottom:t+s,x:i,y:t}}function Gv(a,i,t){let{reference:e,floating:s}=a,l=ai(i),c=md(i),f=pd(c),y=Mi(i),A=l==="y",P=e.x+e.width/2-s.width/2,K=e.y+e.height/2-s.height/2,Q=e[f]/2-s[f]/2,Z;switch(y){case"top":Z={x:P,y:e.y-s.height};break;case"bottom":Z={x:P,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:K};break;case"left":Z={x:e.x-s.width,y:K};break;default:Z={x:e.x,y:e.y}}switch(Xo(i)){case"start":Z[c]-=Q*(t&&A?-1:1);break;case"end":Z[c]+=Q*(t&&A?-1:1);break}return Z}var Kv=async(a,i,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(i)),A=await c.getElementRects({reference:a,floating:i,strategy:s}),{x:P,y:K}=Gv(A,e,y),Q=e,Z={},tt=0;for(let lt=0;lt<f.length;lt++){let{name:dt,fn:ft}=f[lt],{x:It,y:wt,data:qt,reset:Kt}=await ft({x:P,y:K,initialPlacement:e,placement:Q,strategy:s,middlewareData:Z,rects:A,platform:c,elements:{reference:a,floating:i}});P=It!=null?It:P,K=wt!=null?wt:K,Z={...Z,[dt]:{...Z[dt],...qt}},Kt&&tt<=50&&(tt++,typeof Kt=="object"&&(Kt.placement&&(Q=Kt.placement),Kt.rects&&(A=Kt.rects===!0?await c.getElementRects({reference:a,floating:i,strategy:s}):Kt.rects),{x:P,y:K}=Gv(A,Q,y)),lt=-1)}return{x:P,y:K,placement:Q,strategy:s,middlewareData:Z}};async function ud(a,i){var t;i===void 0&&(i={});let{x:e,y:s,platform:l,rects:c,elements:f,strategy:y}=a,{boundary:A="clippingAncestors",rootBoundary:P="viewport",elementContext:K="floating",altBoundary:Q=!1,padding:Z=0}=qo(i,a),tt=Vh(Z),dt=f[Q?K==="floating"?"reference":"floating":K],ft=Zo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(dt)))==null||t?dt:dt.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:P,strategy:y})),It=K==="floating"?{x:e,y:s,width:c.floating.width,height:c.floating.height}:c.reference,wt=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),qt=await(l.isElement==null?void 0:l.isElement(wt))?await(l.getScale==null?void 0:l.getScale(wt))||{x:1,y:1}:{x:1,y:1},Kt=Zo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:wt,strategy:y}):It);return{top:(ft.top-Kt.top+tt.top)/qt.y,bottom:(Kt.bottom-ft.bottom+tt.bottom)/qt.y,left:(ft.left-Kt.left+tt.left)/qt.x,right:(Kt.right-ft.right+tt.right)/qt.x}}var Wv=a=>({name:"arrow",options:a,async fn(i){let{x:t,y:e,placement:s,rects:l,platform:c,elements:f,middlewareData:y}=i,{element:A,padding:P=0}=qo(a,i)||{};if(A==null)return{};let K=Vh(P),Q={x:t,y:e},Z=md(s),tt=pd(Z),lt=await c.getDimensions(A),dt=Z==="y",ft=dt?"top":"left",It=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",qt=l.reference[tt]+l.reference[Z]-Q[Z]-l.floating[tt],Kt=Q[Z]-l.reference[Z],Xt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),$t=Xt?Xt[wt]:0;(!$t||!await(c.isElement==null?void 0:c.isElement(Xt)))&&($t=f.floating[wt]||l.floating[tt]);let ae=qt/2-Kt/2,cr=$t/2-lt[tt]/2-1,Me=si(K[ft],cr),je=si(K[It],cr),ze=Me,qe=$t-lt[tt]-je,Nt=$t/2-lt[tt]/2+ae,he=hd(ze,Nt,qe),gr=!y.arrow&&Xo(s)!=null&&Nt!==he&&l.reference[tt]/2-(Nt<ze?Me:je)-lt[tt]/2<0,br=gr?Nt<ze?Nt-ze:Nt-qe:0;return{[Z]:Q[Z]+br,data:{[Z]:he,centerOffset:Nt-he-br,...gr&&{alignmentOffset:br}},reset:gr}}});var Yv=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var t,e;let{placement:s,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=i,{mainAxis:P=!0,crossAxis:K=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:lt=!0,...dt}=qo(a,i);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ft=Mi(s),It=ai(f),wt=Mi(f)===f,qt=await(y.isRTL==null?void 0:y.isRTL(A.floating)),Kt=Q||(wt||!lt?[dn(f)]:Hv(f)),Xt=tt!=="none";!Q&&Xt&&Kt.push(...Uv(f,lt,tt,qt));let $t=[f,...Kt],ae=await ud(i,dt),cr=[],Me=((e=l.flip)==null?void 0:e.overflows)||[];if(P&&cr.push(ae[ft]),K){let Nt=Bv(s,c,qt);cr.push(ae[Nt[0]],ae[Nt[1]])}if(Me=[...Me,{placement:s,overflows:cr}],!cr.every(Nt=>Nt<=0)){var je,ze;let Nt=(((je=l.flip)==null?void 0:je.index)||0)+1,he=$t[Nt];if(he&&(!(K==="alignment"?It!==ai(he):!1)||Me.every(yr=>yr.overflows[0]>0&&ai(yr.placement)===It)))return{data:{index:Nt,overflows:Me},reset:{placement:he}};let gr=(ze=Me.filter(br=>br.overflows[0]<=0).sort((br,yr)=>br.overflows[1]-yr.overflows[1])[0])==null?void 0:ze.placement;if(!gr)switch(Z){case"bestFit":{var qe;let br=(qe=Me.filter(yr=>{if(Xt){let Er=ai(yr.placement);return Er===It||Er==="y"}return!0}).map(yr=>[yr.placement,yr.overflows.filter(Er=>Er>0).reduce((Er,jn)=>Er+jn,0)]).sort((yr,Er)=>yr[1]-Er[1])[0])==null?void 0:qe[0];br&&(gr=br);break}case"initialPlacement":gr=f;break}if(s!==gr)return{reset:{placement:gr}}}return{}}}};var fA=new Set(["left","top"]);async function vA(a,i){let{placement:t,platform:e,elements:s}=a,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),c=Mi(t),f=Xo(t),y=ai(t)==="y",A=fA.has(c)?-1:1,P=l&&y?-1:1,K=qo(i,a),{mainAxis:Q,crossAxis:Z,alignmentAxis:tt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return f&&typeof tt=="number"&&(Z=f==="end"?tt*-1:tt),y?{x:Z*P,y:Q*A}:{x:Q*A,y:Z*P}}var jv=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var t,e;let{x:s,y:l,placement:c,middlewareData:f}=i,y=await vA(i,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:s+y.x,y:l+y.y,data:{...y,placement:c}}}}},qv=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){let{x:t,y:e,placement:s}=i,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:dt=>{let{x:ft,y:It}=dt;return{x:ft,y:It}}},...y}=qo(a,i),A={x:t,y:e},P=await ud(i,y),K=ai(Mi(s)),Q=$h(K),Z=A[Q],tt=A[K];if(l){let dt=Q==="y"?"top":"left",ft=Q==="y"?"bottom":"right",It=Z+P[dt],wt=Z-P[ft];Z=hd(It,Z,wt)}if(c){let dt=K==="y"?"top":"left",ft=K==="y"?"bottom":"right",It=tt+P[dt],wt=tt-P[ft];tt=hd(It,tt,wt)}let lt=f.fn({...i,[Q]:Z,[K]:tt});return{...lt,data:{x:lt.x-t,y:lt.y-e,enabled:{[Q]:l,[K]:c}}}}}};var Xv=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var t,e;let{placement:s,rects:l,platform:c,elements:f}=i,{apply:y=()=>{},...A}=qo(a,i),P=await ud(i,A),K=Mi(s),Q=Xo(s),Z=ai(s)==="y",{width:tt,height:lt}=l.floating,dt,ft;K==="top"||K==="bottom"?(dt=K,ft=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ft=K,dt=Q==="end"?"top":"bottom");let It=lt-P.top-P.bottom,wt=tt-P.left-P.right,qt=si(lt-P[dt],It),Kt=si(tt-P[ft],wt),Xt=!i.middlewareData.shift,$t=qt,ae=Kt;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ae=wt),(e=i.middlewareData.shift)!=null&&e.enabled.y&&($t=It),Xt&&!Q){let Me=Ge(P.left,0),je=Ge(P.right,0),ze=Ge(P.top,0),qe=Ge(P.bottom,0);Z?ae=tt-2*(Me!==0||je!==0?Me+je:Ge(P.left,P.right)):$t=lt-2*(ze!==0||qe!==0?ze+qe:Ge(P.top,P.bottom))}await y({...i,availableWidth:ae,availableHeight:$t});let cr=await c.getDimensions(f.floating);return tt!==cr.width||lt!==cr.height?{reset:{rects:!0}}:{}}}};function fd(){return typeof window<"u"}function Qo(a){return Qv(a)?(a.nodeName||"").toLowerCase():"#document"}function rr(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function Vr(a){var i;return(i=(Qv(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function Qv(a){return fd()?a instanceof Node||a instanceof rr(a).Node:!1}function _r(a){return fd()?a instanceof Element||a instanceof rr(a).Element:!1}function zr(a){return fd()?a instanceof HTMLElement||a instanceof rr(a).HTMLElement:!1}function Zv(a){return!fd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof rr(a).ShadowRoot}var gA=new Set(["inline","contents"]);function Qs(a){let{overflow:i,overflowX:t,overflowY:e,display:s}=Cr(a);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!gA.has(s)}var bA=new Set(["table","td","th"]);function Jv(a){return bA.has(Qo(a))}var yA=[":popover-open",":modal"];function pn(a){return yA.some(i=>{try{return a.matches(i)}catch{return!1}})}var EA=["transform","translate","scale","rotate","perspective"],TA=["transform","translate","scale","rotate","perspective","filter"],xA=["paint","layout","strict","content"];function vd(a){let i=gd(),t=_r(a)?Cr(a):a;return EA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||TA.some(e=>(t.willChange||"").includes(e))||xA.some(e=>(t.contain||"").includes(e))}function tg(a){let i=Li(a);for(;zr(i)&&!Jo(i);){if(vd(i))return i;if(pn(i))return null;i=Li(i)}return null}function gd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var AA=new Set(["html","body","#document"]);function Jo(a){return AA.has(Qo(a))}function Cr(a){return rr(a).getComputedStyle(a)}function mn(a){return _r(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Li(a){if(Qo(a)==="html")return a;let i=a.assignedSlot||a.parentNode||Zv(a)&&a.host||Vr(a);return Zv(i)?i.host:i}function eg(a){let i=Li(a);return Jo(i)?a.ownerDocument?a.ownerDocument.body:a.body:zr(i)&&Qs(i)?i:eg(i)}function Zs(a,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let s=eg(a),l=s===((e=a.ownerDocument)==null?void 0:e.body),c=rr(s);if(l){let f=bd(c);return i.concat(c,c.visualViewport||[],Qs(s)?s:[],f&&t?Zs(f):[])}return i.concat(s,Zs(s,[],t))}function bd(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function og(a){let i=Cr(a),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,s=zr(a),l=s?a.offsetWidth:t,c=s?a.offsetHeight:e,f=cn(t)!==l||cn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Bh(a){return _r(a)?a:a.contextElement}function Js(a){let i=Bh(a);if(!zr(i))return $r(1);let t=i.getBoundingClientRect(),{width:e,height:s,$:l}=og(i),c=(l?cn(t.width):t.width)/e,f=(l?cn(t.height):t.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var SA=$r(0);function sg(a){let i=rr(a);return!gd()||!i.visualViewport?SA:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function IA(a,i,t){return i===void 0&&(i=!1),!t||i&&t!==rr(a)?!1:i}function ts(a,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),l=Bh(a),c=$r(1);i&&(e?_r(e)&&(c=Js(e)):c=Js(a));let f=IA(l,t,e)?sg(l):$r(0),y=(s.left+f.x)/c.x,A=(s.top+f.y)/c.y,P=s.width/c.x,K=s.height/c.y;if(l){let Q=rr(l),Z=e&&_r(e)?rr(e):e,tt=Q,lt=bd(tt);for(;lt&&e&&Z!==tt;){let dt=Js(lt),ft=lt.getBoundingClientRect(),It=Cr(lt),wt=ft.left+(lt.clientLeft+parseFloat(It.paddingLeft))*dt.x,qt=ft.top+(lt.clientTop+parseFloat(It.paddingTop))*dt.y;y*=dt.x,A*=dt.y,P*=dt.x,K*=dt.y,y+=wt,A+=qt,tt=rr(lt),lt=bd(tt)}}return Zo({width:P,height:K,x:y,y:A})}function Hh(a,i){let t=mn(a).scrollLeft;return i?i.left+t:ts(Vr(a)).left+t}function ag(a,i,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),s=e.left+i.scrollLeft-(t?0:Hh(a,e)),l=e.top+i.scrollTop;return{x:s,y:l}}function _A(a){let{elements:i,rect:t,offsetParent:e,strategy:s}=a,l=s==="fixed",c=Vr(e),f=i?pn(i.floating):!1;if(e===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=$r(1),P=$r(0),K=zr(e);if((K||!K&&!l)&&((Qo(e)!=="body"||Qs(c))&&(y=mn(e)),zr(e))){let Z=ts(e);A=Js(e),P.x=Z.x+e.clientLeft,P.y=Z.y+e.clientTop}let Q=c&&!K&&!l?ag(c,y,!0):$r(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+P.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+P.y+Q.y}}function CA(a){return Array.from(a.getClientRects())}function wA(a){let i=Vr(a),t=mn(a),e=a.ownerDocument.body,s=Ge(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),l=Ge(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Hh(a),f=-t.scrollTop;return Cr(e).direction==="rtl"&&(c+=Ge(i.clientWidth,e.clientWidth)-s),{width:s,height:l,x:c,y:f}}function kA(a,i){let t=rr(a),e=Vr(a),s=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,y=0;if(s){l=s.width,c=s.height;let A=gd();(!A||A&&i==="fixed")&&(f=s.offsetLeft,y=s.offsetTop)}return{width:l,height:c,x:f,y}}var NA=new Set(["absolute","fixed"]);function MA(a,i){let t=ts(a,!0,i==="fixed"),e=t.top+a.clientTop,s=t.left+a.clientLeft,l=zr(a)?Js(a):$r(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,y=s*l.x,A=e*l.y;return{width:c,height:f,x:y,y:A}}function rg(a,i,t){let e;if(i==="viewport")e=kA(a,t);else if(i==="document")e=wA(Vr(a));else if(_r(i))e=MA(i,t);else{let s=sg(a);e={x:i.x-s.x,y:i.y-s.y,width:i.width,height:i.height}}return Zo(e)}function ng(a,i){let t=Li(a);return t===i||!_r(t)||Jo(t)?!1:Cr(t).position==="fixed"||ng(t,i)}function LA(a,i){let t=i.get(a);if(t)return t;let e=Zs(a,[],!1).filter(f=>_r(f)&&Qo(f)!=="body"),s=null,l=Cr(a).position==="fixed",c=l?Li(a):a;for(;_r(c)&&!Jo(c);){let f=Cr(c),y=vd(c);!y&&f.position==="fixed"&&(s=null),(l?!y&&!s:!y&&f.position==="static"&&!!s&&NA.has(s.position)||Qs(c)&&!y&&ng(a,c))?e=e.filter(P=>P!==c):s=f,c=Li(c)}return i.set(a,e),e}function OA(a){let{element:i,boundary:t,rootBoundary:e,strategy:s}=a,c=[...t==="clippingAncestors"?pn(i)?[]:LA(i,this._c):[].concat(t),e],f=c[0],y=c.reduce((A,P)=>{let K=rg(i,P,s);return A.top=Ge(K.top,A.top),A.right=si(K.right,A.right),A.bottom=si(K.bottom,A.bottom),A.left=Ge(K.left,A.left),A},rg(i,f,s));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function RA(a){let{width:i,height:t}=og(a);return{width:i,height:t}}function DA(a,i,t){let e=zr(i),s=Vr(i),l=t==="fixed",c=ts(a,!0,l,i),f={scrollLeft:0,scrollTop:0},y=$r(0);function A(){y.x=Hh(s)}if(e||!e&&!l)if((Qo(i)!=="body"||Qs(s))&&(f=mn(i)),e){let Z=ts(i,!0,l,i);y.x=Z.x+i.clientLeft,y.y=Z.y+i.clientTop}else s&&A();l&&!e&&s&&A();let P=s&&!e&&!l?ag(s,f):$r(0),K=c.left+f.scrollLeft-y.x-P.x,Q=c.top+f.scrollTop-y.y-P.y;return{x:K,y:Q,width:c.width,height:c.height}}function zh(a){return Cr(a).position==="static"}function ig(a,i){if(!zr(a)||Cr(a).position==="fixed")return null;if(i)return i(a);let t=a.offsetParent;return Vr(a)===t&&(t=t.ownerDocument.body),t}function lg(a,i){let t=rr(a);if(pn(a))return t;if(!zr(a)){let s=Li(a);for(;s&&!Jo(s);){if(_r(s)&&!zh(s))return s;s=Li(s)}return t}let e=ig(a,i);for(;e&&Jv(e)&&zh(e);)e=ig(e,i);return e&&Jo(e)&&zh(e)&&!vd(e)?t:e||tg(a)||t}var PA=async function(a){let i=this.getOffsetParent||lg,t=this.getDimensions,e=await t(a.floating);return{reference:DA(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function FA(a){return Cr(a).direction==="rtl"}var $A={convertOffsetParentRelativeRectToViewportRelativeRect:_A,getDocumentElement:Vr,getClippingRect:OA,getOffsetParent:lg,getElementRects:PA,getClientRects:CA,getDimensions:RA,getScale:Js,isElement:_r,isRTL:FA};function dg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function VA(a,i){let t=null,e,s=Vr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=a.getBoundingClientRect(),{left:P,top:K,width:Q,height:Z}=A;if(f||i(),!Q||!Z)return;let tt=hn(K),lt=hn(s.clientWidth-(P+Q)),dt=hn(s.clientHeight-(K+Z)),ft=hn(P),wt={rootMargin:-tt+"px "+-lt+"px "+-dt+"px "+-ft+"px",threshold:Ge(0,si(1,y))||1},qt=!0;function Kt(Xt){let $t=Xt[0].intersectionRatio;if($t!==y){if(!qt)return c();$t?c(!1,$t):e=setTimeout(()=>{c(!1,1e-7)},1e3)}$t===1&&!dg(A,a.getBoundingClientRect())&&c(),qt=!1}try{t=new IntersectionObserver(Kt,{...wt,root:s.ownerDocument})}catch{t=new IntersectionObserver(Kt,wt)}t.observe(a)}return c(!0),l}function cg(a,i,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,A=Bh(a),P=s||l?[...A?Zs(A):[],...Zs(i)]:[];P.forEach(ft=>{s&&ft.addEventListener("scroll",t,{passive:!0}),l&&ft.addEventListener("resize",t)});let K=A&&f?VA(A,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(ft=>{let[It]=ft;It&&It.target===A&&Z&&(Z.unobserve(i),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var wt;(wt=Z)==null||wt.observe(i)})),t()}),A&&!y&&Z.observe(A),Z.observe(i));let tt,lt=y?ts(a):null;y&&dt();function dt(){let ft=ts(a);lt&&!dg(lt,ft)&&t(),lt=ft,tt=requestAnimationFrame(dt)}return t(),()=>{var ft;P.forEach(It=>{s&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),K==null||K(),(ft=Z)==null||ft.disconnect(),Z=null,y&&cancelAnimationFrame(tt)}}var hg=jv;var pg=qv,mg=Yv,ug=Xv;var fg=Wv;var vg=(a,i,t)=>{let e=new Map,s={platform:$A,...t},l={...s.platform,_c:e};return Kv(a,i,{...s,platform:l})};var yd=class{constructor(i){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;i.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(i,t,e,...s){this.nameToIntervalId.has(i)&&clearInterval(this.nameToIntervalId.get(i));let l=window.setInterval(t,e,...s);return this.nameToIntervalId.set(i,l),l}clearInterval(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,i);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(i,t,e,...s){this.nameToTimeoutId.has(i)&&clearTimeout(this.nameToTimeoutId.get(i));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(i)},e,...s);return this.nameToTimeoutId.set(i,l),l}clearTimeout(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,i);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(i,t){var e;if(typeof t=="number"){let s=t;return[(e=[...i.entries()].find(([,c])=>c===t))==null?void 0:e[0],s]}return[t,i.get(t)]}};var Oi=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var zA=B`
|
|
2584
2584
|
:host {
|
|
2585
2585
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2586
2586
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2702,7 +2702,7 @@
|
|
|
2702
2702
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2703
2703
|
border-bottom-left-radius: 100%;
|
|
2704
2704
|
}
|
|
2705
|
-
`,gg=[zA];var Td=z.constructTagName("popoverportal"),Ed=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.onDisconnect)==null||i.call(this)}};var xd=class{constructor(i){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(e=>{let s=parseInt(e,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${e}`);return s});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let s=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=i.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(s.top-l.bottom,l.top-s.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-s.right,s.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var i,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Td),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(i=this.popover.parentElement)==null?void 0:i.appendChild)==null||t.call(i,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var i,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var i,t,e;this.popover.disableAriaExpanded||((i=this.popover.triggerElement)==null||i.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(i,t){var P;if(!this.popover.arrowElement)return;let e=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=i,f=this.popover.arrowElement.getBoundingClientRect(),y=(P=this.popover.arrowElement.offsetParent)==null?void 0:P.getBoundingClientRect();if(!this.arrowPixelChange){let K=y!=null&&y[s]?12-Math.abs(f[s]-y[s]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var Ct=class extends Lt(kt(Yl(Ul(Hl(X))))){constructor(){super();this.depthManager=new oo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.elementIndexToReceiveFocus=null;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new yd(this);this.parseTrigger=()=>{var l;let s=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(Se).includes(c)).length>0?this.trigger:Et.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),s=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!s||l)&&(this.hide(),Oi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==j.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Oi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,s,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ni.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ni.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ni.HOVER),this.timers.clearTimeout(Ni.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ni.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ni.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,l=[pg({boundary:e,rootBoundary:s,padding:this.boundaryPadding})];if(this.disableFlip||l.push(mg({boundary:e,rootBoundary:s})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(ug({boundary:e,rootBoundary:s,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(fg({element:this.arrowElement,padding:12}))}l.push(hg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=cg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:P,middlewareData:K,placement:Q}=await vg(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,P),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new xd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Oi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Oi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(jo).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:s}=this;t===e||!s||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Oi.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Oi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ni.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ni.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
|
|
2705
|
+
`,gg=[zA];var Td=z.constructTagName("popoverportal"),Ed=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.onDisconnect)==null||i.call(this)}};var xd=class{constructor(i){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(e=>{let s=parseInt(e,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${e}`);return s});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let s=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=i.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(s.top-l.bottom,l.top-s.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-s.right,s.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var i,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Td),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(i=this.popover.parentElement)==null?void 0:i.appendChild)==null||t.call(i,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var i,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var i,t,e;this.popover.disableAriaExpanded||((i=this.popover.triggerElement)==null||i.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(i,t){var P;if(!this.popover.arrowElement)return;let e=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=i,f=this.popover.arrowElement.getBoundingClientRect(),y=(P=this.popover.arrowElement.offsetParent)==null?void 0:P.getBoundingClientRect();if(!this.arrowPixelChange){let K=y!=null&&y[s]?12-Math.abs(f[s]-y[s]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var Ct=class extends Lt(kt(Yl(Ul(Hl(X))))){constructor(){super();this.depthManager=new oo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.elementIndexToReceiveFocus=null;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new yd(this);this.parseTrigger=()=>{var l;let s=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(Se).includes(c)).length>0?this.trigger:Et.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),s=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!s||l)&&(this.hide(),Oi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==j.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Oi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,s,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ni.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ni.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ni.HOVER),this.timers.clearTimeout(Ni.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ni.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ni.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,l=[pg({boundary:e,rootBoundary:s,padding:this.boundaryPadding})];if(this.disableFlip||l.push(mg({boundary:e,rootBoundary:s})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(ug({boundary:e,rootBoundary:s,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(fg({element:this.arrowElement,padding:12}))}l.push(hg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=cg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:P,middlewareData:K,placement:Q}=await vg(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,P),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new xd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Oi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Oi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Yo).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:s}=this;t===e||!s||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Oi.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Oi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ni.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ni.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
|
|
2706
2706
|
<div part="popover-hover-bridge"></div>
|
|
2707
2707
|
${this.closeButton?S` <mdc-button
|
|
2708
2708
|
part="popover-close"
|
|
@@ -2716,7 +2716,7 @@
|
|
|
2716
2716
|
<div part="popover-content">
|
|
2717
2717
|
<slot></slot>
|
|
2718
2718
|
</div>
|
|
2719
|
-
`}};Ct.styles=[...X.styles,...gg],h([u({type:String,reflect:!0})],Ct.prototype,"id",2),h([u({type:String,reflect:!0})],Ct.prototype,"triggerID",2),h([u({type:String,reflect:!0})],Ct.prototype,"trigger",2),h([u({type:String,reflect:!0})],Ct.prototype,"placement",2),h([u({type:String,reflect:!0})],Ct.prototype,"color",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],Ct.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],Ct.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],Ct.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],Ct.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Ct.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],Ct.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],Ct.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],Ct.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"interactive",2),h([u({type:String,reflect:!0})],Ct.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],Ct.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],Ct.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],Ct.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],Ct.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],Ct.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ct.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],Ct.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Ct.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],Ct.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],Ct.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Ct.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],Ct.prototype,"strategy",2),h([u({type:String,reflect:!0})],Ct.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],Ct.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ct.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],Ct.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],Ct.prototype,"animationFrame",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],Ct.prototype,"elementIndexToReceiveFocus",2);var ir=Ct;var bg=z.constructTagName("toggletip"),
|
|
2719
|
+
`}};Ct.styles=[...X.styles,...gg],h([u({type:String,reflect:!0})],Ct.prototype,"id",2),h([u({type:String,reflect:!0})],Ct.prototype,"triggerID",2),h([u({type:String,reflect:!0})],Ct.prototype,"trigger",2),h([u({type:String,reflect:!0})],Ct.prototype,"placement",2),h([u({type:String,reflect:!0})],Ct.prototype,"color",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],Ct.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],Ct.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],Ct.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],Ct.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Ct.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],Ct.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],Ct.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],Ct.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"interactive",2),h([u({type:String,reflect:!0})],Ct.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],Ct.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],Ct.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],Ct.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],Ct.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],Ct.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ct.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],Ct.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Ct.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],Ct.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],Ct.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],Ct.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Ct.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],Ct.prototype,"strategy",2),h([u({type:String,reflect:!0})],Ct.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],Ct.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ct.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],Ct.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],Ct.prototype,"animationFrame",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],Ct.prototype,"elementIndexToReceiveFocus",2);var ir=Ct;var bg=z.constructTagName("toggletip"),es={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:Se.CLICK,SHOW_ARROW:!0};var BA=B`
|
|
2720
2720
|
:host {
|
|
2721
2721
|
--mdc-toggletip-max-width: 400px;
|
|
2722
2722
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -2746,7 +2746,7 @@
|
|
|
2746
2746
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
|
2747
2747
|
margin-left: 2rem;
|
|
2748
2748
|
}
|
|
2749
|
-
`,yg=[BA];var lo=class extends ir{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=
|
|
2749
|
+
`,yg=[BA];var lo=class extends ir{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=es.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:es.CLOSE_BUTTON,this.closeButtonAriaLabel=es.CLOSE_BUTTON_ARIA_LABEL,this.trigger=es.CLICK,this.showArrow=es.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(s=>s.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=es.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
|
|
2750
2750
|
${super.render()}
|
|
2751
2751
|
<mdc-screenreaderannouncer
|
|
2752
2752
|
identity="${J(this.screenreaderAnnouncerIdentity)}"
|
|
@@ -2754,12 +2754,12 @@
|
|
|
2754
2754
|
delay="300"
|
|
2755
2755
|
>
|
|
2756
2756
|
</mdc-screenreaderannouncer>
|
|
2757
|
-
`}};lo.styles=[...ir.styles,...yg],h([Yu()],lo.prototype,"defaultSlotNodes",2),h([nt()],lo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],lo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],lo.prototype,"placement",2);var Uh=lo;function Ad(a,i=500){let t,e=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...s)},i)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Eg=z.constructTagName("screenreaderannouncer"),HA={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},
|
|
2757
|
+
`}};lo.styles=[...ir.styles,...yg],h([Yu()],lo.prototype,"defaultSlotNodes",2),h([nt()],lo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],lo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],lo.prototype,"placement",2);var Uh=lo;function Ad(a,i=500){let t,e=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...s)},i)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Eg=z.constructTagName("screenreaderannouncer"),HA={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},rs={ARIA_LIVE:HA.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var UA=[B`
|
|
2758
2758
|
:host {
|
|
2759
2759
|
display: none;
|
|
2760
2760
|
visibility: hidden;
|
|
2761
2761
|
}
|
|
2762
|
-
`],Tg=UA;var ni=class extends X{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=
|
|
2762
|
+
`],Tg=UA;var ni=class extends X{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=rs.ARIA_LIVE;this.delay=rs.DELAY;this.timeout=rs.TIMEOUT;this.debounceTime=rs.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:s,ariaLive:l}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${Fe()}`,y=document.createElement("div");y.setAttribute("id",f),y.setAttribute("aria-live",l!=null?l:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(y);let A=window.setTimeout(()=>{let P=document.createElement("p");P.textContent=t,y.appendChild(P),this.ariaLiveAnnouncementIds.push(f);let K=window.setTimeout(()=>{y.remove()},s!=null?s:this.timeout);this.timeOutIds.push(K)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var l;let e=document.getElementById(t);if(e)return e;let s=this.findModalAncestor();return((l=s==null?void 0:s.shadowRoot)==null?void 0:l.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
|
|
2763
2763
|
.mdc-screenreaderannouncer__visually-hidden {
|
|
2764
2764
|
clip: rect(0 0 0 0);
|
|
2765
2765
|
clip-path: inset(50%);
|
|
@@ -2769,7 +2769,7 @@
|
|
|
2769
2769
|
white-space: nowrap;
|
|
2770
2770
|
width: 1px;
|
|
2771
2771
|
}
|
|
2772
|
-
`,t.appendChild(e),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 e=t.closest('[aria-modal="true"]');if(e)return e;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({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
|
2772
|
+
`,t.appendChild(e),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 e=t.closest('[aria-modal="true"]');if(e)return e;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({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=rs.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=rs.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};ni.styles=[...X.styles,...Tg],h([u({type:String,reflect:!0})],ni.prototype,"announcement",2),h([u({type:String,reflect:!0})],ni.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],ni.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],ni.prototype,"delay",2),h([u({type:Number,reflect:!0})],ni.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],ni.prototype,"debounceTime",2);var Gh=ni;Gh.register(Eg);var GA=Gh;Uh.register(bg);var KA=Uh;var ce=a=>{class i extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return i.formAssociated=!0,h([u({reflect:!0,type:String})],i.prototype,"name",2),h([u({reflect:!0,type:String})],i.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],i.prototype,"validationMessage",2),h([Ut("input")],i.prototype,"inputElement",2),i};var WA=B`
|
|
2773
2773
|
:host {
|
|
2774
2774
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
|
2775
2775
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
|
@@ -2847,15 +2847,15 @@
|
|
|
2847
2847
|
pointer-events: none;
|
|
2848
2848
|
cursor: default;
|
|
2849
2849
|
}
|
|
2850
|
-
`,xg=[bt,WA];var Ag=a=>({[jt.ERROR]:"error-legacy-badge-filled",[jt.WARNING]:"warning-badge-filled",[jt.SUCCESS]:"check-circle-badge-filled",[jt.PRIORITY]:"priority-badge-filled",[jt.DEFAULT]:""})[a]||"";var or=class extends ee(X){constructor(){super(...arguments);this.inputId=`mdc-el-${Fe()}`;this.required=!1;this.helpTextType=
|
|
2851
|
-
id="${
|
|
2850
|
+
`,xg=[bt,WA];var Ag=a=>({[jt.ERROR]:"error-legacy-badge-filled",[jt.WARNING]:"warning-badge-filled",[jt.SUCCESS]:"check-circle-badge-filled",[jt.PRIORITY]:"priority-badge-filled",[jt.DEFAULT]:""})[a]||"";var or=class extends ee(X){constructor(){super(...arguments);this.inputId=`mdc-el-${Fe()}`;this.required=!1;this.helpTextType=Ft.VALIDATION;this.toggletipPlacement=Ft.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Ft.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Ft.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
|
|
2851
|
+
id="${Ft.HEADING_ID}"
|
|
2852
2852
|
tagname="${ln.TAGNAME}"
|
|
2853
2853
|
type="${ln.HEADER_TYPE}"
|
|
2854
2854
|
part="label"
|
|
2855
2855
|
>${this.label}</mdc-text
|
|
2856
|
-
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=Ag(this.helpTextType||
|
|
2856
|
+
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=Ag(this.helpTextType||Ft.VALIDATION);return t&&!this.disabled?S`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:W}renderHelpText(){return this.helpText?S`
|
|
2857
2857
|
<mdc-text
|
|
2858
|
-
id="${
|
|
2858
|
+
id="${Ft.HELPER_TEXT_ID}"
|
|
2859
2859
|
part="help-text"
|
|
2860
2860
|
tagname=${ln.TAGNAME}
|
|
2861
2861
|
type=${ln.TYPE}
|
|
@@ -2868,8 +2868,8 @@
|
|
|
2868
2868
|
<slot name="toggletip">
|
|
2869
2869
|
${this.toggletipText?S` <mdc-button
|
|
2870
2870
|
part="info-icon-btn"
|
|
2871
|
-
prefix-icon="${
|
|
2872
|
-
size="${
|
|
2871
|
+
prefix-icon="${Ft.INFO_ICON}"
|
|
2872
|
+
size="${Ft.ICON_SIZE}"
|
|
2873
2873
|
variant="${Vt.TERTIARY}"
|
|
2874
2874
|
aria-label="${J(this.infoIconAriaLabel)}"
|
|
2875
2875
|
?disabled="${e}"
|
|
@@ -2983,7 +2983,7 @@
|
|
|
2983
2983
|
?readonly="${this.readonly}"
|
|
2984
2984
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
2985
2985
|
tabindex="${this.disabled?-1:0}"
|
|
2986
|
-
aria-describedby="${J(this.helpText?
|
|
2986
|
+
aria-describedby="${J(this.helpText?Ft.HELPER_TEXT_ID:"")}"
|
|
2987
2987
|
@change=${this.handleChange}
|
|
2988
2988
|
@keydown=${this.handleKeyDown}
|
|
2989
2989
|
/>
|
|
@@ -3066,7 +3066,7 @@
|
|
|
3066
3066
|
${this.label?S`<mdc-text part="label" type="${Sd.TEXT_TYPE}" tagname="${Sd.TAG_NAME}"
|
|
3067
3067
|
>${this.label}</mdc-text
|
|
3068
3068
|
>`:W}
|
|
3069
|
-
`}};ta.styles=[...X.styles,..._g],h([u({type:String,reflect:!0})],ta.prototype,"color",2),h([u({type:String})],ta.prototype,"label",2);var un=ta;var Cg=z.constructTagName("chip"),ea={COLOR:Wh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE
|
|
3069
|
+
`}};ta.styles=[...X.styles,..._g],h([u({type:String,reflect:!0})],ta.prototype,"color",2),h([u({type:String})],ta.prototype,"label",2);var un=ta;var Cg=z.constructTagName("chip"),ea={COLOR:Wh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:$o[24],ROLE:et.BUTTON};var XA=B`
|
|
3070
3070
|
:host {
|
|
3071
3071
|
cursor: pointer;
|
|
3072
3072
|
height: 1.5rem;
|
|
@@ -3165,7 +3165,7 @@
|
|
|
3165
3165
|
${this.label?S`<mdc-text part="label" type="${ea.TEXT_TYPE}" tagname="${ea.TAG_NAME}"
|
|
3166
3166
|
>${this.label}</mdc-text
|
|
3167
3167
|
>`:W}
|
|
3168
|
-
`}};ra.styles=[...un.styles,...wg],h([u({type:String,reflect:!0})],ra.prototype,"color",2),h([u({type:String})],ra.prototype,"label",2);var ia=ra;ia.register(Cg);var ZA=ia;var kg=z.constructTagName("coachmark"),
|
|
3168
|
+
`}};ra.styles=[...un.styles,...wg],h([u({type:String,reflect:!0})],ra.prototype,"color",2),h([u({type:String})],ra.prototype,"label",2);var ia=ra;ia.register(Cg);var ZA=ia;var kg=z.constructTagName("coachmark"),is={COLOR:Yo.CONTRAST,TRIGGER:Se.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var os=class extends ir{constructor(){super(...arguments);this.trigger=is.TRIGGER;this.showArrow=is.ARROW;this.closeButton=is.CLOSE_BUTTON;this.disableAriaExpanded=is.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=is.COLOR,this.showArrow=is.ARROW}};h([u({type:String,reflect:!0})],os.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],os.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],os.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],os.prototype,"disableAriaExpanded",2);var Yh=os;Yh.register(kg);var QA=Yh;var Id=z.constructTagName("controltypeprovider"),_d={CONTROL_TYPE:"uncontrolled"},Cd=["controlled","uncontrolled"];var JA=Id,jh=JA;var wd=class extends Te{constructor(){super({context:jh});this.innerControlType=_d.CONTROL_TYPE}static get Context(){return jh}set controlType(t){Cd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],wd.prototype,"controlType",1);var qh=wd;qh.register(Id);var Xh=qh;var Br=Ii(class extends ri{constructor(a){var i;if(super(a),a.type!==ur.ATTRIBUTE||a.name!=="class"||((i=a.strings)==null?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(i=>a[i]).join(" ")+" "}update(a,[i]){var e,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 i)i[l]&&!((e=this.nt)!=null&&e.has(l))&&this.st.add(l);return this.render(i)}let t=a.element.classList;for(let l of this.st)l in i||(t.remove(l),this.st.delete(l));for(let l in i){let c=!!i[l];c===this.st.has(l)||(s=this.nt)!=null&&s.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return De}});function fr(a){let i=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),e=String(a.getDate()).padStart(2,"0");return`${i}-${t}-${e}`}function zt(a){if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return null;let i=a.split("-"),t=parseInt(i[0],10),e=parseInt(i[1],10),s=parseInt(i[2],10),l=new Date(t,e-1,s);return l.getFullYear()!==t||l.getMonth()!==e-1||l.getDate()!==s?null:l}function li(a,i,t=1){return new Date(a,i-1,t)}function ss(){let a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function vr(a,i){let t=new Date(a);return t.setDate(t.getDate()+i),t}function Nd(a,i){let t=a.getMonth()+i,e=new Date(a.getFullYear(),t,1),s=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),s)),e}function Zh(a,i){let t=a.getFullYear()+i,e=new Date(t,a.getMonth(),1),s=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),s)),e}function Md(a,i){return a.getFullYear()===i.getFullYear()&&a.getMonth()===i.getMonth()&&a.getDate()===i.getDate()}function Ri(a,i){return a.getTime()<i.getTime()}function ho(a,i){return a.getTime()>i.getTime()}function Ld(a,i){return a.getTime()<=i.getTime()}function Ng(a){return new Date(a.getFullYear(),a.getMonth(),1)}function Qh(a){return new Date(a.getFullYear(),a.getMonth()+1,0)}function Od(a,i){return new Date(a,i,0).getDate()}function Mg(a){let i=a.getDay();return i===0?7:i}function fn(a,i=1){let t=a.getDay(),l=((t===0?7:t)-(i===7?7:i)+7)%7;return vr(a,-l)}function Lg(a,i="narrow"){let t=new Intl.DateTimeFormat(a,{weekday:i}),e=new Date(2026,0,5),s=[];for(let l=0;l<7;l+=1)s.push(t.format(vr(e,l)));return s}function as(a){var s,l;try{let c=new Intl.Locale(a),f=(l=c.weekInfo)!=null?l:(s=c.getWeekInfo)==null?void 0:s.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let i=["en","ja","ko","zh","pt-BR"],t=a.split("-")[0].toLowerCase(),e=a.toLowerCase();return i.includes(t)||i.includes(e)?7:1}function Og(a,i,t){let e=li(a,i,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Rg(a,i){let t=zt(a);return t?new Intl.DateTimeFormat(i,{dateStyle:"full"}).format(t):""}function kd(a,i){let t=zt(a);return t?new Intl.DateTimeFormat(i,{dateStyle:"medium"}).format(t):""}function Dg(a,i,t){let e=zt(a),s=zt(i);if(!e||!s)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,s)}catch{return`${kd(a,t)} \u2013 ${kd(i,t)}`}}function Rd(a){let t=new Intl.DateTimeFormat(a,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],s="/";for(let l of t)l.type==="month"&&!e.includes("month")&&e.push("month"),l.type==="day"&&!e.includes("day")&&e.push("day"),l.type==="year"&&!e.includes("year")&&e.push("year"),l.type==="literal"&&l.value.trim()&&(s=l.value.trim());return e.length!==3?{order:["month","day","year"],separator:s}:{order:e,separator:s}}var Pg=z.constructTagName("calendar"),ie={SINGLE:"single",WEEK:"week",RANGE:"range"},Jh={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},Fg=6,tp=7,ep={SELECTION_MODE:ie.SINGLE,LOCALE:"en-US"};var t0=B`
|
|
3169
3169
|
:host {
|
|
3170
3170
|
--mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
3171
3171
|
--mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -3341,7 +3341,7 @@
|
|
|
3341
3341
|
.calendar-today-button mdc-button {
|
|
3342
3342
|
width: auto;
|
|
3343
3343
|
}
|
|
3344
|
-
`,$g=[Zr,t0];function Vg(a){let i=Lg(a,"narrow"),t=
|
|
3344
|
+
`,$g=[Zr,t0];function Vg(a){let i=Lg(a,"narrow"),t=as(a),e=t===7?6:t-1;return e===0?i:[...i.slice(e),...i.slice(0,e)]}function zg(a,i,t,e,s,l,c,f){let y=li(a,i,1),A=ss(),P=as(t),K=Mg(y),Q;P===7?Q=K===7?0:K:(Q=K-P,Q<0&&(Q+=7));let Z=vr(y,-Q),tt=c?zt(c):void 0,lt=f?zt(f):void 0,dt=s?zt(s):void 0,ft=l?zt(l):void 0,It=new Set(e),wt=[];for(let qt=0;qt<Fg;qt+=1){let Kt=[];for(let Xt=0;Xt<tp;Xt+=1){let $t=vr(Z,qt*tp+Xt),ae=fr($t),cr=$t.getMonth()+1===i&&$t.getFullYear()===a,Me=Md($t,A),je=It.has(ae),ze=!1;tt&&Ri($t,tt)&&(ze=!0),lt&&ho($t,lt)&&(ze=!0);let qe=!1,Nt=!1,he=!1;dt&&ft&&(Nt=Md($t,dt),he=Md($t,ft),qe=Ld(dt,$t)&&Ld($t,ft)),Kt.push({date:ae,day:$t.getDate(),isCurrentMonth:cr,isToday:Me,isSelected:je,isInRange:qe,isRangeStart:Nt,isRangeEnd:he,isDisabled:ze})}wt.push({days:Kt})}return wt}function Dd(a,i){let t=zt(a);if(!t)return{start:"",end:""};let e=fn(t,as(i)),s=vr(e,6);return{start:fr(e),end:fr(s)}}function rp(a,i,t){return Og(a,i,t)}function Bg(a,i){let t=zt(a),e=zt(i);if(!t||!e)return[];let s=[],l=t;for(;Ld(l,e);)s.push(fr(l)),l=vr(l,1);return s}function Hg(a,i){return kd(a,i)}function vn(a,i,t){return Dg(a,i,t)}var fe=class extends Lt(kt(X)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=ep.SELECTION_MODE;this.locale=ep.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=zt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=zt(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ss(),e=this.min?zt(this.min):void 0,s=this.max?zt(this.max):void 0,l=t;e&&Ri(t,e)?l=e:s&&ho(t,s)&&(l=s),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=fr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),s=this.getRangeEnd();return zg(this.displayYear,this.displayMonth,this.locale,t,e,s,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===ie.WEEK||this.selectionMode===ie.RANGE)&&this.value&&this.endValue?Bg(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===ie.WEEK||this.selectionMode===ie.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===ie.WEEK||this.selectionMode===ie.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=li(this.displayYear,this.displayMonth,1),e=zt(this.min);return e?ho(t,Ng(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=Qh(li(this.displayYear,this.displayMonth,1)),e=zt(this.max);return e?Ri(t,Qh(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Nd(li(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=fr(li(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case ie.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case ie.WEEK:{let{start:e,end:s}=Dd(t,this.locale);this.value=e,this.endValue=s,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:s},bubbles:!0,composed:!0}));break}case ie.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=zt(this.value),s=zt(t);e&&s&&Ri(s,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?zt(this.focusedDate):ss();if(!e)return;let s=this.getActionForKeyEvent(t),l;switch(s){case j.LEFT:t.preventDefault(),l=vr(e,-1);break;case j.RIGHT:t.preventDefault(),l=vr(e,1);break;case j.UP:t.preventDefault(),l=vr(e,-7);break;case j.DOWN:t.preventDefault(),l=vr(e,7);break;case j.HOME:{t.preventDefault();let c=as(this.locale);l=fn(e,c);break}case j.END:{t.preventDefault();let c=as(this.locale);l=vr(fn(e,c),6);break}case j.ENTER:case j.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===_t.PAGE_UP){t.preventDefault(),l=t.shiftKey?Zh(e,-1):Nd(e,-1);break}if(t.key===_t.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?Zh(e,1):Nd(e,1);break}return}if(this.keyDownEventHandled(),l){let c=fr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var y;let f=(y=this.shadowRoot)==null?void 0:y.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===ie.WEEK&&this.value&&this.endValue?`Calendar, ${vn(this.value,this.endValue,this.locale)}`:`Calendar, ${rp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=rp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),s=!this.canNavigateNext();return S`
|
|
3345
3345
|
<div class="calendar-header">
|
|
3346
3346
|
<mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
|
|
3347
3347
|
<div class="calendar-header-nav">
|
|
@@ -3393,7 +3393,7 @@
|
|
|
3393
3393
|
</div>
|
|
3394
3394
|
${t.map(s=>S` <div class="calendar-row" role="row">${s.days.map(l=>this.renderDay(l))}</div> `)}
|
|
3395
3395
|
</div>
|
|
3396
|
-
`}isDateDisabled(t){let e=zt(t);if(!e)return!0;let s=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;return!!(s&&Ri(e,s)||l&&ho(e,l))}isTodayDisabled(){return this.isDateDisabled(fr(
|
|
3396
|
+
`}isDateDisabled(t){let e=zt(t);if(!e)return!0;let s=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;return!!(s&&Ri(e,s)||l&&ho(e,l))}isTodayDisabled(){return this.isDateDisabled(fr(ss()))}handleTodayClick(){let t=ss(),e=fr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return W;let t=this.isTodayDisabled();return S`
|
|
3397
3397
|
<div class="calendar-today-button">
|
|
3398
3398
|
<mdc-button
|
|
3399
3399
|
variant="${Vt.TERTIARY}"
|
|
@@ -3690,7 +3690,7 @@
|
|
|
3690
3690
|
${this.renderPopover()}
|
|
3691
3691
|
</div>
|
|
3692
3692
|
${this.helpText?this.renderHelperText():W}
|
|
3693
|
-
`}};Bt.styles=[...Jt.styles,...Gg],h([u({type:String,reflect:!0})],Bt.prototype,"variant",2),h([u({type:String,reflect:!0})],Bt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Bt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Bt.prototype,"locale",2),h([u({type:String,reflect:!0})],Bt.prototype,"min",2),h([u({type:String,reflect:!0})],Bt.prototype,"max",2),h([u({type:String,reflect:!0})],Bt.prototype,"placement",2),h([u({type:String,reflect:!0})],Bt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Bt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Bt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Bt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Bt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Bt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Bt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Bt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Bt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Bt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Bt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Bt.prototype,"localeNextMonthLabel",2),h([Ut("#month-spinbutton")],Bt.prototype,"monthInput",2),h([Ut("#day-spinbutton")],Bt.prototype,"dayInput",2),h([Ut("#year-spinbutton")],Bt.prototype,"yearInput",2),h([nt()],Bt.prototype,"displayPopover",2),h([nt()],Bt.prototype,"internalMonth",2),h([nt()],Bt.prototype,"internalDay",2),h([nt()],Bt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Bt.prototype,"endValue",2);var np=Bt;np.register(Ug);var o0=np;Us.register(Hf);var s0=Us;var En=z.constructTagName("divider"),
|
|
3693
|
+
`}};Bt.styles=[...Jt.styles,...Gg],h([u({type:String,reflect:!0})],Bt.prototype,"variant",2),h([u({type:String,reflect:!0})],Bt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Bt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Bt.prototype,"locale",2),h([u({type:String,reflect:!0})],Bt.prototype,"min",2),h([u({type:String,reflect:!0})],Bt.prototype,"max",2),h([u({type:String,reflect:!0})],Bt.prototype,"placement",2),h([u({type:String,reflect:!0})],Bt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Bt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Bt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Bt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Bt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Bt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Bt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Bt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Bt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Bt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Bt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Bt.prototype,"localeNextMonthLabel",2),h([Ut("#month-spinbutton")],Bt.prototype,"monthInput",2),h([Ut("#day-spinbutton")],Bt.prototype,"dayInput",2),h([Ut("#year-spinbutton")],Bt.prototype,"yearInput",2),h([nt()],Bt.prototype,"displayPopover",2),h([nt()],Bt.prototype,"internalMonth",2),h([nt()],Bt.prototype,"internalDay",2),h([nt()],Bt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Bt.prototype,"endValue",2);var np=Bt;np.register(Ug);var o0=np;Us.register(Hf);var s0=Us;var En=z.constructTagName("divider"),ns={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Tn={SOLID:"solid",GRADIENT:"gradient"},wr={POSITIVE:"positive",NEGATIVE:"negative"},xn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},ls={ORIENTATION:ns.HORIZONTAL,VARIANT:Tn.SOLID,ARROW_DIRECTION:wr.NEGATIVE,BUTTON_DIRECTION:wr.NEGATIVE};var a0=[bt,B`
|
|
3694
3694
|
:host {
|
|
3695
3695
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
3696
3696
|
--mdc-divider-width: 0.0625rem;
|
|
@@ -3891,7 +3891,7 @@
|
|
|
3891
3891
|
:host([data-hidden]) {
|
|
3892
3892
|
display: none;
|
|
3893
3893
|
}
|
|
3894
|
-
`],qg=a0;var po=class extends X{constructor(){super(...arguments);this.orientation=
|
|
3894
|
+
`],qg=a0;var po=class extends X{constructor(){super(...arguments);this.orientation=ls.ORIENTATION;this.variant=ls.VARIANT;this.arrowDirection=ls.ARROW_DIRECTION;this.buttonPosition=ls.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Tn).includes(t)?t:ls.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(ns).includes(t)?t:ls.ORIENTATION)}ensureValidDirections(){let t=this.orientation===ns.HORIZONTAL?wr.NEGATIVE:wr.POSITIVE;Object.values(wr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(wr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===ns.HORIZONTAL,e=this.arrowDirection===wr.POSITIVE;return t?e?xn.UP:xn.DOWN:e?xn.RIGHT:xn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let s=e.some(f=>f.tagName===Xa.toUpperCase()),l=e.some(f=>f.tagName===Ti.toUpperCase());s&&!l?this.setAttribute("data-type","mdc-text-divider"):!s&&l&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
|
|
3895
3895
|
<div></div>
|
|
3896
3896
|
<slot @slotchange=${this.inferDividerType}></slot>
|
|
3897
3897
|
<div></div>
|
|
@@ -3933,14 +3933,14 @@
|
|
|
3933
3933
|
<div
|
|
3934
3934
|
part="container"
|
|
3935
3935
|
role="${this.isRadio?et.RADIOGROUP:et.GROUP}"
|
|
3936
|
-
aria-labelledby="${
|
|
3937
|
-
aria-describedby="${J(this.helpText?
|
|
3936
|
+
aria-labelledby="${Ft.HEADING_ID}"
|
|
3937
|
+
aria-describedby="${J(this.helpText?Ft.HELPER_TEXT_ID:"")}"
|
|
3938
3938
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
3939
3939
|
>
|
|
3940
3940
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
|
3941
3941
|
<slot></slot>
|
|
3942
3942
|
</div>
|
|
3943
|
-
`}};Fd.styles=[...Jt.styles,...Qg];var hp=Fd;var Jg=z.constructTagName("formfieldgroup");hp.register(Jg);var $d=hp;ja.register(Nl);var h0=ja;rn.register(Zl);var p0=rn;var
|
|
3943
|
+
`}};Fd.styles=[...Jt.styles,...Qg];var hp=Fd;var Jg=z.constructTagName("formfieldgroup");hp.register(Jg);var $d=hp;ja.register(Nl);var h0=ja;rn.register(Zl);var p0=rn;var ds=Ii(class extends ri{constructor(a){if(super(a),a.type!==ur.PROPERTY&&a.type!==ur.ATTRIBUTE&&a.type!==ur.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Pl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[i]){if(i===De||i===W)return i;let t=a.element,e=a.name;if(a.type===ur.PROPERTY){if(i===t[e])return De}else if(a.type===ur.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return De}else if(a.type===ur.ATTRIBUTE&&t.getAttribute(e)===i+"")return De;return Fl(a),i}});Jt.register(Lv);var sr=Jt;var tb=z.constructTagName("input"),Vd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},oa={OFF:"off",ON:"on"},mo={PASSWORD:"password",TEXT:"text",SEARCH:"search"},eb={MAX_LENGTH:10,VALIDATION:jt.ERROR},Di={VALIDATION:jt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Vt.TERTIARY,CLEAR_BUTTON_SIZE:Ar[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:oa.OFF,INPUT_TYPE:mo.TEXT};var m0=[B`
|
|
3944
3944
|
:host {
|
|
3945
3945
|
--mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
|
|
3946
3946
|
--mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -4093,12 +4093,12 @@
|
|
|
4093
4093
|
part="input-text"
|
|
4094
4094
|
id="${this.inputId}"
|
|
4095
4095
|
name="${this.name}"
|
|
4096
|
-
.value="${
|
|
4096
|
+
.value="${ds(this.value)}"
|
|
4097
4097
|
?disabled="${this.disabled}"
|
|
4098
4098
|
?readonly="${this.readonly}"
|
|
4099
4099
|
?required="${this.required}"
|
|
4100
4100
|
type="${t}"
|
|
4101
|
-
aria-describedby="${J(this.helpText?
|
|
4101
|
+
aria-describedby="${J(this.helpText?Ft.HELPER_TEXT_ID:(c=this.dataAriaDescribedby)!=null?c:"")}"
|
|
4102
4102
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
|
4103
4103
|
placeholder=${J(s)}
|
|
4104
4104
|
minlength=${J(this.minlength)}
|
|
@@ -4159,7 +4159,7 @@
|
|
|
4159
4159
|
width: 1.25rem;
|
|
4160
4160
|
height: 1.25rem;
|
|
4161
4161
|
}
|
|
4162
|
-
`,ib=[bt,f0];var zd=z.constructTagName("inputchip"),Bd={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var
|
|
4162
|
+
`,ib=[bt,f0];var zd=z.constructTagName("inputchip"),Bd={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var cs=class extends le(ee(X)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
|
|
4163
4163
|
<slot name="prefix">
|
|
4164
4164
|
${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:W}
|
|
4165
4165
|
</slot>
|
|
@@ -4177,7 +4177,7 @@
|
|
|
4177
4177
|
size="20"
|
|
4178
4178
|
@click="${this.handleClose}"
|
|
4179
4179
|
></mdc-button>
|
|
4180
|
-
`}};
|
|
4180
|
+
`}};cs.styles=[...X.styles,...ib],h([u({type:String})],cs.prototype,"label",2),h([u({type:Boolean})],cs.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],cs.prototype,"clearAriaLabel",2);var pp=cs;pp.register(zd);var v0=pp;var g0=B`
|
|
4181
4181
|
:host([icon-name])::part(text) {
|
|
4182
4182
|
margin-inline-end: 0.25rem;
|
|
4183
4183
|
}
|
|
@@ -4347,10 +4347,10 @@
|
|
|
4347
4347
|
color: var(--mdc-link-color-disabled);
|
|
4348
4348
|
pointer-events: none;
|
|
4349
4349
|
}
|
|
4350
|
-
`,nb=[y0,...yt()];var
|
|
4350
|
+
`,nb=[y0,...yt()];var hs=class extends le(ue){constructor(){super(...arguments);this.size=aa.SIZE;this.inline=aa.INLINE;this.inverted=aa.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=aa.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(sa).includes(t)?`${t}`:aa.SIZE.toString())}render(){return S`
|
|
4351
4351
|
<slot></slot>
|
|
4352
4352
|
${this.iconName?S` <mdc-icon name=${this.iconName} size=${ab(this.size)} length-unit="rem"></mdc-icon> `:W}
|
|
4353
|
-
`}};
|
|
4353
|
+
`}};hs.styles=[...oi.styles,...nb],h([u({type:Number,reflect:!0})],hs.prototype,"size",2),h([u({type:Boolean,reflect:!0})],hs.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],hs.prototype,"inverted",2);var up=hs;up.register(sb);var E0=up;oi.register(Tv);var T0=oi;var te={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var na=a=>{class i extends Lt(kt(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=Yc(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(te.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?[j.DOWN,j.UP,j.HOME,j.END]:[j.LEFT,j.RIGHT,j.HOME,j.END]);if(!l||!f.has(l))return;let y=s.target,A=this.getCurrentIndex(y);if(A===-1)return;this.resetTabIndexes(A);let P=!1;switch(l){case j.HOME:{P=this.resetTabIndexAndSetFocus(0,A);break}case j.END:{P=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case j.DOWN:case j.RIGHT:{let K=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?K:A+1;P=this.resetTabIndexAndSetFocus(Q,A);break}case j.UP:case j.LEFT:{let K=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?K:A-1;P=this.resetTabIndexAndSetFocus(Q,A);break}default:break}P&&(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 P;let{navItems:y}=this;if(y.length===0)return!1;let A=(P=y.at(s))!=null?P:y.find(Boolean);return s===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?y.forEach(K=>K.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()===Zt.SPATIAL?!1:this.loop!=="false"}}return i};var Hd=z.constructTagName("listitem"),In={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},lb={VARIANT:In.FULL_WIDTH};var x0=a=>!!a,di=class{constructor(i,t){this.cache=[];this.itemCreationHandler=i=>{this.addItem(i.target,void 0)};this.itemDestroyHandler=i=>{this.delete(i.detail.originalTarget)};this.host=i,i.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||x0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(te.CREATED,this.itemCreationHandler),this.host.addEventListener(te.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(te.CREATED,this.itemCreationHandler),this.host.removeEventListener(te.DESTROYED,this.itemDestroyHandler),this.reset()}add(i){this.addItem(i,void 0)}addAt(i,t){this.addItem(i,t)}getIndexToInsertInCache(i){if(!this.cache.length||!Ju(this.cache.at(-1),i))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let s=Math.floor((t+e)/2);tf(this.cache[s],i)?t=s+1:e=s-1}return t}addItem(i,t=void 0){var s;let e=i;if(this.isValidItem(e)&&!this.cache.includes(e)){let l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,0,e)}}delete(i){var e;let t=this.cache.indexOf(i);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,i,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(i){this.cache.length=0,i&&this.cache.push(...i)}};var uo=a=>{class i extends a{constructor(...s){super(...s);this.handleItemCreation=s=>{let l=s.target;l&&l.addEventListener(te.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===te.DESTROYED&&(s.target.removeEventListener(te.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(te.CREATED,this.handleItemCreation)}}return i};var A0=B`
|
|
4354
4354
|
:host {
|
|
4355
4355
|
display: flex;
|
|
4356
4356
|
flex-direction: column;
|
|
@@ -4376,11 +4376,11 @@
|
|
|
4376
4376
|
scroll-padding-left: 0.25rem;
|
|
4377
4377
|
scroll-padding-right: 0.25rem;
|
|
4378
4378
|
}
|
|
4379
|
-
`,db=[A0];var cb=z.constructTagName("list");var _n={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Ud={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:_n.VERTICAL};var
|
|
4379
|
+
`,db=[A0];var cb=z.constructTagName("list");var _n={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Ud={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:_n.VERTICAL};var ps=class extends na(uo(X)){constructor(){super();this.loop=Ud.LOOP;this.initialFocus=Ud.INITIAL_FOCUS;this.orientation=Ud.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(te.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new di(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,s){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=s+1;l>=this.navItems.length&&(l=s-1),this.resetTabIndexes(l,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${Hd}:not([disabled])`)}render(){return S`
|
|
4380
4380
|
<slot name="list-header"></slot>
|
|
4381
4381
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
4382
4382
|
<slot part="container" role="presentation"></slot>
|
|
4383
|
-
`}};
|
|
4383
|
+
`}};ps.styles=[...X.styles,...db],h([u({type:String,reflect:!0})],ps.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],ps.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],ps.prototype,"orientation",2);var la=ps;la.register(cb);var fp=la;var S0=B`
|
|
4384
4384
|
:host {
|
|
4385
4385
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
|
4386
4386
|
--mdc-listheader-gap: 0.5rem;
|
|
@@ -4852,7 +4852,7 @@
|
|
|
4852
4852
|
${this.renderCheckmarkIcon()}
|
|
4853
4853
|
</div>
|
|
4854
4854
|
</slot>
|
|
4855
|
-
`}};ha.styles=[...kr.styles,...Mb],h([u({type:Boolean,reflect:!0})],ha.prototype,"checked",2),h([u({type:String,reflect:!0})],ha.prototype,"indicator",2);var Cp=ha;Cp.register(Wd);var H0=Cp;var Eo=z.constructTagName("navmenuitem"),Lb={DOT:Ir.DOT,COUNTER:Ir.COUNTER},Ob={RIGHT_ARROW:"arrow-right-bold"},wp={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE
|
|
4855
|
+
`}};ha.styles=[...kr.styles,...Mb],h([u({type:Boolean,reflect:!0})],ha.prototype,"checked",2),h([u({type:String,reflect:!0})],ha.prototype,"indicator",2);var Cp=ha;Cp.register(Wd);var H0=Cp;var Eo=z.constructTagName("navmenuitem"),Lb={DOT:Ir.DOT,COUNTER:Ir.COUNTER},Ob={RIGHT_ARROW:"arrow-right-bold"},wp={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:$o[24],VARIANT:ar.FLEXIBLE,CANNOT_ACTIVATE:!1};var U0=B`
|
|
4856
4856
|
:host::part(popover-content) {
|
|
4857
4857
|
padding: 0.75rem 0.5rem;
|
|
4858
4858
|
}
|
|
@@ -4860,7 +4860,7 @@
|
|
|
4860
4860
|
::slotted(mdc-divider) {
|
|
4861
4861
|
margin-block: 0.25rem;
|
|
4862
4862
|
}
|
|
4863
|
-
`,Rb=[U0];var Pn=a=>{var t;if(!a)return!1;let i=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return i===et.MENUITEM||i===et.MENUITEMCHECKBOX||i===et.MENUITEMRADIO},kp=a=>{var i;return((i=a==null?void 0:a.tagName)==null?void 0:i.toLowerCase())===ge};var Fn=class extends ir{constructor(){super();this.placement=bp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),s=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!s||l)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.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 e=t.target;Pn(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let s=t.target,l=this.getCurrentIndex(s);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case j.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case j.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case j.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case j.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case j.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),e=!0);break}case j.LEFT:{kp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case j.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case j.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),e=!0);break}case j.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case j.SPACE:{!s.matches(`${Wd}, ${Kd}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,l;let e=t.getAttribute("id");return e?(l=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:l.call(s,`${ge}[triggerid="${e}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(l=>l.tagName.toLowerCase()===Fi?Array.from(l.children).filter(c=>Pn(c)):Pn(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(s=>{let l=this.getSubMenuPopoverOfTarget(s);l&&l.visible&&e.push(l)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=bp.ORIENTATION,this.backdrop=!1,this.color=
|
|
4863
|
+
`,Rb=[U0];var Pn=a=>{var t;if(!a)return!1;let i=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return i===et.MENUITEM||i===et.MENUITEMCHECKBOX||i===et.MENUITEMRADIO},kp=a=>{var i;return((i=a==null?void 0:a.tagName)==null?void 0:i.toLowerCase())===ge};var Fn=class extends ir{constructor(){super();this.placement=bp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),s=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!s||l)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.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 e=t.target;Pn(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let s=t.target,l=this.getCurrentIndex(s);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case j.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case j.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case j.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case j.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case j.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),e=!0);break}case j.LEFT:{kp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case j.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case j.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),e=!0);break}case j.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case j.SPACE:{!s.matches(`${Wd}, ${Kd}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,l;let e=t.getAttribute("id");return e?(l=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:l.call(s,`${ge}[triggerid="${e}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(l=>l.tagName.toLowerCase()===Fi?Array.from(l.children).filter(c=>Pn(c)):Pn(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(s=>{let l=this.getSubMenuPopoverOfTarget(s);l&&l.visible&&e.push(l)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=bp.ORIENTATION,this.backdrop=!1,this.color=Yo.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![Mn,Eo].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(s=>{let l=this.getSubMenuPopoverOfTarget(s);l&&l.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&kp(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(e).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(Mn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!Pn(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};Fn.styles=[...ir.styles,...Rb],h([u({type:String,reflect:!0})],Fn.prototype,"placement",2);var Np=Fn;Np.register(ge);var G0=Np;var jd=class{constructor(i,t){this.variant=i,this.expanded=t}hasSiblingWithTriggerId(i){var s,l;let t=i==null?void 0:i.getAttribute("id");return t?Array.from((l=(s=i==null?void 0:i.parentElement)==null?void 0:s.children)!=null?l:[]).some(c=>c!==i&&c.tagName.toLowerCase()===ge&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(i){if(!i)return[];let t=[],e=i;for(;e;){let s=e==null?void 0:e.closest(ge);if(!s)break;let l=s.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===Eo)t.push(c),e=c;else break}return t}setCurrentActiveNavMenuItem(i){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(i==null?void 0:i.navId),e=(i==null?void 0:i.cannotActivate)||this.hasSiblingWithTriggerId(i)||(i==null?void 0:i.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!i))return;this.currentActiveNavMenuItem=i,i!=null&&i.disableAriaCurrent||i.setAttribute("aria-current","page"),i.setAttribute("active",""),this.getParentNavMenuItems(i).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};jd.context=vo;var qd=jd;var K0=B`
|
|
4864
4864
|
:host {
|
|
4865
4865
|
--mdc-sidenavigation-expanded-width: 14.5rem;
|
|
4866
4866
|
--mdc-sidenavigation-expanded-left-padding: 1rem;
|
|
@@ -5029,7 +5029,7 @@
|
|
|
5029
5029
|
</div>
|
|
5030
5030
|
${this.variant===ar.FLEXIBLE||this.variant===ar.FLEXIBLE_ON_HOVER?S`<mdc-divider
|
|
5031
5031
|
part="vertical-divider"
|
|
5032
|
-
orientation=${
|
|
5032
|
+
orientation=${ns.VERTICAL}
|
|
5033
5033
|
variant=${Tn.GRADIENT}
|
|
5034
5034
|
arrow-direction=${this.expanded?wr.NEGATIVE:wr.POSITIVE}
|
|
5035
5035
|
button-position=${wr.POSITIVE}
|
|
@@ -5042,7 +5042,7 @@
|
|
|
5042
5042
|
aria-controls="side-nav-container"
|
|
5043
5043
|
></mdc-button>
|
|
5044
5044
|
</mdc-divider>`:W}
|
|
5045
|
-
`}};$i.styles=[...X.styles,...Db],h([u({type:String,reflect:!0})],$i.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],$i.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],$i.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],$i.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],$i.prototype,"hideFixedSectionDivider",2);var
|
|
5045
|
+
`}};$i.styles=[...X.styles,...Db],h([u({type:String,reflect:!0})],$i.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],$i.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],$i.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],$i.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],$i.prototype,"hideFixedSectionDivider",2);var ms=$i;var W0=B`
|
|
5046
5046
|
:host {
|
|
5047
5047
|
--mdc-menusection-divider-margin-block: 0.25rem;
|
|
5048
5048
|
--mdc-menusection-gap: 0rem;
|
|
@@ -5063,7 +5063,7 @@
|
|
|
5063
5063
|
:host::part(align-header) {
|
|
5064
5064
|
--mdc-listheader-padding: var(--mdc-menusection-header-padding);
|
|
5065
5065
|
}
|
|
5066
|
-
`,Pb=[W0];var ci=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=bb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=xe.consume({host:this,context:
|
|
5066
|
+
`,Pb=[W0];var ci=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=bb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=xe.consume({host:this,context:ms.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(l=this.sideNavigationContext)==null?void 0:l.value;if(!e)return;let{expanded:s}=e;this.hideHeaderText=!s}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
|
|
5067
5067
|
part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
|
|
5068
5068
|
header-text="${this.headerText}"
|
|
5069
5069
|
prefix-icon="${J(this.prefixIcon)}"
|
|
@@ -5263,7 +5263,7 @@
|
|
|
5263
5263
|
background-color: ButtonText;
|
|
5264
5264
|
}
|
|
5265
5265
|
}
|
|
5266
|
-
`,...yt()],Fb=j0;var se=class extends kr{constructor(){super();this.cannotActivate=wp.CANNOT_ACTIVATE;this.maxCounter=wp.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=xe.consume({host:this,context:
|
|
5266
|
+
`,...yt()],Fb=j0;var se=class extends kr{constructor(){super();this.cannotActivate=wp.CANNOT_ACTIVATE;this.maxCounter=wp.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=xe.consume({host:this,context:ms.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var 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 e=(s=this.sideNavigationContext)==null?void 0:s.value;e&&(this.showLabel=this.isNested()?!0:e.expanded)}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Fe()}`);let t=document.createElement(On);t.id=`mdc-navmenuitem-tooltip-${Fe()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${On}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ge)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:`${Bo(this.iconName)}-filled`}renderBadge(t){return Object.values(Lb).includes(this.badgeType)?S`
|
|
5267
5267
|
<mdc-badge
|
|
5268
5268
|
part="${t?"":"badge"}"
|
|
5269
5269
|
type="${J(this.badgeType)}"
|
|
@@ -5356,7 +5356,7 @@
|
|
|
5356
5356
|
:host([data-hidden]) {
|
|
5357
5357
|
display: none;
|
|
5358
5358
|
}
|
|
5359
|
-
`],zb=Q0;var
|
|
5359
|
+
`],zb=Q0;var us=class extends ce(Pi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=In.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",$b):W;return S`
|
|
5360
5360
|
<div part="leading">
|
|
5361
5361
|
<slot name="leading-controls">
|
|
5362
5362
|
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):W}
|
|
@@ -5367,18 +5367,18 @@
|
|
|
5367
5367
|
</div>
|
|
5368
5368
|
</div>
|
|
5369
5369
|
<div part="trailing">${t}</div>
|
|
5370
|
-
`}};
|
|
5370
|
+
`}};us.styles=[...Pi.styles,...zb],h([u({type:Boolean,reflect:!0})],us.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],us.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],us.prototype,"ariaLabel",2);var Dp=us;Dp.register(Mr);var J0=Dp;var Pp={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Bb=z.constructTagName("password");var fs=class extends Hr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?S`
|
|
5371
5371
|
<mdc-button
|
|
5372
5372
|
part="trailing-button"
|
|
5373
5373
|
class="own-focus-ring ${e?"":"hidden"}"
|
|
5374
5374
|
variant=${Vt.TERTIARY}
|
|
5375
5375
|
?disabled=${this.disabled||this.readonly||!e}
|
|
5376
|
-
size="${
|
|
5376
|
+
size="${Ft.ICON_SIZE}"
|
|
5377
5377
|
@click=${this.toggleShowPassword}
|
|
5378
5378
|
aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
|
|
5379
5379
|
prefix-icon=${this.showPassword?Pp.HIDE_BOLD:Pp.SHOW_BOLD}
|
|
5380
5380
|
></mdc-button>
|
|
5381
|
-
`:W}renderInputElement(t,e){let s=this.showPassword?mo.TEXT:mo.PASSWORD;return super.renderInputElement(s,e)}};
|
|
5381
|
+
`:W}renderInputElement(t,e){let s=this.showPassword?mo.TEXT:mo.PASSWORD;return super.renderInputElement(s,e)}};fs.styles=[...Hr.styles],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],fs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],fs.prototype,"hideButtonAriaLabel",2),h([nt()],fs.prototype,"showPassword",2);var Fp=fs;Fp.register(Bb);var tS=Fp;var Zd=z.constructTagName("progressbar"),Qd={DEFAULT:"default",INLINE:"inline"},Hb={VARIANT:Qd.DEFAULT,VALIDATION:jt.DEFAULT};var eS=[bt,B`
|
|
5382
5382
|
:host {
|
|
5383
5383
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
5384
5384
|
--mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
|
|
@@ -5646,7 +5646,7 @@
|
|
|
5646
5646
|
?readonly=${this.readonly}
|
|
5647
5647
|
?disabled=${this.disabled}
|
|
5648
5648
|
aria-checked="${this.checked}"
|
|
5649
|
-
aria-describedby="${J(this.helpText?
|
|
5649
|
+
aria-describedby="${J(this.helpText?Ft.HELPER_TEXT_ID:"")}"
|
|
5650
5650
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
5651
5651
|
/>
|
|
5652
5652
|
</mdc-staticradio>
|
|
@@ -5721,12 +5721,12 @@
|
|
|
5721
5721
|
min-width: auto;
|
|
5722
5722
|
padding: 0.75rem 0.5rem;
|
|
5723
5723
|
}
|
|
5724
|
-
`,Jb=[cS];var ty=z.constructTagName("searchpopover"),Up={TYPE:mo.TEXT,DISPLAY_POPOVER:!1},Gp="searchpopover-container-triggerid",ec="searchpopover-popoverid";var
|
|
5724
|
+
`,Jb=[cS];var ty=z.constructTagName("searchpopover"),Up={TYPE:mo.TEXT,DISPLAY_POPOVER:!1},Gp="searchpopover-container-triggerid",ec="searchpopover-popoverid";var To=class extends ma{constructor(){super(...arguments);this.displayPopover=Up.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}renderInputElement(){var e,s;let t=this.hasInputChips?"":this.placeholder;return S`<input
|
|
5725
5725
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
|
5726
5726
|
part="input-text"
|
|
5727
5727
|
id="${this.inputId}"
|
|
5728
5728
|
name="${this.name}"
|
|
5729
|
-
.value="${
|
|
5729
|
+
.value="${ds(this.value)}"
|
|
5730
5730
|
?disabled="${this.disabled}"
|
|
5731
5731
|
?readonly="${this.readonly}"
|
|
5732
5732
|
?required="${this.required}"
|
|
@@ -5735,7 +5735,7 @@
|
|
|
5735
5735
|
aria-controls="${ec}"
|
|
5736
5736
|
aria-owns="${ec}"
|
|
5737
5737
|
aria-haspopup="${et.DIALOG}"
|
|
5738
|
-
aria-describedby="${J(this.helpText?
|
|
5738
|
+
aria-describedby="${J(this.helpText?Ft.HELPER_TEXT_ID:(s=this.dataAriaDescribedby)!=null?s:"")}"
|
|
5739
5739
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
|
5740
5740
|
placeholder=${J(t)}
|
|
5741
5741
|
minlength=${J(this.minlength)}
|
|
@@ -5789,7 +5789,7 @@
|
|
|
5789
5789
|
>
|
|
5790
5790
|
<slot></slot>
|
|
5791
5791
|
</mdc-popover>
|
|
5792
|
-
`}};
|
|
5792
|
+
`}};To.styles=[...ma.styles,...Jb],h([u({type:Boolean,reflect:!0,attribute:"display-popover"})],To.prototype,"displayPopover",2),h([u({type:String,reflect:!0})],To.prototype,"placement",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],To.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"popover-aria-label"})],To.prototype,"popoverAriaLabel",2);var Kp=To;Kp.register(ty);var hS=Kp;var ey=z.constructTagName("select"),Wp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},rc="select-base-triggerid",ry="select-listbox",iy={DISABLE_FLIP:!1};var pS=B`
|
|
5793
5793
|
:host {
|
|
5794
5794
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
5795
5795
|
--mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
|
|
@@ -5912,7 +5912,7 @@
|
|
|
5912
5912
|
role="${et.COMBOBOX}"
|
|
5913
5913
|
aria-controls="${ry}"
|
|
5914
5914
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
5915
|
-
aria-labelledby="${this.label?
|
|
5915
|
+
aria-labelledby="${this.label?Ft.HEADING_ID:""}"
|
|
5916
5916
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
|
5917
5917
|
aria-haspopup="${et.LISTBOX}"
|
|
5918
5918
|
aria-required="${this.required?"true":"false"}"
|
|
@@ -5982,7 +5982,7 @@
|
|
|
5982
5982
|
</mdc-popover>
|
|
5983
5983
|
</div>
|
|
5984
5984
|
${this.renderHelperText()}
|
|
5985
|
-
`}};nr.styles=[...Jt.styles,...oy],h([u({type:String})],nr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],nr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],nr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],nr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],nr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],nr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],nr.prototype,"backdropAppendTo",2),h([Ut(`[id="${rc}"]`)],nr.prototype,"visualCombobox",2),h([nt()],nr.prototype,"selectedOption",2),h([nt()],nr.prototype,"displayPopover",2);var Yp=nr;Yp.register(ey);var mS=Yp;var jp=class extends X{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},qp=jp;var ic=z.constructTagName("selectlistbox");qp.register(ic);var uS=qp;
|
|
5985
|
+
`}};nr.styles=[...Jt.styles,...oy],h([u({type:String})],nr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],nr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],nr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],nr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],nr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],nr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],nr.prototype,"backdropAppendTo",2),h([Ut(`[id="${rc}"]`)],nr.prototype,"visualCombobox",2),h([nt()],nr.prototype,"selectedOption",2),h([nt()],nr.prototype,"displayPopover",2);var Yp=nr;Yp.register(ey);var mS=Yp;var jp=class extends X{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},qp=jp;var ic=z.constructTagName("selectlistbox");qp.register(ic);var uS=qp;ms.register(vo);var fS=ms;var sy=z.constructTagName("skeleton"),ay={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},ny={VARIANT:ay.RECTANGULAR};var vS=B`
|
|
5986
5986
|
:host {
|
|
5987
5987
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
5988
5988
|
--mdc-skeleton-height: 100%;
|
|
@@ -6083,11 +6083,11 @@
|
|
|
6083
6083
|
stroke-dashoffset: -292;
|
|
6084
6084
|
}
|
|
6085
6085
|
}
|
|
6086
|
-
`],dy=bS;var cy=z.constructTagName("spinner"),yS={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},ES={STANDALONE:"standalone",BUTTON:"button"},oc={VARIANT:ES.STANDALONE,SIZE:yS.MIDSIZE,INVERTED:!1};var
|
|
6086
|
+
`],dy=bS;var cy=z.constructTagName("spinner"),yS={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},ES={STANDALONE:"standalone",BUTTON:"button"},oc={VARIANT:ES.STANDALONE,SIZE:yS.MIDSIZE,INVERTED:!1};var xo=class extends X{constructor(){super(...arguments);this.inverted=oc.INVERTED;this.size=oc.SIZE;this.ariaLabel=null;this.variant=oc.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?et.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return S`
|
|
6087
6087
|
<svg part="container" viewBox="0 0 100 100">
|
|
6088
6088
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
|
6089
6089
|
</svg>
|
|
6090
|
-
`}};
|
|
6090
|
+
`}};xo.styles=[...X.styles,...dy],h([u({type:Boolean,reflect:!0})],xo.prototype,"inverted",2),h([u({type:String,reflect:!0})],xo.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],xo.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],xo.prototype,"variant",2);var Zp=xo;Zp.register(cy);var TS=Zp;un.register(Ig);var xS=un;var AS={COMPLETE:"complete",INCOMPLETE:"incomplete"},Qp={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Jp={STATUS:AS.INCOMPLETE,ORIENTATION:Qp.HORIZONTAL},hy=z.constructTagName("stepperconnector");var py=z.constructTagName("stepperitem"),tm={INLINE:"inline",STACKED:"stacked"},Vi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},sc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},em={VARIANT:tm.INLINE,STATUS:Vi.NOT_STARTED};var ac=z.constructTagName("stepper"),Un={ORIENTATION:Qp.HORIZONTAL,VARIANT:tm.INLINE};var nc=class{constructor(i,t){this.orientation=i,this.variant=t}};nc.context=ac;var lc=nc;var SS=B`
|
|
6091
6091
|
:host {
|
|
6092
6092
|
gap: 0.5rem;
|
|
6093
6093
|
}
|
|
@@ -6533,7 +6533,7 @@
|
|
|
6533
6533
|
--mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
|
6534
6534
|
--mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
|
|
6535
6535
|
}
|
|
6536
|
-
`,...yt()],gy=NS;var
|
|
6536
|
+
`,...yt()],gy=NS;var Ao=class extends le(ue){constructor(){super(...arguments);this.active=dc.ACTIVE;this.variant=dc.VARIANT;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${Bo(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(om).includes(t)?t:dc.VARIANT)}setActive(t,e){super.setActive(t,e),this.modifyIconName(e)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
|
|
6537
6537
|
<div part="container">
|
|
6538
6538
|
<slot name="prefix">
|
|
6539
6539
|
${this.iconName?S` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:W}
|
|
@@ -6549,7 +6549,7 @@
|
|
|
6549
6549
|
<slot name="chip"></slot>
|
|
6550
6550
|
</div>
|
|
6551
6551
|
<div part="indicator"></div>
|
|
6552
|
-
`}};
|
|
6552
|
+
`}};Ao.styles=[...ue.styles,...gy],h([u({type:Boolean,reflect:!0})],Ao.prototype,"active",2),h([u({type:String,reflect:!0})],Ao.prototype,"text",2),h([u({type:String,reflect:!0})],Ao.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],Ao.prototype,"tabId",2);var Lr=Ao;Lr.register(vy);var MS=Lr;var LS=[Zr,B`
|
|
6553
6553
|
:host {
|
|
6554
6554
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
|
6555
6555
|
--mdc-tablist-gap: 0.5rem;
|
|
@@ -6579,7 +6579,7 @@
|
|
|
6579
6579
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
|
6580
6580
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
|
6581
6581
|
}
|
|
6582
|
-
`],by=[...LS];var yy=z.constructTagName("tablist"),va={FORWARD:"forward",BACKWARD:"backward"};var cc=a=>a[0],sm=a=>a[a.length-1],Ey=(a,i,t)=>{let e=a.findIndex(l=>i===l)-1,s=t?(e+a.length)%a.length:Math.max(0,e);return a[s]},Ty=(a,i,t)=>{let e=a.findIndex(l=>i===l)+1,s=t?e%a.length:Math.min(e,a.length-1);return a[s]},xy=(a,i)=>a.find(t=>t.tabId===i),am=a=>a.find(i=>i.active);var Ur=class extends Lt(kt(X)){constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var s,l,c;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(f=>f.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(s=cc(this.tabs))==null?void 0:s.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this)),(c=this.tabsContainer)==null||c.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(e=this.tabsContainer)==null||e.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let e=xy(this.tabs,this.activeTabId);if(!(e instanceof Lr))return;this.setActiveTab(e),t.get("activeTabId")?(this.fireTabChangeEvent(e),await this.focusTab(e)):this.resetTabIndexAndSetNewTabIndex(e)}}fireTabChangeEvent(t){let e=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(e)}async handleFocus(t){if(t.relatedTarget instanceof Lr||!(t.target instanceof Lr))return;let e=am(this.tabs||[]);e instanceof Lr&&await this.focusTab(e)}handleMousedown(t){t.target instanceof Lr&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let e=t.target;e instanceof Lr&&(this.setActiveTab(e),await this.focusTab(e),this.activeTabId=e.tabId)}resetTabIndexAndSetNewTabIndex(t){var e;(e=this.tabs)==null||e.forEach(s=>{s.setAttribute("tabindex",s===t?"0":"-1")})}setActiveTab(t){var e;(e=this.tabs)==null||e.forEach(s=>{s===t?s.setAttribute("active",""):s.removeAttribute("active")})}async focusTab(t){return t instanceof Lr?(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility(),!0):!1}async handleKeydown(t){let e=t.target;if(!(e instanceof Lr)||!this.tabs)return;let s=this.getActionForKeyEvent(t,!0),l=this.getKeyboardNavMode()===Zt.DEFAULT,c=Ey(this.tabs,e,l),f=Ty(this.tabs,e,l),y=cc(this.tabs),A=sm(this.tabs),P=!1;switch(s){case j.LEFT:t.preventDefault(),P=c!==e&&await this.focusTab(c);break;case j.RIGHT:t.preventDefault(),P=f!==e&&await this.focusTab(f);break;case j.HOME:P=await this.focusTab(y);break;case j.END:P=await this.focusTab(A);break;default:}P&&this.keyDownEventHandled()}shouldShowArrowButton(t){return t===va.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,e;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=am(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}async handleArrowButtonVisibility(){var K,Q,Z;if(!this.tabs||!this.tabsContainer)return;let t=!1;((K=this.shadowRoot)==null?void 0:K.activeElement)instanceof
|
|
6582
|
+
`],by=[...LS];var yy=z.constructTagName("tablist"),va={FORWARD:"forward",BACKWARD:"backward"};var cc=a=>a[0],sm=a=>a[a.length-1],Ey=(a,i,t)=>{let e=a.findIndex(l=>i===l)-1,s=t?(e+a.length)%a.length:Math.max(0,e);return a[s]},Ty=(a,i,t)=>{let e=a.findIndex(l=>i===l)+1,s=t?e%a.length:Math.min(e,a.length-1);return a[s]},xy=(a,i)=>a.find(t=>t.tabId===i),am=a=>a.find(i=>i.active);var Ur=class extends Lt(kt(X)){constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var s,l,c;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(f=>f.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(s=cc(this.tabs))==null?void 0:s.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this)),(c=this.tabsContainer)==null||c.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(e=this.tabsContainer)==null||e.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let e=xy(this.tabs,this.activeTabId);if(!(e instanceof Lr))return;this.setActiveTab(e),t.get("activeTabId")?(this.fireTabChangeEvent(e),await this.focusTab(e)):this.resetTabIndexAndSetNewTabIndex(e)}}fireTabChangeEvent(t){let e=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(e)}async handleFocus(t){if(t.relatedTarget instanceof Lr||!(t.target instanceof Lr))return;let e=am(this.tabs||[]);e instanceof Lr&&await this.focusTab(e)}handleMousedown(t){t.target instanceof Lr&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let e=t.target;e instanceof Lr&&(this.setActiveTab(e),await this.focusTab(e),this.activeTabId=e.tabId)}resetTabIndexAndSetNewTabIndex(t){var e;(e=this.tabs)==null||e.forEach(s=>{s.setAttribute("tabindex",s===t?"0":"-1")})}setActiveTab(t){var e;(e=this.tabs)==null||e.forEach(s=>{s===t?s.setAttribute("active",""):s.removeAttribute("active")})}async focusTab(t){return t instanceof Lr?(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility(),!0):!1}async handleKeydown(t){let e=t.target;if(!(e instanceof Lr)||!this.tabs)return;let s=this.getActionForKeyEvent(t,!0),l=this.getKeyboardNavMode()===Zt.DEFAULT,c=Ey(this.tabs,e,l),f=Ty(this.tabs,e,l),y=cc(this.tabs),A=sm(this.tabs),P=!1;switch(s){case j.LEFT:t.preventDefault(),P=c!==e&&await this.focusTab(c);break;case j.RIGHT:t.preventDefault(),P=f!==e&&await this.focusTab(f);break;case j.HOME:P=await this.focusTab(y);break;case j.END:P=await this.focusTab(A);break;default:}P&&this.keyDownEventHandled()}shouldShowArrowButton(t){return t===va.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,e;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=am(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}async handleArrowButtonVisibility(){var K,Q,Z;if(!this.tabs||!this.tabsContainer)return;let t=!1;((K=this.shadowRoot)==null?void 0:K.activeElement)instanceof Ho&&(t=!0);let e=cc(this.tabs),s=sm(this.tabs),l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=s.getBoundingClientRect().right,y=(Z=this.tabsContainer)==null?void 0:Z.getBoundingClientRect().right,A=e.getBoundingClientRect().right,P=s.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>y?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}A>y?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,P<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,s=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===va.FORWARD?e:s),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",s=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
|
|
6583
6583
|
variant="tertiary"
|
|
6584
6584
|
prefix-icon="arrow-${l===va.FORWARD?t:e}-regular"
|
|
6585
6585
|
aria-label="Scroll tabs ${l===va.FORWARD?t:e}"
|
|
@@ -6740,7 +6740,7 @@
|
|
|
6740
6740
|
dirname=${J(this.dirname)}
|
|
6741
6741
|
@input=${this.updateValue}
|
|
6742
6742
|
@change=${this.onChange}
|
|
6743
|
-
aria-describedby="${J(this.helpText?
|
|
6743
|
+
aria-describedby="${J(this.helpText?Ft.HELPER_TEXT_ID:"")}"
|
|
6744
6744
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
|
6745
6745
|
></textarea>
|
|
6746
6746
|
<mdc-screenreaderannouncer
|
|
@@ -6764,7 +6764,7 @@
|
|
|
6764
6764
|
`:W}
|
|
6765
6765
|
</div>
|
|
6766
6766
|
${this.renderTextareaFooter()}
|
|
6767
|
-
`}};ye.styles=[...sr.styles,...Iy],h([u({type:String})],ye.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],ye.prototype,"rows",2),h([u({type:Number})],ye.prototype,"cols",2),h([u({type:String})],ye.prototype,"wrap",2),h([u({type:String})],ye.prototype,"autocapitalize",2),h([u({type:String})],ye.prototype,"autocomplete",2),h([u({type:String})],ye.prototype,"dirname",2),h([u({type:Number})],ye.prototype,"maxlength",2),h([u({type:Number})],ye.prototype,"minlength",2),h([u({type:Number,attribute:"max-character-limit"})],ye.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],ye.prototype,"characterLimitAnnouncement",2),h([u({type:Boolean,reflect:!0})],ye.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],ye.prototype,"resizeButtonAriaLabel",2),h([Ut("textarea")],ye.prototype,"inputElement",2),h([nt()],ye.prototype,"ariaLiveAnnouncer",2);var dm=ye;dm.register(Ay);var DS=dm;var _y=z.constructTagName("timepicker"),cm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},
|
|
6767
|
+
`}};ye.styles=[...sr.styles,...Iy],h([u({type:String})],ye.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],ye.prototype,"rows",2),h([u({type:Number})],ye.prototype,"cols",2),h([u({type:String})],ye.prototype,"wrap",2),h([u({type:String})],ye.prototype,"autocapitalize",2),h([u({type:String})],ye.prototype,"autocomplete",2),h([u({type:String})],ye.prototype,"dirname",2),h([u({type:Number})],ye.prototype,"maxlength",2),h([u({type:Number})],ye.prototype,"minlength",2),h([u({type:Number,attribute:"max-character-limit"})],ye.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],ye.prototype,"characterLimitAnnouncement",2),h([u({type:Boolean,reflect:!0})],ye.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],ye.prototype,"resizeButtonAriaLabel",2),h([Ut("textarea")],ye.prototype,"inputElement",2),h([nt()],ye.prototype,"ariaLiveAnnouncer",2);var dm=ye;dm.register(Ay);var DS=dm;var _y=z.constructTagName("timepicker"),cm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},So={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},hm="timepicker-triggerid",pm="timepicker-listbox",Ve={TIME_FORMAT:So.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 PS=B`
|
|
6768
6768
|
:host {
|
|
6769
6769
|
--mdc-timepicker-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
6770
6770
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -6945,14 +6945,14 @@
|
|
|
6945
6945
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
6946
6946
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
6947
6947
|
}
|
|
6948
|
-
`,Cy=[PS,...yt(!0)];var
|
|
6948
|
+
`,Cy=[PS,...yt(!0)];var Rt=class extends ce(Yt(Jt)){constructor(){super(...arguments);this.timeFormat=Ve.TIME_FORMAT;this.interval=Ve.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=Ve.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(),e=this.internalToValue(),s=t.findIndex(l=>l.value===e);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(`#${pm}`);if(!t)return;let e=t.querySelectorAll("mdc-option");e[this.focusedOptionIndex]&&e[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 e=parseInt(t[1],10),s=parseInt(t[2],10);e<0||e>23||s<0||s>59||(this.internalMinutes=String(s).padStart(2,"0"),this.timeFormat===So.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===So.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=[],e=Math.max(1,Math.min(this.interval,60));for(let s=0;s<24*60;s+=e){let l=Math.floor(s/60),c=s%60,f=`${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`,y;if(this.timeFormat===So.TWELVE_HOUR){let K=l<12?this.localeAmLabel:this.localePmLabel,Q=l%12;Q===0&&(Q=12);let Z=c===0?"00":String(c);y=`${Q}:${Z} ${K}`}else y=`${l}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,P=!this.max||f<=this.max;A&&P&&t.push({label:y,value:f})}return t}handleOptionClick(t){var e;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})),(e=this.dropdownButton)==null||e.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 e;this.disabled||this.softDisabled||this.readonly||t.key===_t.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var l;let e=this.getTimeOptions(),s=e.length;if(s!==0)switch(t.key){case _t.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%s,this.focusCurrentMenuItem();break}case _t.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+s)%s,this.focusCurrentMenuItem();break}case _t.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<s&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case _t.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 e,s;switch(t.key){case _t.ARROW_UP:case _t.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case _t.TAB:break;case _t.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.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,e){var A,P,K,Q,Z,tt;let s=this.timeFormat===So.TWELVE_HOUR,l,c;e==="hours"?(l=s?Ve.MIN_HOUR_12:Ve.MIN_HOUR_24,c=s?Ve.MAX_HOUR_12:Ve.MAX_HOUR_24):(l=Ve.MIN_MINUTE,c=Ve.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,y=f?parseInt(f,10):l;switch(t.key){case _t.ARROW_UP:{t.preventDefault(),y=y>=c?l:y+1,this.setSpinbuttonValue(e,y),this.commitValue();break}case _t.ARROW_DOWN:{t.preventDefault(),y=y<=l?c:y-1,this.setSpinbuttonValue(e,y),this.commitValue();break}case _t.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(P=this.minutesInput)==null||P.select()):s&&((K=this.periodInput)==null||K.focus(),(Q=this.periodInput)==null||Q.select());break}case _t.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((Z=this.hoursInput)==null||Z.focus(),(tt=this.hoursInput)==null||tt.select());break}case _t.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,l,c)):t.preventDefault();break}}}handleDigitInput(t,e,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(e,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}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(e,y),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,c),this.pendingDigitTimeout=setTimeout(()=>{let y=c;y<s&&(y=s),this.setSpinbuttonValue(e,y),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let s=String(e).padStart(2,"0");t==="hours"?this.internalHours=s:this.internalMinutes=s,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,s;(e=this.minutesInput)==null||e.focus(),(s=this.minutesInput)==null||s.select()}).catch(()=>{}):this.timeFormat===So.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,s;(e=this.periodInput)==null||e.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(),e=this.internalToValue();return t.map(s=>S`
|
|
6949
6949
|
<mdc-option
|
|
6950
6950
|
label="${s.label}"
|
|
6951
6951
|
?selected="${s.value===e}"
|
|
6952
6952
|
aria-selected="${s.value===e?"true":"false"}"
|
|
6953
6953
|
@click="${()=>this.handleOptionClick(s.value)}"
|
|
6954
6954
|
></mdc-option>
|
|
6955
|
-
`)}render(){let t=this.timeFormat===
|
|
6955
|
+
`)}render(){let t=this.timeFormat===So.TWELVE_HOUR,e=t?Ve.MIN_HOUR_12:Ve.MIN_HOUR_24,s=t?Ve.MAX_HOUR_12:Ve.MAX_HOUR_24;return S`
|
|
6956
6956
|
${this.renderLabel()}
|
|
6957
6957
|
<div part="container">
|
|
6958
6958
|
<div
|
|
@@ -7074,7 +7074,7 @@
|
|
|
7074
7074
|
</mdc-popover>
|
|
7075
7075
|
</div>
|
|
7076
7076
|
${this.helpText?this.renderHelperText():W}
|
|
7077
|
-
`}};
|
|
7077
|
+
`}};Rt.styles=[...Jt.styles,...Cy],h([u({type:String,reflect:!0,attribute:"time-format"})],Rt.prototype,"timeFormat",2),h([u({type:Number,reflect:!0})],Rt.prototype,"interval",2),h([u({type:String,reflect:!0})],Rt.prototype,"placement",2),h([u({type:String,reflect:!0})],Rt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Rt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Rt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Rt.prototype,"backdropAppendTo",2),h([u({type:String,reflect:!0})],Rt.prototype,"min",2),h([u({type:String,reflect:!0})],Rt.prototype,"max",2),h([u({type:String,attribute:"locale-hours-label"})],Rt.prototype,"localeHoursLabel",2),h([u({type:String,attribute:"locale-minutes-label"})],Rt.prototype,"localeMinutesLabel",2),h([u({type:String,attribute:"locale-period-label"})],Rt.prototype,"localePeriodLabel",2),h([u({type:String,attribute:"locale-hours-placeholder"})],Rt.prototype,"localeHoursPlaceholder",2),h([u({type:String,attribute:"locale-minutes-placeholder"})],Rt.prototype,"localeMinutesPlaceholder",2),h([u({type:String,attribute:"locale-period-placeholder"})],Rt.prototype,"localePeriodPlaceholder",2),h([u({type:String,attribute:"locale-am-label"})],Rt.prototype,"localeAmLabel",2),h([u({type:String,attribute:"locale-pm-label"})],Rt.prototype,"localePmLabel",2),h([u({type:String,attribute:"locale-show-time-picker-label"})],Rt.prototype,"localeShowTimePickerLabel",2),h([u({type:String,attribute:"locale-time-options-label"})],Rt.prototype,"localeTimeOptionsLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Rt.prototype,"localeSpinbuttonDescription",2),h([Ut('mdc-button[part="icon-container"]')],Rt.prototype,"dropdownButton",2),h([Ut("#hours-spinbutton")],Rt.prototype,"hoursInput",2),h([Ut("#minutes-spinbutton")],Rt.prototype,"minutesInput",2),h([Ut("#period-spinbutton")],Rt.prototype,"periodInput",2),h([nt()],Rt.prototype,"displayPopover",2),h([nt()],Rt.prototype,"internalHours",2),h([nt()],Rt.prototype,"internalMinutes",2),h([nt()],Rt.prototype,"internalPeriod",2),h([nt()],Rt.prototype,"focusedOptionIndex",2);var mm=Rt;mm.register(_y);var FS=mm;var $S=[B`
|
|
7078
7078
|
:host {
|
|
7079
7079
|
display: block;
|
|
7080
7080
|
position: relative;
|
|
@@ -7358,7 +7358,7 @@
|
|
|
7358
7358
|
aria-checked="${this.checked}"
|
|
7359
7359
|
.disabled="${this.disabled}"
|
|
7360
7360
|
?readonly="${this.readonly}"
|
|
7361
|
-
aria-describedby="${J(this.helpText?
|
|
7361
|
+
aria-describedby="${J(this.helpText?Ft.HELPER_TEXT_ID:"")}"
|
|
7362
7362
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
7363
7363
|
tabindex="${this.disabled?-1:0}"
|
|
7364
7364
|
@change="${this.handleChange}"
|
|
@@ -7408,7 +7408,7 @@
|
|
|
7408
7408
|
</div>
|
|
7409
7409
|
</div>
|
|
7410
7410
|
</div>
|
|
7411
|
-
`}};dr.styles=[...la.styles,...Gy],h([u({type:Object})],dr.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],dr.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],dr.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],dr.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],dr.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],dr.prototype,"atBottomThreshold",2),h([Ut('[part="scroll"]',!0)],dr.prototype,"scrollRef",2),h([Ut('[part="wrapper"]',!0)],dr.prototype,"wrapperRef",2),h([Ut('[part="container"]',!0)],dr.prototype,"containerRef",2),h([Ku({passive:!0})],dr.prototype,"onScrollHandler",1);var xm=dr;xm.register(Ky);var ZS=xm;ue.register(ju);var QS=ue;var Wy=z.constructTagName("combobox"),Am={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Yy="list";var Sm="combobox-trigger-id";var
|
|
7411
|
+
`}};dr.styles=[...la.styles,...Gy],h([u({type:Object})],dr.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],dr.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],dr.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],dr.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],dr.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],dr.prototype,"atBottomThreshold",2),h([Ut('[part="scroll"]',!0)],dr.prototype,"scrollRef",2),h([Ut('[part="wrapper"]',!0)],dr.prototype,"wrapperRef",2),h([Ut('[part="container"]',!0)],dr.prototype,"containerRef",2),h([Ku({passive:!0})],dr.prototype,"onScrollHandler",1);var xm=dr;xm.register(Ky);var ZS=xm;ue.register(ju);var QS=ue;var Wy=z.constructTagName("combobox"),Am={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Yy="list";var Sm="combobox-trigger-id";var Io=class{static dispatchComboboxEvent(i,t,e,s=!0){i.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:s}))}static onInputCombobox(i,t){this.dispatchComboboxEvent(i,"input",t)}static onChangeCombobox(i,t){this.dispatchComboboxEvent(i,"change",t)}};var JS=B`
|
|
7412
7412
|
:host {
|
|
7413
7413
|
--mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
7414
7414
|
--mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -7513,12 +7513,12 @@
|
|
|
7513
7513
|
--mdc-icon-fill-color: ButtonText;
|
|
7514
7514
|
}
|
|
7515
7515
|
}
|
|
7516
|
-
`,jy=[JS];var Ne=class extends Lt(kt(uo(Pe(ce(Yt(yo(Jt))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,s,l)=>{switch(e){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 e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(te.MODIFIED,this.handleModifiedEvent),this.itemsStore=new di(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(Mr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.compareOptionWithValue(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!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){e&&(
|
|
7516
|
+
`,jy=[JS];var Ne=class extends Lt(kt(uo(Pe(ce(Yt(yo(Jt))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,s,l)=>{switch(e){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 e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(te.MODIFIED,this.handleModifiedEvent),this.itemsStore=new di(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(Mr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.compareOptionWithValue(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!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){e&&(Io.onInputCombobox(this,t),Io.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(),e&&!s&&t&&(Io.onInputCombobox(this,t),Io.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=jt.DEFAULT)}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,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 e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.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,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(s=>s.value===t||s.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let s=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);s==null||s.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let s=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);s&&s.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(l=>l.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),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=jt.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,s){var l;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[s],!0),(l=t[s])==null||l.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),s=e.findIndex(c=>c.hasAttribute("data-focused")),l=this.getKeyboardNavMode()===Zt.SPATIAL;switch(this.getActionForKeyEvent(t)){case j.DOWN:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=e.length-1===s?0:s+1;this.updateFocusAndScrollIntoView(e,s,c),t.preventDefault(),this.keyDownEventHandled();break}case j.UP:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=s===-1||s===0?e.length-1:s-1;this.updateFocusAndScrollIntoView(e,s,c),t.preventDefault(),this.keyDownEventHandled();break}case j.ENTER:{if(l&&!this.isOpen)this.openPopover();else{if(s===-1)return;this.setSelectedValue(e[s]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case j.ESCAPE:{s!==-1&&this.updateOptionAttributes(e[s],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case j.TAB:{this.closePopover(),this.keyDownEventHandled();break}case j.HOME:case j.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=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(Xd)){let y=c;e.add(y),l&&t.set(y,((f=t.get(y))!=null?f:0)+1)}}),e.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(En)&&c.removeAttribute("data-hidden")):(s.setAttribute("data-hidden",""),c&&c.matches(En)&&c.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),Io.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var s;t.preventDefault(),t.stopPropagation();let e=(s=t.target.closest(Mr))!=null?s:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t?this.isOpen:!!this.noResultText}renderNativeInput(){return S`
|
|
7517
7517
|
<input
|
|
7518
7518
|
id="${this.inputId}"
|
|
7519
7519
|
name="${this.name}"
|
|
7520
7520
|
type="text"
|
|
7521
|
-
.value="${
|
|
7521
|
+
.value="${ds(this.value)}"
|
|
7522
7522
|
aria-hidden="true"
|
|
7523
7523
|
part="internal-native-input"
|
|
7524
7524
|
tabindex="-1"
|
|
@@ -7535,7 +7535,7 @@
|
|
|
7535
7535
|
slot="input"
|
|
7536
7536
|
?disabled="${this.disabled}"
|
|
7537
7537
|
tabindex="${this.disabled?-1:0}"
|
|
7538
|
-
.value="${
|
|
7538
|
+
.value="${ds(this.filteredValue)}"
|
|
7539
7539
|
autocomplete="${oa.OFF}"
|
|
7540
7540
|
part="input-text"
|
|
7541
7541
|
placeholder="${J(this.placeholder)}"
|
|
@@ -7546,13 +7546,13 @@
|
|
|
7546
7546
|
@keydown=${this.handleInputKeydown}
|
|
7547
7547
|
@blur="${this.handleBlurChange}"
|
|
7548
7548
|
aria-autocomplete="${Yy}"
|
|
7549
|
-
aria-describedby="${J(this.helpText?
|
|
7549
|
+
aria-describedby="${J(this.helpText?Ft.HELPER_TEXT_ID:"")}"
|
|
7550
7550
|
aria-disabled="${this.disabled?"true":"false"}"
|
|
7551
7551
|
aria-expanded="${this.isOpen?"true":"false"}"
|
|
7552
7552
|
aria-haspopup="${et.LISTBOX}"
|
|
7553
7553
|
aria-invalid="${this.helpTextType===jt.ERROR?"true":"false"}"
|
|
7554
7554
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
7555
|
-
aria-labelledby="${this.label?
|
|
7555
|
+
aria-labelledby="${this.label?Ft.HEADING_ID:""}"
|
|
7556
7556
|
aria-readonly="${this.readonly?"true":"false"}"
|
|
7557
7557
|
aria-required="${this.required?"true":"false"}"
|
|
7558
7558
|
/>
|
|
@@ -7608,7 +7608,7 @@
|
|
|
7608
7608
|
</mdc-popover>
|
|
7609
7609
|
</div>
|
|
7610
7610
|
${this.renderHelperText()}
|
|
7611
|
-
`}};Ne.styles=[...Hr.styles,...Jt.styles,...jy],h([u({type:String})],Ne.prototype,"placeholder",2),h([u({type:String,reflect:!0})],Ne.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],Ne.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],Ne.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],Ne.prototype,"boundary",2),h([u({type:String,reflect:!0})],Ne.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Ne.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ne.prototype,"backdropAppendTo",2),h([Ut(`[role="${et.COMBOBOX}"]`)],Ne.prototype,"visualCombobox",2),h([Ut('[part="combobox-button"]')],Ne.prototype,"dropDownButton",2),h([Gt({selector:ic})],Ne.prototype,"slottedListboxes",2),h([nt()],Ne.prototype,"isOpen",2),h([nt()],Ne.prototype,"filteredValue",2);var Im=Ne;Im.register(Wy);var tI=Im;var qy=(a,i,t)=>{let e=new Map;for(let s=i;s<=t;s++)e.set(a[s],s);return e},Xy=Ii(class extends ri{constructor(a){if(super(a),a.type!==ur.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,i,t){let e;t===void 0?t=i:i!==void 0&&(e=i);let s=[],l=[],c=0;for(let f of a)s[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:s}}render(a,i,t){return this.dt(a,i,t).values}update(a,[i,t,e]){var lt;let s=kf(a),{values:l,keys:c}=this.dt(i,t,e);if(!Array.isArray(s))return this.ut=c,l;let f=(lt=this.ut)!=null?lt:this.ut=[],y=[],A,P,K=0,Q=s.length-1,Z=0,tt=l.length-1;for(;K<=Q&&Z<=tt;)if(s[K]===null)K++;else if(s[Q]===null)Q--;else if(f[K]===c[Z])y[Z]=io(s[K],l[Z]),K++,Z++;else if(f[Q]===c[tt])y[tt]=io(s[Q],l[tt]),Q--,tt--;else if(f[K]===c[tt])y[tt]=io(s[K],l[tt]),zs(a,y[tt+1],s[K]),K++,tt--;else if(f[Q]===c[Z])y[Z]=io(s[Q],l[Z]),zs(a,s[K],s[Q]),Q--,Z++;else if(A===void 0&&(A=qy(c,Z,tt),P=qy(f,K,Q)),A.has(f[K]))if(A.has(f[Q])){let dt=P.get(c[Z]),ft=dt!==void 0?s[dt]:null;if(ft===null){let It=zs(a,s[K]);io(It,l[Z]),y[Z]=It}else y[Z]=io(ft,l[Z]),zs(a,s[K],ft),s[dt]=null;Z++}else $l(s[Q]),Q--;else $l(s[K]),K++;for(;Z<=tt;){let dt=zs(a,y[tt+1]);io(dt,l[Z]),y[Z++]=dt}for(;K<=Q;){let dt=s[K++];dt!==null&&$l(dt)}return this.ut=c,Fl(a,y),De}});var Zy=z.constructTagName("slider"),eI={START:"start",END:"end",UNDEFINED:void 0},
|
|
7611
|
+
`}};Ne.styles=[...Hr.styles,...Jt.styles,...jy],h([u({type:String})],Ne.prototype,"placeholder",2),h([u({type:String,reflect:!0})],Ne.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],Ne.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],Ne.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],Ne.prototype,"boundary",2),h([u({type:String,reflect:!0})],Ne.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Ne.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ne.prototype,"backdropAppendTo",2),h([Ut(`[role="${et.COMBOBOX}"]`)],Ne.prototype,"visualCombobox",2),h([Ut('[part="combobox-button"]')],Ne.prototype,"dropDownButton",2),h([Gt({selector:ic})],Ne.prototype,"slottedListboxes",2),h([nt()],Ne.prototype,"isOpen",2),h([nt()],Ne.prototype,"filteredValue",2);var Im=Ne;Im.register(Wy);var tI=Im;var qy=(a,i,t)=>{let e=new Map;for(let s=i;s<=t;s++)e.set(a[s],s);return e},Xy=Ii(class extends ri{constructor(a){if(super(a),a.type!==ur.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,i,t){let e;t===void 0?t=i:i!==void 0&&(e=i);let s=[],l=[],c=0;for(let f of a)s[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:s}}render(a,i,t){return this.dt(a,i,t).values}update(a,[i,t,e]){var lt;let s=kf(a),{values:l,keys:c}=this.dt(i,t,e);if(!Array.isArray(s))return this.ut=c,l;let f=(lt=this.ut)!=null?lt:this.ut=[],y=[],A,P,K=0,Q=s.length-1,Z=0,tt=l.length-1;for(;K<=Q&&Z<=tt;)if(s[K]===null)K++;else if(s[Q]===null)Q--;else if(f[K]===c[Z])y[Z]=io(s[K],l[Z]),K++,Z++;else if(f[Q]===c[tt])y[tt]=io(s[Q],l[tt]),Q--,tt--;else if(f[K]===c[tt])y[tt]=io(s[K],l[tt]),zs(a,y[tt+1],s[K]),K++,tt--;else if(f[Q]===c[Z])y[Z]=io(s[Q],l[Z]),zs(a,s[K],s[Q]),Q--,Z++;else if(A===void 0&&(A=qy(c,Z,tt),P=qy(f,K,Q)),A.has(f[K]))if(A.has(f[Q])){let dt=P.get(c[Z]),ft=dt!==void 0?s[dt]:null;if(ft===null){let It=zs(a,s[K]);io(It,l[Z]),y[Z]=It}else y[Z]=io(ft,l[Z]),zs(a,s[K],ft),s[dt]=null;Z++}else $l(s[Q]),Q--;else $l(s[K]),K++;for(;Z<=tt;){let dt=zs(a,y[tt+1]);io(dt,l[Z]),y[Z++]=dt}for(;K<=Q;){let dt=s[K++];dt!==null&&$l(dt)}return this.ut=c,Fl(a,y),De}});var Zy=z.constructTagName("slider"),eI={START:"start",END:"end",UNDEFINED:void 0},_o={MIN:0,MAX:100,STEP:1,STATE:eI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var rI=B`
|
|
7612
7612
|
:host {
|
|
7613
7613
|
width: 100%;
|
|
7614
7614
|
--mdc-slider-tooltip-left: 0;
|
|
@@ -7830,11 +7830,11 @@
|
|
|
7830
7830
|
border: 1px solid;
|
|
7831
7831
|
}
|
|
7832
7832
|
}
|
|
7833
|
-
`,Qy=[Zr,rI];var Ot=class extends Lt(kt(X)){constructor(){super();this.thumbFocused=
|
|
7833
|
+
`,Qy=[Zr,rI];var Ot=class extends Lt(kt(X)){constructor(){super();this.thumbFocused=_o.STATE;this.thumbHovered=_o.STATE;this.range=!1;this.min=_o.MIN;this.max=_o.MAX;this.step=_o.STEP;this.spatialNavEditMode=!1;this.addEventListener("keydown",this.handleKeyEvent.bind(this)),this.addEventListener("mousedown",this.preventChange.bind(this))}updated(t){super.updated(t),(t.has("value")||t.has("step")||t.has("min")||t.has("max")||t.has("disabled")||t.has("softDisabled")||t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.updateTrackStyling(),t.has("softDisabled")&&this.setSoftDisabled(),(t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.initializeRangeSlider()}preventChange(t){this.softDisabled&&(t.preventDefault(),t.stopPropagation())}handleKeyEvent(t){var s;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===Zt.SPATIAL){if(this.softDisabled)return;let l=(s=this.shadowRoot)==null?void 0:s.activeElement,c=(l==null?void 0:l.tagName)==="INPUT";if(t.preventDefault(),!c){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&e===j.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((e===j.ENTER||e===j.ESCAPE||e===j.UP||e===j.DOWN)&&(this.spatialNavEditMode=!1,(e===j.ENTER||e===j.ESCAPE)&&this.keyDownEventHandled()),e===j.LEFT&&(l==null||l.stepDown(),this.keyDownEventHandled(),this.handleInput(l)),e===j.RIGHT&&(l==null||l.stepUp(),this.keyDownEventHandled(),this.handleInput(l)))}else this.softDisabled&&e!==j.TAB&&(t.preventDefault(),t.stopPropagation())}setSoftDisabled(){this.inputElements.forEach(t=>{let e=t;this.softDisabled?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")})}initializeRangeSlider(){this.valueStart===void 0&&(this.valueStart=this.min),this.valueEnd===void 0&&(this.valueEnd=this.max),this.inputElements.forEach(this.handleInput,this)}handleInput(t){let e=Array.from(this.inputElements);if(!e.includes(t))return;if(e.length===1){this.value=Number(t.value);return}let s=e.indexOf(t),l=e[s];if(s===0){if(!this.valueEnd)return;let c=Number(l.value);c>this.valueEnd?(l.value=String(this.valueEnd),this.valueStart=this.valueEnd):c>=this.min&&c<this.valueEnd?this.valueStart=c:c<this.min&&(l.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let c=Number(l.value);c<this.valueStart?(l.value=String(this.valueStart),this.valueEnd=this.valueStart):c<=this.max&&c>this.valueStart?this.valueEnd=c:c>this.max&&(l.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,e){return typeof t=="string"&&t.length>0?S`<mdc-icon
|
|
7834
7834
|
name="${t}"
|
|
7835
7835
|
part="${e}"
|
|
7836
|
-
length-unit="${
|
|
7837
|
-
size="${
|
|
7836
|
+
length-unit="${_o.ICON_LENGTH_UNIT}"
|
|
7837
|
+
size="${_o.ICON_SIZE}"
|
|
7838
7838
|
></mdc-icon>`:null}tooltipTemplate(t,e){let[s,l]=this.inputElements,c=e==="end"?l:s,f=Number(c==null?void 0:c.value);if(typeof f!="number"||Number.isNaN(f)||this.max===this.min||this.disabled||this.hideTooltip)return W;let y=(f-this.min)/(this.max-this.min);return S`<div part="slider-tooltip" aria-hidden="true" style="--mdc-slider-tooltip-left: ${y}">
|
|
7839
7839
|
${t||f}
|
|
7840
7840
|
</div> `}updateTrackStyling(){let t="var(--mdc-slider-progress-color)",e="var(--mdc-slider-track-color)";if((this.disabled||this.softDisabled)&&(t="var(--mds-color-theme-control-active-disabled)",e="var(--mds-color-theme-control-inactive-disabled)"),this.range){if(!this.inputElements[1])return;let s=Number(this.inputElements[0].value),l=Number(this.inputElements[1].value),c=Number(this.inputElements[0].max)||1,f=Math.max(0,Math.min(100,(s-this.min)/(c-this.min)*100)),y=Math.max(0,Math.min(100,(l-this.min)/(c-this.min)*100));this.inputElements[1].style.background=`linear-gradient(
|