@momentum-design/components 0.129.49 → 0.129.50
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 +204 -205
- package/dist/browser/index.js.map +3 -3
- package/dist/components/combobox/combobox.component.d.ts +67 -11
- package/dist/components/combobox/combobox.component.js +174 -30
- package/dist/components/combobox/combobox.styles.js +17 -18
- package/dist/custom-elements.json +51 -377
- package/dist/react/combobox/index.d.ts +3 -4
- package/dist/react/combobox/index.js +3 -4
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var Ry=Object.create;var Qd=Object.defineProperty;var Am=Object.getOwnPropertyDescriptor;var Py=Object.getOwnPropertyNames;var Dy=Object.getPrototypeOf,Fy=Object.prototype.hasOwnProperty;var $y=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var zy=(a,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Py(o))!Fy.call(a,s)&&s!==t&&Qd(a,s,{get:()=>o[s],enumerable:!(r=Am(o,s))||r.enumerable});return a};var Vy=(a,o,t)=>(t=a!=null?Ry(Dy(a)):{},zy(o||!a||!a.__esModule?Qd(t,"default",{value:a,enumerable:!0}):t,a));var p=(a,o,t,r)=>{for(var s=r>1?void 0:r?Am(o,t):o,d=a.length-1,m;d>=0;d--)(m=a[d])&&(s=(r?m(o,t,s):m(s))||s);return r&&s&&Qd(o,t,s),s};var Iu=$y((Rn,vl)=>{typeof navigator<"u"&&function(a,o){typeof Rn=="object"&&typeof vl<"u"?vl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(Rn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},d=function(){return t},m=function(i){o=i},v=function(){return o};function T(e){return document.createElement(e)}function L(e,i){var n,l=e.length,h;for(n=0;n<l;n+=1){h=e[n].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(i.prototype[c]=h[c])}}function U(e,i){return Object.getOwnPropertyDescriptor(e,i)}function q(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].pause()},resume:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].resume()},setRate:function(n){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].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,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(n,l){var h=0,c=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(h=0;h<l;h+=1)c.push(g);return c}function i(n,l){return n==="float32"?new Float32Array(l):n==="int16"?new Int16Array(l):n==="uint8c"?new Uint8ClampedArray(l):e(n,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function it(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(n){return typeof n}:dt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dt(e)}var lt=!0,gt=null,It=null,Ct="",Kt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Wt=Math.pow,te=Math.sqrt,he=Math.floor,Er=Math.max,De=Math.min,ir={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,n=e.length;for(i=0;i<n;i+=1)ir[e[i]]=Math[e[i]]})();function Tr(){return{}}ir.random=Math.random,ir.abs=function(e){var i=dt(e);if(i==="object"&&e.length){var n=it(e.length),l,h=e.length;for(l=0;l<h;l+=1)n[l]=Math.abs(e[l]);return n}return Math.abs(e)};var xr=150,wt=Math.PI/180,ge=.5519;function or(e){Vt=!!e}function sr(e){return Vt?Math.round(e):e}function nr(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function ar(e,i,n,l){this.type=e,this.currentTime=i,this.totalTime=n,this.direction=l<0?-1:1}function Sa(e,i){this.type=e,this.direction=i<0?-1:1}function Np(e,i,n,l){this.type=e,this.currentLoop=n,this.totalLoops=i,this.direction=l<0?-1:1}function Lp(e,i,n){this.type=e,this.firstFrame=i,this.totalFrames=n}function Op(e,i){this.type=e,this.target=i}function Rb(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function Pb(e){this.type="configError",this.nativeError=e}function S0(e,i){this.type=e,this.nativeError=i}var Fe=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function zd(e,i,n){var l,h,c,g,A,b,w,O;switch(g=Math.floor(e*6),A=e*6-g,b=n*(1-i),w=n*(1-A*i),O=n*(1-(1-A)*i),g%6){case 0:l=n,h=O,c=b;break;case 1:l=w,h=n,c=b;break;case 2:l=b,h=n,c=O;break;case 3:l=b,h=w,c=n;break;case 4:l=O,h=b,c=n;break;case 5:l=n,h=b,c=w;break;default:break}return[l,h,c]}function Vd(e,i,n){var l=Math.max(e,i,n),h=Math.min(e,i,n),c=l-h,g,A=l===0?0:c/l,b=l/255;switch(l){case h:g=0;break;case e:g=i-n+c*(i<n?6:0),g/=6*c;break;case i:g=n-e+c*2,g/=6*c;break;case n:g=e-i+c*4,g/=6*c;break;default:break}return[g,A,b]}function Mp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[1]+=i,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),zd(n[0],n[1],n[2])}function Rp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[2]+=i,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),zd(n[0],n[1],n[2])}function Pp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[0]+=i/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),zd(n[0],n[1],n[2])}var I0=function(){var e=[],i,n;for(i=0;i<256;i+=1)n=i.toString(16),e[i]=n.length===1?"0"+n:n;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),Db=function(i){lt=!!i},Fb=function(){return lt},$b=function(i){gt=i},Ia=function(){return gt},_0=function(i){It=i},Dp=function(){return It},_a=function(i){xr=i},tn=function(){return xr},zb=function(i){Ct=i},C0=function(){return Ct};function Tt(e){return document.createElementNS(a,e)}function Ca(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ca=function(n){return typeof n}:Ca=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ca(e)}var en=function(){var e=1,i=[],n,l,h={onmessage:function(){},postMessage:function(M){n({data:M})}},c={postMessage:function(M){h.onmessage({data:M})}};function g(x){if(window.Worker&&window.Blob&&d()){var M=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(M);return new Worker(D)}return n=x,h}function A(){l||(l=g(function(M){function D(){function V(et,I){var P,f,y=et.length,Y,$,at,vt;for(f=0;f<y;f+=1)if(P=et[f],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for($=Et.length,Y=0;Y<$;Y+=1)if(Et[Y].pt.k.i)k(Et[Y].pt.k);else for(vt=Et[Y].pt.k.length,at=0;at<vt;at+=1)Et[Y].pt.k[at].s&&k(Et[Y].pt.k[at].s[0]),Et[Y].pt.k[at].e&&k(Et[Y].pt.k[at].e[0])}P.ty===0?(P.layers=E(P.refId,I),V(P.layers,I)):P.ty===4?S(P.shapes):P.ty===5&&xt(P)}}function N(et,I){if(et){var P=0,f=et.length;for(P=0;P<f;P+=1)et[P].t===1&&(et[P].data.layers=E(et[P].data.refId,I),V(et[P].data.layers,I))}}function C(et,I){for(var P=0,f=I.length;P<f;){if(I[P].id===et)return I[P];P+=1}return null}function E(et,I){var P=C(et,I);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function S(et){var I,P=et.length,f,y;for(I=P-1;I>=0;I-=1)if(et[I].ty==="sh")if(et[I].ks.k.i)k(et[I].ks.k);else for(y=et[I].ks.k.length,f=0;f<y;f+=1)et[I].ks.k[f].s&&k(et[I].ks.k[f].s[0]),et[I].ks.k[f].e&&k(et[I].ks.k[f].e[0]);else et[I].ty==="gr"&&S(et[I].it)}function k(et){var I,P=et.i.length;for(I=0;I<P;I+=1)et.i[I][0]+=et.v[I][0],et.i[I][1]+=et.v[I][1],et.o[I][0]+=et.v[I][0],et.o[I][1]+=et.v[I][1]}function F(et,I){var P=I?I.split("."):[100,100,100];return et[0]>P[0]?!0:P[0]>et[0]?!1:et[1]>P[1]?!0:P[1]>et[1]?!1:et[2]>P[2]?!0:P[2]>et[2]?!1:null}var H=function(){var et=[4,4,14];function I(f){var y=f.t.d;f.t.d={k:[{s:y,t:0}]}}function P(f){var y,Y=f.length;for(y=0;y<Y;y+=1)f[y].ty===5&&I(f[y])}return function(f){if(F(et,f.v)&&(P(f.layers),f.assets)){var y,Y=f.assets.length;for(y=0;y<Y;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),K=function(){var et=[4,7,99];return function(I){if(I.chars&&!F(et,I.v)){var P,f=I.chars.length;for(P=0;P<f;P+=1){var y=I.chars[P];y.data&&y.data.shapes&&(S(y.data.shapes),y.data.ip=0,y.data.op=99999,y.data.st=0,y.data.sr=1,y.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},I.chars[P].t||(y.data.shapes.push({ty:"no"}),y.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),rt=function(){var et=[5,7,15];function I(f){var y=f.t.p;typeof y.a=="number"&&(y.a={a:0,k:y.a}),typeof y.p=="number"&&(y.p={a:0,k:y.p}),typeof y.r=="number"&&(y.r={a:0,k:y.r})}function P(f){var y,Y=f.length;for(y=0;y<Y;y+=1)f[y].ty===5&&I(f[y])}return function(f){if(F(et,f.v)&&(P(f.layers),f.assets)){var y,Y=f.assets.length;for(y=0;y<Y;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),yt=function(){var et=[4,1,9];function I(f){var y,Y=f.length,$,at;for(y=0;y<Y;y+=1)if(f[y].ty==="gr")I(f[y].it);else if(f[y].ty==="fl"||f[y].ty==="st")if(f[y].c.k&&f[y].c.k[0].i)for(at=f[y].c.k.length,$=0;$<at;$+=1)f[y].c.k[$].s&&(f[y].c.k[$].s[0]/=255,f[y].c.k[$].s[1]/=255,f[y].c.k[$].s[2]/=255,f[y].c.k[$].s[3]/=255),f[y].c.k[$].e&&(f[y].c.k[$].e[0]/=255,f[y].c.k[$].e[1]/=255,f[y].c.k[$].e[2]/=255,f[y].c.k[$].e[3]/=255);else f[y].c.k[0]/=255,f[y].c.k[1]/=255,f[y].c.k[2]/=255,f[y].c.k[3]/=255}function P(f){var y,Y=f.length;for(y=0;y<Y;y+=1)f[y].ty===4&&I(f[y].shapes)}return function(f){if(F(et,f.v)&&(P(f.layers),f.assets)){var y,Y=f.assets.length;for(y=0;y<Y;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),mt=function(){var et=[4,4,18];function I(f){var y,Y=f.length,$,at;for(y=Y-1;y>=0;y-=1)if(f[y].ty==="sh")if(f[y].ks.k.i)f[y].ks.k.c=f[y].closed;else for(at=f[y].ks.k.length,$=0;$<at;$+=1)f[y].ks.k[$].s&&(f[y].ks.k[$].s[0].c=f[y].closed),f[y].ks.k[$].e&&(f[y].ks.k[$].e[0].c=f[y].closed);else f[y].ty==="gr"&&I(f[y].it)}function P(f){var y,Y,$=f.length,at,vt,Et,Mt;for(Y=0;Y<$;Y+=1){if(y=f[Y],y.hasMask){var Rt=y.masksProperties;for(vt=Rt.length,at=0;at<vt;at+=1)if(Rt[at].pt.k.i)Rt[at].pt.k.c=Rt[at].cl;else for(Mt=Rt[at].pt.k.length,Et=0;Et<Mt;Et+=1)Rt[at].pt.k[Et].s&&(Rt[at].pt.k[Et].s[0].c=Rt[at].cl),Rt[at].pt.k[Et].e&&(Rt[at].pt.k[Et].e[0].c=Rt[at].cl)}y.ty===4&&I(y.shapes)}}return function(f){if(F(et,f.v)&&(P(f.layers),f.assets)){var y,Y=f.assets.length;for(y=0;y<Y;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}();function st(et){et.__complete||(yt(et),H(et),K(et),rt(et),mt(et),V(et.layers,et.assets),N(et.chars,et.assets),et.__complete=!0)}function xt(et){et.t.a.length===0&&"m"in et.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=K,ct.checkPathProperties=rt,ct.checkShapes=mt,ct.completeLayers=V,ct}if(c.dataManager||(c.dataManager=D()),c.assetLoader||(c.assetLoader=function(){function V(C){var E=C.getResponseHeader("content-type");return E&&C.responseType==="json"&&E.indexOf("json")!==-1||C.response&&Ca(C.response)==="object"?C.response:C.response&&typeof C.response=="string"?JSON.parse(C.response):C.responseText?JSON.parse(C.responseText):null}function N(C,E,S,k){var F,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)F=V(H),S(F);else try{F=V(H),S(F)}catch(K){k&&k(K)}};try{H.open(["G","E","T"].join(""),C,!0)}catch{H.open(["G","E","T"].join(""),E+"/"+C,!0)}H.send()}return{load:N}}()),M.data.type==="loadAnimation")c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})});else if(M.data.type==="complete"){var R=M.data.animation;c.dataManager.completeData(R),c.postMessage({id:M.data.id,payload:R,status:"success"})}else M.data.type==="loadData"&&c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})})}),l.onmessage=function(x){var M=x.data,D=M.id,R=i[D];i[D]=null,M.status==="success"?R.onComplete(M.payload):R.onError&&R.onError()})}function b(x,M){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:M},D}function w(x,M,D){A();var R=b(M,D);l.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function O(x,M,D){A();var R=b(M,D);l.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,M,D){A();var R=b(M,D);l.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:O,completeAnimation:G}}(),Vb=function(){var e=function(){var N=T("canvas");N.width=1,N.height=1;var C=N.getContext("2d");return C.fillStyle="rgba(0,0,0,0)",C.fillRect(0,0,1,1),N}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(N,C,E){var S="";if(N.e)S=N.p;else if(C){var k=N.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),S=C+k}else S=E,S+=N.u?N.u:"",S+=N.p;return S}function h(N){var C=0,E=setInterval((function(){var S=N.getBBox();(S.width||C>500)&&(this._imageLoaded(),clearInterval(E)),C+=1}).bind(this),50)}function c(N){var C=l(N,this.assetsPath,this.path),E=Tt("image");Kt?this.testImageLoaded(E):E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this._elementHelper.append?this._elementHelper.append(E):this._elementHelper.appendChild(E);var S={img:E,assetData:N};return S}function g(N){var C=l(N,this.assetsPath,this.path),E=T("img");E.crossOrigin="anonymous",E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.src=C;var S={img:E,assetData:N};return S}function A(N){var C={assetData:N},E=l(N,this.assetsPath,this.path);return en.loadData(E,(function(S){C.img=S,this._footageLoaded()}).bind(this),(function(){C.img={},this._footageLoaded()}).bind(this)),C}function b(N,C){this.imagesLoadedCb=C;var E,S=N.length;for(E=0;E<S;E+=1)N[E].layers||(!N[E].t||N[E].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(N[E]))):N[E].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(N[E]))))}function w(N){this.path=N||""}function O(N){this.assetsPath=N||""}function G(N){for(var C=0,E=this.images.length;C<E;){if(this.images[C].assetData===N)return this.images[C].img;C+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function M(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(N,C){N==="svg"?(this._elementHelper=C,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=i.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=A.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:b,setAssetsPath:O,setPath:w,loadedImages:M,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:c,imageLoaded:i,footageLoaded:n,setCacheType:R},V}();function Fp(){}Fp.prototype={triggerEvent:function(i,n){if(this._cbs[i])for(var l=this._cbs[i],h=0;h<l.length;h+=1)l[h](n)},addEventListener:function(i,n){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(n),(function(){this.removeEventListener(i,n)}).bind(this)},removeEventListener:function(i,n){if(!n)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,h=this._cbs[i].length;l<h;)this._cbs[i][l]===n&&(this._cbs[i].splice(l,1),l-=1,h-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var Bb=function(){function e(i){for(var n=i.split(`\r
|
|
2
|
-
`),l={},h,c=0,g=0;g<n.length;g+=1)h=n[g].split(":"),h.length===2&&(l[h[0]]=h[1].trim(),c+=1);if(c===0)throw new Error;return l}return function(i){for(var n=[],l=0;l<i.length;l+=1){var h=i[l],c={time:h.tm,duration:h.dr};try{c.payload=JSON.parse(i[l].cm)}catch{try{c.payload=e(i[l].cm)}catch{c.payload={name:i[l].cm}}}n.push(c)}return n}}(),Ub=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===n)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),rn={},Hb=function(i,n){rn[i]=n};function Gb(e){return rn[e]}function Yb(){if(rn.canvas)return"canvas";for(var e in rn)if(rn[e])return e;return""}function on(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?on=function(n){return typeof n}:on=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},on(e)}var ft=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Fe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Fb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Ub(),this.imagePreloader=new Vb,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 ar("drawnFrame",0,0,0),this.expressionsPlugin=Ia()};L([Fp],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=Gb(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),en.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){en.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&on(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},l=e.attributes;n.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",n.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:Yb()||"canvas";var h=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";h==="false"?n.loop=!1:h==="true"?n.loop=!0:h!==""&&(n.loop=parseInt(h,10));var c=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;n.autoplay=c!=="false",n.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var g=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,l=i.length,h=e.layers,c,g=h.length;for(c=0;c<g;c+=1)for(n=0;n<l;){if(i[n].id===h[c].id){i[n]=h[c];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,n=0;n<l;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,en.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Ia();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,en.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Bb(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=Ia();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,l)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&this.goToAndStop(h.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(l,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),on(e[0])==="object"){var n,l=e.length;for(n=0;n<l;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new ar(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new Np(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Sa(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new Lp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Op(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new ar(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Np(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Sa(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Lp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Op(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new Rb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new Pb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ee=function(){var e={},i=[],n=0,l=0,h=0,c=!0,g=!1;function A(I){for(var P=0,f=I.target;P<l;)i[P].animation===f&&(i.splice(P,1),P-=1,l-=1,f.isPaused||G()),P+=1}function b(I,P){if(!I)return null;for(var f=0;f<l;){if(i[f].elem===I&&i[f].elem!==null)return i[f].animation;f+=1}var y=new ft;return x(y,I),y.setData(I,P),y}function w(){var I,P=i.length,f=[];for(I=0;I<P;I+=1)f.push(i[I].animation);return f}function O(){h+=1,yt()}function G(){h-=1}function x(I,P){I.addEventListener("destroy",A),I.addEventListener("_active",O),I.addEventListener("_idle",G),i.push({elem:P,animation:I}),l+=1}function M(I){var P=new ft;return x(P,null),P.setParams(I),P}function D(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setSpeed(I,P)}function R(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setDirection(I,P)}function V(I){var P;for(P=0;P<l;P+=1)i[P].animation.play(I)}function N(I){var P=I-n,f;for(f=0;f<l;f+=1)i[f].animation.advanceTime(P);n=I,h&&!g?window.requestAnimationFrame(N):c=!0}function C(I){n=I,window.requestAnimationFrame(N)}function E(I){var P;for(P=0;P<l;P+=1)i[P].animation.pause(I)}function S(I,P,f){var y;for(y=0;y<l;y+=1)i[y].animation.goToAndStop(I,P,f)}function k(I){var P;for(P=0;P<l;P+=1)i[P].animation.stop(I)}function F(I){var P;for(P=0;P<l;P+=1)i[P].animation.togglePause(I)}function H(I){var P;for(P=l-1;P>=0;P-=1)i[P].animation.destroy(I)}function K(I,P,f){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,$=y.length;for(Y=0;Y<$;Y+=1)f&&y[Y].setAttribute("data-bm-type",f),b(y[Y],I);if(P&&$===0){f||(f="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=T("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",f),at.appendChild(vt),b(vt,I)}}function rt(){var I;for(I=0;I<l;I+=1)i[I].animation.resize()}function yt(){!g&&h&&c&&(window.requestAnimationFrame(C),c=!1)}function mt(){g=!0}function st(){g=!1,yt()}function xt(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setVolume(I,P)}function ct(I){var P;for(P=0;P<l;P+=1)i[P].animation.mute(I)}function et(I){var P;for(P=0;P<l;P+=1)i[P].animation.unmute(I)}return e.registerAnimation=b,e.loadAnimation=M,e.setSpeed=D,e.setDirection=R,e.play=V,e.pause=E,e.stop=k,e.togglePause=F,e.searchAnimations=K,e.resize=rt,e.goToAndStop=S,e.destroy=H,e.freeze=mt,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=et,e.getRegisteredAnimations=w,e}(),sn=function(){var e={};e.getBezierEasing=n;var i={};function n(C,E,S,k,F){var H=F||("bez_"+C+"_"+E+"_"+S+"_"+k).replace(/\./g,"p");if(i[H])return i[H];var K=new N([C,E,S,k]);return i[H]=K,K}var l=4,h=.001,c=1e-7,g=10,A=11,b=1/(A-1),w=typeof Float32Array=="function";function O(C,E){return 1-3*E+3*C}function G(C,E){return 3*E-6*C}function x(C){return 3*C}function M(C,E,S){return((O(E,S)*C+G(E,S))*C+x(E))*C}function D(C,E,S){return 3*O(E,S)*C*C+2*G(E,S)*C+x(E)}function R(C,E,S,k,F){var H,K,rt=0;do K=E+(S-E)/2,H=M(K,k,F)-C,H>0?S=K:E=K;while(Math.abs(H)>c&&++rt<g);return K}function V(C,E,S,k){for(var F=0;F<l;++F){var H=D(E,S,k);if(H===0)return E;var K=M(E,S,k)-C;E-=K/H}return E}function N(C){this._p=C,this._mSampleValues=w?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(E){var S=this._p[0],k=this._p[1],F=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),S===k&&F===H?E:E===0?0:E===1?1:M(this._getTForX(E),k,H)},_precompute:function(){var E=this._p[0],S=this._p[1],k=this._p[2],F=this._p[3];this._precomputed=!0,(E!==S||k!==F)&&this._calcSampleValues()},_calcSampleValues:function(){for(var E=this._p[0],S=this._p[2],k=0;k<A;++k)this._mSampleValues[k]=M(k*b,E,S)},_getTForX:function(E){for(var S=this._p[0],k=this._p[2],F=this._mSampleValues,H=0,K=1,rt=A-1;K!==rt&&F[K]<=E;++K)H+=b;--K;var yt=(E-F[K])/(F[K+1]-F[K]),mt=H+yt*b,st=D(mt,S,k);return st>=h?V(E,mt,S,k):st===0?mt:R(E,H,H+b,S,k)}},e}(),$p=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),wa=function(){return function(e,i,n){var l=0,h=e,c=it(h),g={newElement:A,release:b};function A(){var w;return l?(l-=1,w=c[l]):w=i(),w}function b(w){l===h&&(c=$p.double(c),h*=2),n&&n(w),c[l]=w,l+=1}return g}}(),zp=function(){function e(){return{addedLength:0,percents:X("float32",tn()),lengths:X("float32",tn())}}return wa(8,e)}(),Vp=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var l,h=n.lengths.length;for(l=0;l<h;l+=1)zp.release(n.lengths[l]);n.lengths.length=0}return wa(8,e,i)}();function Kb(){var e=Math;function i(x,M,D,R,V,N){var C=x*R+M*V+D*N-V*R-N*x-D*M;return C>-.001&&C<.001}function n(x,M,D,R,V,N,C,E,S){if(D===0&&N===0&&S===0)return i(x,M,R,V,C,E);var k=e.sqrt(e.pow(R-x,2)+e.pow(V-M,2)+e.pow(N-D,2)),F=e.sqrt(e.pow(C-x,2)+e.pow(E-M,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(C-R,2)+e.pow(E-V,2)+e.pow(S-N,2)),K;return k>F?k>H?K=k-F-H:K=H-F-k:H>F?K=H-F-k:K=F-k-H,K>-1e-4&&K<1e-4}var l=function(){return function(x,M,D,R){var V=tn(),N,C,E,S,k,F=0,H,K=[],rt=[],yt=zp.newElement();for(E=D.length,N=0;N<V;N+=1){for(k=N/(V-1),H=0,C=0;C<E;C+=1)S=Wt(1-k,3)*x[C]+3*Wt(1-k,2)*k*D[C]+3*(1-k)*Wt(k,2)*R[C]+Wt(k,3)*M[C],K[C]=S,rt[C]!==null&&(H+=Wt(K[C]-rt[C],2)),rt[C]=K[C];H&&(H=te(H),F+=H),yt.percents[N]=k,yt.lengths[N]=F}return yt.addedLength=F,yt}}();function h(x){var M=Vp.newElement(),D=x.c,R=x.v,V=x.o,N=x.i,C,E=x._length,S=M.lengths,k=0;for(C=0;C<E-1;C+=1)S[C]=l(R[C],R[C+1],V[C],N[C+1]),k+=S[C].addedLength;return D&&E&&(S[C]=l(R[C],R[0],V[C],N[0]),k+=S[C].addedLength),M.totalLength=k,M}function c(x){this.segmentLength=0,this.points=new Array(x)}function g(x,M){this.partialLength=x,this.point=M}var A=function(){var x={};return function(M,D,R,V){var N=(M[0]+"_"+M[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!x[N]){var C=tn(),E,S,k,F,H,K=0,rt,yt,mt=null;M.length===2&&(M[0]!==D[0]||M[1]!==D[1])&&i(M[0],M[1],D[0],D[1],M[0]+R[0],M[1]+R[1])&&i(M[0],M[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(C=2);var st=new c(C);for(k=R.length,E=0;E<C;E+=1){for(yt=it(k),H=E/(C-1),rt=0,S=0;S<k;S+=1)F=Wt(1-H,3)*M[S]+3*Wt(1-H,2)*H*(M[S]+R[S])+3*(1-H)*Wt(H,2)*(D[S]+V[S])+Wt(H,3)*D[S],yt[S]=F,mt!==null&&(rt+=Wt(yt[S]-mt[S],2));rt=te(rt),K+=rt,st.points[E]=new g(rt,yt),mt=yt}st.segmentLength=K,x[N]=st}return x[N]}}();function b(x,M){var D=M.percents,R=M.lengths,V=D.length,N=he((V-1)*x),C=x*M.addedLength,E=0;if(N===V-1||N===0||C===R[N])return D[N];for(var S=R[N]>C?-1:1,k=!0;k;)if(R[N]<=C&&R[N+1]>C?(E=(C-R[N])/(R[N+1]-R[N]),k=!1):N+=S,N<0||N>=V-1){if(N===V-1)return D[N];k=!1}return D[N]+(D[N+1]-D[N])*E}function w(x,M,D,R,V,N){var C=b(V,N),E=1-C,S=e.round((E*E*E*x[0]+(C*E*E+E*C*E+E*E*C)*D[0]+(C*C*E+E*C*C+C*E*C)*R[0]+C*C*C*M[0])*1e3)/1e3,k=e.round((E*E*E*x[1]+(C*E*E+E*C*E+E*E*C)*D[1]+(C*C*E+E*C*C+C*E*C)*R[1]+C*C*C*M[1])*1e3)/1e3;return[S,k]}var O=X("float32",8);function G(x,M,D,R,V,N,C){V<0?V=0:V>1&&(V=1);var E=b(V,C);N=N>1?1:N;var S=b(N,C),k,F=x.length,H=1-E,K=1-S,rt=H*H*H,yt=E*H*H*3,mt=E*E*H*3,st=E*E*E,xt=H*H*K,ct=E*H*K+H*E*K+H*H*S,et=E*E*K+H*E*S+E*H*S,I=E*E*S,P=H*K*K,f=E*K*K+H*S*K+H*K*S,y=E*S*K+H*S*S+E*K*S,Y=E*S*S,$=K*K*K,at=S*K*K+K*S*K+K*K*S,vt=S*S*K+K*S*S+S*K*S,Et=S*S*S;for(k=0;k<F;k+=1)O[k*4]=e.round((rt*x[k]+yt*D[k]+mt*R[k]+st*M[k])*1e3)/1e3,O[k*4+1]=e.round((xt*x[k]+ct*D[k]+et*R[k]+I*M[k])*1e3)/1e3,O[k*4+2]=e.round((P*x[k]+f*D[k]+y*R[k]+Y*M[k])*1e3)/1e3,O[k*4+3]=e.round(($*x[k]+at*D[k]+vt*R[k]+Et*M[k])*1e3)/1e3;return O}return{getSegmentsLength:h,getNewSegment:G,getPointInSegment:w,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:n}}var Rr=Kb(),co=r,Bp=Math.abs;function Up(e,i){var n=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=i.lastIndex,c=h,g=this.keyframes.length-1,A=!0,b,w,O;A;){if(b=this.keyframes[c],w=this.keyframes[c+1],c===g-1&&e>=w.t-n){b.h&&(b=w),h=0;break}if(w.t-n>e){h=c;break}c<g-1?c+=1:(h=0,A=!1)}O=this.keyframesMetadata[c]||{};var G,x,M,D,R,V,N=w.t-n,C=b.t-n,E;if(b.to){O.bezierData||(O.bezierData=Rr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var S=O.bezierData;if(e>=N||e<C){var k=e>=N?S.points.length-1:0;for(x=S.points[k].point.length,G=0;G<x;G+=1)l[G]=S.points[k].point[G]}else{O.__fnct?V=O.__fnct:(V=sn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,O.__fnct=V),M=V((e-C)/(N-C));var F=S.segmentLength*M,H,K=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastPoint:0,A=!0,D=S.points.length;A;){if(K+=S.points[R].partialLength,F===0||M===0||R===S.points.length-1){for(x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G];break}else if(F>=K&&F<K+S.points[R+1].partialLength){for(H=(F-K)/S.points[R+1].partialLength,x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G]+(S.points[R+1].point[G]-S.points[R].point[G])*H;break}R<D-1?R+=1:A=!1}i._lastPoint=R,i._lastAddedLength=K-S.points[R].partialLength,i._lastKeyframeIndex=c}}else{var rt,yt,mt,st,xt;if(g=b.s.length,E=w.s||b.e,this.sh&&b.h!==1)if(e>=N)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=C)l[0]=b.s[0],l[1]=b.s[1],l[2]=b.s[2];else{var ct=Hp(b.s),et=Hp(E),I=(e-C)/(N-C);jb(l,Wb(ct,et,I))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=N?M=1:e<C?M=0:(b.o.x.constructor===Array?(O.__fnct||(O.__fnct=[]),O.__fnct[c]?V=O.__fnct[c]:(rt=b.o.x[c]===void 0?b.o.x[0]:b.o.x[c],yt=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],mt=b.i.x[c]===void 0?b.i.x[0]:b.i.x[c],st=b.i.y[c]===void 0?b.i.y[0]:b.i.y[c],V=sn.getBezierEasing(rt,yt,mt,st).get,O.__fnct[c]=V)):O.__fnct?V=O.__fnct:(rt=b.o.x,yt=b.o.y,mt=b.i.x,st=b.i.y,V=sn.getBezierEasing(rt,yt,mt,st).get,b.keyframeMetadata=V),M=V((e-C)/(N-C)))),E=w.s||b.e,xt=b.h===1?b.s[c]:b.s[c]+(E[c]-b.s[c])*M,this.propType==="multidimensional"?l[c]=xt:l=xt}return i.lastIndex=h,l}function Wb(e,i,n){var l=[],h=e[0],c=e[1],g=e[2],A=e[3],b=i[0],w=i[1],O=i[2],G=i[3],x,M,D,R,V;return M=h*b+c*w+g*O+A*G,M<0&&(M=-M,b=-b,w=-w,O=-O,G=-G),1-M>1e-6?(x=Math.acos(M),D=Math.sin(x),R=Math.sin((1-n)*x)/D,V=Math.sin(n*x)/D):(R=1-n,V=n),l[0]=R*h+V*b,l[1]=R*c+V*w,l[2]=R*g+V*O,l[3]=R*A+V*G,l}function jb(e,i){var n=i[0],l=i[1],h=i[2],c=i[3],g=Math.atan2(2*l*c-2*n*h,1-2*l*l-2*h*h),A=Math.asin(2*n*l+2*h*c),b=Math.atan2(2*n*c-2*l*h,1-2*n*n-2*h*h);e[0]=g/wt,e[1]=A/wt,e[2]=b/wt}function Hp(e){var i=e[0]*wt,n=e[1]*wt,l=e[2]*wt,h=Math.cos(i/2),c=Math.cos(n/2),g=Math.cos(l/2),A=Math.sin(i/2),b=Math.sin(n/2),w=Math.sin(l/2),O=h*c*g-A*b*w,G=A*b*g+h*c*w,x=A*c*g+h*b*w,M=h*b*g-A*c*w;return[G,x,M,O]}function Gp(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==co&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function ka(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Bp(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,l=this.v.length;n<l;)i=e[n]*this.mult,Bp(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function Na(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function La(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function qb(e,i,n,l){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Na,this.setVValue=ka,this.addEffect=La}function Xb(e,i,n,l){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,c=i.k.length;for(this.v=X("float32",c),this.pv=X("float32",c),this.vel=X("float32",c),h=0;h<c;h+=1)this.v[h]=i.k[h]*this.mult,this.pv[h]=i.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Na,this.setVValue=ka,this.addEffect=La}function Zb(e,i,n,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:co,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=co,this.pv=co,this._isFirstFrame=!0,this.getValue=Na,this.setVValue=ka,this.interpolateValue=Up,this.effectsSequence=[Gp.bind(this)],this.addEffect=La}function Qb(e,i,n,l){this.propType="multidimensional";var h,c=i.k.length,g,A,b,w;for(h=0;h<c-1;h+=1)i.k[h].to&&i.k[h].s&&i.k[h+1]&&i.k[h+1].s&&(g=i.k[h].s,A=i.k[h+1].s,b=i.k[h].to,w=i.k[h].ti,(g.length===2&&!(g[0]===A[0]&&g[1]===A[1])&&Rr.pointOnLine2D(g[0],g[1],A[0],A[1],g[0]+b[0],g[1]+b[1])&&Rr.pointOnLine2D(g[0],g[1],A[0],A[1],A[0]+w[0],A[1]+w[1])||g.length===3&&!(g[0]===A[0]&&g[1]===A[1]&&g[2]===A[2])&&Rr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Rr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],A[0]+w[0],A[1]+w[1],A[2]+w[2]))&&(i.k[h].to=null,i.k[h].ti=null),g[0]===A[0]&&g[1]===A[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===A[2]&&b[2]===0&&w[2]===0)&&(i.k[h].to=null,i.k[h].ti=null));this.effectsSequence=[Gp.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=Na,this.setVValue=ka,this.interpolateValue=Up,this.frameId=-1;var O=i.k[0].s.length;for(this.v=X("float32",O),this.pv=X("float32",O),h=0;h<O;h+=1)this.v[h]=co,this.pv[h]=co;this._caching={lastFrame:co,lastIndex:0,value:X("float32",O)},this.addEffect=La}var nt=function(){function e(n,l,h,c,g){l.sid&&(l=n.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new qb(n,l,c,g);else if(typeof l.k[0]=="number")A=new Xb(n,l,c,g);else switch(h){case 0:A=new Zb(n,l,c,g);break;case 1:A=new Qb(n,l,c,g);break;default:break}return A.effectsSequence.length&&g.addDynamicProperty(A),A}var i={getProp:e};return i}();function pe(){}pe.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var ho=function(){function e(){return X("float32",2)}return wa(8,e)}();function Jr(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}Jr.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=ho.newElement(),this.o[n]=ho.newElement(),this.i[n]=ho.newElement(),n+=1},Jr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Jr.prototype.doubleArrayLength=function(){this.v=this.v.concat(it(this._maxLength)),this.i=this.i.concat(it(this._maxLength)),this.o=this.o.concat(it(this._maxLength)),this._maxLength*=2},Jr.prototype.setXYAt=function(e,i,n,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[l]||c[l]&&!h)&&(c[l]=ho.newElement()),c[l][0]=e,c[l][1]=i},Jr.prototype.setTripleAt=function(e,i,n,l,h,c,g,A){this.setXYAt(e,i,"v",g,A),this.setXYAt(n,l,"o",g,A),this.setXYAt(h,c,"i",g,A)},Jr.prototype.reverse=function(){var e=new Jr;e.setPathData(this.c,this._length);var i=this.v,n=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],n[0][0],n[0][1],0,!1),h=1);var c=this._length-1,g=this._length,A;for(A=h;A<g;A+=1)e.setTripleAt(i[c][0],i[c][1],l[c][0],l[c][1],n[c][0],n[c][1],A,!1),c-=1;return e},Jr.prototype.length=function(){return this._length};var be=function(){function e(){return new Jr}function i(h){var c=h._length,g;for(g=0;g<c;g+=1)ho.release(h.v[g]),ho.release(h.i[g]),ho.release(h.o[g]),h.v[g]=null,h.i[g]=null,h.o[g]=null;h._length=0,h.c=!1}function n(h){var c=l.newElement(),g,A=h._length===void 0?h.v.length:h._length;for(c.setLength(A),c.c=h.c,g=0;g<A;g+=1)c.setTripleAt(h.v[g][0],h.v[g][1],h.o[g][0],h.o[g][1],h.i[g][0],h.i[g][1],g);return c}var l=wa(4,e,i);return l.clone=n,l}();function Bd(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}Bd.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(it(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Bd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)be.release(this.shapes[e]);this._length=0};var os=function(){var e={newShapeCollection:h,release:c},i=0,n=4,l=it(n);function h(){var g;return i?(i-=1,g=l[i]):g=new Bd,g}function c(g){var A,b=g._length;for(A=0;A<b;A+=1)be.release(g.shapes[A]);g._length=0,i===n&&(l=$p.double(l),n*=2),l[i]=g,i+=1}return e}(),Oa=function(){var e=-999999;function i(N,C,E){var S=E.lastIndex,k,F,H,K,rt,yt,mt,st,xt,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)k=ct[0].s[0],H=!0,S=0;else if(N>=ct[ct.length-1].t-this.offsetTime)k=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var et=S,I=ct.length-1,P=!0,f,y,Y;P&&(f=ct[et],y=ct[et+1],!(y.t-this.offsetTime>N));)et<I-1?et+=1:P=!1;if(Y=this.keyframesMetadata[et]||{},H=f.h===1,S=et,!H){if(N>=y.t-this.offsetTime)st=1;else if(N<f.t-this.offsetTime)st=0;else{var $;Y.__fnct?$=Y.__fnct:($=sn.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,Y.__fnct=$),st=$((N-(f.t-this.offsetTime))/(y.t-this.offsetTime-(f.t-this.offsetTime)))}F=y.s?y.s[0]:f.e[0]}k=f.s[0]}for(yt=C._length,mt=k.i[0].length,E.lastIndex=S,K=0;K<yt;K+=1)for(rt=0;rt<mt;rt+=1)xt=H?k.i[K][rt]:k.i[K][rt]+(F.i[K][rt]-k.i[K][rt])*st,C.i[K][rt]=xt,xt=H?k.o[K][rt]:k.o[K][rt]+(F.o[K][rt]-k.o[K][rt])*st,C.o[K][rt]=xt,xt=H?k.v[K][rt]:k.v[K][rt]+(F.v[K][rt]-k.v[K][rt])*st,C.v[K][rt]=xt}function n(){var N=this.comp.renderedFrame-this.offsetTime,C=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<C&&N<C||S>E&&N>E)||(this._caching.lastIndex=S<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function l(){this.paths=this.localShapeCollection}function h(N,C){if(N._length!==C._length||N.c!==C.c)return!1;var E,S=N._length;for(E=0;E<S;E+=1)if(N.v[E][0]!==C.v[E][0]||N.v[E][1]!==C.v[E][1]||N.o[E][0]!==C.o[E][0]||N.o[E][1]!==C.o[E][1]||N.i[E][0]!==C.i[E][0]||N.i[E][1]!==C.i[E][1])return!1;return!0}function c(N){h(this.v,N)||(this.v=be.clone(N),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 N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var C,E=this.effectsSequence.length;for(C=0;C<E;C+=1)N=this.effectsSequence[C](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(N,C,E){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=C,this.k=!1,this.kf=!1,this._mdf=!1;var S=E===3?C.pt.k:C.ks.k;this.v=be.clone(S),this.pv=be.clone(this.v),this.localShapeCollection=os.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function b(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=g,A.prototype.setVValue=c,A.prototype.addEffect=b;function w(N,C,E){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=E===3?C.pt.k:C.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=be.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=be.clone(this.v),this.localShapeCollection=os.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=i,w.prototype.setVValue=c,w.prototype.addEffect=b;var O=function(){var N=ge;function C(E,S){this.v=be.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=os.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=nt.getProp(E,S.p,1,0,this),this.s=nt.getProp(E,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return C.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],k=this.p.v[1],F=this.s.v[0]/2,H=this.s.v[1]/2,K=this.d!==3,rt=this.v;rt.v[0][0]=S,rt.v[0][1]=k-H,rt.v[1][0]=K?S+F:S-F,rt.v[1][1]=k,rt.v[2][0]=S,rt.v[2][1]=k+H,rt.v[3][0]=K?S-F:S+F,rt.v[3][1]=k,rt.i[0][0]=K?S-F*N:S+F*N,rt.i[0][1]=k-H,rt.i[1][0]=K?S+F:S-F,rt.i[1][1]=k-H*N,rt.i[2][0]=K?S+F*N:S-F*N,rt.i[2][1]=k+H,rt.i[3][0]=K?S-F:S+F,rt.i[3][1]=k+H*N,rt.o[0][0]=K?S+F*N:S-F*N,rt.o[0][1]=k-H,rt.o[1][0]=K?S+F:S-F,rt.o[1][1]=k+H*N,rt.o[2][0]=K?S-F*N:S+F*N,rt.o[2][1]=k+H,rt.o[3][0]=K?S-F:S+F,rt.o[3][1]=k-H*N}},L([pe],C),C}(),G=function(){function N(C,E){this.v=be.newElement(),this.v.setPathData(!0,0),this.elem=C,this.comp=C.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),E.sy===1?(this.ir=nt.getProp(C,E.ir,0,0,this),this.is=nt.getProp(C,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(C,E.pt,0,0,this),this.p=nt.getProp(C,E.p,1,0,this),this.r=nt.getProp(C,E.r,0,wt,this),this.or=nt.getProp(C,E.or,0,0,this),this.os=nt.getProp(C,E.os,0,.01,this),this.localShapeCollection=os.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return N.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var E=Math.floor(this.pt.v)*2,S=Math.PI*2/E,k=!0,F=this.or.v,H=this.ir.v,K=this.os.v,rt=this.is.v,yt=2*Math.PI*F/(E*2),mt=2*Math.PI*H/(E*2),st,xt,ct,et,I=-Math.PI/2;I+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<E;st+=1){xt=k?F:H,ct=k?K:rt,et=k?yt:mt;var f=xt*Math.cos(I),y=xt*Math.sin(I),Y=f===0&&y===0?0:y/Math.sqrt(f*f+y*y),$=f===0&&y===0?0:-f/Math.sqrt(f*f+y*y);f+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(f,y,f-Y*et*ct*P,y-$*et*ct*P,f+Y*et*ct*P,y+$*et*ct*P,st,!0),k=!k,I+=S*P}},convertPolygonToPath:function(){var E=Math.floor(this.pt.v),S=Math.PI*2/E,k=this.or.v,F=this.os.v,H=2*Math.PI*k/(E*4),K,rt=-Math.PI*.5,yt=this.data.d===3?-1:1;for(rt+=this.r.v,this.v._length=0,K=0;K<E;K+=1){var mt=k*Math.cos(rt),st=k*Math.sin(rt),xt=mt===0&&st===0?0:st/Math.sqrt(mt*mt+st*st),ct=mt===0&&st===0?0:-mt/Math.sqrt(mt*mt+st*st);mt+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(mt,st,mt-xt*H*F*yt,st-ct*H*F*yt,mt+xt*H*F*yt,st+ct*H*F*yt,K,!0),rt+=S*yt}this.paths.length=0,this.paths[0]=this.v}},L([pe],N),N}(),x=function(){function N(C,E){this.v=be.newElement(),this.v.c=!0,this.localShapeCollection=os.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=C,this.comp=C.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),this.p=nt.getProp(C,E.p,1,0,this),this.s=nt.getProp(C,E.s,1,0,this),this.r=nt.getProp(C,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var E=this.p.v[0],S=this.p.v[1],k=this.s.v[0]/2,F=this.s.v[1]/2,H=De(k,F,this.r.v),K=H*(1-ge);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+H,E+k,S-F+K,0,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-K,E+k,S+F-H,1,!0),H!==0?(this.v.setTripleAt(E+k-H,S+F,E+k-H,S+F,E+k-K,S+F,2,!0),this.v.setTripleAt(E-k+H,S+F,E-k+K,S+F,E-k+H,S+F,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-H,E-k,S+F-K,4,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+K,E-k,S-F+H,5,!0),this.v.setTripleAt(E-k+H,S-F,E-k+H,S-F,E-k+K,S-F,6,!0),this.v.setTripleAt(E+k-H,S-F,E+k-K,S-F,E+k-H,S-F,7,!0)):(this.v.setTripleAt(E-k,S+F,E-k+K,S+F,E-k,S+F,2),this.v.setTripleAt(E-k,S-F,E-k,S-F+K,E-k,S-F,3))):(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+K,E+k,S-F+H,0,!0),H!==0?(this.v.setTripleAt(E+k-H,S-F,E+k-H,S-F,E+k-K,S-F,1,!0),this.v.setTripleAt(E-k+H,S-F,E-k+K,S-F,E-k+H,S-F,2,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+H,E-k,S-F+K,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-K,E-k,S+F-H,4,!0),this.v.setTripleAt(E-k+H,S+F,E-k+H,S+F,E-k+K,S+F,5,!0),this.v.setTripleAt(E+k-H,S+F,E+k-K,S+F,E+k-H,S+F,6,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-H,E+k,S+F-K,7,!0)):(this.v.setTripleAt(E-k,S-F,E-k+K,S-F,E-k,S-F,1,!0),this.v.setTripleAt(E-k,S+F,E-k,S+F-K,E-k,S+F,2,!0),this.v.setTripleAt(E+k,S+F,E+k-K,S+F,E+k,S+F,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},L([pe],N),N}();function M(N,C,E){var S;if(E===3||E===4){var k=E===3?C.pt:C.ks,F=k.k;F.length?S=new w(N,C,E):S=new A(N,C,E)}else E===5?S=new x(N,C):E===6?S=new O(N,C):E===7&&(S=new G(N,C));return S.k&&N.addDynamicProperty(S),S}function D(){return A}function R(){return w}var V={};return V.getShapeProp=M,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=R,V}();var ye=function(){var e=Math.cos,i=Math.sin,n=Math.tan,l=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function g(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(1,0,0,0,0,y,-Y,0,0,Y,y,0,0,0,0,1)}function A(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,0,Y,0,0,1,0,0,-Y,0,y,0,0,0,0,1)}function b(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function w(f,y){return this._t(1,y,f,1,0,0)}function O(f,y){return this.shear(n(f),n(y))}function G(f,y){var Y=e(y),$=i(y);return this._t(Y,$,0,0,-$,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(f),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-$,0,0,$,Y,0,0,0,0,1,0,0,0,0,1)}function x(f,y,Y){return!Y&&Y!==0&&(Y=1),f===1&&y===1&&Y===1?this:this._t(f,0,0,0,0,y,0,0,0,0,Y,0,0,0,0,1)}function M(f,y,Y,$,at,vt,Et,Mt,Rt,re,ze,Dr,Ve,me,Ze,Ft){return this.props[0]=f,this.props[1]=y,this.props[2]=Y,this.props[3]=$,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Mt,this.props[8]=Rt,this.props[9]=re,this.props[10]=ze,this.props[11]=Dr,this.props[12]=Ve,this.props[13]=me,this.props[14]=Ze,this.props[15]=Ft,this}function D(f,y,Y){return Y=Y||0,f!==0||y!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,f,y,Y,1):this}function R(f,y,Y,$,at,vt,Et,Mt,Rt,re,ze,Dr,Ve,me,Ze,Ft){var ht=this.props;if(f===1&&y===0&&Y===0&&$===0&&at===0&&vt===1&&Et===0&&Mt===0&&Rt===0&&re===0&&ze===1&&Dr===0)return ht[12]=ht[12]*f+ht[15]*Ve,ht[13]=ht[13]*vt+ht[15]*me,ht[14]=ht[14]*ze+ht[15]*Ze,ht[15]*=Ft,this._identityCalculated=!1,this;var ri=ht[0],Li=ht[1],ii=ht[2],Fr=ht[3],oi=ht[4],si=ht[5],Be=ht[6],Oi=ht[7],Mi=ht[8],Sr=ht[9],Ri=ht[10],Ir=ht[11],fo=ht[12],Ba=ht[13],Ua=ht[14],Ha=ht[15];return ht[0]=ri*f+Li*at+ii*Rt+Fr*Ve,ht[1]=ri*y+Li*vt+ii*re+Fr*me,ht[2]=ri*Y+Li*Et+ii*ze+Fr*Ze,ht[3]=ri*$+Li*Mt+ii*Dr+Fr*Ft,ht[4]=oi*f+si*at+Be*Rt+Oi*Ve,ht[5]=oi*y+si*vt+Be*re+Oi*me,ht[6]=oi*Y+si*Et+Be*ze+Oi*Ze,ht[7]=oi*$+si*Mt+Be*Dr+Oi*Ft,ht[8]=Mi*f+Sr*at+Ri*Rt+Ir*Ve,ht[9]=Mi*y+Sr*vt+Ri*re+Ir*me,ht[10]=Mi*Y+Sr*Et+Ri*ze+Ir*Ze,ht[11]=Mi*$+Sr*Mt+Ri*Dr+Ir*Ft,ht[12]=fo*f+Ba*at+Ua*Rt+Ha*Ve,ht[13]=fo*y+Ba*vt+Ua*re+Ha*me,ht[14]=fo*Y+Ba*Et+Ua*ze+Ha*Ze,ht[15]=fo*$+Ba*Mt+Ua*Dr+Ha*Ft,this._identityCalculated=!1,this}function V(f){var y=f.props;return this.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15])}function N(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function C(f){for(var y=0;y<16;){if(f.props[y]!==this.props[y])return!1;y+=1}return!0}function E(f){var y;for(y=0;y<16;y+=1)f.props[y]=this.props[y];return f}function S(f){var y;for(y=0;y<16;y+=1)this.props[y]=f[y]}function k(f,y,Y){return{x:f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],y:f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],z:f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}}function F(f,y,Y){return f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12]}function H(f,y,Y){return f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13]}function K(f,y,Y){return f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}function rt(){var f=this.props[0]*this.props[5]-this.props[1]*this.props[4],y=this.props[5]/f,Y=-this.props[1]/f,$=-this.props[4]/f,at=this.props[0]/f,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/f,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/f,Mt=new ye;return Mt.props[0]=y,Mt.props[1]=Y,Mt.props[4]=$,Mt.props[5]=at,Mt.props[12]=vt,Mt.props[13]=Et,Mt}function yt(f){var y=this.getInverseMatrix();return y.applyToPointArray(f[0],f[1],f[2]||0)}function mt(f){var y,Y=f.length,$=[];for(y=0;y<Y;y+=1)$[y]=yt(f[y]);return $}function st(f,y,Y){var $=X("float32",6);if(this.isIdentity())$[0]=f[0],$[1]=f[1],$[2]=y[0],$[3]=y[1],$[4]=Y[0],$[5]=Y[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Mt=this.props[5],Rt=this.props[12],re=this.props[13];$[0]=f[0]*at+f[1]*Et+Rt,$[1]=f[0]*vt+f[1]*Mt+re,$[2]=y[0]*at+y[1]*Et+Rt,$[3]=y[0]*vt+y[1]*Mt+re,$[4]=Y[0]*at+Y[1]*Et+Rt,$[5]=Y[0]*vt+Y[1]*Mt+re}return $}function xt(f,y,Y){var $;return this.isIdentity()?$=[f,y,Y]:$=[f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]],$}function ct(f,y){if(this.isIdentity())return f+","+y;var Y=this.props;return Math.round((f*Y[0]+y*Y[4]+Y[12])*100)/100+","+Math.round((f*Y[1]+y*Y[5]+Y[13])*100)/100}function et(){for(var f=0,y=this.props,Y="matrix3d(",$=1e4;f<16;)Y+=l(y[f]*$)/$,Y+=f===15?")":",",f+=1;return Y}function I(f){var y=1e4;return f<1e-6&&f>0||f>-1e-6&&f<0?l(f*y)/y:f}function P(){var f=this.props,y=I(f[0]),Y=I(f[1]),$=I(f[4]),at=I(f[5]),vt=I(f[12]),Et=I(f[13]);return"matrix("+y+","+Y+","+$+","+at+","+vt+","+Et+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=g,this.rotateY=A,this.rotateZ=b,this.skew=O,this.skewFromAxis=G,this.shear=w,this.scale=x,this.setTransform=M,this.translate=D,this.transform=R,this.multiply=V,this.applyToPoint=k,this.applyToX=F,this.applyToY=H,this.applyToZ=K,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=et,this.to2dCSS=P,this.clone=E,this.cloneFromProps=S,this.equals=C,this.inversePoints=mt,this.inversePoint=yt,this.getInverseMatrix=rt,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function Ma(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ma=function(n){return typeof n}:Ma=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ma(e)}var Pt={},Ra="__[STANDALONE]__",Yp="__[ANIMATIONDATA]__",Kp="";function Jb(e){m(e)}function Wp(){Ra===!0?ee.searchAnimations(Yp,Ra,Kp):ee.searchAnimations()}function ty(e){Db(e)}function ey(e){zb(e)}function ry(e){return Ra===!0&&(e.animationData=JSON.parse(Yp)),ee.loadAnimation(e)}function iy(e){if(typeof e=="string")switch(e){case"high":_a(200);break;default:case"medium":_a(50);break;case"low":_a(10);break}else!isNaN(e)&&e>1&&_a(e);tn()>=50?or(!1):or(!0)}function oy(){return typeof navigator<"u"}function sy(e,i){e==="expressions"&&$b(i)}function ny(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return Oa;case"matrix":return ye;default:return null}}Pt.play=ee.play,Pt.pause=ee.pause,Pt.setLocationHref=Jb,Pt.togglePause=ee.togglePause,Pt.setSpeed=ee.setSpeed,Pt.setDirection=ee.setDirection,Pt.stop=ee.stop,Pt.searchAnimations=Wp,Pt.registerAnimation=ee.registerAnimation,Pt.loadAnimation=ry,Pt.setSubframeRendering=ty,Pt.resize=ee.resize,Pt.goToAndStop=ee.goToAndStop,Pt.destroy=ee.destroy,Pt.setQuality=iy,Pt.inBrowser=oy,Pt.installPlugin=sy,Pt.freeze=ee.freeze,Pt.unfreeze=ee.unfreeze,Pt.setVolume=ee.setVolume,Pt.mute=ee.mute,Pt.unmute=ee.unmute,Pt.getRegisteredAnimations=ee.getRegisteredAnimations,Pt.useWebWorker=s,Pt.setIDPrefix=ey,Pt.__getFactory=ny,Pt.version="5.12.2";function ay(){document.readyState==="complete"&&(clearInterval(cy),Wp())}function ly(e){for(var i=jp.split("&"),n=0;n<i.length;n+=1){var l=i[n].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var jp="";if(Ra){var qp=document.getElementsByTagName("script"),dy=qp.length-1,Xp=qp[dy]||{src:""};jp=Xp.src?Xp.src.replace(/^[^\?]+\??/,""):"",Kp=ly("renderer")}var cy=setInterval(ay,100);try{!((typeof Rn>"u"?"undefined":Ma(Rn))==="object"&&typeof vl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Pt)}catch{}var Ii=function(){var e={},i={};e.registerModifier=n,e.getModifier=l;function n(h,c){i[h]||(i[h]=c)}function l(h,c,g){return new i[h](c,g)}return e}();function lr(){}lr.prototype.initModifierProperties=function(){},lr.prototype.addShapeToModifier=function(){},lr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:os.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},lr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},lr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([pe],lr);function Ar(){}L([lr],Ar),Ar.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ar.prototype.addShapeToModifier=function(e){e.pathsData=[]},Ar.prototype.calculateShapeEdges=function(e,i,n,l,h){var c=[];i<=1?c.push({s:e,e:i}):e>=1?c.push({s:e-1,e:i-1}):(c.push({s:e,e:1}),c.push({s:0,e:i-1}));var g=[],A,b=c.length,w;for(A=0;A<b;A+=1)if(w=c[A],!(w.e*h<l||w.s*h>l+n)){var O,G;w.s*h<=l?O=0:O=(w.s*h-l)/n,w.e*h>=l+n?G=1:G=(w.e*h-l)/n,g.push([O,G])}return g.length||g.push([0,0]),g},Ar.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)Vp.release(e[i]);return e.length=0,e},Ar.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?i=1+l:this.s.v<0?i=0+l:i=this.s.v+l,this.e.v>1?n=1+l:this.e.v<0?n=0+l:n=this.e.v+l,i>n){var h=i;i=n,n=h}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var c,g,A=this.shapes.length,b,w,O,G,x,M=0;if(n===i)for(g=0;g<A;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<A;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,V;for(g=0;g<A;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(c=R.shape.paths,w=c._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(O=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)G=Rr.getSegmentsLength(c.shapes[b]),O.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=O}M+=x,R.shape._mdf=!0}var N=i,C=n,E=0,S;for(g=A-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(V=R.localShapeCollection,V.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,n,R.totalShapeLength,E,M),E+=R.totalShapeLength):S=[[N,C]],w=S.length,b=0;b<w;b+=1){N=S[b][0],C=S[b][1],D.length=0,C<=1?D.push({s:R.totalShapeLength*N,e:R.totalShapeLength*C}):N>=1?D.push({s:R.totalShapeLength*(N-1),e:R.totalShapeLength*(C-1)}):(D.push({s:R.totalShapeLength*N,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(C-1)}));var k=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=R.shape.paths.shapes[R.shape.paths._length-1];if(F.c){var H=k.pop();this.addPaths(k,V),k=this.addShapes(R,D[1],H)}else this.addPaths(k,V),k=this.addShapes(R,D[1])}this.addPaths(k,V)}}R.shape.paths=V}}},Ar.prototype.addPaths=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)i.addShape(e[n])},Ar.prototype.addSegment=function(e,i,n,l,h,c,g){h.setXYAt(i[0],i[1],"o",c),h.setXYAt(n[0],n[1],"i",c+1),g&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},Ar.prototype.addSegmentFromArray=function(e,i,n,l){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),l&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Ar.prototype.addShapes=function(e,i,n){var l=e.pathsData,h=e.shape.paths.shapes,c,g=e.shape.paths._length,A,b,w=0,O,G,x,M,D=[],R,V=!0;for(n?(G=n._length,R=n._length):(n=be.newElement(),G=0,R=0),D.push(n),c=0;c<g;c+=1){for(x=l[c].lengths,n.c=h[c].c,b=h[c].c?x.length:x.length+1,A=1;A<b;A+=1)if(O=x[A-1],w+O.addedLength<i.s)w+=O.addedLength,n.c=!1;else if(w>i.e){n.c=!1;break}else i.s<=w&&i.e>=w+O.addedLength?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[A],h[c].v[A],n,G,V),V=!1):(M=Rr.getNewSegment(h[c].v[A-1],h[c].v[A],h[c].o[A-1],h[c].i[A],(i.s-w)/O.addedLength,(i.e-w)/O.addedLength,x[A-1]),this.addSegmentFromArray(M,n,G,V),V=!1,n.c=!1),w+=O.addedLength,G+=1;if(h[c].c&&x.length){if(O=x[A-1],w<=i.e){var N=x[A-1].addedLength;i.s<=w&&i.e>=w+N?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[0],h[c].v[0],n,G,V),V=!1):(M=Rr.getNewSegment(h[c].v[A-1],h[c].v[0],h[c].o[A-1],h[c].i[0],(i.s-w)/N,(i.e-w)/N,x[A-1]),this.addSegmentFromArray(M,n,G,V),V=!1,n.c=!1)}else n.c=!1;w+=O.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)),w>i.e)break;c<g-1&&(n=be.newElement(),V=!0,D.push(n),G=0)}return D};function nn(){}L([lr],nn),nn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},nn.prototype.processPath=function(e,i){var n=i/100,l=[0,0],h=e._length,c=0;for(c=0;c<h;c+=1)l[0]+=e.v[c][0],l[1]+=e.v[c][1];l[0]/=h,l[1]/=h;var g=be.newElement();g.c=e.c;var A,b,w,O,G,x;for(c=0;c<h;c+=1)A=e.v[c][0]+(l[0]-e.v[c][0])*n,b=e.v[c][1]+(l[1]-e.v[c][1])*n,w=e.o[c][0]+(l[0]-e.o[c][0])*-n,O=e.o[c][1]+(l[1]-e.o[c][1])*-n,G=e.i[c][0]+(l[0]-e.i[c][0])*-n,x=e.i[c][1]+(l[1]-e.i[c][1])*-n,g.setTripleAt(A,b,w,O,G,x,c);return g},nn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amount.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)b.addShape(this.processPath(i[h],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Ud=function(){var e=[0,0];function i(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var w;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var O,G;if(w=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(O=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/w,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(O=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(O=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){O=[],G=[];var x=this.px,M=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(O[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),O[1]=M.getValueAtTime((M.keyframes[0].t+.01)/w,0),G[0]=x.getValueAtTime(x.keyframes[0].t/w,0),G[1]=M.getValueAtTime(M.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(O[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),O[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/w,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),G[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/w,0)):(O=[x.pv,M.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),G[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/w,M.offsetTime))}else G=e,O=G;this.v.rotate(-Math.atan2(O[1]-G[1],O[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 l(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function h(){}function c(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,O){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new ye,this.pre=new ye,this.appliedTransformations=0,this.initDynamicPropertyContainer(O||b),w.p&&w.p.s?(this.px=nt.getProp(b,w.p.x,0,0,this),this.py=nt.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=nt.getProp(b,w.p.z,0,0,this))):this.p=nt.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=nt.getProp(b,w.rx,0,wt,this),this.ry=nt.getProp(b,w.ry,0,wt,this),this.rz=nt.getProp(b,w.rz,0,wt,this),w.or.k[0].ti){var G,x=w.or.k.length;for(G=0;G<x;G+=1)w.or.k[G].to=null,w.or.k[G].ti=null}this.or=nt.getProp(b,w.or,1,wt,this),this.or.sh=!0}else this.r=nt.getProp(b,w.r||{k:0},0,wt,this);w.sk&&(this.sk=nt.getProp(b,w.sk,0,wt,this),this.sa=nt.getProp(b,w.sa,0,wt,this)),this.a=nt.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=nt.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:l,autoOrient:h},L([pe],g),g.prototype.addDynamicProperty=c,g.prototype._addDynamicProperty=pe.prototype.addDynamicProperty;function A(b,w,O){return new g(b,w,O)}return{getTransformProperty:A}}();function Pr(){}L([lr],Pr),Pr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=Ud.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ye,this.rMatrix=new ye,this.sMatrix=new ye,this.tMatrix=new ye,this.matrix=new ye},Pr.prototype.applyTransforms=function(e,i,n,l,h,c){var g=c?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-h),b=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*g*h,l.p.v[1]*g*h,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*g*h),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),n.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),n.scale(c?1/A:A,c?1/b:b),n.translate(l.a.v[0],l.a.v[1],l.a.v[2])},Pr.prototype.init=function(e,i,n,l){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Pr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Pr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Pr.prototype.changeGroupRender=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},Pr.prototype.processShapes=function(e){var i,n,l,h,c,g=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){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}c=0;var w;for(l=0;l<=this._groups.length-1;l+=1){if(w=c<A,this._groups[l]._render=w,this.changeGroupRender(this._groups[l].it,w),!w){var O=this.elemsData[l].it,G=O[O.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}c+=1}this._currentCopies=A;var x=this.o.v,M=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,V=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C=0;if(x>0){for(;C<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),C+=M)}else if(x<0){for(;C>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),C-=M)}l=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,c=this._currentCopies;for(var E,S;c;){if(i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,S=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(l/(this._currentCopies-1)),C!==0){for((l!==0&&h===1||l!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(V[0],V[1],V[2],V[3],V[4],V[5],V[6],V[7],V[8],V[9],V[10],V[11],V[12],V[13],V[14],V[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),this.matrix.transform(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]),E=0;E<S;E+=1)n[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<S;E+=1)n[E]=this.matrix.props[E];C+=1,c-=1,l+=h}}else for(c=this._currentCopies,l=0,h=1;c;)i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,c-=1,l+=h;return g},Pr.prototype.addShape=function(){};function an(){}L([lr],an),an.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},an.prototype.processPath=function(e,i){var n=be.newElement();n.c=e.c;var l,h=e._length,c,g,A,b,w,O,G=0,x,M,D,R,V,N;for(l=0;l<h;l+=1)c=e.v[l],A=e.o[l],g=e.i[l],c[0]===A[0]&&c[1]===A[1]&&c[0]===g[0]&&c[1]===g[1]?(l===0||l===h-1)&&!e.c?(n.setTripleAt(c[0],c[1],A[0],A[1],g[0],g[1],G),G+=1):(l===0?b=e.v[h-1]:b=e.v[l-1],w=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),O=w?Math.min(w/2,i)/w:0,V=c[0]+(b[0]-c[0])*O,x=V,N=c[1]-(c[1]-b[1])*O,M=N,D=x-(x-c[0])*ge,R=M-(M-c[1])*ge,n.setTripleAt(x,M,D,R,V,N,G),G+=1,l===h-1?b=e.v[0]:b=e.v[l+1],w=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),O=w?Math.min(w/2,i)/w:0,D=c[0]+(b[0]-c[0])*O,x=D,R=c[1]+(b[1]-c[1])*O,M=R,V=x-(x-c[0])*ge,N=M-(M-c[1])*ge,n.setTripleAt(x,M,D,R,V,N,G),G+=1):(n.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],G),G+=1);return n},an.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.rd.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)b.addShape(this.processPath(i[h],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Pa(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function Hd(e){return Math.abs(e)<=1e-5}function Zp(e,i,n){return e*(1-n)+i*n}function _i(e,i,n){return[Zp(e[0],i[0],n),Zp(e[1],i[1],n)]}function hy(e,i,n){if(e===0)return[];var l=i*i-4*e*n;if(l<0)return[];var h=-i/(2*e);if(l===0)return[h];var c=Math.sqrt(l)/(2*e);return[h-c,h+c]}function Qp(e,i,n,l){return[-e+3*i-3*n+l,3*e-6*i+3*n,-3*e+3*i,e]}function Jp(e){return new jt(e,e,e,e,!1)}function jt(e,i,n,l,h){h&&ns(e,i)&&(i=_i(e,l,1/3)),h&&ns(n,l)&&(n=_i(e,l,2/3));var c=Qp(e[0],i[0],n[0],l[0]),g=Qp(e[1],i[1],n[1],l[1]);this.a=[c[0],g[0]],this.b=[c[1],g[1]],this.c=[c[2],g[2]],this.d=[c[3],g[3]],this.points=[e,i,n,l]}jt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},jt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},jt.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},jt.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},jt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Hd(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var l=Math.sqrt(n);return Hd(l)?l>0&&l<1?[i]:[]:[i-l,i+l].filter(function(h){return h>0&&h<1})},jt.prototype.split=function(e){if(e<=0)return[Jp(this.points[0]),this];if(e>=1)return[this,Jp(this.points[this.points.length-1])];var i=_i(this.points[0],this.points[1],e),n=_i(this.points[1],this.points[2],e),l=_i(this.points[2],this.points[3],e),h=_i(i,n,e),c=_i(n,l,e),g=_i(h,c,e);return[new jt(this.points[0],i,h,g,!0),new jt(g,c,l,this.points[3],!0)]};function tm(e,i){var n=e.points[0][i],l=e.points[e.points.length-1][i];if(n>l){var h=l;l=n,n=h}for(var c=hy(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<c.length;g+=1)if(c[g]>0&&c[g]<1){var A=e.point(c[g])[i];A<n?n=A:A>l&&(l=A)}return{min:n,max:l}}jt.prototype.bounds=function(){return{x:tm(this,0),y:tm(this,1)}},jt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Da(e,i,n){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function em(e){var i=e.bez.split(.5);return[Da(i[0],e.t1,e.t),Da(i[1],e.t,e.t2)]}function py(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function ln(e,i,n,l,h,c){if(py(e,i)){if(n>=c||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){h.push([e.t,i.t]);return}var g=em(e),A=em(i);ln(g[0],A[0],n+1,l,h,c),ln(g[0],A[1],n+1,l,h,c),ln(g[1],A[0],n+1,l,h,c),ln(g[1],A[1],n+1,l,h,c)}}jt.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var l=[];return ln(Da(this,0,1),Da(e,0,1),0,i,l,n),l},jt.shapeSegment=function(e,i){var n=(i+1)%e.length();return new jt(e.v[i],e.o[i],e.i[n],e.v[n],!0)},jt.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new jt(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function Gd(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Fa(e,i,n,l){var h=[e[0],e[1],1],c=[i[0],i[1],1],g=[n[0],n[1],1],A=[l[0],l[1],1],b=Gd(Gd(h,c),Gd(g,A));return Hd(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function ss(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function Yd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function ns(e,i){return Pa(e[0],i[0])&&Pa(e[1],i[1])}function dn(){}L([lr],dn),dn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function rm(e,i,n,l,h,c,g){var A=n-Math.PI/2,b=n+Math.PI/2,w=i[0]+Math.cos(n)*l*h,O=i[1]-Math.sin(n)*l*h;e.setTripleAt(w,O,w+Math.cos(A)*c,O-Math.sin(A)*c,w+Math.cos(b)*g,O-Math.sin(b)*g,e.length())}function my(e,i){var n=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*n[0]-Math.sin(l)*n[1],Math.sin(l)*n[0]+Math.cos(l)*n[1]];return h}function uy(e,i){var n=i===0?e.length()-1:i-1,l=(i+1)%e.length(),h=e.v[n],c=e.v[l],g=my(h,c);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function im(e,i,n,l,h,c,g){var A=uy(i,n),b=i.v[n%i._length],w=i.v[n===0?i._length-1:n-1],O=i.v[(n+1)%i._length],G=c===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=c===2?Math.sqrt(Math.pow(b[0]-O[0],2)+Math.pow(b[1]-O[1],2)):0;rm(e,i.v[n%i._length],A,g,l,x/((h+1)*2),G/((h+1)*2),c)}function fy(e,i,n,l,h,c){for(var g=0;g<l;g+=1){var A=(g+1)/(l+1),b=h===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,w=i.normalAngle(A),O=i.point(A);rm(e,O,w,c,n,b/((l+1)*2),b/((l+1)*2),h),c=-c}return c}dn.prototype.processPath=function(e,i,n,l){var h=e._length,c=be.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var g=-1,A=jt.shapeSegment(e,0);im(c,e,0,i,n,l,g);for(var b=0;b<h;b+=1)g=fy(c,A,i,n,l,-g),b===h-1&&!e.c?A=null:A=jt.shapeSegment(e,(b+1)%h),im(c,e,b+1,i,n,l,g);return c},dn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,O;for(n=0;n<l;n+=1){if(w=this.shapes[n],O=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!e))for(O.releaseShapes(),w.shape._mdf=!0,i=w.shape.paths.shapes,c=w.shape.paths._length,h=0;h<c;h+=1)O.addShape(this.processPath(i[h],g,A,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Kd(e,i,n){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[ss(e,l,n),ss(i,l,n)]}function as(e,i){var n,l,h,c,g,A,b;b=Kd(e.points[0],e.points[1],i),n=b[0],l=b[1],b=Kd(e.points[1],e.points[2],i),h=b[0],c=b[1],b=Kd(e.points[2],e.points[3],i),g=b[0],A=b[1];var w=Fa(n,l,h,c);w===null&&(w=l);var O=Fa(g,A,h,c);return O===null&&(O=g),new jt(n,w,O,A)}function om(e,i,n,l,h){var c=i.points[3],g=n.points[0];if(l===3||ns(c,g))return c;if(l===2){var A=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,w=Fa(c,ss(c,A+Math.PI/2,100),g,ss(g,A+Math.PI/2,100)),O=w?Yd(w,c):Yd(c,g)/2,G=ss(c,A,2*O*ge);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=ss(g,b,2*O*ge),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=ns(c,i.points[2])?i.points[0]:i.points[2],M=ns(g,n.points[1])?n.points[3]:n.points[1],D=Fa(x,c,g,M);return D&&Yd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function sm(e,i){var n=e.intersections(i);return n.length&&Pa(n[0][0],1)&&n.shift(),n.length?n[0]:null}function nm(e,i){var n=e.slice(),l=i.slice(),h=sm(e[e.length-1],i[0]);return h&&(n[e.length-1]=e[e.length-1].split(h[0])[0],l[0]=i[0].split(h[1])[1]),e.length>1&&i.length>1&&(h=sm(e[0],i[i.length-1]),h)?[[e[0].split(h[0])[0]],[i[i.length-1].split(h[1])[1]]]:[n,l]}function vy(e){for(var i,n=1;n<e.length;n+=1)i=nm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=nm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function am(e,i){var n=e.inflectionPoints(),l,h,c,g;if(n.length===0)return[as(e,i)];if(n.length===1||Pa(n[1],1))return c=e.split(n[0]),l=c[0],h=c[1],[as(l,i),as(h,i)];c=e.split(n[0]),l=c[0];var A=(n[1]-n[0])/(1-n[0]);return c=c[1].split(A),g=c[0],h=c[1],[as(l,i),as(g,i),as(h,i)]}function cn(){}L([lr],cn),cn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},cn.prototype.processPath=function(e,i,n,l){var h=be.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var g,A,b,w=[];for(g=0;g<c;g+=1)b=jt.shapeSegment(e,g),w.push(am(b,i));if(!e.c)for(g=c-1;g>=0;g-=1)b=jt.shapeSegmentInverted(e,g),w.push(am(b,i));w=vy(w);var O=null,G=null;for(g=0;g<w.length;g+=1){var x=w[g];for(G&&(O=om(h,G,x[0],n,l)),G=x[x.length-1],A=0;A<x.length;A+=1)b=x[A],O&&ns(b.points[0],O)?h.setXYAt(b.points[1][0],b.points[1][1],"o",h.length()-1):h.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],h.length()),h.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],h.length()),O=b.points[3]}return w.length&&om(h,G,w[0][0],n,l),h},cn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amount.v,A=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,O;for(n=0;n<l;n+=1){if(w=this.shapes[n],O=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!e))for(O.releaseShapes(),w.shape._mdf=!0,i=w.shape.paths.shapes,c=w.shape.paths._length,h=0;h<c;h+=1)O.addShape(this.processPath(i[h],g,b,A));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function lm(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",l="normal",h=i.length,c,g=0;g<h;g+=1)switch(c=i[g].toLowerCase(),c){case"italic":l="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:l,weight:e.fWeight||n}}var po=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var l=127988,h=917631,c=917601,g=917626,A=65039,b=8205,w=127462,O=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(I){var P=I.split(","),f,y=P.length,Y=[];for(f=0;f<y;f+=1)P[f]!=="sans-serif"&&P[f]!=="monospace"&&Y.push(P[f]);return Y.join(",")}function M(I,P){var f=T("span");f.setAttribute("aria-hidden",!0),f.style.fontFamily=P;var y=T("span");y.innerText="giItT1WQy@!-/#",f.style.position="absolute",f.style.left="-10000px",f.style.top="-10000px",f.style.fontSize="300px",f.style.fontVariant="normal",f.style.fontStyle="normal",f.style.fontWeight="normal",f.style.letterSpacing="0",f.appendChild(y),document.body.appendChild(f);var Y=y.offsetWidth;return y.style.fontFamily=x(I)+", "+P,{node:y,w:Y,parent:f}}function D(){var I,P=this.fonts.length,f,y,Y=P;for(I=0;I<P;I+=1)this.fonts[I].loaded?Y-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(f=this.fonts[I].monoCase.node,y=this.fonts[I].monoCase.w,f.offsetWidth!==y?(Y-=1,this.fonts[I].loaded=!0):(f=this.fonts[I].sansCase.node,y=this.fonts[I].sansCase.w,f.offsetWidth!==y&&(Y-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));Y!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(I,P){var f=document.body&&P?"svg":"canvas",y,Y=lm(I);if(f==="svg"){var $=Tt("text");$.style.fontSize="100px",$.setAttribute("font-family",I.fFamily),$.setAttribute("font-style",Y.style),$.setAttribute("font-weight",Y.weight),$.textContent="1",I.fClass?($.style.fontFamily="inherit",$.setAttribute("class",I.fClass)):$.style.fontFamily=I.fFamily,P.appendChild($),y=$}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=Y.style+" "+Y.weight+" 100px "+I.fFamily,y=at}function vt(Et){return f==="svg"?(y.textContent=Et,y.getComputedTextLength()):y.measureText(Et).width}return{measureText:vt}}function V(I,P){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(ze){ze.helper=R(ze),ze.cache={}}),this.fonts=I.list;return}var f=I.list,y,Y=f.length,$=Y;for(y=0;y<Y;y+=1){var at=!0,vt,Et;if(f[y].loaded=!1,f[y].monoCase=M(f[y].fFamily,"monospace"),f[y].sansCase=M(f[y].fFamily,"sans-serif"),!f[y].fPath)f[y].loaded=!0,$-=1;else if(f[y].fOrigin==="p"||f[y].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+f[y].fFamily+'"], style[f-origin="3"][f-family="'+f[y].fFamily+'"]'),vt.length>0&&(at=!1),at){var Mt=T("style");Mt.setAttribute("f-forigin",f[y].fOrigin),Mt.setAttribute("f-origin",f[y].origin),Mt.setAttribute("f-family",f[y].fFamily),Mt.type="text/css",Mt.innerText="@font-face {font-family: "+f[y].fFamily+"; font-style: normal; src: url('"+f[y].fPath+"');}",P.appendChild(Mt)}}else if(f[y].fOrigin==="g"||f[y].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(f[y].fPath)!==-1&&(at=!1);if(at){var Rt=T("link");Rt.setAttribute("f-forigin",f[y].fOrigin),Rt.setAttribute("f-origin",f[y].origin),Rt.type="text/css",Rt.rel="stylesheet",Rt.href=f[y].fPath,document.body.appendChild(Rt)}}else if(f[y].fOrigin==="t"||f[y].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)f[y].fPath===vt[Et].src&&(at=!1);if(at){var re=T("link");re.setAttribute("f-forigin",f[y].fOrigin),re.setAttribute("f-origin",f[y].origin),re.setAttribute("rel","stylesheet"),re.setAttribute("href",f[y].fPath),P.appendChild(re)}}f[y].helper=R(f[y],P),f[y].cache={},this.fonts.push(f[y])}$===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function N(I){if(I){this.chars||(this.chars=[]);var P,f=I.length,y,Y=this.chars.length,$;for(P=0;P<f;P+=1){for(y=0,$=!1;y<Y;)this.chars[y].style===I[P].style&&this.chars[y].fFamily===I[P].fFamily&&this.chars[y].ch===I[P].ch&&($=!0),y+=1;$||(this.chars.push(I[P]),Y+=1)}}}function C(I,P,f){for(var y=0,Y=this.chars.length;y<Y;){if(this.chars[y].ch===I&&this.chars[y].style===P&&this.chars[y].fFamily===f)return this.chars[y];y+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,P,f)),i}function E(I,P,f){var y=this.getFontByName(P),Y=I;if(!y.cache[Y]){var $=y.helper;if(I===" "){var at=$.measureText("|"+I+"|"),vt=$.measureText("||");y.cache[Y]=(at-vt)/100}else y.cache[Y]=$.measureText(I)/100}return y.cache[Y]*f}function S(I){for(var P=0,f=this.fonts.length;P<f;){if(this.fonts[P].fName===I)return this.fonts[P];P+=1}return this.fonts[0]}function k(I){var P=0,f=I.charCodeAt(0);if(f>=55296&&f<=56319){var y=I.charCodeAt(1);y>=56320&&y<=57343&&(P=(f-55296)*1024+y-56320+65536)}return P}function F(I,P){var f=I.toString(16)+P.toString(16);return G.indexOf(f)!==-1}function H(I){return I===b}function K(I){return I===A}function rt(I){var P=k(I);return P>=w&&P<=O}function yt(I){return rt(I.substr(0,2))&&rt(I.substr(2,2))}function mt(I){return n.indexOf(I)!==-1}function st(I,P){var f=k(I.substr(P,2));if(f!==l)return!1;var y=0;for(P+=2;y<5;){if(f=k(I.substr(P,2)),f<c||f>g)return!1;y+=1,P+=2}return k(I.substr(P,2))===h}function xt(){this.isLoaded=!0}var ct=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ct.isModifier=F,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=rt,ct.isCombinedCharacter=mt,ct.isRegionalFlag=st,ct.isVariationSelector=K,ct.BLACK_FLAG_CODE_POINT=l;var et={addChars:N,addFonts:V,getCharData:C,getFontByName:S,measureText:E,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=et,ct}();function dm(e){this.animationData=e}dm.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function gy(e){return new dm(e)}function $a(){}$a.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Wd=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function by(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function yy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Ey(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Ty(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function xy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Ay(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Sy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Iy(){this.p={}}function cm(e,i){var n=e.ef||[];this.effectElements=[];var l,h=n.length,c;for(l=0;l<h;l+=1)c=new hn(n[l],i),this.effectElements.push(c)}function hn(e,i){this.init(e,i)}L([pe],hn),hn.prototype.getValue=hn.prototype.iterateDynamicProperties,hn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,l=this.data.ef.length,h,c=this.data.ef;for(n=0;n<l;n+=1){switch(h=null,c[n].ty){case 0:h=new by(c[n],i,this);break;case 1:h=new yy(c[n],i,this);break;case 2:h=new Ey(c[n],i,this);break;case 3:h=new Ty(c[n],i,this);break;case 4:case 7:h=new Sy(c[n],i,this);break;case 10:h=new xy(c[n],i,this);break;case 11:h=new Ay(c[n],i,this);break;case 5:h=new cm(c[n],i,this);break;default:h=new Iy(c[n],i,this);break}h&&this.effectElements.push(h)}};function Ci(){}Ci.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Dp();if(i){var n=i("layer"),l=i("effects"),h=i("shape"),c=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(A),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=Wd(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,l){this.globalData=n,this.comp=l,this.data=i,this.layerId=Fe(),this.data.sr||(this.data.sr=1),this.effectsManager=new cm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function wi(){}wi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(n||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function ki(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}ki.prototype.prepareFrame=function(){},L([$a,Ci,wi],ki),ki.prototype.getBaseElement=function(){return null},ki.prototype.renderFrame=function(){},ki.prototype.destroy=function(){},ki.prototype.initExpressions=function(){var e=Dp();if(e){var i=e("footage");this.layerInterface=i(this)}},ki.prototype.getFootageData=function(){return this.footageData};function $e(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}$e.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},L([$a,Ci,wi],$e),$e.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))},$e.prototype.show=function(){},$e.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},$e.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},$e.prototype.resume=function(){this._canPlay=!0},$e.prototype.setRate=function(e){this.audio.rate(e)},$e.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},$e.prototype.getBaseElement=function(){return null},$e.prototype.destroy=function(){},$e.prototype.sourceRectAtTime=function(){},$e.prototype.initExpressions=function(){};function Ee(){}Ee.prototype.checkLayers=function(e){var i,n=this.layers.length,l;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(l=this.layers[i],l.ip-l.st<=e-this.layers[i].st&&l.op-l.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},Ee.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},Ee.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ee.prototype.createAudio=function(e){return new $e(e,this.globalData,this)},Ee.prototype.createFootage=function(e){return new ki(e,this.globalData,this)},Ee.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},Ee.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,l,h=this.layers.length;for(i=0;i<n;i+=1)for(l=0;l<h;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},Ee.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Ee.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ee.prototype.buildElementParenting=function(e,i,n){for(var l=this.elements,h=this.layers,c=0,g=h.length;c<g;)h[c].ind==i&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(n.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,n):e.setHierarchy(n))),c+=1},Ee.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Ee.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},Ee.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},Ee.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===i){n=this.elements[l];break}}return e.length===0?n:n.getElementByPath(e)},Ee.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new po,this.globalData.slotManager=gy(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var _y={TRANSFORM_EFFECT:"transformEFfect"};function ls(){}ls.prototype={initTransform:function(){var i=new ye;this.finalTransform={mProp:this.data.ks?Ud.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,n=this.finalTransform.mat,l=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<h;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),l=0;l<h;l+=1)n.multiply(this.hierarchy[l].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),i=1;i<n;i+=1){var h=this.localTransforms[i].matrix;l.multiply(h)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)c*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(_y.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new ye;var n=0,l=i.length;for(n=0;n<l;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&n.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,g=n.length,A;for(c=0;c<g;c+=1)A=n[c].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new ye};function mo(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,h,c=this.masksProperties?this.masksProperties.length:0;this.viewData=it(c),this.solidPath="";var g,A=this.masksProperties,b=0,w=[],O,G,x=Fe(),M,D,R,V,N="clipPath",C="clip-path";for(h=0;h<c;h+=1)if((A[h].mode!=="a"&&A[h].mode!=="n"||A[h].inv||A[h].o.k!==100||A[h].o.x)&&(N="mask",C="mask"),(A[h].mode==="s"||A[h].mode==="i")&&b===0?(M=Tt("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),w.push(M)):M=null,g=Tt("path"),A[h].mode==="n")this.viewData[h]={op:nt.getProp(this.element,A[h].o,0,.01,this.element),prop:Oa.getShapeProp(this.element,A[h],3),elem:g,lastPath:""},l.appendChild(g);else{b+=1,g.setAttribute("fill",A[h].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var E;if(A[h].x.k!==0?(N="mask",C="mask",V=nt.getProp(this.element,A[h].x,0,null,this.element),E=Fe(),D=Tt("filter"),D.setAttribute("id",E),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),l.appendChild(D),g.setAttribute("stroke",A[h].mode==="s"?"#000000":"#ffffff")):(R=null,V=null),this.storedData[h]={elem:g,x:V,expan:R,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},A[h].mode==="i"){G=w.length;var S=Tt("g");for(O=0;O<G;O+=1)S.appendChild(w[O]);var k=Tt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",x+"_"+b),k.appendChild(g),l.appendChild(k),S.setAttribute("mask","url("+v()+"#"+x+"_"+b+")"),w.length=0,w.push(S)}else w.push(g);A[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:g,lastPath:"",op:nt.getProp(this.element,A[h].o,0,.01,this.element),prop:Oa.getShapeProp(this.element,A[h],3),invRect:M},this.viewData[h].prop.k||this.drawPath(A[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=Tt(N),c=w.length,h=0;h<c;h+=1)this.maskElement.appendChild(w[h]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(C,"url("+v()+"#"+x+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}mo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},mo.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,l=this.masksProperties.length;for(n=0;n<l;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var h=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("+v()+"#"+this.storedData[n].filterId+")")),h.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 e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},mo.prototype.drawPath=function(e,i,n){var l=" M"+i.v[0][0]+","+i.v[0][1],h,c;for(c=i._length,h=1;h<c;h+=1)l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[h][0]+","+i.i[h][1]+" "+i.v[h][0]+","+i.v[h][1];if(i.c&&c>1&&(l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==l){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+l:l),n.elem.setAttribute("d",g)),n.lastPath=l}},mo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var pn=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(l,h){var c=Tt("filter");return c.setAttribute("id",l),h!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function n(){var l=Tt("feColorMatrix");return l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),l}return e}(),hm=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),za={},pm="filter_result_";function jd(e){var i,n="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=Fe(),c=pn.createFilter(h,!0),g=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var b=e.data.ef[i].ty;if(za[b]){var w=za[b].effect;A=new w(c,e.effectsManager.effectElements[i],e,pm+g,n),n=pm+g,za[b].countsAsEffect&&(g+=1)}A&&this.filters.push(A)}g&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+v()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}jd.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},jd.prototype.getEffects=function(e){var i,n=this.filters.length,l=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function w0(e,i,n){za[e]={effect:i,countsAsEffect:n}}function mn(){}mn.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var l=Tt("clipPath"),h=Tt("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=Fe();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+v()+"#"+c+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+v()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new mo(this.data,this,this.globalData),this.renderableEffectsManager=new jd(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,l,h,c,g;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",n),A.setAttribute("mask-type",i===3?"luminance":"alpha"),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(c),this.globalData.defs.appendChild(A),!hm.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=Fe(),h=pn.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(pn.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(c),A.appendChild(g),g.setAttribute("filter","url("+v()+"#"+l+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var w=Tt("g");b.appendChild(w),l=Fe(),h=pn.createFilter(l);var O=Tt("feComponentTransfer");O.setAttribute("in","SourceGraphic"),h.appendChild(O);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),O.appendChild(G),this.globalData.defs.appendChild(h);var x=Tt("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),w.setAttribute("filter","url("+v()+"#"+l+")"),w.appendChild(x),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(c),hm.maskType||(b.setAttribute("mask-type","luminance"),h.appendChild(pn.createAlphaToLuminanceFilter()),g=Tt("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+v()+"#"+i+")")}};function ds(){}ds.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function un(){}(function(){var e={initElement:function(n,l,h){this.initFrame(),this.initBaseData(n,l,h),this.initTransform(n,l,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var 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()}};L([$a,q(e)],un)})();function fn(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ci,ls,mn,ds,wi,un],fn),fn.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},fn.prototype.sourceRectAtTime=function(){return this.sourceRect};function Cy(e,i){this.elem=e,this.pos=i}function mm(){}mm.prototype={addShapeToModifiers:function(i){var n,l=this.shapeModifiers.length;for(n=0;n<l;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,l=this.shapeModifiers.length;n<l;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var l;for(i=n-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,l=0,h=n.length;l<h;){if(n[l].elem===i)return n[l].pos;l+=1}return 0},addProcessedElement:function(i,n){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===i){l[h].pos=n;return}l.push(new Cy(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var um={1:"butt",2:"round",3:"square"},fm={1:"miter",2:"round",3:"bevel"};function vm(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}vm.prototype.setAsAnimated=function(){this._isAnimated=!0};function gm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}gm.prototype.reset=function(){this.d="",this._mdf=!1};function Va(e,i,n,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",i.length?i.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(l);var h,c=i.length||0,g;for(h=0;h<c;h+=1)g=nt.getProp(e,i[h].v,0,0,this),this.k=g.k||this.k,this.dataProps[h]={n:i[h].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}Va.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},L([pe],Va);function bm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new Va(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}L([pe],bm);function ym(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}L([pe],ym);function Em(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}L([pe],Em);function vn(e,i,n){this.data=i,this.c=X("uint8c",i.p*4);var l=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=X("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}vn.prototype.comparePoints=function(e,i){for(var n=0,l=this.o.length/2,h;n<l;){if(h=Math.abs(e[n*4]-e[i*4+n*2]),h>.01)return!1;n+=1}return!0},vn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},vn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,l,h;for(i=0;i<n;i+=1)l=i%4===0?100:255,h=Math.round(this.prop.v[i]*l),this.c[i]!==h&&(this.c[i]=h,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)l=i%2===0?100:1,h=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==h&&(this.o[i-this.data.p*4]=h,this._omdf=!e);this._mdf=!e}},L([pe],vn);function cs(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}cs.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,wt,this),this.g=new vn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},cs.prototype.setGradientData=function(e,i){var n=Fe(),l=Tt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",n),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,g,A;for(A=i.g.p*4,g=0;g<A;g+=4)c=Tt("stop"),l.appendChild(c),h.push(c);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+v()+"#"+n+")"),this.gf=l,this.cst=h},cs.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,l,h,c=Tt("mask"),g=Tt("path");c.appendChild(g);var A=Fe(),b=Fe();c.setAttribute("id",b);var w=Tt(e.t===1?"linearGradient":"radialGradient");w.setAttribute("id",A),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),h=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var O=this.stops;for(l=e.g.p*4;l<h;l+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),O.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+v()+"#"+A+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",um[e.lc||2]),g.setAttribute("stroke-linejoin",fm[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=w,this.ms=c,this.ost=O,this.maskId=b,i.msElem=g}},L([pe],cs);function Tm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new Va(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}L([cs,pe],Tm);function wy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function ky(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var xm=function(i,n,l,h){if(n===0)return"";var c=i.o,g=i.i,A=i.v,b,w=" M"+h.applyToPointStringified(A[0][0],A[0][1]);for(b=1;b<n;b+=1)w+=" C"+h.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+h.applyToPointStringified(g[b][0],g[b][1])+" "+h.applyToPointStringified(A[b][0],A[b][1]);return l&&n&&(w+=" C"+h.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+h.applyToPointStringified(g[0][0],g[0][1])+" "+h.applyToPointStringified(A[0][0],A[0][1]),w+="z"),w},Ny=function(){var e=new ye,i=new ye,n={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return w;case"gs":return b;case"st":return O;case"sh":case"el":case"rc":case"sr":return g;case"tr":return h;case"no":return c;default:return null}}function h(G,x,M){(M||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(M||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function c(){}function g(G,x,M){var D,R,V,N,C,E,S=x.styles.length,k=x.lvl,F,H,K,rt;for(E=0;E<S;E+=1){if(N=x.sh._mdf||M,x.styles[E].lvl<k){for(H=i.reset(),K=k-x.styles[E].lvl,rt=x.transformers.length-1;!N&&K>0;)N=x.transformers[rt].mProps._mdf||N,K-=1,rt-=1;if(N)for(K=k-x.styles[E].lvl,rt=x.transformers.length-1;K>0;)H.multiply(x.transformers[rt].mProps.v),K-=1,rt-=1}else H=e;if(F=x.sh.paths,R=F._length,N){for(V="",D=0;D<R;D+=1)C=F.shapes[D],C&&C._length&&(V+=xm(C,C._length,C.c,H));x.caches[E]=V}else V=x.caches[E];x.styles[E].d+=G.hd===!0?"":V,x.styles[E]._mdf=N||x.styles[E]._mdf}}function A(G,x,M){var D=x.style;(x.c._mdf||M)&&D.pElem.setAttribute("fill","rgb("+he(x.c.v[0])+","+he(x.c.v[1])+","+he(x.c.v[2])+")"),(x.o._mdf||M)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,M){w(G,x,M),O(G,x,M)}function w(G,x,M){var D=x.gf,R=x.g._hasOpacity,V=x.s.v,N=x.e.v;if(x.o._mdf||M){var C=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(C,x.o.v)}if(x.s._mdf||M){var E=G.t===1?"x1":"cx",S=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(S,V[1]),R&&!x.g._collapsable&&(x.of.setAttribute(E,V[0]),x.of.setAttribute(S,V[1]))}var k,F,H,K;if(x.g._cmdf||M){k=x.cst;var rt=x.g.c;for(H=k.length,F=0;F<H;F+=1)K=k[F],K.setAttribute("offset",rt[F*4]+"%"),K.setAttribute("stop-color","rgb("+rt[F*4+1]+","+rt[F*4+2]+","+rt[F*4+3]+")")}if(R&&(x.g._omdf||M)){var yt=x.g.o;for(x.g._collapsable?k=x.cst:k=x.ost,H=k.length,F=0;F<H;F+=1)K=k[F],x.g._collapsable||K.setAttribute("offset",yt[F*2]+"%"),K.setAttribute("stop-opacity",yt[F*2+1])}if(G.t===1)(x.e._mdf||M)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",N[0]),x.of.setAttribute("y2",N[1])));else{var mt;if((x.s._mdf||x.e._mdf||M)&&(mt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",mt),R&&!x.g._collapsable&&x.of.setAttribute("r",mt)),x.e._mdf||x.h._mdf||x.a._mdf||M){mt||(mt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)));var st=Math.atan2(N[1]-V[1],N[0]-V[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=mt*xt,et=Math.cos(st+x.a.v)*ct+V[0],I=Math.sin(st+x.a.v)*ct+V[1];D.setAttribute("fx",et),D.setAttribute("fy",I),R&&!x.g._collapsable&&(x.of.setAttribute("fx",et),x.of.setAttribute("fy",I))}}}function O(G,x,M){var D=x.style,R=x.d;R&&(R._mdf||M)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||M)&&D.pElem.setAttribute("stroke","rgb("+he(x.c.v[0])+","+he(x.c.v[1])+","+he(x.c.v[2])+")"),(x.o._mdf||M)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||M)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function Xt(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}L([Ci,ls,mn,mm,ds,wi,un],Xt),Xt.prototype.initSecondaryElement=function(){},Xt.prototype.identityMatrix=new ye,Xt.prototype.buildExpressionInterface=function(){},Xt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Xt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,l,h=this.stylesList.length,c,g=[],A=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],A=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(c)!==-1&&(g.push(n),A=n._isAnimated||A);g.length>1&&A&&this.setShapesAsAnimated(g)}},Xt.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},Xt.prototype.createStyleElement=function(e,i){var n,l=new gm(e,i),h=l.pElem;if(e.ty==="st")n=new bm(this,e,l);else if(e.ty==="fl")n=new ym(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?cs:Tm;n=new c(this,e,l),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),h.setAttribute("mask","url("+v()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new Em(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",um[e.lc||2]),h.setAttribute("stroke-linejoin",fm[e.lj||2]),h.setAttribute("fill-opacity","0"),e.lj===1&&h.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&h.setAttribute("fill-rule","evenodd"),e.ln&&h.setAttribute("id",e.ln),e.cl&&h.setAttribute("class",e.cl),e.bm&&(h.style["mix-blend-mode"]=Wd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,n),n},Xt.prototype.createGroupElement=function(e){var i=new wy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=Wd(e.bm)),i},Xt.prototype.createTransformElement=function(e,i){var n=Ud.getTransformProperty(this,e,this),l=new ky(n,n.o,i);return this.addToAnimatedContents(e,l),l},Xt.prototype.createShapeElement=function(e,i,n){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=Oa.getShapeProp(this,e,l,this),c=new vm(i,n,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Xt.prototype.addToAnimatedContents=function(e,i){for(var n=0,l=this.animatedContents.length;n<l;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:Ny.createRenderFunction(e),element:i,data:e})},Xt.prototype.setElementStyles=function(e){var i=e.styles,n,l=this.stylesList.length;for(n=0;n<l;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},Xt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Xt.prototype.searchShapes=function(e,i,n,l,h,c,g){var A=[].concat(c),b,w=e.length-1,O,G,x=[],M=[],D,R,V;for(b=w;b>=0;b-=1){if(V=this.searchProcessedElement(e[b]),V?i[b]=n[V-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")V?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],h),e[b]._render&&i[b].style.pElem.parentNode!==l&&l.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!V)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,O=0;O<G;O+=1)i[b].prevViewData[O]=i[b].it[O];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,h+1,A,g),e[b]._render&&i[b].gr.parentNode!==l&&l.appendChild(i[b].gr)}else e[b].ty==="tr"?(V||(i[b]=this.createTransformElement(e[b],l)),D=i[b].transform,A.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(V||(i[b]=this.createShapeElement(e[b],A,h)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(V?(R=i[b],R.closed=!1):(R=Ii.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),M.push(R)):e[b].ty==="rp"&&(V?(R=i[b],R.closed=!0):(R=Ii.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),M.push(R));this.addProcessedElement(e[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=M.length,b=0;b<w;b+=1)M[b].closed=!0},Xt.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Xt.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},Xt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function qd(e,i,n,l,h,c){this.o=e,this.sw=i,this.sc=n,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!l,m:!0,p:!0}}qd.prototype.update=function(e,i,n,l,h,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,g=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,g=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,g=!0),g};function we(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}we.prototype.defaultBoxWidth=[0,0],we.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},we.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},we.prototype.searchProperty=function(){return this.searchKeyframes()},we.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},we.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},we.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,h=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(l=0;l<h;l+=1)n!==this.keysIndex?c=this.effectsSequence[l](c,c.t):c=this.effectsSequence[l](this.currentData,c.t);i!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},we.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,l=e.length;n<=l-1&&!(n===l-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},we.prototype.buildFinalText=function(e){for(var i=[],n=0,l=e.length,h,c,g=!1,A=!1,b="";n<l;)g=A,A=!1,h=e.charCodeAt(n),b=e.charAt(n),po.isCombinedCharacter(h)?g=!0:h>=55296&&h<=56319?po.isRegionalFlag(e,n)?b=e.substr(n,14):(c=e.charCodeAt(n+1),c>=56320&&c<=57343&&(po.isModifier(h,c)?(b=e.substr(n,2),g=!0):po.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):h>56319?(c=e.charCodeAt(n+1),po.isVariationSelector(h)&&(g=!0)):po.isZeroWidthJoiner(h)&&(g=!0,A=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},we.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,l=[],h,c,g,A=0,b,w=n.m.g,O=0,G=0,x=0,M=[],D=0,R=0,V,N,C=i.getFontByName(e.f),E,S=0,k=lm(C);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var F=e.tr/1e3*e.finalSize,H;if(e.sz)for(var K=!0,rt=e.sz[0],yt=e.sz[1],mt,st;K;){st=this.buildFinalText(e.t),mt=0,D=0,c=st.length,F=e.tr/1e3*e.finalSize;var xt=-1;for(h=0;h<c;h+=1)H=st[h].charCodeAt(0),g=!1,st[h]===" "?xt=h:(H===13||H===3)&&(D=0,g=!0,mt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(E=i.getCharData(st[h],C.fStyle,C.fFamily),S=g?0:E.w*e.finalSize/100):S=i.measureText(st[h],e.f,e.finalSize),D+S>rt&&st[h]!==" "?(xt===-1?c+=1:h=xt,mt+=e.finalLineHeight||e.finalSize*1.2,st.splice(h,xt===h?1:0,"\r"),xt=-1,D=0):(D+=S,D+=F);mt+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<mt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,c=e.finalText.length,K=!1)}D=-F,S=0;var ct=0,et;for(h=0;h<c;h+=1)if(g=!1,et=e.finalText[h],H=et.charCodeAt(0),H===13||H===3?(ct=0,M.push(D),R=D>R?D:R,D=-2*F,b="",g=!0,x+=1):b=et,i.chars?(E=i.getCharData(et,C.fStyle,i.getFontByName(e.f).fFamily),S=g?0:E.w*e.finalSize/100):S=i.measureText(b,e.f,e.finalSize),et===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:O,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(O+=S,b===""||b===" "||h===c-1){for((b===""||b===" ")&&(O-=S);G<=h;)l[G].an=O,l[G].ind=A,l[G].extra=S,G+=1;A+=1,O=0}}else if(w==3){if(O+=S,b===""||h===c-1){for(b===""&&(O-=S);G<=h;)l[G].an=O,l[G].ind=A,l[G].extra=S,G+=1;O=0,A+=1}}else l[A].ind=A,l[A].extra=0,A+=1;if(e.l=l,R=D>R?D:R,M.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=M;var I=n.a,P,f;N=I.length;var y,Y,$=[];for(V=0;V<N;V+=1){for(P=I[V],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),Y=0,y=P.s.b,h=0;h<c;h+=1)f=l[h],f.anIndexes[V]=Y,(y==1&&f.val!==""||y==2&&f.val!==""&&f.val!==" "||y==3&&(f.n||f.val==" "||h==c-1)||y==4&&(f.n||h==c-1))&&(P.s.rn===1&&$.push(Y),Y+=1);n.a[V].s.totalChars=Y;var at=-1,vt;if(P.s.rn===1)for(h=0;h<c;h+=1)f=l[h],at!=f.anIndexes[V]&&(at=f.anIndexes[V],vt=$.splice(Math.floor(Math.random()*$.length),1)[0]),f.anIndexes[V]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=C.ascent*e.finalSize/100},we.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},we.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},we.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},we.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Ly=function(){var e=Math.max,i=Math.min,n=Math.floor;function l(c,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=nt.getProp(c,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(c,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(c,g.o||{k:0},0,0,this),this.xe=nt.getProp(c,g.xe||{k:0},0,0,this),this.ne=nt.getProp(c,g.ne||{k:0},0,0,this),this.sm=nt.getProp(c,g.sm||{k:100},0,0,this),this.a=nt.getProp(c,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,b=0,w=1,O=1;this.ne.v>0?A=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:O=1+this.xe.v/100;var G=sn.getBezierEasing(A,b,w,O).get,x=0,M=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===M?x=g>=D?1:0:x=e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x=G(x);else if(R===3)D===M?x=g>=D?0:1:x=1-e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x=G(x);else if(R===4)D===M?x=0:(x=e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===M)x=0;else{var V=D-M;g=i(e(0,g+.5-M),D-M);var N=-V/2+g,C=V/2;x=Math.sqrt(1-N*N/(C*C))}x=G(x)}else R===6?(D===M?x=0:(g=i(e(0,g+.5-M),D-M),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-M)))/2),x=G(x)):(g>=n(M)&&(g-M<0?x=e(0,i(i(D,1)-(M-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var S=.5-E*.5;x<S?x=0:(x=(x-S)/E,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 A=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/A,w=this.s.v/A+b,O=this.e.v/A+b;if(w>O){var G=w;w=O,O=G}this.finalS=w,this.finalE=O}},L([pe],l);function h(c,g,A){return new l(c,g,A)}return{getTextSelectorProp:h}}();function Oy(e,i,n){var l={propType:!1},h=nt.getProp,c=i.a;this.a={r:c.r?h(e,c.r,0,wt,n):l,rx:c.rx?h(e,c.rx,0,wt,n):l,ry:c.ry?h(e,c.ry,0,wt,n):l,sk:c.sk?h(e,c.sk,0,wt,n):l,sa:c.sa?h(e,c.sa,0,wt,n):l,s:c.s?h(e,c.s,1,.01,n):l,a:c.a?h(e,c.a,1,0,n):l,o:c.o?h(e,c.o,0,.01,n):l,p:c.p?h(e,c.p,1,0,n):l,sw:c.sw?h(e,c.sw,0,0,n):l,sc:c.sc?h(e,c.sc,1,0,n):l,fc:c.fc?h(e,c.fc,1,0,n):l,fh:c.fh?h(e,c.fh,0,0,n):l,fs:c.fs?h(e,c.fs,0,.01,n):l,fb:c.fb?h(e,c.fb,0,.01,n):l,t:c.t?h(e,c.t,0,0,n):l},this.s=Ly.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function uo(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}uo.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,l=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new Oy(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=l(this._elem,this._textData.m.a,1,0,this)},uo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,g=this._renderType,A=this.renderedLetters.length,b,w,O,G,x=e.l,M,D,R,V,N,C,E,S,k,F,H,K,rt,yt,mt;if(this._hasMaskedPath){if(mt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=mt.v;this._pathData.r.v&&(st=st.reverse()),M={tLength:0,segments:[]},G=st._length-1;var xt;for(K=0,O=0;O<G;O+=1)xt=Rr.buildBezierData(st.v[O],st.v[O+1],[st.o[O][0]-st.v[O][0],st.o[O][1]-st.v[O][1]],[st.i[O+1][0]-st.v[O+1][0],st.i[O+1][1]-st.v[O+1][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),K+=xt.segmentLength;O=G,mt.v.c&&(xt=Rr.buildBezierData(st.v[O],st.v[0],[st.o[O][0]-st.v[O][0],st.o[O][1]-st.v[O][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),K+=xt.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,D=this._pathData.f.v,E=0,C=1,V=0,N=!0,F=M.segments,D<0&&mt.v.c)for(M.tLength<Math.abs(D)&&(D=-Math.abs(D)%M.tLength),E=F.length-1,k=F[E].points,C=k.length-1;D<0;)D+=k[C].partialLength,C-=1,C<0&&(E-=1,k=F[E].points,C=k.length-1);k=F[E].points,S=k[C-1],R=k[C],H=R.partialLength}G=x.length,b=0,w=0;var ct=e.finalSize*1.2*.714,et=!0,I,P,f,y,Y;y=l.length;var $,at=-1,vt,Et,Mt,Rt=D,re=E,ze=C,Dr=-1,Ve,me,Ze,Ft,ht,ri,Li,ii,Fr="",oi=this.defaultPropsArray,si;if(e.j===2||e.j===1){var Be=0,Oi=0,Mi=e.j===2?-.5:-1,Sr=0,Ri=!0;for(O=0;O<G;O+=1)if(x[O].n){for(Be&&(Be+=Oi);Sr<O;)x[Sr].animatorJustifyOffset=Be,Sr+=1;Be=0,Ri=!0}else{for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(Ri&&e.j===2&&(Oi+=I.t.v*Mi),P=l[f].s,$=P.getMult(x[O].anIndexes[f],h.a[f].s.totalChars),$.length?Be+=I.t.v*$[0]*Mi:Be+=I.t.v*$*Mi);Ri=!1}for(Be&&(Be+=Oi);Sr<O;)x[Sr].animatorJustifyOffset=Be,Sr+=1}for(O=0;O<G;O+=1){if(c.reset(),Ve=1,x[O].n)b=0,w+=e.yOffset,w+=et?1:0,D=Rt,et=!1,this._hasMaskedPath&&(E=re,C=ze,k=F[E].points,S=k[C-1],R=k[C],H=R.partialLength,V=0),Fr="",ii="",ri="",si="",oi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Dr!==x[O].line){switch(e.j){case 1:D+=K-e.lineWidths[x[O].line];break;case 2:D+=(K-e.lineWidths[x[O].line])/2;break;default:break}Dr=x[O].line}at!==x[O].ind&&(x[at]&&(D+=x[at].extra),D+=x[O].an/2,at=x[O].ind),D+=n[0]*x[O].an*.005;var Ir=0;for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(x[O].anIndexes[f],h.a[f].s.totalChars),$.length?Ir+=I.p.v[0]*$[0]:Ir+=I.p.v[0]*$),I.a.propType&&(P=l[f].s,$=P.getMult(x[O].anIndexes[f],h.a[f].s.totalChars),$.length?Ir+=I.a.v[0]*$[0]:Ir+=I.a.v[0]*$);for(N=!0,this._pathData.a.v&&(D=x[0].an*.5+(K-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);N;)V+H>=D+Ir||!k?(rt=(D+Ir-V)/R.partialLength,Et=S.point[0]+(R.point[0]-S.point[0])*rt,Mt=S.point[1]+(R.point[1]-S.point[1])*rt,c.translate(-n[0]*x[O].an*.005,-(n[1]*ct)*.01),N=!1):k&&(V+=R.partialLength,C+=1,C>=k.length&&(C=0,E+=1,F[E]?k=F[E].points:mt.v.c?(C=0,E=0,k=F[E].points):(V-=R.partialLength,k=null)),k&&(S=R,R=k[C],H=R.partialLength));vt=x[O].an/2-x[O].add,c.translate(-vt,0,0)}else vt=x[O].an/2-x[O].add,c.translate(-vt,0,0),c.translate(-n[0]*x[O].an*.005,-n[1]*ct*.01,0);for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(P=l[f].s,$=P.getMult(x[O].anIndexes[f],h.a[f].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?$.length?D+=I.t.v*$[0]:D+=I.t.v*$:$.length?b+=I.t.v*$[0]:b+=I.t.v*$));for(e.strokeWidthAnim&&(Ze=e.sw||0),e.strokeColorAnim&&(e.sc?me=[e.sc[0],e.sc[1],e.sc[2]]:me=[0,0,0]),e.fillColorAnim&&e.fc&&(Ft=[e.fc[0],e.fc[1],e.fc[2]]),f=0;f<y;f+=1)I=l[f].a,I.a.propType&&(P=l[f].s,$=P.getMult(x[O].anIndexes[f],h.a[f].s.totalChars),$.length?c.translate(-I.a.v[0]*$[0],-I.a.v[1]*$[1],I.a.v[2]*$[2]):c.translate(-I.a.v[0]*$,-I.a.v[1]*$,I.a.v[2]*$));for(f=0;f<y;f+=1)I=l[f].a,I.s.propType&&(P=l[f].s,$=P.getMult(x[O].anIndexes[f],h.a[f].s.totalChars),$.length?c.scale(1+(I.s.v[0]-1)*$[0],1+(I.s.v[1]-1)*$[1],1):c.scale(1+(I.s.v[0]-1)*$,1+(I.s.v[1]-1)*$,1));for(f=0;f<y;f+=1){if(I=l[f].a,P=l[f].s,$=P.getMult(x[O].anIndexes[f],h.a[f].s.totalChars),I.sk.propType&&($.length?c.skewFromAxis(-I.sk.v*$[0],I.sa.v*$[1]):c.skewFromAxis(-I.sk.v*$,I.sa.v*$)),I.r.propType&&($.length?c.rotateZ(-I.r.v*$[2]):c.rotateZ(-I.r.v*$)),I.ry.propType&&($.length?c.rotateY(I.ry.v*$[1]):c.rotateY(I.ry.v*$)),I.rx.propType&&($.length?c.rotateX(I.rx.v*$[0]):c.rotateX(I.rx.v*$)),I.o.propType&&($.length?Ve+=(I.o.v*$[0]-Ve)*$[0]:Ve+=(I.o.v*$-Ve)*$),e.strokeWidthAnim&&I.sw.propType&&($.length?Ze+=I.sw.v*$[0]:Ze+=I.sw.v*$),e.strokeColorAnim&&I.sc.propType)for(ht=0;ht<3;ht+=1)$.length?me[ht]+=(I.sc.v[ht]-me[ht])*$[0]:me[ht]+=(I.sc.v[ht]-me[ht])*$;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(ht=0;ht<3;ht+=1)$.length?Ft[ht]+=(I.fc.v[ht]-Ft[ht])*$[0]:Ft[ht]+=(I.fc.v[ht]-Ft[ht])*$;I.fh.propType&&($.length?Ft=Pp(Ft,I.fh.v*$[0]):Ft=Pp(Ft,I.fh.v*$)),I.fs.propType&&($.length?Ft=Mp(Ft,I.fs.v*$[0]):Ft=Mp(Ft,I.fs.v*$)),I.fb.propType&&($.length?Ft=Rp(Ft,I.fb.v*$[0]):Ft=Rp(Ft,I.fb.v*$))}}for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(x[O].anIndexes[f],h.a[f].s.totalChars),this._hasMaskedPath?$.length?c.translate(0,I.p.v[1]*$[0],-I.p.v[2]*$[1]):c.translate(0,I.p.v[1]*$,-I.p.v[2]*$):$.length?c.translate(I.p.v[0]*$[0],I.p.v[1]*$[1],-I.p.v[2]*$[2]):c.translate(I.p.v[0]*$,I.p.v[1]*$,-I.p.v[2]*$));if(e.strokeWidthAnim&&(ri=Ze<0?0:Ze),e.strokeColorAnim&&(Li="rgb("+Math.round(me[0]*255)+","+Math.round(me[1]*255)+","+Math.round(me[2]*255)+")"),e.fillColorAnim&&e.fc&&(ii="rgb("+Math.round(Ft[0]*255)+","+Math.round(Ft[1]*255)+","+Math.round(Ft[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,n[1]*ct*.01+w,0),this._pathData.p.v){yt=(R.point[1]-S.point[1])/(R.point[0]-S.point[0]);var fo=Math.atan(yt)*180/Math.PI;R.point[0]<S.point[0]&&(fo+=180),c.rotate(-fo*Math.PI/180)}c.translate(Et,Mt,0),D-=n[0]*x[O].an*.005,x[O+1]&&at!==x[O+1].ind&&(D+=x[O].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(b,w,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(x[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[O].line]),0,0);break;case 2:c.translate(x[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[O].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(vt,0,0),c.translate(n[0]*x[O].an*.005,n[1]*ct*.01,0),b+=x[O].l+e.tr*.001*e.finalSize}g==="html"?Fr=c.toCSS():g==="svg"?Fr=c.to2dCSS():oi=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],si=Ve}A<=O?(Y=new qd(si,ri,Li,ii,Fr,oi),this.renderedLetters.push(Y),A+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[O],this.lettersChangedFlag=Y.update(si,ri,Li,ii,Fr,oi)||this.lettersChangedFlag)}}},uo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},uo.prototype.mHelper=new ye,uo.prototype.defaultPropsArray=[],L([pe],uo);function dr(){}dr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new we(this,e.t,this.dynamicProperties),this.textAnimator=new uo(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},dr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},dr.prototype.createPathShape=function(e,i){var n,l=i.length,h,c="";for(n=0;n<l;n+=1)i[n].ty==="sh"&&(h=i[n].ks.k,c+=xm(h,h.i.length,!0,e));return c},dr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},dr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},dr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},dr.prototype.applyTextPropertiesToMatrix=function(e,i,n,l,h){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(l,h,0)},dr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},dr.prototype.emptyProp=new qd,dr.prototype.destroy=function(){},dr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var My={shapes:[]};function ti(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}L([Ci,ls,mn,ds,wi,un,dr],ti),ti.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ti.prototype.buildTextContents=function(e){for(var i=0,n=e.length,l=[],h="";i<n;)e[i]==="\r"||e[i]===""?(l.push(h),h=""):h+=e[i],i+=1;return l.push(h),l},ti.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var l=n.it[n.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},ti.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=it(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 l=this.globalData.fontManager.getFontByName(n.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=n.fWeight,c=n.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],A=!!this.globalData.fontManager.chars;i=g.length;var b,w=this.mHelper,O="",G=this.data.singleShape,x=0,M=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!A&&!n.sz){var V=this.textContainer,N="start";switch(n.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",R);var C=this.buildTextContents(n.finalText);for(i=C.length,M=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=C[e],b.setAttribute("x",0),b.setAttribute("y",M),b.style.display="inherit",V.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,M+=n.finalLineHeight;this.layerElement.appendChild(V)}else{var E=this.textSpans.length,S;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(b=E>e?this.textSpans[e].span:Tt(A?"g":"text"),E<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,A){var k=Tt("g");b.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),G&&(g[e].n&&(x=-R,M+=n.yOffset,M+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,w,g[e].line,x,M),x+=g[e].l||0,x+=R),A){S=this.globalData.fontManager.getCharData(n.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var F;if(S.t===1)F=new gn(S.data,this.globalData,this);else{var H=My;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,n.finalSize)),F=new Xt(H,this.globalData,this)}if(this.textSpans[e].glyph){var K=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(K.layerElement),K.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",O)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ti.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},ti.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ti.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,n=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var h,c,g;for(e=0;e<i;e+=1)l[e].n||(h=n[e],c=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Xd(e,i,n){this.initElement(e,i,n)}L([fn],Xd),Xd.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Ni(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Ni.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Ni.prototype.renderFrame=function(){},Ni.prototype.getBaseElement=function(){return null},Ni.prototype.destroy=function(){},Ni.prototype.sourceRectAtTime=function(){},Ni.prototype.hide=function(){},L([Ci,ls,ds,wi],Ni);function ne(){}L([Ee],ne),ne.prototype.createNull=function(e){return new Ni(e,this.globalData,this)},ne.prototype.createShape=function(e){return new Xt(e,this.globalData,this)},ne.prototype.createText=function(e){return new ti(e,this.globalData,this)},ne.prototype.createImage=function(e){return new fn(e,this.globalData,this)},ne.prototype.createSolid=function(e){return new Xd(e,this.globalData,this)},ne.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=Fe();n.setAttribute("id",h),n.appendChild(l),this.layerElement.setAttribute("clip-path","url("+v()+"#"+h+")"),i.appendChild(n),this.layers=e.layers,this.elements=it(e.layers.length)},ne.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},ne.prototype.updateContainerSize=function(){},ne.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},ne.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,Ia()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(n);else{var h=i[l],c=h.getMatte(this.layers[e].tt);n.setMatte(c)}}}},ne.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,h=this.elements[l],c=h.getMatte(this.layers[i].tt);e.setMatte(c);break}i+=1}}},ne.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},ne.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var l=0,h;l<i;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(h=this.elements[l].getBaseElement()),l+=1;h?this.layerElement.insertBefore(n,h):this.layerElement.appendChild(n)}},ne.prototype.hide=function(){this.layerElement.style.display="none"},ne.prototype.show=function(){this.layerElement.style.display="block"};function ei(){}L([Ci,ls,ds,wi,un],ei),ei.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},ei.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=l-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))}},ei.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ei.prototype.setElements=function(e){this.elements=e},ei.prototype.getElements=function(){return this.elements},ei.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},ei.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function gn(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}L([ne,ei,mn],gn),gn.prototype.createComp=function(e){return new gn(e,this.globalData,this)};function Zd(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var l=Tt("title"),h=Fe();l.setAttribute("id",h),l.textContent=i.title,this.svgElement.appendChild(l),n+=h}if(i&&i.description){var c=Tt("desc"),g=Fe();c.setAttribute("id",g),c.textContent=i.description,this.svgElement.appendChild(c),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var A=Tt("defs");this.svgElement.appendChild(A);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return L([ne],Zd),Zd.prototype.createComp=function(e){return new gn(e,this.globalData,this)},Hb("svg",Zd),Ii.registerModifier("tm",Ar),Ii.registerModifier("pb",nn),Ii.registerModifier("rp",Pr),Ii.registerModifier("rd",an),Ii.registerModifier("zz",dn),Ii.registerModifier("op",cn),Pt})});var Ga=globalThis,Ya=Ga.ShadowRoot&&(Ga.ShadyCSS===void 0||Ga.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jd=Symbol(),Sm=new WeakMap,bn=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==Jd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Ya&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Sm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Sm.set(t,o))}return o}toString(){return this.cssText}},Im=a=>new bn(typeof a=="string"?a:a+"",void 0,Jd),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,d)=>r+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[d+1],a[0]);return new bn(t,a,Jd)},tc=(a,o)=>{if(Ya)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Ga.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},Ka=Ya?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Im(t)})(a):a;var{is:By,defineProperty:Uy,getOwnPropertyDescriptor:Hy,getOwnPropertyNames:Gy,getOwnPropertySymbols:Yy,getPrototypeOf:Ky}=Object,Pi=globalThis,_m=Pi.trustedTypes,Wy=_m?_m.emptyScript:"",ec=Pi.reactiveElementPolyfillSupport,yn=(a,o)=>a,En={toAttribute(a,o){switch(o){case Boolean:a=a?Wy:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},Wa=(a,o)=>!By(a,o),Cm={attribute:!0,type:String,converter:En,reflect:!1,hasChanged:Wa},wm,km;(wm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(km=Pi.litPropertyMetadata)!=null||(Pi.litPropertyMetadata=new WeakMap);var ni=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Cm){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&Uy(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var m;let{get:s,set:d}=(m=Hy(this.prototype,o))!=null?m:{get(){return this[t]},set(v){this[t]=v}};return{get(){return s==null?void 0:s.call(this)},set(v){let T=s==null?void 0:s.call(this);d.call(this,v),this.requestUpdate(o,T,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Cm}static _$Ei(){if(this.hasOwnProperty(yn("elementProperties")))return;let o=Ky(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(yn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yn("properties"))){let t=this.properties,r=[...Gy(t),...Yy(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(Ka(s))}else o!==void 0&&t.push(Ka(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return tc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var d;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let m=(((d=r.converter)==null?void 0:d.toAttribute)!==void 0?r.converter:En).toAttribute(t,r.type);this._$Em=o,m==null?this.removeAttribute(s):this.setAttribute(s,m),this._$Em=null}}_$AK(o,t){var d;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let m=r.getPropertyOptions(s),v=typeof m.converter=="function"?{fromAttribute:m.converter}:((d=m.converter)==null?void 0:d.fromAttribute)!==void 0?m.converter:En;this._$Em=s,this[s]=v.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:Wa)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,v]of this._$Ep)this[m]=v;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[m,v]of d)v.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],v)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(d=>{var m;return(m=d.hostUpdate)==null?void 0:m.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},Nm;ni.elementStyles=[],ni.shadowRootOptions={mode:"open"},ni[yn("elementProperties")]=new Map,ni[yn("finalized")]=new Map,ec==null||ec({ReactiveElement:ni}),((Nm=Pi.reactiveElementVersions)!=null?Nm:Pi.reactiveElementVersions=[]).push("2.0.4");var xn=globalThis,ja=xn.trustedTypes,Lm=ja?ja.createPolicy("lit-html",{createHTML:a=>a}):void 0,oc="$lit$",ai=`lit$${Math.random().toFixed(9).slice(2)}$`,sc="?"+ai,jy=`<${sc}>`,bo=document,An=()=>bo.createComment(""),Sn=a=>a===null||typeof a!="object"&&typeof a!="function",nc=Array.isArray,$m=a=>nc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",rc=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rm=/'/g,Pm=/"/g,zm=/^(?:script|style|textarea|title)$/i,ac=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),_=ac(1),R0=ac(2),P0=ac(3),Te=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Dm=new WeakMap,go=bo.createTreeWalker(bo,129);function Vm(a,o){if(!nc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lm!==void 0?Lm.createHTML(o):o}var Bm=(a,o)=>{let t=a.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",m=Tn;for(let v=0;v<t;v++){let T=a[v],L,U,q=-1,Q=0;for(;Q<T.length&&(m.lastIndex=Q,U=m.exec(T),U!==null);)Q=m.lastIndex,m===Tn?U[1]==="!--"?m=Om:U[1]!==void 0?m=Mm:U[2]!==void 0?(zm.test(U[2])&&(s=RegExp("</"+U[2],"g")),m=vo):U[3]!==void 0&&(m=vo):m===vo?U[0]===">"?(m=s!=null?s:Tn,q=-1):U[1]===void 0?q=-2:(q=m.lastIndex-U[2].length,L=U[1],m=U[3]===void 0?vo:U[3]==='"'?Pm:Rm):m===Pm||m===Rm?m=vo:m===Om||m===Mm?m=Tn:(m=vo,s=void 0);let X=m===vo&&a[v+1].startsWith("/>")?" ":"";d+=m===Tn?T+jy:q>=0?(r.push(L),T.slice(0,q)+oc+T.slice(q)+ai+X):T+ai+(q===-2?v:X)}return[Vm(a,d+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},In=class a{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,m=0,v=o.length-1,T=this.parts,[L,U]=Bm(o,t);if(this.el=a.createElement(L,r),go.currentNode=this.el.content,t===2||t===3){let q=this.el.content.firstChild;q.replaceWith(...q.childNodes)}for(;(s=go.nextNode())!==null&&T.length<v;){if(s.nodeType===1){if(s.hasAttributes())for(let q of s.getAttributeNames())if(q.endsWith(oc)){let Q=U[m++],X=s.getAttribute(q).split(ai),it=/([.?@])?(.*)/.exec(Q);T.push({type:1,index:d,name:it[2],strings:X,ctor:it[1]==="."?Xa:it[1]==="?"?Za:it[1]==="@"?Qa:Eo}),s.removeAttribute(q)}else q.startsWith(ai)&&(T.push({type:6,index:d}),s.removeAttribute(q));if(zm.test(s.tagName)){let q=s.textContent.split(ai),Q=q.length-1;if(Q>0){s.textContent=ja?ja.emptyScript:"";for(let X=0;X<Q;X++)s.append(q[X],An()),go.nextNode(),T.push({type:2,index:++d});s.append(q[Q],An())}}}else if(s.nodeType===8)if(s.data===sc)T.push({type:2,index:d});else{let q=-1;for(;(q=s.data.indexOf(ai,q+1))!==-1;)T.push({type:7,index:d}),q+=ai.length-1}d++}}static createElement(o,t){let r=bo.createElement("template");return r.innerHTML=o,r}};function yo(a,o,t=a,r){var m,v,T;if(o===Te)return o;let s=r!==void 0?(m=t.o)==null?void 0:m[r]:t.l,d=Sn(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((v=s==null?void 0:s._$AO)==null||v.call(s,!1),d===void 0?s=void 0:(s=new d(a),s._$AT(a,t,r)),r!==void 0?((T=t.o)!=null?T:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=yo(a,s._$AS(a,o.values),s,r)),o}var qa=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var L;let{el:{content:t},parts:r}=this._$AD,s=((L=o==null?void 0:o.creationScope)!=null?L:bo).importNode(t,!0);go.currentNode=s;let d=go.nextNode(),m=0,v=0,T=r[0];for(;T!==void 0;){if(m===T.index){let U;T.type===2?U=new hs(d,d.nextSibling,this,o):T.type===1?U=new T.ctor(d,T.name,T.strings,this,o):T.type===6&&(U=new Ja(d,this,o)),this._$AV.push(U),T=r[++v]}m!==(T==null?void 0:T.index)&&(d=go.nextNode(),m++)}return go.currentNode=bo,s}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},hs=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var d;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(d=s==null?void 0:s.isConnected)!=null?d:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=yo(this,o,t),Sn(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==Te&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):$m(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==W&&Sn(this._$AH)?this._$AA.nextSibling.data=o:this.T(bo.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=In.createElement(Vm(r.h,r.h[0]),this.options)),r);if(((d=this._$AH)==null?void 0:d._$AD)===s)this._$AH.p(t);else{let m=new qa(s,this),v=m.u(this.options);m.p(t),this.T(v),this._$AH=m}}_$AC(o){let t=Dm.get(o.strings);return t===void 0&&Dm.set(o.strings,t=new In(o)),t}k(o){nc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let d of o)s===t.length?t.push(r=new a(this.O(An()),this.O(An()),this,this.options)):r=t[s],r._$AI(d),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Eo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,d){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}_$AI(o,t=this,r,s){let d=this.strings,m=!1;if(d===void 0)o=yo(this,o,t,0),m=!Sn(o)||o!==this._$AH&&o!==Te,m&&(this._$AH=o);else{let v=o,T,L;for(o=d[0],T=0;T<d.length-1;T++)L=yo(this,v[r+T],t,T),L===Te&&(L=this._$AH[T]),m||(m=!Sn(L)||L!==this._$AH[T]),L===W?o=W:o!==W&&(o+=(L!=null?L:"")+d[T+1]),this._$AH[T]=L}m&&!s&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Xa=class extends Eo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Za=class extends Eo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Qa=class extends Eo{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var m;if((o=(m=yo(this,o,t,0))!=null?m:W)===Te)return;let r=this._$AH,s=o===W&&r!==W||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==W&&(r===W||s);s&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},Ja=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){yo(this,o)}},Um={M:oc,P:ai,A:sc,C:1,L:Bm,R:qa,D:$m,V:yo,I:hs,H:Eo,N:Za,U:Qa,B:Xa,F:Ja},ic=xn.litHtmlPolyfillSupport,Fm;ic==null||ic(In,hs),((Fm=xn.litHtmlVersions)!=null?Fm:xn.litHtmlVersions=[]).push("3.2.0");var Hm=(a,o,t)=>{var d,m;let r=(d=t==null?void 0:t.renderBefore)!=null?d:o,s=r._$litPart$;if(s===void 0){let v=(m=t==null?void 0:t.renderBefore)!=null?m:null;r._$litPart$=s=new hs(o.insertBefore(An(),v),v,void 0,t!=null?t:{})}return s._$AI(a),s};var Di=class extends ni{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Hm(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return Te}},Gm;Di._$litElement$=!0,Di.finalized=!0,(Gm=globalThis.litElementHydrateSupport)==null||Gm.call(globalThis,{LitElement:Di});var lc=globalThis.litElementPolyfillSupport;lc==null||lc({LitElement:Di});var Ym;((Ym=globalThis.litElementVersions)!=null?Ym:globalThis.litElementVersions=[]).push("4.1.0");var qy={attribute:!0,type:String,converter:En,reflect:!1,hasChanged:Wa},Xy=(a=qy,o,t)=>{let{kind:r,metadata:s}=t,d=globalThis.litPropertyMetadata.get(s);if(d===void 0&&globalThis.litPropertyMetadata.set(s,d=new Map),d.set(t.name,a),r==="accessor"){let{name:m}=t;return{set(v){let T=o.get.call(this);o.set.call(this,v),this.requestUpdate(m,T,a)},init(v){return v!==void 0&&this.P(m,void 0,a),v}}}if(r==="setter"){let{name:m}=t;return function(v){let T=this[m];o.call(this,v),this.requestUpdate(m,T,a)}}throw Error("Unsupported decorator location: "+r)};function u(a){return(o,t)=>typeof t=="object"?Xy(a,o,t):((r,s,d)=>{let m=s.hasOwnProperty(d);return s.constructor.createProperty(d,m?{...r,wrapped:!0}:r),m?Object.getOwnPropertyDescriptor(s,d):void 0})(a,o,t)}function ut(a){return u({...a,state:!0,attribute:!1})}function Km(a){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,a)}}var $r=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Zt(a,o){return(t,r,s)=>{let d=m=>{var v,T;return(T=(v=m.renderRoot)==null?void 0:v.querySelector(a))!=null?T:null};if(o){let{get:m,set:v}=typeof r=="object"?t:s!=null?s:(()=>{let T=Symbol();return{get(){return this[T]},set(L){this[T]=L}}})();return $r(t,r,{get(){let T=m.call(this);return T===void 0&&(T=d(this),(T!==null||this.hasUpdated)&&v.call(this,T)),T}})}return $r(t,r,{get(){return d(this)}})}}var dc;function Wm(a){return(o,t)=>$r(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:dc!=null?dc:dc=document.createDocumentFragment()).querySelectorAll(a)}})}function Dt(a){return(o,t)=>{let{slot:r,selector:s}=a!=null?a:{},d="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var T,L;let m=(T=this.renderRoot)==null?void 0:T.querySelector(d),v=(L=m==null?void 0:m.assignedElements(a))!=null?L:[];return s===void 0?v:v.filter(U=>U.matches(s))}})}}function jm(a){return(o,t)=>{let{slot:r}=a!=null?a:{},s="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var m,v;let d=(m=this.renderRoot)==null?void 0:m.querySelector(s);return(v=d==null?void 0:d.assignedNodes(a))!=null?v:[]}})}}var Zy={PREFIX:"mdc",SEPARATOR:"-"},Qy={NAMESPACE:Zy},cc=Qy;var Jy=a=>[cc.NAMESPACE.PREFIX,a].join(cc.NAMESPACE.SEPARATOR),z={constructTagName:Jy};var J={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 qm=z.constructTagName("buttonsimple"),To={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},ps={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},_n={SIZE:To[32],TYPE:ps.BUTTON,ROLE:J.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var li=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Cn={40:40,32:32,28:28,24:24},cr={64:64,52:52,20:20,...Cn},xo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},ms={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ue={VARIANT:$t.PRIMARY,SIZE:Cn[32],COLOR:xo.DEFAULT,TYPE_INTERNAL:ms.ICON,TYPE:ps.BUTTON,INVERTED:!1};var tl=a=>{class o extends a{constructor(){super(...arguments);this.variant=Ue.VARIANT;this.color=Ue.COLOR;this.typeInternal=Ue.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values($t).includes(s)?s:Ue.VARIANT)}setColor(s){!Object.values(xo).includes(s)||this.variant===$t.TERTIARY?this.setAttribute("color",`${Ue.COLOR}`):this.setAttribute("color",s)}setSize(s){let m=this.typeInternal===ms.ICON?Object.values(cr).includes(s)&&!(s===cr[20]&&this.variant!==$t.TERTIARY):Object.values(Cn).includes(s);this.setAttribute("size",m?`${s}`:`${Ue.SIZE}`)}inferButtonType(){var L,U,q,Q,X,it;let s=(U=(L=this.shadowRoot)==null?void 0:L.querySelector("slot:not([name])"))==null?void 0:U.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,d=(Q=(q=this.shadowRoot)==null?void 0:q.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,m=this.prefixIcon||d&&d>0,v=(it=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:it.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,T=this.postfixIcon||v&&v>0;s&&(m||T)?(this.typeInternal=ms.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(m||T)?(this.typeInternal=ms.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=ms.PILL,this.setAttribute("data-btn-type","pill"))}}return p([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),p([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),p([u({type:String})],o.prototype,"variant",2),p([u({type:String})],o.prototype,"color",2),p([ut()],o.prototype,"typeInternal",2),o};var Xm=B`
|
|
1
|
+
"use strict";(()=>{var Ry=Object.create;var Qd=Object.defineProperty;var Am=Object.getOwnPropertyDescriptor;var Py=Object.getOwnPropertyNames;var Dy=Object.getPrototypeOf,Fy=Object.prototype.hasOwnProperty;var $y=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var zy=(a,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Py(o))!Fy.call(a,s)&&s!==t&&Qd(a,s,{get:()=>o[s],enumerable:!(r=Am(o,s))||r.enumerable});return a};var Vy=(a,o,t)=>(t=a!=null?Ry(Dy(a)):{},zy(o||!a||!a.__esModule?Qd(t,"default",{value:a,enumerable:!0}):t,a));var m=(a,o,t,r)=>{for(var s=r>1?void 0:r?Am(o,t):o,d=a.length-1,p;d>=0;d--)(p=a[d])&&(s=(r?p(o,t,s):p(s))||s);return r&&s&&Qd(o,t,s),s};var Iu=$y((Pn,vl)=>{typeof navigator<"u"&&function(a,o){typeof Pn=="object"&&typeof vl<"u"?vl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(Pn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},d=function(){return t},p=function(i){o=i},f=function(){return o};function T(e){return document.createElement(e)}function L(e,i){var n,l=e.length,h;for(n=0;n<l;n+=1){h=e[n].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(i.prototype[c]=h[c])}}function U(e,i){return Object.getOwnPropertyDescriptor(e,i)}function q(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].pause()},resume:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].resume()},setRate:function(n){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].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,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(n,l){var h=0,c=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(h=0;h<l;h+=1)c.push(g);return c}function i(n,l){return n==="float32"?new Float32Array(l):n==="int16"?new Int16Array(l):n==="uint8c"?new Uint8ClampedArray(l):e(n,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function it(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(n){return typeof n}:dt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dt(e)}var lt=!0,gt=null,It=null,Ct="",Kt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Wt=Math.pow,te=Math.sqrt,pe=Math.floor,Er=Math.max,De=Math.min,ir={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,n=e.length;for(i=0;i<n;i+=1)ir[e[i]]=Math[e[i]]})();function Tr(){return{}}ir.random=Math.random,ir.abs=function(e){var i=dt(e);if(i==="object"&&e.length){var n=it(e.length),l,h=e.length;for(l=0;l<h;l+=1)n[l]=Math.abs(e[l]);return n}return Math.abs(e)};var xr=150,wt=Math.PI/180,ge=.5519;function or(e){Vt=!!e}function sr(e){return Vt?Math.round(e):e}function nr(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function ar(e,i,n,l){this.type=e,this.currentTime=i,this.totalTime=n,this.direction=l<0?-1:1}function Sa(e,i){this.type=e,this.direction=i<0?-1:1}function Np(e,i,n,l){this.type=e,this.currentLoop=n,this.totalLoops=i,this.direction=l<0?-1:1}function Lp(e,i,n){this.type=e,this.firstFrame=i,this.totalFrames=n}function Op(e,i){this.type=e,this.target=i}function Rb(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function Pb(e){this.type="configError",this.nativeError=e}function S0(e,i){this.type=e,this.nativeError=i}var Fe=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function zd(e,i,n){var l,h,c,g,A,b,w,O;switch(g=Math.floor(e*6),A=e*6-g,b=n*(1-i),w=n*(1-A*i),O=n*(1-(1-A)*i),g%6){case 0:l=n,h=O,c=b;break;case 1:l=w,h=n,c=b;break;case 2:l=b,h=n,c=O;break;case 3:l=b,h=w,c=n;break;case 4:l=O,h=b,c=n;break;case 5:l=n,h=b,c=w;break;default:break}return[l,h,c]}function Vd(e,i,n){var l=Math.max(e,i,n),h=Math.min(e,i,n),c=l-h,g,A=l===0?0:c/l,b=l/255;switch(l){case h:g=0;break;case e:g=i-n+c*(i<n?6:0),g/=6*c;break;case i:g=n-e+c*2,g/=6*c;break;case n:g=e-i+c*4,g/=6*c;break;default:break}return[g,A,b]}function Mp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[1]+=i,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),zd(n[0],n[1],n[2])}function Rp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[2]+=i,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),zd(n[0],n[1],n[2])}function Pp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[0]+=i/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),zd(n[0],n[1],n[2])}var I0=function(){var e=[],i,n;for(i=0;i<256;i+=1)n=i.toString(16),e[i]=n.length===1?"0"+n:n;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),Db=function(i){lt=!!i},Fb=function(){return lt},$b=function(i){gt=i},Ia=function(){return gt},_0=function(i){It=i},Dp=function(){return It},_a=function(i){xr=i},en=function(){return xr},zb=function(i){Ct=i},C0=function(){return Ct};function Tt(e){return document.createElementNS(a,e)}function Ca(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ca=function(n){return typeof n}:Ca=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ca(e)}var rn=function(){var e=1,i=[],n,l,h={onmessage:function(){},postMessage:function(M){n({data:M})}},c={postMessage:function(M){h.onmessage({data:M})}};function g(x){if(window.Worker&&window.Blob&&d()){var M=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(M);return new Worker(D)}return n=x,h}function A(){l||(l=g(function(M){function D(){function V(et,I){var P,v,y=et.length,Y,$,at,vt;for(v=0;v<y;v+=1)if(P=et[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for($=Et.length,Y=0;Y<$;Y+=1)if(Et[Y].pt.k.i)k(Et[Y].pt.k);else for(vt=Et[Y].pt.k.length,at=0;at<vt;at+=1)Et[Y].pt.k[at].s&&k(Et[Y].pt.k[at].s[0]),Et[Y].pt.k[at].e&&k(Et[Y].pt.k[at].e[0])}P.ty===0?(P.layers=E(P.refId,I),V(P.layers,I)):P.ty===4?S(P.shapes):P.ty===5&&xt(P)}}function N(et,I){if(et){var P=0,v=et.length;for(P=0;P<v;P+=1)et[P].t===1&&(et[P].data.layers=E(et[P].data.refId,I),V(et[P].data.layers,I))}}function C(et,I){for(var P=0,v=I.length;P<v;){if(I[P].id===et)return I[P];P+=1}return null}function E(et,I){var P=C(et,I);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function S(et){var I,P=et.length,v,y;for(I=P-1;I>=0;I-=1)if(et[I].ty==="sh")if(et[I].ks.k.i)k(et[I].ks.k);else for(y=et[I].ks.k.length,v=0;v<y;v+=1)et[I].ks.k[v].s&&k(et[I].ks.k[v].s[0]),et[I].ks.k[v].e&&k(et[I].ks.k[v].e[0]);else et[I].ty==="gr"&&S(et[I].it)}function k(et){var I,P=et.i.length;for(I=0;I<P;I+=1)et.i[I][0]+=et.v[I][0],et.i[I][1]+=et.v[I][1],et.o[I][0]+=et.v[I][0],et.o[I][1]+=et.v[I][1]}function F(et,I){var P=I?I.split("."):[100,100,100];return et[0]>P[0]?!0:P[0]>et[0]?!1:et[1]>P[1]?!0:P[1]>et[1]?!1:et[2]>P[2]?!0:P[2]>et[2]?!1:null}var H=function(){var et=[4,4,14];function I(v){var y=v.t.d;v.t.d={k:[{s:y,t:0}]}}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===5&&I(v[y])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),K=function(){var et=[4,7,99];return function(I){if(I.chars&&!F(et,I.v)){var P,v=I.chars.length;for(P=0;P<v;P+=1){var y=I.chars[P];y.data&&y.data.shapes&&(S(y.data.shapes),y.data.ip=0,y.data.op=99999,y.data.st=0,y.data.sr=1,y.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},I.chars[P].t||(y.data.shapes.push({ty:"no"}),y.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),rt=function(){var et=[5,7,15];function I(v){var y=v.t.p;typeof y.a=="number"&&(y.a={a:0,k:y.a}),typeof y.p=="number"&&(y.p={a:0,k:y.p}),typeof y.r=="number"&&(y.r={a:0,k:y.r})}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===5&&I(v[y])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),yt=function(){var et=[4,1,9];function I(v){var y,Y=v.length,$,at;for(y=0;y<Y;y+=1)if(v[y].ty==="gr")I(v[y].it);else if(v[y].ty==="fl"||v[y].ty==="st")if(v[y].c.k&&v[y].c.k[0].i)for(at=v[y].c.k.length,$=0;$<at;$+=1)v[y].c.k[$].s&&(v[y].c.k[$].s[0]/=255,v[y].c.k[$].s[1]/=255,v[y].c.k[$].s[2]/=255,v[y].c.k[$].s[3]/=255),v[y].c.k[$].e&&(v[y].c.k[$].e[0]/=255,v[y].c.k[$].e[1]/=255,v[y].c.k[$].e[2]/=255,v[y].c.k[$].e[3]/=255);else v[y].c.k[0]/=255,v[y].c.k[1]/=255,v[y].c.k[2]/=255,v[y].c.k[3]/=255}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===4&&I(v[y].shapes)}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),mt=function(){var et=[4,4,18];function I(v){var y,Y=v.length,$,at;for(y=Y-1;y>=0;y-=1)if(v[y].ty==="sh")if(v[y].ks.k.i)v[y].ks.k.c=v[y].closed;else for(at=v[y].ks.k.length,$=0;$<at;$+=1)v[y].ks.k[$].s&&(v[y].ks.k[$].s[0].c=v[y].closed),v[y].ks.k[$].e&&(v[y].ks.k[$].e[0].c=v[y].closed);else v[y].ty==="gr"&&I(v[y].it)}function P(v){var y,Y,$=v.length,at,vt,Et,Mt;for(Y=0;Y<$;Y+=1){if(y=v[Y],y.hasMask){var Rt=y.masksProperties;for(vt=Rt.length,at=0;at<vt;at+=1)if(Rt[at].pt.k.i)Rt[at].pt.k.c=Rt[at].cl;else for(Mt=Rt[at].pt.k.length,Et=0;Et<Mt;Et+=1)Rt[at].pt.k[Et].s&&(Rt[at].pt.k[Et].s[0].c=Rt[at].cl),Rt[at].pt.k[Et].e&&(Rt[at].pt.k[Et].e[0].c=Rt[at].cl)}y.ty===4&&I(y.shapes)}}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}();function st(et){et.__complete||(yt(et),H(et),K(et),rt(et),mt(et),V(et.layers,et.assets),N(et.chars,et.assets),et.__complete=!0)}function xt(et){et.t.a.length===0&&"m"in et.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=K,ct.checkPathProperties=rt,ct.checkShapes=mt,ct.completeLayers=V,ct}if(c.dataManager||(c.dataManager=D()),c.assetLoader||(c.assetLoader=function(){function V(C){var E=C.getResponseHeader("content-type");return E&&C.responseType==="json"&&E.indexOf("json")!==-1||C.response&&Ca(C.response)==="object"?C.response:C.response&&typeof C.response=="string"?JSON.parse(C.response):C.responseText?JSON.parse(C.responseText):null}function N(C,E,S,k){var F,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)F=V(H),S(F);else try{F=V(H),S(F)}catch(K){k&&k(K)}};try{H.open(["G","E","T"].join(""),C,!0)}catch{H.open(["G","E","T"].join(""),E+"/"+C,!0)}H.send()}return{load:N}}()),M.data.type==="loadAnimation")c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})});else if(M.data.type==="complete"){var R=M.data.animation;c.dataManager.completeData(R),c.postMessage({id:M.data.id,payload:R,status:"success"})}else M.data.type==="loadData"&&c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})})}),l.onmessage=function(x){var M=x.data,D=M.id,R=i[D];i[D]=null,M.status==="success"?R.onComplete(M.payload):R.onError&&R.onError()})}function b(x,M){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:M},D}function w(x,M,D){A();var R=b(M,D);l.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function O(x,M,D){A();var R=b(M,D);l.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,M,D){A();var R=b(M,D);l.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:O,completeAnimation:G}}(),Vb=function(){var e=function(){var N=T("canvas");N.width=1,N.height=1;var C=N.getContext("2d");return C.fillStyle="rgba(0,0,0,0)",C.fillRect(0,0,1,1),N}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(N,C,E){var S="";if(N.e)S=N.p;else if(C){var k=N.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),S=C+k}else S=E,S+=N.u?N.u:"",S+=N.p;return S}function h(N){var C=0,E=setInterval((function(){var S=N.getBBox();(S.width||C>500)&&(this._imageLoaded(),clearInterval(E)),C+=1}).bind(this),50)}function c(N){var C=l(N,this.assetsPath,this.path),E=Tt("image");Kt?this.testImageLoaded(E):E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this._elementHelper.append?this._elementHelper.append(E):this._elementHelper.appendChild(E);var S={img:E,assetData:N};return S}function g(N){var C=l(N,this.assetsPath,this.path),E=T("img");E.crossOrigin="anonymous",E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.src=C;var S={img:E,assetData:N};return S}function A(N){var C={assetData:N},E=l(N,this.assetsPath,this.path);return rn.loadData(E,(function(S){C.img=S,this._footageLoaded()}).bind(this),(function(){C.img={},this._footageLoaded()}).bind(this)),C}function b(N,C){this.imagesLoadedCb=C;var E,S=N.length;for(E=0;E<S;E+=1)N[E].layers||(!N[E].t||N[E].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(N[E]))):N[E].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(N[E]))))}function w(N){this.path=N||""}function O(N){this.assetsPath=N||""}function G(N){for(var C=0,E=this.images.length;C<E;){if(this.images[C].assetData===N)return this.images[C].img;C+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function M(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(N,C){N==="svg"?(this._elementHelper=C,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=i.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=A.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:b,setAssetsPath:O,setPath:w,loadedImages:M,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:c,imageLoaded:i,footageLoaded:n,setCacheType:R},V}();function Fp(){}Fp.prototype={triggerEvent:function(i,n){if(this._cbs[i])for(var l=this._cbs[i],h=0;h<l.length;h+=1)l[h](n)},addEventListener:function(i,n){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(n),(function(){this.removeEventListener(i,n)}).bind(this)},removeEventListener:function(i,n){if(!n)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,h=this._cbs[i].length;l<h;)this._cbs[i][l]===n&&(this._cbs[i].splice(l,1),l-=1,h-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var Bb=function(){function e(i){for(var n=i.split(`\r
|
|
2
|
+
`),l={},h,c=0,g=0;g<n.length;g+=1)h=n[g].split(":"),h.length===2&&(l[h[0]]=h[1].trim(),c+=1);if(c===0)throw new Error;return l}return function(i){for(var n=[],l=0;l<i.length;l+=1){var h=i[l],c={time:h.tm,duration:h.dr};try{c.payload=JSON.parse(i[l].cm)}catch{try{c.payload=e(i[l].cm)}catch{c.payload={name:i[l].cm}}}n.push(c)}return n}}(),Ub=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===n)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),on={},Hb=function(i,n){on[i]=n};function Gb(e){return on[e]}function Yb(){if(on.canvas)return"canvas";for(var e in on)if(on[e])return e;return""}function sn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sn=function(n){return typeof n}:sn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sn(e)}var ft=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Fe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Fb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Ub(),this.imagePreloader=new Vb,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 ar("drawnFrame",0,0,0),this.expressionsPlugin=Ia()};L([Fp],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=Gb(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),rn.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){rn.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&sn(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},l=e.attributes;n.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",n.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:Yb()||"canvas";var h=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";h==="false"?n.loop=!1:h==="true"?n.loop=!0:h!==""&&(n.loop=parseInt(h,10));var c=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;n.autoplay=c!=="false",n.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var g=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,l=i.length,h=e.layers,c,g=h.length;for(c=0;c<g;c+=1)for(n=0;n<l;){if(i[n].id===h[c].id){i[n]=h[c];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,n=0;n<l;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,rn.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Ia();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,rn.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Bb(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=Ia();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,l)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&this.goToAndStop(h.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(l,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),sn(e[0])==="object"){var n,l=e.length;for(n=0;n<l;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new ar(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new Np(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Sa(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new Lp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Op(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new ar(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Np(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Sa(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Lp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Op(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new Rb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new Pb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ee=function(){var e={},i=[],n=0,l=0,h=0,c=!0,g=!1;function A(I){for(var P=0,v=I.target;P<l;)i[P].animation===v&&(i.splice(P,1),P-=1,l-=1,v.isPaused||G()),P+=1}function b(I,P){if(!I)return null;for(var v=0;v<l;){if(i[v].elem===I&&i[v].elem!==null)return i[v].animation;v+=1}var y=new ft;return x(y,I),y.setData(I,P),y}function w(){var I,P=i.length,v=[];for(I=0;I<P;I+=1)v.push(i[I].animation);return v}function O(){h+=1,yt()}function G(){h-=1}function x(I,P){I.addEventListener("destroy",A),I.addEventListener("_active",O),I.addEventListener("_idle",G),i.push({elem:P,animation:I}),l+=1}function M(I){var P=new ft;return x(P,null),P.setParams(I),P}function D(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setSpeed(I,P)}function R(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setDirection(I,P)}function V(I){var P;for(P=0;P<l;P+=1)i[P].animation.play(I)}function N(I){var P=I-n,v;for(v=0;v<l;v+=1)i[v].animation.advanceTime(P);n=I,h&&!g?window.requestAnimationFrame(N):c=!0}function C(I){n=I,window.requestAnimationFrame(N)}function E(I){var P;for(P=0;P<l;P+=1)i[P].animation.pause(I)}function S(I,P,v){var y;for(y=0;y<l;y+=1)i[y].animation.goToAndStop(I,P,v)}function k(I){var P;for(P=0;P<l;P+=1)i[P].animation.stop(I)}function F(I){var P;for(P=0;P<l;P+=1)i[P].animation.togglePause(I)}function H(I){var P;for(P=l-1;P>=0;P-=1)i[P].animation.destroy(I)}function K(I,P,v){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,$=y.length;for(Y=0;Y<$;Y+=1)v&&y[Y].setAttribute("data-bm-type",v),b(y[Y],I);if(P&&$===0){v||(v="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=T("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),at.appendChild(vt),b(vt,I)}}function rt(){var I;for(I=0;I<l;I+=1)i[I].animation.resize()}function yt(){!g&&h&&c&&(window.requestAnimationFrame(C),c=!1)}function mt(){g=!0}function st(){g=!1,yt()}function xt(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setVolume(I,P)}function ct(I){var P;for(P=0;P<l;P+=1)i[P].animation.mute(I)}function et(I){var P;for(P=0;P<l;P+=1)i[P].animation.unmute(I)}return e.registerAnimation=b,e.loadAnimation=M,e.setSpeed=D,e.setDirection=R,e.play=V,e.pause=E,e.stop=k,e.togglePause=F,e.searchAnimations=K,e.resize=rt,e.goToAndStop=S,e.destroy=H,e.freeze=mt,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=et,e.getRegisteredAnimations=w,e}(),nn=function(){var e={};e.getBezierEasing=n;var i={};function n(C,E,S,k,F){var H=F||("bez_"+C+"_"+E+"_"+S+"_"+k).replace(/\./g,"p");if(i[H])return i[H];var K=new N([C,E,S,k]);return i[H]=K,K}var l=4,h=.001,c=1e-7,g=10,A=11,b=1/(A-1),w=typeof Float32Array=="function";function O(C,E){return 1-3*E+3*C}function G(C,E){return 3*E-6*C}function x(C){return 3*C}function M(C,E,S){return((O(E,S)*C+G(E,S))*C+x(E))*C}function D(C,E,S){return 3*O(E,S)*C*C+2*G(E,S)*C+x(E)}function R(C,E,S,k,F){var H,K,rt=0;do K=E+(S-E)/2,H=M(K,k,F)-C,H>0?S=K:E=K;while(Math.abs(H)>c&&++rt<g);return K}function V(C,E,S,k){for(var F=0;F<l;++F){var H=D(E,S,k);if(H===0)return E;var K=M(E,S,k)-C;E-=K/H}return E}function N(C){this._p=C,this._mSampleValues=w?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(E){var S=this._p[0],k=this._p[1],F=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),S===k&&F===H?E:E===0?0:E===1?1:M(this._getTForX(E),k,H)},_precompute:function(){var E=this._p[0],S=this._p[1],k=this._p[2],F=this._p[3];this._precomputed=!0,(E!==S||k!==F)&&this._calcSampleValues()},_calcSampleValues:function(){for(var E=this._p[0],S=this._p[2],k=0;k<A;++k)this._mSampleValues[k]=M(k*b,E,S)},_getTForX:function(E){for(var S=this._p[0],k=this._p[2],F=this._mSampleValues,H=0,K=1,rt=A-1;K!==rt&&F[K]<=E;++K)H+=b;--K;var yt=(E-F[K])/(F[K+1]-F[K]),mt=H+yt*b,st=D(mt,S,k);return st>=h?V(E,mt,S,k):st===0?mt:R(E,H,H+b,S,k)}},e}(),$p=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),wa=function(){return function(e,i,n){var l=0,h=e,c=it(h),g={newElement:A,release:b};function A(){var w;return l?(l-=1,w=c[l]):w=i(),w}function b(w){l===h&&(c=$p.double(c),h*=2),n&&n(w),c[l]=w,l+=1}return g}}(),zp=function(){function e(){return{addedLength:0,percents:X("float32",en()),lengths:X("float32",en())}}return wa(8,e)}(),Vp=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var l,h=n.lengths.length;for(l=0;l<h;l+=1)zp.release(n.lengths[l]);n.lengths.length=0}return wa(8,e,i)}();function Kb(){var e=Math;function i(x,M,D,R,V,N){var C=x*R+M*V+D*N-V*R-N*x-D*M;return C>-.001&&C<.001}function n(x,M,D,R,V,N,C,E,S){if(D===0&&N===0&&S===0)return i(x,M,R,V,C,E);var k=e.sqrt(e.pow(R-x,2)+e.pow(V-M,2)+e.pow(N-D,2)),F=e.sqrt(e.pow(C-x,2)+e.pow(E-M,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(C-R,2)+e.pow(E-V,2)+e.pow(S-N,2)),K;return k>F?k>H?K=k-F-H:K=H-F-k:H>F?K=H-F-k:K=F-k-H,K>-1e-4&&K<1e-4}var l=function(){return function(x,M,D,R){var V=en(),N,C,E,S,k,F=0,H,K=[],rt=[],yt=zp.newElement();for(E=D.length,N=0;N<V;N+=1){for(k=N/(V-1),H=0,C=0;C<E;C+=1)S=Wt(1-k,3)*x[C]+3*Wt(1-k,2)*k*D[C]+3*(1-k)*Wt(k,2)*R[C]+Wt(k,3)*M[C],K[C]=S,rt[C]!==null&&(H+=Wt(K[C]-rt[C],2)),rt[C]=K[C];H&&(H=te(H),F+=H),yt.percents[N]=k,yt.lengths[N]=F}return yt.addedLength=F,yt}}();function h(x){var M=Vp.newElement(),D=x.c,R=x.v,V=x.o,N=x.i,C,E=x._length,S=M.lengths,k=0;for(C=0;C<E-1;C+=1)S[C]=l(R[C],R[C+1],V[C],N[C+1]),k+=S[C].addedLength;return D&&E&&(S[C]=l(R[C],R[0],V[C],N[0]),k+=S[C].addedLength),M.totalLength=k,M}function c(x){this.segmentLength=0,this.points=new Array(x)}function g(x,M){this.partialLength=x,this.point=M}var A=function(){var x={};return function(M,D,R,V){var N=(M[0]+"_"+M[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!x[N]){var C=en(),E,S,k,F,H,K=0,rt,yt,mt=null;M.length===2&&(M[0]!==D[0]||M[1]!==D[1])&&i(M[0],M[1],D[0],D[1],M[0]+R[0],M[1]+R[1])&&i(M[0],M[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(C=2);var st=new c(C);for(k=R.length,E=0;E<C;E+=1){for(yt=it(k),H=E/(C-1),rt=0,S=0;S<k;S+=1)F=Wt(1-H,3)*M[S]+3*Wt(1-H,2)*H*(M[S]+R[S])+3*(1-H)*Wt(H,2)*(D[S]+V[S])+Wt(H,3)*D[S],yt[S]=F,mt!==null&&(rt+=Wt(yt[S]-mt[S],2));rt=te(rt),K+=rt,st.points[E]=new g(rt,yt),mt=yt}st.segmentLength=K,x[N]=st}return x[N]}}();function b(x,M){var D=M.percents,R=M.lengths,V=D.length,N=pe((V-1)*x),C=x*M.addedLength,E=0;if(N===V-1||N===0||C===R[N])return D[N];for(var S=R[N]>C?-1:1,k=!0;k;)if(R[N]<=C&&R[N+1]>C?(E=(C-R[N])/(R[N+1]-R[N]),k=!1):N+=S,N<0||N>=V-1){if(N===V-1)return D[N];k=!1}return D[N]+(D[N+1]-D[N])*E}function w(x,M,D,R,V,N){var C=b(V,N),E=1-C,S=e.round((E*E*E*x[0]+(C*E*E+E*C*E+E*E*C)*D[0]+(C*C*E+E*C*C+C*E*C)*R[0]+C*C*C*M[0])*1e3)/1e3,k=e.round((E*E*E*x[1]+(C*E*E+E*C*E+E*E*C)*D[1]+(C*C*E+E*C*C+C*E*C)*R[1]+C*C*C*M[1])*1e3)/1e3;return[S,k]}var O=X("float32",8);function G(x,M,D,R,V,N,C){V<0?V=0:V>1&&(V=1);var E=b(V,C);N=N>1?1:N;var S=b(N,C),k,F=x.length,H=1-E,K=1-S,rt=H*H*H,yt=E*H*H*3,mt=E*E*H*3,st=E*E*E,xt=H*H*K,ct=E*H*K+H*E*K+H*H*S,et=E*E*K+H*E*S+E*H*S,I=E*E*S,P=H*K*K,v=E*K*K+H*S*K+H*K*S,y=E*S*K+H*S*S+E*K*S,Y=E*S*S,$=K*K*K,at=S*K*K+K*S*K+K*K*S,vt=S*S*K+K*S*S+S*K*S,Et=S*S*S;for(k=0;k<F;k+=1)O[k*4]=e.round((rt*x[k]+yt*D[k]+mt*R[k]+st*M[k])*1e3)/1e3,O[k*4+1]=e.round((xt*x[k]+ct*D[k]+et*R[k]+I*M[k])*1e3)/1e3,O[k*4+2]=e.round((P*x[k]+v*D[k]+y*R[k]+Y*M[k])*1e3)/1e3,O[k*4+3]=e.round(($*x[k]+at*D[k]+vt*R[k]+Et*M[k])*1e3)/1e3;return O}return{getSegmentsLength:h,getNewSegment:G,getPointInSegment:w,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:n}}var Rr=Kb(),ho=r,Bp=Math.abs;function Up(e,i){var n=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=i.lastIndex,c=h,g=this.keyframes.length-1,A=!0,b,w,O;A;){if(b=this.keyframes[c],w=this.keyframes[c+1],c===g-1&&e>=w.t-n){b.h&&(b=w),h=0;break}if(w.t-n>e){h=c;break}c<g-1?c+=1:(h=0,A=!1)}O=this.keyframesMetadata[c]||{};var G,x,M,D,R,V,N=w.t-n,C=b.t-n,E;if(b.to){O.bezierData||(O.bezierData=Rr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var S=O.bezierData;if(e>=N||e<C){var k=e>=N?S.points.length-1:0;for(x=S.points[k].point.length,G=0;G<x;G+=1)l[G]=S.points[k].point[G]}else{O.__fnct?V=O.__fnct:(V=nn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,O.__fnct=V),M=V((e-C)/(N-C));var F=S.segmentLength*M,H,K=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastPoint:0,A=!0,D=S.points.length;A;){if(K+=S.points[R].partialLength,F===0||M===0||R===S.points.length-1){for(x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G];break}else if(F>=K&&F<K+S.points[R+1].partialLength){for(H=(F-K)/S.points[R+1].partialLength,x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G]+(S.points[R+1].point[G]-S.points[R].point[G])*H;break}R<D-1?R+=1:A=!1}i._lastPoint=R,i._lastAddedLength=K-S.points[R].partialLength,i._lastKeyframeIndex=c}}else{var rt,yt,mt,st,xt;if(g=b.s.length,E=w.s||b.e,this.sh&&b.h!==1)if(e>=N)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=C)l[0]=b.s[0],l[1]=b.s[1],l[2]=b.s[2];else{var ct=Hp(b.s),et=Hp(E),I=(e-C)/(N-C);jb(l,Wb(ct,et,I))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=N?M=1:e<C?M=0:(b.o.x.constructor===Array?(O.__fnct||(O.__fnct=[]),O.__fnct[c]?V=O.__fnct[c]:(rt=b.o.x[c]===void 0?b.o.x[0]:b.o.x[c],yt=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],mt=b.i.x[c]===void 0?b.i.x[0]:b.i.x[c],st=b.i.y[c]===void 0?b.i.y[0]:b.i.y[c],V=nn.getBezierEasing(rt,yt,mt,st).get,O.__fnct[c]=V)):O.__fnct?V=O.__fnct:(rt=b.o.x,yt=b.o.y,mt=b.i.x,st=b.i.y,V=nn.getBezierEasing(rt,yt,mt,st).get,b.keyframeMetadata=V),M=V((e-C)/(N-C)))),E=w.s||b.e,xt=b.h===1?b.s[c]:b.s[c]+(E[c]-b.s[c])*M,this.propType==="multidimensional"?l[c]=xt:l=xt}return i.lastIndex=h,l}function Wb(e,i,n){var l=[],h=e[0],c=e[1],g=e[2],A=e[3],b=i[0],w=i[1],O=i[2],G=i[3],x,M,D,R,V;return M=h*b+c*w+g*O+A*G,M<0&&(M=-M,b=-b,w=-w,O=-O,G=-G),1-M>1e-6?(x=Math.acos(M),D=Math.sin(x),R=Math.sin((1-n)*x)/D,V=Math.sin(n*x)/D):(R=1-n,V=n),l[0]=R*h+V*b,l[1]=R*c+V*w,l[2]=R*g+V*O,l[3]=R*A+V*G,l}function jb(e,i){var n=i[0],l=i[1],h=i[2],c=i[3],g=Math.atan2(2*l*c-2*n*h,1-2*l*l-2*h*h),A=Math.asin(2*n*l+2*h*c),b=Math.atan2(2*n*c-2*l*h,1-2*n*n-2*h*h);e[0]=g/wt,e[1]=A/wt,e[2]=b/wt}function Hp(e){var i=e[0]*wt,n=e[1]*wt,l=e[2]*wt,h=Math.cos(i/2),c=Math.cos(n/2),g=Math.cos(l/2),A=Math.sin(i/2),b=Math.sin(n/2),w=Math.sin(l/2),O=h*c*g-A*b*w,G=A*b*g+h*c*w,x=A*c*g+h*b*w,M=h*b*g-A*c*w;return[G,x,M,O]}function Gp(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==ho&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function ka(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Bp(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,l=this.v.length;n<l;)i=e[n]*this.mult,Bp(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function Na(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function La(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function qb(e,i,n,l){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Na,this.setVValue=ka,this.addEffect=La}function Xb(e,i,n,l){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,c=i.k.length;for(this.v=X("float32",c),this.pv=X("float32",c),this.vel=X("float32",c),h=0;h<c;h+=1)this.v[h]=i.k[h]*this.mult,this.pv[h]=i.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Na,this.setVValue=ka,this.addEffect=La}function Zb(e,i,n,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:ho,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=ho,this.pv=ho,this._isFirstFrame=!0,this.getValue=Na,this.setVValue=ka,this.interpolateValue=Up,this.effectsSequence=[Gp.bind(this)],this.addEffect=La}function Qb(e,i,n,l){this.propType="multidimensional";var h,c=i.k.length,g,A,b,w;for(h=0;h<c-1;h+=1)i.k[h].to&&i.k[h].s&&i.k[h+1]&&i.k[h+1].s&&(g=i.k[h].s,A=i.k[h+1].s,b=i.k[h].to,w=i.k[h].ti,(g.length===2&&!(g[0]===A[0]&&g[1]===A[1])&&Rr.pointOnLine2D(g[0],g[1],A[0],A[1],g[0]+b[0],g[1]+b[1])&&Rr.pointOnLine2D(g[0],g[1],A[0],A[1],A[0]+w[0],A[1]+w[1])||g.length===3&&!(g[0]===A[0]&&g[1]===A[1]&&g[2]===A[2])&&Rr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Rr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],A[0]+w[0],A[1]+w[1],A[2]+w[2]))&&(i.k[h].to=null,i.k[h].ti=null),g[0]===A[0]&&g[1]===A[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===A[2]&&b[2]===0&&w[2]===0)&&(i.k[h].to=null,i.k[h].ti=null));this.effectsSequence=[Gp.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=Na,this.setVValue=ka,this.interpolateValue=Up,this.frameId=-1;var O=i.k[0].s.length;for(this.v=X("float32",O),this.pv=X("float32",O),h=0;h<O;h+=1)this.v[h]=ho,this.pv[h]=ho;this._caching={lastFrame:ho,lastIndex:0,value:X("float32",O)},this.addEffect=La}var nt=function(){function e(n,l,h,c,g){l.sid&&(l=n.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new qb(n,l,c,g);else if(typeof l.k[0]=="number")A=new Xb(n,l,c,g);else switch(h){case 0:A=new Zb(n,l,c,g);break;case 1:A=new Qb(n,l,c,g);break;default:break}return A.effectsSequence.length&&g.addDynamicProperty(A),A}var i={getProp:e};return i}();function me(){}me.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var po=function(){function e(){return X("float32",2)}return wa(8,e)}();function Jr(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}Jr.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=po.newElement(),this.o[n]=po.newElement(),this.i[n]=po.newElement(),n+=1},Jr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Jr.prototype.doubleArrayLength=function(){this.v=this.v.concat(it(this._maxLength)),this.i=this.i.concat(it(this._maxLength)),this.o=this.o.concat(it(this._maxLength)),this._maxLength*=2},Jr.prototype.setXYAt=function(e,i,n,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[l]||c[l]&&!h)&&(c[l]=po.newElement()),c[l][0]=e,c[l][1]=i},Jr.prototype.setTripleAt=function(e,i,n,l,h,c,g,A){this.setXYAt(e,i,"v",g,A),this.setXYAt(n,l,"o",g,A),this.setXYAt(h,c,"i",g,A)},Jr.prototype.reverse=function(){var e=new Jr;e.setPathData(this.c,this._length);var i=this.v,n=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],n[0][0],n[0][1],0,!1),h=1);var c=this._length-1,g=this._length,A;for(A=h;A<g;A+=1)e.setTripleAt(i[c][0],i[c][1],l[c][0],l[c][1],n[c][0],n[c][1],A,!1),c-=1;return e},Jr.prototype.length=function(){return this._length};var be=function(){function e(){return new Jr}function i(h){var c=h._length,g;for(g=0;g<c;g+=1)po.release(h.v[g]),po.release(h.i[g]),po.release(h.o[g]),h.v[g]=null,h.i[g]=null,h.o[g]=null;h._length=0,h.c=!1}function n(h){var c=l.newElement(),g,A=h._length===void 0?h.v.length:h._length;for(c.setLength(A),c.c=h.c,g=0;g<A;g+=1)c.setTripleAt(h.v[g][0],h.v[g][1],h.o[g][0],h.o[g][1],h.i[g][0],h.i[g][1],g);return c}var l=wa(4,e,i);return l.clone=n,l}();function Bd(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}Bd.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(it(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Bd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)be.release(this.shapes[e]);this._length=0};var ss=function(){var e={newShapeCollection:h,release:c},i=0,n=4,l=it(n);function h(){var g;return i?(i-=1,g=l[i]):g=new Bd,g}function c(g){var A,b=g._length;for(A=0;A<b;A+=1)be.release(g.shapes[A]);g._length=0,i===n&&(l=$p.double(l),n*=2),l[i]=g,i+=1}return e}(),Oa=function(){var e=-999999;function i(N,C,E){var S=E.lastIndex,k,F,H,K,rt,yt,mt,st,xt,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)k=ct[0].s[0],H=!0,S=0;else if(N>=ct[ct.length-1].t-this.offsetTime)k=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var et=S,I=ct.length-1,P=!0,v,y,Y;P&&(v=ct[et],y=ct[et+1],!(y.t-this.offsetTime>N));)et<I-1?et+=1:P=!1;if(Y=this.keyframesMetadata[et]||{},H=v.h===1,S=et,!H){if(N>=y.t-this.offsetTime)st=1;else if(N<v.t-this.offsetTime)st=0;else{var $;Y.__fnct?$=Y.__fnct:($=nn.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=$),st=$((N-(v.t-this.offsetTime))/(y.t-this.offsetTime-(v.t-this.offsetTime)))}F=y.s?y.s[0]:v.e[0]}k=v.s[0]}for(yt=C._length,mt=k.i[0].length,E.lastIndex=S,K=0;K<yt;K+=1)for(rt=0;rt<mt;rt+=1)xt=H?k.i[K][rt]:k.i[K][rt]+(F.i[K][rt]-k.i[K][rt])*st,C.i[K][rt]=xt,xt=H?k.o[K][rt]:k.o[K][rt]+(F.o[K][rt]-k.o[K][rt])*st,C.o[K][rt]=xt,xt=H?k.v[K][rt]:k.v[K][rt]+(F.v[K][rt]-k.v[K][rt])*st,C.v[K][rt]=xt}function n(){var N=this.comp.renderedFrame-this.offsetTime,C=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<C&&N<C||S>E&&N>E)||(this._caching.lastIndex=S<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function l(){this.paths=this.localShapeCollection}function h(N,C){if(N._length!==C._length||N.c!==C.c)return!1;var E,S=N._length;for(E=0;E<S;E+=1)if(N.v[E][0]!==C.v[E][0]||N.v[E][1]!==C.v[E][1]||N.o[E][0]!==C.o[E][0]||N.o[E][1]!==C.o[E][1]||N.i[E][0]!==C.i[E][0]||N.i[E][1]!==C.i[E][1])return!1;return!0}function c(N){h(this.v,N)||(this.v=be.clone(N),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 N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var C,E=this.effectsSequence.length;for(C=0;C<E;C+=1)N=this.effectsSequence[C](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(N,C,E){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=C,this.k=!1,this.kf=!1,this._mdf=!1;var S=E===3?C.pt.k:C.ks.k;this.v=be.clone(S),this.pv=be.clone(this.v),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function b(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=g,A.prototype.setVValue=c,A.prototype.addEffect=b;function w(N,C,E){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=E===3?C.pt.k:C.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=be.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=be.clone(this.v),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=i,w.prototype.setVValue=c,w.prototype.addEffect=b;var O=function(){var N=ge;function C(E,S){this.v=be.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=nt.getProp(E,S.p,1,0,this),this.s=nt.getProp(E,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return C.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],k=this.p.v[1],F=this.s.v[0]/2,H=this.s.v[1]/2,K=this.d!==3,rt=this.v;rt.v[0][0]=S,rt.v[0][1]=k-H,rt.v[1][0]=K?S+F:S-F,rt.v[1][1]=k,rt.v[2][0]=S,rt.v[2][1]=k+H,rt.v[3][0]=K?S-F:S+F,rt.v[3][1]=k,rt.i[0][0]=K?S-F*N:S+F*N,rt.i[0][1]=k-H,rt.i[1][0]=K?S+F:S-F,rt.i[1][1]=k-H*N,rt.i[2][0]=K?S+F*N:S-F*N,rt.i[2][1]=k+H,rt.i[3][0]=K?S-F:S+F,rt.i[3][1]=k+H*N,rt.o[0][0]=K?S+F*N:S-F*N,rt.o[0][1]=k-H,rt.o[1][0]=K?S+F:S-F,rt.o[1][1]=k+H*N,rt.o[2][0]=K?S-F*N:S+F*N,rt.o[2][1]=k+H,rt.o[3][0]=K?S-F:S+F,rt.o[3][1]=k-H*N}},L([me],C),C}(),G=function(){function N(C,E){this.v=be.newElement(),this.v.setPathData(!0,0),this.elem=C,this.comp=C.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),E.sy===1?(this.ir=nt.getProp(C,E.ir,0,0,this),this.is=nt.getProp(C,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(C,E.pt,0,0,this),this.p=nt.getProp(C,E.p,1,0,this),this.r=nt.getProp(C,E.r,0,wt,this),this.or=nt.getProp(C,E.or,0,0,this),this.os=nt.getProp(C,E.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 N.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var E=Math.floor(this.pt.v)*2,S=Math.PI*2/E,k=!0,F=this.or.v,H=this.ir.v,K=this.os.v,rt=this.is.v,yt=2*Math.PI*F/(E*2),mt=2*Math.PI*H/(E*2),st,xt,ct,et,I=-Math.PI/2;I+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<E;st+=1){xt=k?F:H,ct=k?K:rt,et=k?yt:mt;var v=xt*Math.cos(I),y=xt*Math.sin(I),Y=v===0&&y===0?0:y/Math.sqrt(v*v+y*y),$=v===0&&y===0?0:-v/Math.sqrt(v*v+y*y);v+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(v,y,v-Y*et*ct*P,y-$*et*ct*P,v+Y*et*ct*P,y+$*et*ct*P,st,!0),k=!k,I+=S*P}},convertPolygonToPath:function(){var E=Math.floor(this.pt.v),S=Math.PI*2/E,k=this.or.v,F=this.os.v,H=2*Math.PI*k/(E*4),K,rt=-Math.PI*.5,yt=this.data.d===3?-1:1;for(rt+=this.r.v,this.v._length=0,K=0;K<E;K+=1){var mt=k*Math.cos(rt),st=k*Math.sin(rt),xt=mt===0&&st===0?0:st/Math.sqrt(mt*mt+st*st),ct=mt===0&&st===0?0:-mt/Math.sqrt(mt*mt+st*st);mt+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(mt,st,mt-xt*H*F*yt,st-ct*H*F*yt,mt+xt*H*F*yt,st+ct*H*F*yt,K,!0),rt+=S*yt}this.paths.length=0,this.paths[0]=this.v}},L([me],N),N}(),x=function(){function N(C,E){this.v=be.newElement(),this.v.c=!0,this.localShapeCollection=ss.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=C,this.comp=C.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),this.p=nt.getProp(C,E.p,1,0,this),this.s=nt.getProp(C,E.s,1,0,this),this.r=nt.getProp(C,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var E=this.p.v[0],S=this.p.v[1],k=this.s.v[0]/2,F=this.s.v[1]/2,H=De(k,F,this.r.v),K=H*(1-ge);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+H,E+k,S-F+K,0,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-K,E+k,S+F-H,1,!0),H!==0?(this.v.setTripleAt(E+k-H,S+F,E+k-H,S+F,E+k-K,S+F,2,!0),this.v.setTripleAt(E-k+H,S+F,E-k+K,S+F,E-k+H,S+F,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-H,E-k,S+F-K,4,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+K,E-k,S-F+H,5,!0),this.v.setTripleAt(E-k+H,S-F,E-k+H,S-F,E-k+K,S-F,6,!0),this.v.setTripleAt(E+k-H,S-F,E+k-K,S-F,E+k-H,S-F,7,!0)):(this.v.setTripleAt(E-k,S+F,E-k+K,S+F,E-k,S+F,2),this.v.setTripleAt(E-k,S-F,E-k,S-F+K,E-k,S-F,3))):(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+K,E+k,S-F+H,0,!0),H!==0?(this.v.setTripleAt(E+k-H,S-F,E+k-H,S-F,E+k-K,S-F,1,!0),this.v.setTripleAt(E-k+H,S-F,E-k+K,S-F,E-k+H,S-F,2,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+H,E-k,S-F+K,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-K,E-k,S+F-H,4,!0),this.v.setTripleAt(E-k+H,S+F,E-k+H,S+F,E-k+K,S+F,5,!0),this.v.setTripleAt(E+k-H,S+F,E+k-K,S+F,E+k-H,S+F,6,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-H,E+k,S+F-K,7,!0)):(this.v.setTripleAt(E-k,S-F,E-k+K,S-F,E-k,S-F,1,!0),this.v.setTripleAt(E-k,S+F,E-k,S+F-K,E-k,S+F,2,!0),this.v.setTripleAt(E+k,S+F,E+k-K,S+F,E+k,S+F,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},L([me],N),N}();function M(N,C,E){var S;if(E===3||E===4){var k=E===3?C.pt:C.ks,F=k.k;F.length?S=new w(N,C,E):S=new A(N,C,E)}else E===5?S=new x(N,C):E===6?S=new O(N,C):E===7&&(S=new G(N,C));return S.k&&N.addDynamicProperty(S),S}function D(){return A}function R(){return w}var V={};return V.getShapeProp=M,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=R,V}();var ye=function(){var e=Math.cos,i=Math.sin,n=Math.tan,l=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(1,0,0,0,0,y,-Y,0,0,Y,y,0,0,0,0,1)}function A(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,0,Y,0,0,1,0,0,-Y,0,y,0,0,0,0,1)}function b(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function w(v,y){return this._t(1,y,v,1,0,0)}function O(v,y){return this.shear(n(v),n(y))}function G(v,y){var Y=e(y),$=i(y);return this._t(Y,$,0,0,-$,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,-$,0,0,$,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,y,Y){return!Y&&Y!==0&&(Y=1),v===1&&y===1&&Y===1?this:this._t(v,0,0,0,0,y,0,0,0,0,Y,0,0,0,0,1)}function M(v,y,Y,$,at,vt,Et,Mt,Rt,re,ze,Dr,Ve,ue,Ze,Ft){return this.props[0]=v,this.props[1]=y,this.props[2]=Y,this.props[3]=$,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Mt,this.props[8]=Rt,this.props[9]=re,this.props[10]=ze,this.props[11]=Dr,this.props[12]=Ve,this.props[13]=ue,this.props[14]=Ze,this.props[15]=Ft,this}function D(v,y,Y){return Y=Y||0,v!==0||y!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,y,Y,1):this}function R(v,y,Y,$,at,vt,Et,Mt,Rt,re,ze,Dr,Ve,ue,Ze,Ft){var ht=this.props;if(v===1&&y===0&&Y===0&&$===0&&at===0&&vt===1&&Et===0&&Mt===0&&Rt===0&&re===0&&ze===1&&Dr===0)return ht[12]=ht[12]*v+ht[15]*Ve,ht[13]=ht[13]*vt+ht[15]*ue,ht[14]=ht[14]*ze+ht[15]*Ze,ht[15]*=Ft,this._identityCalculated=!1,this;var ri=ht[0],Li=ht[1],ii=ht[2],Fr=ht[3],oi=ht[4],si=ht[5],Be=ht[6],Oi=ht[7],Mi=ht[8],Sr=ht[9],Ri=ht[10],Ir=ht[11],vo=ht[12],Ba=ht[13],Ua=ht[14],Ha=ht[15];return ht[0]=ri*v+Li*at+ii*Rt+Fr*Ve,ht[1]=ri*y+Li*vt+ii*re+Fr*ue,ht[2]=ri*Y+Li*Et+ii*ze+Fr*Ze,ht[3]=ri*$+Li*Mt+ii*Dr+Fr*Ft,ht[4]=oi*v+si*at+Be*Rt+Oi*Ve,ht[5]=oi*y+si*vt+Be*re+Oi*ue,ht[6]=oi*Y+si*Et+Be*ze+Oi*Ze,ht[7]=oi*$+si*Mt+Be*Dr+Oi*Ft,ht[8]=Mi*v+Sr*at+Ri*Rt+Ir*Ve,ht[9]=Mi*y+Sr*vt+Ri*re+Ir*ue,ht[10]=Mi*Y+Sr*Et+Ri*ze+Ir*Ze,ht[11]=Mi*$+Sr*Mt+Ri*Dr+Ir*Ft,ht[12]=vo*v+Ba*at+Ua*Rt+Ha*Ve,ht[13]=vo*y+Ba*vt+Ua*re+Ha*ue,ht[14]=vo*Y+Ba*Et+Ua*ze+Ha*Ze,ht[15]=vo*$+Ba*Mt+Ua*Dr+Ha*Ft,this._identityCalculated=!1,this}function V(v){var y=v.props;return this.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15])}function N(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function C(v){for(var y=0;y<16;){if(v.props[y]!==this.props[y])return!1;y+=1}return!0}function E(v){var y;for(y=0;y<16;y+=1)v.props[y]=this.props[y];return v}function S(v){var y;for(y=0;y<16;y+=1)this.props[y]=v[y]}function k(v,y,Y){return{x:v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}}function F(v,y,Y){return v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12]}function H(v,y,Y){return v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13]}function K(v,y,Y){return v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}function rt(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],y=this.props[5]/v,Y=-this.props[1]/v,$=-this.props[4]/v,at=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Mt=new ye;return Mt.props[0]=y,Mt.props[1]=Y,Mt.props[4]=$,Mt.props[5]=at,Mt.props[12]=vt,Mt.props[13]=Et,Mt}function yt(v){var y=this.getInverseMatrix();return y.applyToPointArray(v[0],v[1],v[2]||0)}function mt(v){var y,Y=v.length,$=[];for(y=0;y<Y;y+=1)$[y]=yt(v[y]);return $}function st(v,y,Y){var $=X("float32",6);if(this.isIdentity())$[0]=v[0],$[1]=v[1],$[2]=y[0],$[3]=y[1],$[4]=Y[0],$[5]=Y[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Mt=this.props[5],Rt=this.props[12],re=this.props[13];$[0]=v[0]*at+v[1]*Et+Rt,$[1]=v[0]*vt+v[1]*Mt+re,$[2]=y[0]*at+y[1]*Et+Rt,$[3]=y[0]*vt+y[1]*Mt+re,$[4]=Y[0]*at+Y[1]*Et+Rt,$[5]=Y[0]*vt+Y[1]*Mt+re}return $}function xt(v,y,Y){var $;return this.isIdentity()?$=[v,y,Y]:$=[v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]],$}function ct(v,y){if(this.isIdentity())return v+","+y;var Y=this.props;return Math.round((v*Y[0]+y*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+y*Y[5]+Y[13])*100)/100}function et(){for(var v=0,y=this.props,Y="matrix3d(",$=1e4;v<16;)Y+=l(y[v]*$)/$,Y+=v===15?")":",",v+=1;return Y}function I(v){var y=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?l(v*y)/y:v}function P(){var v=this.props,y=I(v[0]),Y=I(v[1]),$=I(v[4]),at=I(v[5]),vt=I(v[12]),Et=I(v[13]);return"matrix("+y+","+Y+","+$+","+at+","+vt+","+Et+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=g,this.rotateY=A,this.rotateZ=b,this.skew=O,this.skewFromAxis=G,this.shear=w,this.scale=x,this.setTransform=M,this.translate=D,this.transform=R,this.multiply=V,this.applyToPoint=k,this.applyToX=F,this.applyToY=H,this.applyToZ=K,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=et,this.to2dCSS=P,this.clone=E,this.cloneFromProps=S,this.equals=C,this.inversePoints=mt,this.inversePoint=yt,this.getInverseMatrix=rt,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function Ma(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ma=function(n){return typeof n}:Ma=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ma(e)}var Pt={},Ra="__[STANDALONE]__",Yp="__[ANIMATIONDATA]__",Kp="";function Jb(e){p(e)}function Wp(){Ra===!0?ee.searchAnimations(Yp,Ra,Kp):ee.searchAnimations()}function ty(e){Db(e)}function ey(e){zb(e)}function ry(e){return Ra===!0&&(e.animationData=JSON.parse(Yp)),ee.loadAnimation(e)}function iy(e){if(typeof e=="string")switch(e){case"high":_a(200);break;default:case"medium":_a(50);break;case"low":_a(10);break}else!isNaN(e)&&e>1&&_a(e);en()>=50?or(!1):or(!0)}function oy(){return typeof navigator<"u"}function sy(e,i){e==="expressions"&&$b(i)}function ny(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return Oa;case"matrix":return ye;default:return null}}Pt.play=ee.play,Pt.pause=ee.pause,Pt.setLocationHref=Jb,Pt.togglePause=ee.togglePause,Pt.setSpeed=ee.setSpeed,Pt.setDirection=ee.setDirection,Pt.stop=ee.stop,Pt.searchAnimations=Wp,Pt.registerAnimation=ee.registerAnimation,Pt.loadAnimation=ry,Pt.setSubframeRendering=ty,Pt.resize=ee.resize,Pt.goToAndStop=ee.goToAndStop,Pt.destroy=ee.destroy,Pt.setQuality=iy,Pt.inBrowser=oy,Pt.installPlugin=sy,Pt.freeze=ee.freeze,Pt.unfreeze=ee.unfreeze,Pt.setVolume=ee.setVolume,Pt.mute=ee.mute,Pt.unmute=ee.unmute,Pt.getRegisteredAnimations=ee.getRegisteredAnimations,Pt.useWebWorker=s,Pt.setIDPrefix=ey,Pt.__getFactory=ny,Pt.version="5.12.2";function ay(){document.readyState==="complete"&&(clearInterval(cy),Wp())}function ly(e){for(var i=jp.split("&"),n=0;n<i.length;n+=1){var l=i[n].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var jp="";if(Ra){var qp=document.getElementsByTagName("script"),dy=qp.length-1,Xp=qp[dy]||{src:""};jp=Xp.src?Xp.src.replace(/^[^\?]+\??/,""):"",Kp=ly("renderer")}var cy=setInterval(ay,100);try{!((typeof Pn>"u"?"undefined":Ma(Pn))==="object"&&typeof vl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Pt)}catch{}var Ii=function(){var e={},i={};e.registerModifier=n,e.getModifier=l;function n(h,c){i[h]||(i[h]=c)}function l(h,c,g){return new i[h](c,g)}return e}();function lr(){}lr.prototype.initModifierProperties=function(){},lr.prototype.addShapeToModifier=function(){},lr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ss.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},lr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},lr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([me],lr);function Ar(){}L([lr],Ar),Ar.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ar.prototype.addShapeToModifier=function(e){e.pathsData=[]},Ar.prototype.calculateShapeEdges=function(e,i,n,l,h){var c=[];i<=1?c.push({s:e,e:i}):e>=1?c.push({s:e-1,e:i-1}):(c.push({s:e,e:1}),c.push({s:0,e:i-1}));var g=[],A,b=c.length,w;for(A=0;A<b;A+=1)if(w=c[A],!(w.e*h<l||w.s*h>l+n)){var O,G;w.s*h<=l?O=0:O=(w.s*h-l)/n,w.e*h>=l+n?G=1:G=(w.e*h-l)/n,g.push([O,G])}return g.length||g.push([0,0]),g},Ar.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)Vp.release(e[i]);return e.length=0,e},Ar.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?i=1+l:this.s.v<0?i=0+l:i=this.s.v+l,this.e.v>1?n=1+l:this.e.v<0?n=0+l:n=this.e.v+l,i>n){var h=i;i=n,n=h}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var c,g,A=this.shapes.length,b,w,O,G,x,M=0;if(n===i)for(g=0;g<A;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<A;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,V;for(g=0;g<A;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(c=R.shape.paths,w=c._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(O=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)G=Rr.getSegmentsLength(c.shapes[b]),O.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=O}M+=x,R.shape._mdf=!0}var N=i,C=n,E=0,S;for(g=A-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(V=R.localShapeCollection,V.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,n,R.totalShapeLength,E,M),E+=R.totalShapeLength):S=[[N,C]],w=S.length,b=0;b<w;b+=1){N=S[b][0],C=S[b][1],D.length=0,C<=1?D.push({s:R.totalShapeLength*N,e:R.totalShapeLength*C}):N>=1?D.push({s:R.totalShapeLength*(N-1),e:R.totalShapeLength*(C-1)}):(D.push({s:R.totalShapeLength*N,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(C-1)}));var k=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=R.shape.paths.shapes[R.shape.paths._length-1];if(F.c){var H=k.pop();this.addPaths(k,V),k=this.addShapes(R,D[1],H)}else this.addPaths(k,V),k=this.addShapes(R,D[1])}this.addPaths(k,V)}}R.shape.paths=V}}},Ar.prototype.addPaths=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)i.addShape(e[n])},Ar.prototype.addSegment=function(e,i,n,l,h,c,g){h.setXYAt(i[0],i[1],"o",c),h.setXYAt(n[0],n[1],"i",c+1),g&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},Ar.prototype.addSegmentFromArray=function(e,i,n,l){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),l&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Ar.prototype.addShapes=function(e,i,n){var l=e.pathsData,h=e.shape.paths.shapes,c,g=e.shape.paths._length,A,b,w=0,O,G,x,M,D=[],R,V=!0;for(n?(G=n._length,R=n._length):(n=be.newElement(),G=0,R=0),D.push(n),c=0;c<g;c+=1){for(x=l[c].lengths,n.c=h[c].c,b=h[c].c?x.length:x.length+1,A=1;A<b;A+=1)if(O=x[A-1],w+O.addedLength<i.s)w+=O.addedLength,n.c=!1;else if(w>i.e){n.c=!1;break}else i.s<=w&&i.e>=w+O.addedLength?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[A],h[c].v[A],n,G,V),V=!1):(M=Rr.getNewSegment(h[c].v[A-1],h[c].v[A],h[c].o[A-1],h[c].i[A],(i.s-w)/O.addedLength,(i.e-w)/O.addedLength,x[A-1]),this.addSegmentFromArray(M,n,G,V),V=!1,n.c=!1),w+=O.addedLength,G+=1;if(h[c].c&&x.length){if(O=x[A-1],w<=i.e){var N=x[A-1].addedLength;i.s<=w&&i.e>=w+N?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[0],h[c].v[0],n,G,V),V=!1):(M=Rr.getNewSegment(h[c].v[A-1],h[c].v[0],h[c].o[A-1],h[c].i[0],(i.s-w)/N,(i.e-w)/N,x[A-1]),this.addSegmentFromArray(M,n,G,V),V=!1,n.c=!1)}else n.c=!1;w+=O.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)),w>i.e)break;c<g-1&&(n=be.newElement(),V=!0,D.push(n),G=0)}return D};function an(){}L([lr],an),an.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},an.prototype.processPath=function(e,i){var n=i/100,l=[0,0],h=e._length,c=0;for(c=0;c<h;c+=1)l[0]+=e.v[c][0],l[1]+=e.v[c][1];l[0]/=h,l[1]/=h;var g=be.newElement();g.c=e.c;var A,b,w,O,G,x;for(c=0;c<h;c+=1)A=e.v[c][0]+(l[0]-e.v[c][0])*n,b=e.v[c][1]+(l[1]-e.v[c][1])*n,w=e.o[c][0]+(l[0]-e.o[c][0])*-n,O=e.o[c][1]+(l[1]-e.o[c][1])*-n,G=e.i[c][0]+(l[0]-e.i[c][0])*-n,x=e.i[c][1]+(l[1]-e.i[c][1])*-n,g.setTripleAt(A,b,w,O,G,x,c);return g},an.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amount.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)b.addShape(this.processPath(i[h],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Ud=function(){var e=[0,0];function i(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var w;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var O,G;if(w=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(O=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/w,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(O=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(O=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){O=[],G=[];var x=this.px,M=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(O[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),O[1]=M.getValueAtTime((M.keyframes[0].t+.01)/w,0),G[0]=x.getValueAtTime(x.keyframes[0].t/w,0),G[1]=M.getValueAtTime(M.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(O[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),O[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/w,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),G[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/w,0)):(O=[x.pv,M.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),G[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/w,M.offsetTime))}else G=e,O=G;this.v.rotate(-Math.atan2(O[1]-G[1],O[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 l(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function h(){}function c(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,O){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new ye,this.pre=new ye,this.appliedTransformations=0,this.initDynamicPropertyContainer(O||b),w.p&&w.p.s?(this.px=nt.getProp(b,w.p.x,0,0,this),this.py=nt.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=nt.getProp(b,w.p.z,0,0,this))):this.p=nt.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=nt.getProp(b,w.rx,0,wt,this),this.ry=nt.getProp(b,w.ry,0,wt,this),this.rz=nt.getProp(b,w.rz,0,wt,this),w.or.k[0].ti){var G,x=w.or.k.length;for(G=0;G<x;G+=1)w.or.k[G].to=null,w.or.k[G].ti=null}this.or=nt.getProp(b,w.or,1,wt,this),this.or.sh=!0}else this.r=nt.getProp(b,w.r||{k:0},0,wt,this);w.sk&&(this.sk=nt.getProp(b,w.sk,0,wt,this),this.sa=nt.getProp(b,w.sa,0,wt,this)),this.a=nt.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=nt.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:l,autoOrient:h},L([me],g),g.prototype.addDynamicProperty=c,g.prototype._addDynamicProperty=me.prototype.addDynamicProperty;function A(b,w,O){return new g(b,w,O)}return{getTransformProperty:A}}();function Pr(){}L([lr],Pr),Pr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=Ud.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ye,this.rMatrix=new ye,this.sMatrix=new ye,this.tMatrix=new ye,this.matrix=new ye},Pr.prototype.applyTransforms=function(e,i,n,l,h,c){var g=c?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-h),b=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*g*h,l.p.v[1]*g*h,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*g*h),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),n.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),n.scale(c?1/A:A,c?1/b:b),n.translate(l.a.v[0],l.a.v[1],l.a.v[2])},Pr.prototype.init=function(e,i,n,l){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Pr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Pr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Pr.prototype.changeGroupRender=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},Pr.prototype.processShapes=function(e){var i,n,l,h,c,g=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){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}c=0;var w;for(l=0;l<=this._groups.length-1;l+=1){if(w=c<A,this._groups[l]._render=w,this.changeGroupRender(this._groups[l].it,w),!w){var O=this.elemsData[l].it,G=O[O.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}c+=1}this._currentCopies=A;var x=this.o.v,M=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,V=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C=0;if(x>0){for(;C<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),C+=M)}else if(x<0){for(;C>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),C-=M)}l=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,c=this._currentCopies;for(var E,S;c;){if(i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,S=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(l/(this._currentCopies-1)),C!==0){for((l!==0&&h===1||l!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(V[0],V[1],V[2],V[3],V[4],V[5],V[6],V[7],V[8],V[9],V[10],V[11],V[12],V[13],V[14],V[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),this.matrix.transform(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]),E=0;E<S;E+=1)n[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<S;E+=1)n[E]=this.matrix.props[E];C+=1,c-=1,l+=h}}else for(c=this._currentCopies,l=0,h=1;c;)i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,c-=1,l+=h;return g},Pr.prototype.addShape=function(){};function ln(){}L([lr],ln),ln.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ln.prototype.processPath=function(e,i){var n=be.newElement();n.c=e.c;var l,h=e._length,c,g,A,b,w,O,G=0,x,M,D,R,V,N;for(l=0;l<h;l+=1)c=e.v[l],A=e.o[l],g=e.i[l],c[0]===A[0]&&c[1]===A[1]&&c[0]===g[0]&&c[1]===g[1]?(l===0||l===h-1)&&!e.c?(n.setTripleAt(c[0],c[1],A[0],A[1],g[0],g[1],G),G+=1):(l===0?b=e.v[h-1]:b=e.v[l-1],w=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),O=w?Math.min(w/2,i)/w:0,V=c[0]+(b[0]-c[0])*O,x=V,N=c[1]-(c[1]-b[1])*O,M=N,D=x-(x-c[0])*ge,R=M-(M-c[1])*ge,n.setTripleAt(x,M,D,R,V,N,G),G+=1,l===h-1?b=e.v[0]:b=e.v[l+1],w=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),O=w?Math.min(w/2,i)/w:0,D=c[0]+(b[0]-c[0])*O,x=D,R=c[1]+(b[1]-c[1])*O,M=R,V=x-(x-c[0])*ge,N=M-(M-c[1])*ge,n.setTripleAt(x,M,D,R,V,N,G),G+=1):(n.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],G),G+=1);return n},ln.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.rd.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)b.addShape(this.processPath(i[h],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Pa(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function Hd(e){return Math.abs(e)<=1e-5}function Zp(e,i,n){return e*(1-n)+i*n}function _i(e,i,n){return[Zp(e[0],i[0],n),Zp(e[1],i[1],n)]}function hy(e,i,n){if(e===0)return[];var l=i*i-4*e*n;if(l<0)return[];var h=-i/(2*e);if(l===0)return[h];var c=Math.sqrt(l)/(2*e);return[h-c,h+c]}function Qp(e,i,n,l){return[-e+3*i-3*n+l,3*e-6*i+3*n,-3*e+3*i,e]}function Jp(e){return new jt(e,e,e,e,!1)}function jt(e,i,n,l,h){h&&as(e,i)&&(i=_i(e,l,1/3)),h&&as(n,l)&&(n=_i(e,l,2/3));var c=Qp(e[0],i[0],n[0],l[0]),g=Qp(e[1],i[1],n[1],l[1]);this.a=[c[0],g[0]],this.b=[c[1],g[1]],this.c=[c[2],g[2]],this.d=[c[3],g[3]],this.points=[e,i,n,l]}jt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},jt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},jt.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},jt.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},jt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Hd(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var l=Math.sqrt(n);return Hd(l)?l>0&&l<1?[i]:[]:[i-l,i+l].filter(function(h){return h>0&&h<1})},jt.prototype.split=function(e){if(e<=0)return[Jp(this.points[0]),this];if(e>=1)return[this,Jp(this.points[this.points.length-1])];var i=_i(this.points[0],this.points[1],e),n=_i(this.points[1],this.points[2],e),l=_i(this.points[2],this.points[3],e),h=_i(i,n,e),c=_i(n,l,e),g=_i(h,c,e);return[new jt(this.points[0],i,h,g,!0),new jt(g,c,l,this.points[3],!0)]};function tm(e,i){var n=e.points[0][i],l=e.points[e.points.length-1][i];if(n>l){var h=l;l=n,n=h}for(var c=hy(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<c.length;g+=1)if(c[g]>0&&c[g]<1){var A=e.point(c[g])[i];A<n?n=A:A>l&&(l=A)}return{min:n,max:l}}jt.prototype.bounds=function(){return{x:tm(this,0),y:tm(this,1)}},jt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Da(e,i,n){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function em(e){var i=e.bez.split(.5);return[Da(i[0],e.t1,e.t),Da(i[1],e.t,e.t2)]}function py(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function dn(e,i,n,l,h,c){if(py(e,i)){if(n>=c||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){h.push([e.t,i.t]);return}var g=em(e),A=em(i);dn(g[0],A[0],n+1,l,h,c),dn(g[0],A[1],n+1,l,h,c),dn(g[1],A[0],n+1,l,h,c),dn(g[1],A[1],n+1,l,h,c)}}jt.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var l=[];return dn(Da(this,0,1),Da(e,0,1),0,i,l,n),l},jt.shapeSegment=function(e,i){var n=(i+1)%e.length();return new jt(e.v[i],e.o[i],e.i[n],e.v[n],!0)},jt.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new jt(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function Gd(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Fa(e,i,n,l){var h=[e[0],e[1],1],c=[i[0],i[1],1],g=[n[0],n[1],1],A=[l[0],l[1],1],b=Gd(Gd(h,c),Gd(g,A));return Hd(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function ns(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function Yd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function as(e,i){return Pa(e[0],i[0])&&Pa(e[1],i[1])}function cn(){}L([lr],cn),cn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function rm(e,i,n,l,h,c,g){var A=n-Math.PI/2,b=n+Math.PI/2,w=i[0]+Math.cos(n)*l*h,O=i[1]-Math.sin(n)*l*h;e.setTripleAt(w,O,w+Math.cos(A)*c,O-Math.sin(A)*c,w+Math.cos(b)*g,O-Math.sin(b)*g,e.length())}function my(e,i){var n=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*n[0]-Math.sin(l)*n[1],Math.sin(l)*n[0]+Math.cos(l)*n[1]];return h}function uy(e,i){var n=i===0?e.length()-1:i-1,l=(i+1)%e.length(),h=e.v[n],c=e.v[l],g=my(h,c);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function im(e,i,n,l,h,c,g){var A=uy(i,n),b=i.v[n%i._length],w=i.v[n===0?i._length-1:n-1],O=i.v[(n+1)%i._length],G=c===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=c===2?Math.sqrt(Math.pow(b[0]-O[0],2)+Math.pow(b[1]-O[1],2)):0;rm(e,i.v[n%i._length],A,g,l,x/((h+1)*2),G/((h+1)*2),c)}function fy(e,i,n,l,h,c){for(var g=0;g<l;g+=1){var A=(g+1)/(l+1),b=h===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,w=i.normalAngle(A),O=i.point(A);rm(e,O,w,c,n,b/((l+1)*2),b/((l+1)*2),h),c=-c}return c}cn.prototype.processPath=function(e,i,n,l){var h=e._length,c=be.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var g=-1,A=jt.shapeSegment(e,0);im(c,e,0,i,n,l,g);for(var b=0;b<h;b+=1)g=fy(c,A,i,n,l,-g),b===h-1&&!e.c?A=null:A=jt.shapeSegment(e,(b+1)%h),im(c,e,b+1,i,n,l,g);return c},cn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,O;for(n=0;n<l;n+=1){if(w=this.shapes[n],O=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!e))for(O.releaseShapes(),w.shape._mdf=!0,i=w.shape.paths.shapes,c=w.shape.paths._length,h=0;h<c;h+=1)O.addShape(this.processPath(i[h],g,A,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Kd(e,i,n){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[ns(e,l,n),ns(i,l,n)]}function ls(e,i){var n,l,h,c,g,A,b;b=Kd(e.points[0],e.points[1],i),n=b[0],l=b[1],b=Kd(e.points[1],e.points[2],i),h=b[0],c=b[1],b=Kd(e.points[2],e.points[3],i),g=b[0],A=b[1];var w=Fa(n,l,h,c);w===null&&(w=l);var O=Fa(g,A,h,c);return O===null&&(O=g),new jt(n,w,O,A)}function om(e,i,n,l,h){var c=i.points[3],g=n.points[0];if(l===3||as(c,g))return c;if(l===2){var A=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,w=Fa(c,ns(c,A+Math.PI/2,100),g,ns(g,A+Math.PI/2,100)),O=w?Yd(w,c):Yd(c,g)/2,G=ns(c,A,2*O*ge);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=ns(g,b,2*O*ge),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=as(c,i.points[2])?i.points[0]:i.points[2],M=as(g,n.points[1])?n.points[3]:n.points[1],D=Fa(x,c,g,M);return D&&Yd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function sm(e,i){var n=e.intersections(i);return n.length&&Pa(n[0][0],1)&&n.shift(),n.length?n[0]:null}function nm(e,i){var n=e.slice(),l=i.slice(),h=sm(e[e.length-1],i[0]);return h&&(n[e.length-1]=e[e.length-1].split(h[0])[0],l[0]=i[0].split(h[1])[1]),e.length>1&&i.length>1&&(h=sm(e[0],i[i.length-1]),h)?[[e[0].split(h[0])[0]],[i[i.length-1].split(h[1])[1]]]:[n,l]}function vy(e){for(var i,n=1;n<e.length;n+=1)i=nm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=nm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function am(e,i){var n=e.inflectionPoints(),l,h,c,g;if(n.length===0)return[ls(e,i)];if(n.length===1||Pa(n[1],1))return c=e.split(n[0]),l=c[0],h=c[1],[ls(l,i),ls(h,i)];c=e.split(n[0]),l=c[0];var A=(n[1]-n[0])/(1-n[0]);return c=c[1].split(A),g=c[0],h=c[1],[ls(l,i),ls(g,i),ls(h,i)]}function hn(){}L([lr],hn),hn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},hn.prototype.processPath=function(e,i,n,l){var h=be.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var g,A,b,w=[];for(g=0;g<c;g+=1)b=jt.shapeSegment(e,g),w.push(am(b,i));if(!e.c)for(g=c-1;g>=0;g-=1)b=jt.shapeSegmentInverted(e,g),w.push(am(b,i));w=vy(w);var O=null,G=null;for(g=0;g<w.length;g+=1){var x=w[g];for(G&&(O=om(h,G,x[0],n,l)),G=x[x.length-1],A=0;A<x.length;A+=1)b=x[A],O&&as(b.points[0],O)?h.setXYAt(b.points[1][0],b.points[1][1],"o",h.length()-1):h.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],h.length()),h.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],h.length()),O=b.points[3]}return w.length&&om(h,G,w[0][0],n,l),h},hn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amount.v,A=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,O;for(n=0;n<l;n+=1){if(w=this.shapes[n],O=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!e))for(O.releaseShapes(),w.shape._mdf=!0,i=w.shape.paths.shapes,c=w.shape.paths._length,h=0;h<c;h+=1)O.addShape(this.processPath(i[h],g,b,A));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function lm(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",l="normal",h=i.length,c,g=0;g<h;g+=1)switch(c=i[g].toLowerCase(),c){case"italic":l="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:l,weight:e.fWeight||n}}var mo=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var l=127988,h=917631,c=917601,g=917626,A=65039,b=8205,w=127462,O=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(I){var P=I.split(","),v,y=P.length,Y=[];for(v=0;v<y;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&Y.push(P[v]);return Y.join(",")}function M(I,P){var v=T("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var y=T("span");y.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(y),document.body.appendChild(v);var Y=y.offsetWidth;return y.style.fontFamily=x(I)+", "+P,{node:y,w:Y,parent:v}}function D(){var I,P=this.fonts.length,v,y,Y=P;for(I=0;I<P;I+=1)this.fonts[I].loaded?Y-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(v=this.fonts[I].monoCase.node,y=this.fonts[I].monoCase.w,v.offsetWidth!==y?(Y-=1,this.fonts[I].loaded=!0):(v=this.fonts[I].sansCase.node,y=this.fonts[I].sansCase.w,v.offsetWidth!==y&&(Y-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));Y!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(I,P){var v=document.body&&P?"svg":"canvas",y,Y=lm(I);if(v==="svg"){var $=Tt("text");$.style.fontSize="100px",$.setAttribute("font-family",I.fFamily),$.setAttribute("font-style",Y.style),$.setAttribute("font-weight",Y.weight),$.textContent="1",I.fClass?($.style.fontFamily="inherit",$.setAttribute("class",I.fClass)):$.style.fontFamily=I.fFamily,P.appendChild($),y=$}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=Y.style+" "+Y.weight+" 100px "+I.fFamily,y=at}function vt(Et){return v==="svg"?(y.textContent=Et,y.getComputedTextLength()):y.measureText(Et).width}return{measureText:vt}}function V(I,P){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(ze){ze.helper=R(ze),ze.cache={}}),this.fonts=I.list;return}var v=I.list,y,Y=v.length,$=Y;for(y=0;y<Y;y+=1){var at=!0,vt,Et;if(v[y].loaded=!1,v[y].monoCase=M(v[y].fFamily,"monospace"),v[y].sansCase=M(v[y].fFamily,"sans-serif"),!v[y].fPath)v[y].loaded=!0,$-=1;else if(v[y].fOrigin==="p"||v[y].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[y].fFamily+'"], style[f-origin="3"][f-family="'+v[y].fFamily+'"]'),vt.length>0&&(at=!1),at){var Mt=T("style");Mt.setAttribute("f-forigin",v[y].fOrigin),Mt.setAttribute("f-origin",v[y].origin),Mt.setAttribute("f-family",v[y].fFamily),Mt.type="text/css",Mt.innerText="@font-face {font-family: "+v[y].fFamily+"; font-style: normal; src: url('"+v[y].fPath+"');}",P.appendChild(Mt)}}else if(v[y].fOrigin==="g"||v[y].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[y].fPath)!==-1&&(at=!1);if(at){var Rt=T("link");Rt.setAttribute("f-forigin",v[y].fOrigin),Rt.setAttribute("f-origin",v[y].origin),Rt.type="text/css",Rt.rel="stylesheet",Rt.href=v[y].fPath,document.body.appendChild(Rt)}}else if(v[y].fOrigin==="t"||v[y].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[y].fPath===vt[Et].src&&(at=!1);if(at){var re=T("link");re.setAttribute("f-forigin",v[y].fOrigin),re.setAttribute("f-origin",v[y].origin),re.setAttribute("rel","stylesheet"),re.setAttribute("href",v[y].fPath),P.appendChild(re)}}v[y].helper=R(v[y],P),v[y].cache={},this.fonts.push(v[y])}$===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function N(I){if(I){this.chars||(this.chars=[]);var P,v=I.length,y,Y=this.chars.length,$;for(P=0;P<v;P+=1){for(y=0,$=!1;y<Y;)this.chars[y].style===I[P].style&&this.chars[y].fFamily===I[P].fFamily&&this.chars[y].ch===I[P].ch&&($=!0),y+=1;$||(this.chars.push(I[P]),Y+=1)}}}function C(I,P,v){for(var y=0,Y=this.chars.length;y<Y;){if(this.chars[y].ch===I&&this.chars[y].style===P&&this.chars[y].fFamily===v)return this.chars[y];y+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,P,v)),i}function E(I,P,v){var y=this.getFontByName(P),Y=I;if(!y.cache[Y]){var $=y.helper;if(I===" "){var at=$.measureText("|"+I+"|"),vt=$.measureText("||");y.cache[Y]=(at-vt)/100}else y.cache[Y]=$.measureText(I)/100}return y.cache[Y]*v}function S(I){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===I)return this.fonts[P];P+=1}return this.fonts[0]}function k(I){var P=0,v=I.charCodeAt(0);if(v>=55296&&v<=56319){var y=I.charCodeAt(1);y>=56320&&y<=57343&&(P=(v-55296)*1024+y-56320+65536)}return P}function F(I,P){var v=I.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function H(I){return I===b}function K(I){return I===A}function rt(I){var P=k(I);return P>=w&&P<=O}function yt(I){return rt(I.substr(0,2))&&rt(I.substr(2,2))}function mt(I){return n.indexOf(I)!==-1}function st(I,P){var v=k(I.substr(P,2));if(v!==l)return!1;var y=0;for(P+=2;y<5;){if(v=k(I.substr(P,2)),v<c||v>g)return!1;y+=1,P+=2}return k(I.substr(P,2))===h}function xt(){this.isLoaded=!0}var ct=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ct.isModifier=F,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=rt,ct.isCombinedCharacter=mt,ct.isRegionalFlag=st,ct.isVariationSelector=K,ct.BLACK_FLAG_CODE_POINT=l;var et={addChars:N,addFonts:V,getCharData:C,getFontByName:S,measureText:E,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=et,ct}();function dm(e){this.animationData=e}dm.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function gy(e){return new dm(e)}function $a(){}$a.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Wd=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function by(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function yy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Ey(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Ty(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function xy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Ay(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Sy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Iy(){this.p={}}function cm(e,i){var n=e.ef||[];this.effectElements=[];var l,h=n.length,c;for(l=0;l<h;l+=1)c=new pn(n[l],i),this.effectElements.push(c)}function pn(e,i){this.init(e,i)}L([me],pn),pn.prototype.getValue=pn.prototype.iterateDynamicProperties,pn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,l=this.data.ef.length,h,c=this.data.ef;for(n=0;n<l;n+=1){switch(h=null,c[n].ty){case 0:h=new by(c[n],i,this);break;case 1:h=new yy(c[n],i,this);break;case 2:h=new Ey(c[n],i,this);break;case 3:h=new Ty(c[n],i,this);break;case 4:case 7:h=new Sy(c[n],i,this);break;case 10:h=new xy(c[n],i,this);break;case 11:h=new Ay(c[n],i,this);break;case 5:h=new cm(c[n],i,this);break;default:h=new Iy(c[n],i,this);break}h&&this.effectElements.push(h)}};function Ci(){}Ci.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Dp();if(i){var n=i("layer"),l=i("effects"),h=i("shape"),c=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(A),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=Wd(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,l){this.globalData=n,this.comp=l,this.data=i,this.layerId=Fe(),this.data.sr||(this.data.sr=1),this.effectsManager=new cm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function wi(){}wi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(n||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function ki(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}ki.prototype.prepareFrame=function(){},L([$a,Ci,wi],ki),ki.prototype.getBaseElement=function(){return null},ki.prototype.renderFrame=function(){},ki.prototype.destroy=function(){},ki.prototype.initExpressions=function(){var e=Dp();if(e){var i=e("footage");this.layerInterface=i(this)}},ki.prototype.getFootageData=function(){return this.footageData};function $e(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}$e.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},L([$a,Ci,wi],$e),$e.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))},$e.prototype.show=function(){},$e.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},$e.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},$e.prototype.resume=function(){this._canPlay=!0},$e.prototype.setRate=function(e){this.audio.rate(e)},$e.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},$e.prototype.getBaseElement=function(){return null},$e.prototype.destroy=function(){},$e.prototype.sourceRectAtTime=function(){},$e.prototype.initExpressions=function(){};function Ee(){}Ee.prototype.checkLayers=function(e){var i,n=this.layers.length,l;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(l=this.layers[i],l.ip-l.st<=e-this.layers[i].st&&l.op-l.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},Ee.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},Ee.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ee.prototype.createAudio=function(e){return new $e(e,this.globalData,this)},Ee.prototype.createFootage=function(e){return new ki(e,this.globalData,this)},Ee.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},Ee.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,l,h=this.layers.length;for(i=0;i<n;i+=1)for(l=0;l<h;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},Ee.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Ee.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ee.prototype.buildElementParenting=function(e,i,n){for(var l=this.elements,h=this.layers,c=0,g=h.length;c<g;)h[c].ind==i&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(n.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,n):e.setHierarchy(n))),c+=1},Ee.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Ee.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},Ee.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},Ee.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===i){n=this.elements[l];break}}return e.length===0?n:n.getElementByPath(e)},Ee.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new mo,this.globalData.slotManager=gy(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var _y={TRANSFORM_EFFECT:"transformEFfect"};function ds(){}ds.prototype={initTransform:function(){var i=new ye;this.finalTransform={mProp:this.data.ks?Ud.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,n=this.finalTransform.mat,l=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<h;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),l=0;l<h;l+=1)n.multiply(this.hierarchy[l].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),i=1;i<n;i+=1){var h=this.localTransforms[i].matrix;l.multiply(h)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)c*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(_y.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new ye;var n=0,l=i.length;for(n=0;n<l;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&n.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,g=n.length,A;for(c=0;c<g;c+=1)A=n[c].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new ye};function uo(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,h,c=this.masksProperties?this.masksProperties.length:0;this.viewData=it(c),this.solidPath="";var g,A=this.masksProperties,b=0,w=[],O,G,x=Fe(),M,D,R,V,N="clipPath",C="clip-path";for(h=0;h<c;h+=1)if((A[h].mode!=="a"&&A[h].mode!=="n"||A[h].inv||A[h].o.k!==100||A[h].o.x)&&(N="mask",C="mask"),(A[h].mode==="s"||A[h].mode==="i")&&b===0?(M=Tt("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),w.push(M)):M=null,g=Tt("path"),A[h].mode==="n")this.viewData[h]={op:nt.getProp(this.element,A[h].o,0,.01,this.element),prop:Oa.getShapeProp(this.element,A[h],3),elem:g,lastPath:""},l.appendChild(g);else{b+=1,g.setAttribute("fill",A[h].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var E;if(A[h].x.k!==0?(N="mask",C="mask",V=nt.getProp(this.element,A[h].x,0,null,this.element),E=Fe(),D=Tt("filter"),D.setAttribute("id",E),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),l.appendChild(D),g.setAttribute("stroke",A[h].mode==="s"?"#000000":"#ffffff")):(R=null,V=null),this.storedData[h]={elem:g,x:V,expan:R,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},A[h].mode==="i"){G=w.length;var S=Tt("g");for(O=0;O<G;O+=1)S.appendChild(w[O]);var k=Tt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",x+"_"+b),k.appendChild(g),l.appendChild(k),S.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(S)}else w.push(g);A[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:g,lastPath:"",op:nt.getProp(this.element,A[h].o,0,.01,this.element),prop:Oa.getShapeProp(this.element,A[h],3),invRect:M},this.viewData[h].prop.k||this.drawPath(A[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=Tt(N),c=w.length,h=0;h<c;h+=1)this.maskElement.appendChild(w[h]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(C,"url("+f()+"#"+x+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}uo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},uo.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,l=this.masksProperties.length;for(n=0;n<l;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var h=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+")")),h.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))}},uo.prototype.getMaskelement=function(){return this.maskElement},uo.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},uo.prototype.drawPath=function(e,i,n){var l=" M"+i.v[0][0]+","+i.v[0][1],h,c;for(c=i._length,h=1;h<c;h+=1)l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[h][0]+","+i.i[h][1]+" "+i.v[h][0]+","+i.v[h][1];if(i.c&&c>1&&(l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==l){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+l:l),n.elem.setAttribute("d",g)),n.lastPath=l}},uo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var mn=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(l,h){var c=Tt("filter");return c.setAttribute("id",l),h!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function n(){var l=Tt("feColorMatrix");return l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),l}return e}(),hm=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),za={},pm="filter_result_";function jd(e){var i,n="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=Fe(),c=mn.createFilter(h,!0),g=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var b=e.data.ef[i].ty;if(za[b]){var w=za[b].effect;A=new w(c,e.effectsManager.effectElements[i],e,pm+g,n),n=pm+g,za[b].countsAsEffect&&(g+=1)}A&&this.filters.push(A)}g&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+f()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}jd.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},jd.prototype.getEffects=function(e){var i,n=this.filters.length,l=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function w0(e,i,n){za[e]={effect:i,countsAsEffect:n}}function un(){}un.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var l=Tt("clipPath"),h=Tt("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=Fe();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+c+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new uo(this.data,this,this.globalData),this.renderableEffectsManager=new jd(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,l,h,c,g;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",n),A.setAttribute("mask-type",i===3?"luminance":"alpha"),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(c),this.globalData.defs.appendChild(A),!hm.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=Fe(),h=mn.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(mn.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(c),A.appendChild(g),g.setAttribute("filter","url("+f()+"#"+l+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var w=Tt("g");b.appendChild(w),l=Fe(),h=mn.createFilter(l);var O=Tt("feComponentTransfer");O.setAttribute("in","SourceGraphic"),h.appendChild(O);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),O.appendChild(G),this.globalData.defs.appendChild(h);var x=Tt("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),w.setAttribute("filter","url("+f()+"#"+l+")"),w.appendChild(x),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(c),hm.maskType||(b.setAttribute("mask-type","luminance"),h.appendChild(mn.createAlphaToLuminanceFilter()),g=Tt("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function cs(){}cs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function fn(){}(function(){var e={initElement:function(n,l,h){this.initFrame(),this.initBaseData(n,l,h),this.initTransform(n,l,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var 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()}};L([$a,q(e)],fn)})();function vn(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ci,ds,un,cs,wi,fn],vn),vn.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},vn.prototype.sourceRectAtTime=function(){return this.sourceRect};function Cy(e,i){this.elem=e,this.pos=i}function mm(){}mm.prototype={addShapeToModifiers:function(i){var n,l=this.shapeModifiers.length;for(n=0;n<l;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,l=this.shapeModifiers.length;n<l;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var l;for(i=n-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,l=0,h=n.length;l<h;){if(n[l].elem===i)return n[l].pos;l+=1}return 0},addProcessedElement:function(i,n){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===i){l[h].pos=n;return}l.push(new Cy(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var um={1:"butt",2:"round",3:"square"},fm={1:"miter",2:"round",3:"bevel"};function vm(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}vm.prototype.setAsAnimated=function(){this._isAnimated=!0};function gm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}gm.prototype.reset=function(){this.d="",this._mdf=!1};function Va(e,i,n,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",i.length?i.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(l);var h,c=i.length||0,g;for(h=0;h<c;h+=1)g=nt.getProp(e,i[h].v,0,0,this),this.k=g.k||this.k,this.dataProps[h]={n:i[h].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}Va.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},L([me],Va);function bm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new Va(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}L([me],bm);function ym(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}L([me],ym);function Em(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}L([me],Em);function gn(e,i,n){this.data=i,this.c=X("uint8c",i.p*4);var l=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=X("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}gn.prototype.comparePoints=function(e,i){for(var n=0,l=this.o.length/2,h;n<l;){if(h=Math.abs(e[n*4]-e[i*4+n*2]),h>.01)return!1;n+=1}return!0},gn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},gn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,l,h;for(i=0;i<n;i+=1)l=i%4===0?100:255,h=Math.round(this.prop.v[i]*l),this.c[i]!==h&&(this.c[i]=h,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)l=i%2===0?100:1,h=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==h&&(this.o[i-this.data.p*4]=h,this._omdf=!e);this._mdf=!e}},L([me],gn);function hs(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}hs.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,wt,this),this.g=new gn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},hs.prototype.setGradientData=function(e,i){var n=Fe(),l=Tt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",n),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,g,A;for(A=i.g.p*4,g=0;g<A;g+=4)c=Tt("stop"),l.appendChild(c),h.push(c);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=l,this.cst=h},hs.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,l,h,c=Tt("mask"),g=Tt("path");c.appendChild(g);var A=Fe(),b=Fe();c.setAttribute("id",b);var w=Tt(e.t===1?"linearGradient":"radialGradient");w.setAttribute("id",A),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),h=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var O=this.stops;for(l=e.g.p*4;l<h;l+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),O.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+A+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",um[e.lc||2]),g.setAttribute("stroke-linejoin",fm[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=w,this.ms=c,this.ost=O,this.maskId=b,i.msElem=g}},L([me],hs);function Tm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new Va(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}L([hs,me],Tm);function wy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function ky(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var xm=function(i,n,l,h){if(n===0)return"";var c=i.o,g=i.i,A=i.v,b,w=" M"+h.applyToPointStringified(A[0][0],A[0][1]);for(b=1;b<n;b+=1)w+=" C"+h.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+h.applyToPointStringified(g[b][0],g[b][1])+" "+h.applyToPointStringified(A[b][0],A[b][1]);return l&&n&&(w+=" C"+h.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+h.applyToPointStringified(g[0][0],g[0][1])+" "+h.applyToPointStringified(A[0][0],A[0][1]),w+="z"),w},Ny=function(){var e=new ye,i=new ye,n={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return w;case"gs":return b;case"st":return O;case"sh":case"el":case"rc":case"sr":return g;case"tr":return h;case"no":return c;default:return null}}function h(G,x,M){(M||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(M||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function c(){}function g(G,x,M){var D,R,V,N,C,E,S=x.styles.length,k=x.lvl,F,H,K,rt;for(E=0;E<S;E+=1){if(N=x.sh._mdf||M,x.styles[E].lvl<k){for(H=i.reset(),K=k-x.styles[E].lvl,rt=x.transformers.length-1;!N&&K>0;)N=x.transformers[rt].mProps._mdf||N,K-=1,rt-=1;if(N)for(K=k-x.styles[E].lvl,rt=x.transformers.length-1;K>0;)H.multiply(x.transformers[rt].mProps.v),K-=1,rt-=1}else H=e;if(F=x.sh.paths,R=F._length,N){for(V="",D=0;D<R;D+=1)C=F.shapes[D],C&&C._length&&(V+=xm(C,C._length,C.c,H));x.caches[E]=V}else V=x.caches[E];x.styles[E].d+=G.hd===!0?"":V,x.styles[E]._mdf=N||x.styles[E]._mdf}}function A(G,x,M){var D=x.style;(x.c._mdf||M)&&D.pElem.setAttribute("fill","rgb("+pe(x.c.v[0])+","+pe(x.c.v[1])+","+pe(x.c.v[2])+")"),(x.o._mdf||M)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,M){w(G,x,M),O(G,x,M)}function w(G,x,M){var D=x.gf,R=x.g._hasOpacity,V=x.s.v,N=x.e.v;if(x.o._mdf||M){var C=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(C,x.o.v)}if(x.s._mdf||M){var E=G.t===1?"x1":"cx",S=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(S,V[1]),R&&!x.g._collapsable&&(x.of.setAttribute(E,V[0]),x.of.setAttribute(S,V[1]))}var k,F,H,K;if(x.g._cmdf||M){k=x.cst;var rt=x.g.c;for(H=k.length,F=0;F<H;F+=1)K=k[F],K.setAttribute("offset",rt[F*4]+"%"),K.setAttribute("stop-color","rgb("+rt[F*4+1]+","+rt[F*4+2]+","+rt[F*4+3]+")")}if(R&&(x.g._omdf||M)){var yt=x.g.o;for(x.g._collapsable?k=x.cst:k=x.ost,H=k.length,F=0;F<H;F+=1)K=k[F],x.g._collapsable||K.setAttribute("offset",yt[F*2]+"%"),K.setAttribute("stop-opacity",yt[F*2+1])}if(G.t===1)(x.e._mdf||M)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",N[0]),x.of.setAttribute("y2",N[1])));else{var mt;if((x.s._mdf||x.e._mdf||M)&&(mt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",mt),R&&!x.g._collapsable&&x.of.setAttribute("r",mt)),x.e._mdf||x.h._mdf||x.a._mdf||M){mt||(mt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)));var st=Math.atan2(N[1]-V[1],N[0]-V[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=mt*xt,et=Math.cos(st+x.a.v)*ct+V[0],I=Math.sin(st+x.a.v)*ct+V[1];D.setAttribute("fx",et),D.setAttribute("fy",I),R&&!x.g._collapsable&&(x.of.setAttribute("fx",et),x.of.setAttribute("fy",I))}}}function O(G,x,M){var D=x.style,R=x.d;R&&(R._mdf||M)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||M)&&D.pElem.setAttribute("stroke","rgb("+pe(x.c.v[0])+","+pe(x.c.v[1])+","+pe(x.c.v[2])+")"),(x.o._mdf||M)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||M)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function Xt(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}L([Ci,ds,un,mm,cs,wi,fn],Xt),Xt.prototype.initSecondaryElement=function(){},Xt.prototype.identityMatrix=new ye,Xt.prototype.buildExpressionInterface=function(){},Xt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Xt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,l,h=this.stylesList.length,c,g=[],A=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],A=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(c)!==-1&&(g.push(n),A=n._isAnimated||A);g.length>1&&A&&this.setShapesAsAnimated(g)}},Xt.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},Xt.prototype.createStyleElement=function(e,i){var n,l=new gm(e,i),h=l.pElem;if(e.ty==="st")n=new bm(this,e,l);else if(e.ty==="fl")n=new ym(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?hs:Tm;n=new c(this,e,l),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),h.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new Em(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",um[e.lc||2]),h.setAttribute("stroke-linejoin",fm[e.lj||2]),h.setAttribute("fill-opacity","0"),e.lj===1&&h.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&h.setAttribute("fill-rule","evenodd"),e.ln&&h.setAttribute("id",e.ln),e.cl&&h.setAttribute("class",e.cl),e.bm&&(h.style["mix-blend-mode"]=Wd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,n),n},Xt.prototype.createGroupElement=function(e){var i=new wy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=Wd(e.bm)),i},Xt.prototype.createTransformElement=function(e,i){var n=Ud.getTransformProperty(this,e,this),l=new ky(n,n.o,i);return this.addToAnimatedContents(e,l),l},Xt.prototype.createShapeElement=function(e,i,n){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=Oa.getShapeProp(this,e,l,this),c=new vm(i,n,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Xt.prototype.addToAnimatedContents=function(e,i){for(var n=0,l=this.animatedContents.length;n<l;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:Ny.createRenderFunction(e),element:i,data:e})},Xt.prototype.setElementStyles=function(e){var i=e.styles,n,l=this.stylesList.length;for(n=0;n<l;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},Xt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Xt.prototype.searchShapes=function(e,i,n,l,h,c,g){var A=[].concat(c),b,w=e.length-1,O,G,x=[],M=[],D,R,V;for(b=w;b>=0;b-=1){if(V=this.searchProcessedElement(e[b]),V?i[b]=n[V-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")V?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],h),e[b]._render&&i[b].style.pElem.parentNode!==l&&l.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!V)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,O=0;O<G;O+=1)i[b].prevViewData[O]=i[b].it[O];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,h+1,A,g),e[b]._render&&i[b].gr.parentNode!==l&&l.appendChild(i[b].gr)}else e[b].ty==="tr"?(V||(i[b]=this.createTransformElement(e[b],l)),D=i[b].transform,A.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(V||(i[b]=this.createShapeElement(e[b],A,h)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(V?(R=i[b],R.closed=!1):(R=Ii.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),M.push(R)):e[b].ty==="rp"&&(V?(R=i[b],R.closed=!0):(R=Ii.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),M.push(R));this.addProcessedElement(e[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=M.length,b=0;b<w;b+=1)M[b].closed=!0},Xt.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Xt.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},Xt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function qd(e,i,n,l,h,c){this.o=e,this.sw=i,this.sc=n,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!l,m:!0,p:!0}}qd.prototype.update=function(e,i,n,l,h,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,g=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,g=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,g=!0),g};function we(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}we.prototype.defaultBoxWidth=[0,0],we.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},we.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},we.prototype.searchProperty=function(){return this.searchKeyframes()},we.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},we.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},we.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,h=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(l=0;l<h;l+=1)n!==this.keysIndex?c=this.effectsSequence[l](c,c.t):c=this.effectsSequence[l](this.currentData,c.t);i!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},we.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,l=e.length;n<=l-1&&!(n===l-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},we.prototype.buildFinalText=function(e){for(var i=[],n=0,l=e.length,h,c,g=!1,A=!1,b="";n<l;)g=A,A=!1,h=e.charCodeAt(n),b=e.charAt(n),mo.isCombinedCharacter(h)?g=!0:h>=55296&&h<=56319?mo.isRegionalFlag(e,n)?b=e.substr(n,14):(c=e.charCodeAt(n+1),c>=56320&&c<=57343&&(mo.isModifier(h,c)?(b=e.substr(n,2),g=!0):mo.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):h>56319?(c=e.charCodeAt(n+1),mo.isVariationSelector(h)&&(g=!0)):mo.isZeroWidthJoiner(h)&&(g=!0,A=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},we.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,l=[],h,c,g,A=0,b,w=n.m.g,O=0,G=0,x=0,M=[],D=0,R=0,V,N,C=i.getFontByName(e.f),E,S=0,k=lm(C);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var F=e.tr/1e3*e.finalSize,H;if(e.sz)for(var K=!0,rt=e.sz[0],yt=e.sz[1],mt,st;K;){st=this.buildFinalText(e.t),mt=0,D=0,c=st.length,F=e.tr/1e3*e.finalSize;var xt=-1;for(h=0;h<c;h+=1)H=st[h].charCodeAt(0),g=!1,st[h]===" "?xt=h:(H===13||H===3)&&(D=0,g=!0,mt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(E=i.getCharData(st[h],C.fStyle,C.fFamily),S=g?0:E.w*e.finalSize/100):S=i.measureText(st[h],e.f,e.finalSize),D+S>rt&&st[h]!==" "?(xt===-1?c+=1:h=xt,mt+=e.finalLineHeight||e.finalSize*1.2,st.splice(h,xt===h?1:0,"\r"),xt=-1,D=0):(D+=S,D+=F);mt+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<mt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,c=e.finalText.length,K=!1)}D=-F,S=0;var ct=0,et;for(h=0;h<c;h+=1)if(g=!1,et=e.finalText[h],H=et.charCodeAt(0),H===13||H===3?(ct=0,M.push(D),R=D>R?D:R,D=-2*F,b="",g=!0,x+=1):b=et,i.chars?(E=i.getCharData(et,C.fStyle,i.getFontByName(e.f).fFamily),S=g?0:E.w*e.finalSize/100):S=i.measureText(b,e.f,e.finalSize),et===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:O,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(O+=S,b===""||b===" "||h===c-1){for((b===""||b===" ")&&(O-=S);G<=h;)l[G].an=O,l[G].ind=A,l[G].extra=S,G+=1;A+=1,O=0}}else if(w==3){if(O+=S,b===""||h===c-1){for(b===""&&(O-=S);G<=h;)l[G].an=O,l[G].ind=A,l[G].extra=S,G+=1;O=0,A+=1}}else l[A].ind=A,l[A].extra=0,A+=1;if(e.l=l,R=D>R?D:R,M.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=M;var I=n.a,P,v;N=I.length;var y,Y,$=[];for(V=0;V<N;V+=1){for(P=I[V],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),Y=0,y=P.s.b,h=0;h<c;h+=1)v=l[h],v.anIndexes[V]=Y,(y==1&&v.val!==""||y==2&&v.val!==""&&v.val!==" "||y==3&&(v.n||v.val==" "||h==c-1)||y==4&&(v.n||h==c-1))&&(P.s.rn===1&&$.push(Y),Y+=1);n.a[V].s.totalChars=Y;var at=-1,vt;if(P.s.rn===1)for(h=0;h<c;h+=1)v=l[h],at!=v.anIndexes[V]&&(at=v.anIndexes[V],vt=$.splice(Math.floor(Math.random()*$.length),1)[0]),v.anIndexes[V]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=C.ascent*e.finalSize/100},we.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},we.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},we.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},we.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Ly=function(){var e=Math.max,i=Math.min,n=Math.floor;function l(c,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=nt.getProp(c,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(c,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(c,g.o||{k:0},0,0,this),this.xe=nt.getProp(c,g.xe||{k:0},0,0,this),this.ne=nt.getProp(c,g.ne||{k:0},0,0,this),this.sm=nt.getProp(c,g.sm||{k:100},0,0,this),this.a=nt.getProp(c,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,b=0,w=1,O=1;this.ne.v>0?A=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:O=1+this.xe.v/100;var G=nn.getBezierEasing(A,b,w,O).get,x=0,M=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===M?x=g>=D?1:0:x=e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x=G(x);else if(R===3)D===M?x=g>=D?0:1:x=1-e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x=G(x);else if(R===4)D===M?x=0:(x=e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===M)x=0;else{var V=D-M;g=i(e(0,g+.5-M),D-M);var N=-V/2+g,C=V/2;x=Math.sqrt(1-N*N/(C*C))}x=G(x)}else R===6?(D===M?x=0:(g=i(e(0,g+.5-M),D-M),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-M)))/2),x=G(x)):(g>=n(M)&&(g-M<0?x=e(0,i(i(D,1)-(M-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var S=.5-E*.5;x<S?x=0:(x=(x-S)/E,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 A=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/A,w=this.s.v/A+b,O=this.e.v/A+b;if(w>O){var G=w;w=O,O=G}this.finalS=w,this.finalE=O}},L([me],l);function h(c,g,A){return new l(c,g,A)}return{getTextSelectorProp:h}}();function Oy(e,i,n){var l={propType:!1},h=nt.getProp,c=i.a;this.a={r:c.r?h(e,c.r,0,wt,n):l,rx:c.rx?h(e,c.rx,0,wt,n):l,ry:c.ry?h(e,c.ry,0,wt,n):l,sk:c.sk?h(e,c.sk,0,wt,n):l,sa:c.sa?h(e,c.sa,0,wt,n):l,s:c.s?h(e,c.s,1,.01,n):l,a:c.a?h(e,c.a,1,0,n):l,o:c.o?h(e,c.o,0,.01,n):l,p:c.p?h(e,c.p,1,0,n):l,sw:c.sw?h(e,c.sw,0,0,n):l,sc:c.sc?h(e,c.sc,1,0,n):l,fc:c.fc?h(e,c.fc,1,0,n):l,fh:c.fh?h(e,c.fh,0,0,n):l,fs:c.fs?h(e,c.fs,0,.01,n):l,fb:c.fb?h(e,c.fb,0,.01,n):l,t:c.t?h(e,c.t,0,0,n):l},this.s=Ly.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function fo(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}fo.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,l=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new Oy(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=l(this._elem,this._textData.m.a,1,0,this)},fo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,g=this._renderType,A=this.renderedLetters.length,b,w,O,G,x=e.l,M,D,R,V,N,C,E,S,k,F,H,K,rt,yt,mt;if(this._hasMaskedPath){if(mt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=mt.v;this._pathData.r.v&&(st=st.reverse()),M={tLength:0,segments:[]},G=st._length-1;var xt;for(K=0,O=0;O<G;O+=1)xt=Rr.buildBezierData(st.v[O],st.v[O+1],[st.o[O][0]-st.v[O][0],st.o[O][1]-st.v[O][1]],[st.i[O+1][0]-st.v[O+1][0],st.i[O+1][1]-st.v[O+1][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),K+=xt.segmentLength;O=G,mt.v.c&&(xt=Rr.buildBezierData(st.v[O],st.v[0],[st.o[O][0]-st.v[O][0],st.o[O][1]-st.v[O][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),K+=xt.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,D=this._pathData.f.v,E=0,C=1,V=0,N=!0,F=M.segments,D<0&&mt.v.c)for(M.tLength<Math.abs(D)&&(D=-Math.abs(D)%M.tLength),E=F.length-1,k=F[E].points,C=k.length-1;D<0;)D+=k[C].partialLength,C-=1,C<0&&(E-=1,k=F[E].points,C=k.length-1);k=F[E].points,S=k[C-1],R=k[C],H=R.partialLength}G=x.length,b=0,w=0;var ct=e.finalSize*1.2*.714,et=!0,I,P,v,y,Y;y=l.length;var $,at=-1,vt,Et,Mt,Rt=D,re=E,ze=C,Dr=-1,Ve,ue,Ze,Ft,ht,ri,Li,ii,Fr="",oi=this.defaultPropsArray,si;if(e.j===2||e.j===1){var Be=0,Oi=0,Mi=e.j===2?-.5:-1,Sr=0,Ri=!0;for(O=0;O<G;O+=1)if(x[O].n){for(Be&&(Be+=Oi);Sr<O;)x[Sr].animatorJustifyOffset=Be,Sr+=1;Be=0,Ri=!0}else{for(v=0;v<y;v+=1)I=l[v].a,I.t.propType&&(Ri&&e.j===2&&(Oi+=I.t.v*Mi),P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Be+=I.t.v*$[0]*Mi:Be+=I.t.v*$*Mi);Ri=!1}for(Be&&(Be+=Oi);Sr<O;)x[Sr].animatorJustifyOffset=Be,Sr+=1}for(O=0;O<G;O+=1){if(c.reset(),Ve=1,x[O].n)b=0,w+=e.yOffset,w+=et?1:0,D=Rt,et=!1,this._hasMaskedPath&&(E=re,C=ze,k=F[E].points,S=k[C-1],R=k[C],H=R.partialLength,V=0),Fr="",ii="",ri="",si="",oi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Dr!==x[O].line){switch(e.j){case 1:D+=K-e.lineWidths[x[O].line];break;case 2:D+=(K-e.lineWidths[x[O].line])/2;break;default:break}Dr=x[O].line}at!==x[O].ind&&(x[at]&&(D+=x[at].extra),D+=x[O].an/2,at=x[O].ind),D+=n[0]*x[O].an*.005;var Ir=0;for(v=0;v<y;v+=1)I=l[v].a,I.p.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Ir+=I.p.v[0]*$[0]:Ir+=I.p.v[0]*$),I.a.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Ir+=I.a.v[0]*$[0]:Ir+=I.a.v[0]*$);for(N=!0,this._pathData.a.v&&(D=x[0].an*.5+(K-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);N;)V+H>=D+Ir||!k?(rt=(D+Ir-V)/R.partialLength,Et=S.point[0]+(R.point[0]-S.point[0])*rt,Mt=S.point[1]+(R.point[1]-S.point[1])*rt,c.translate(-n[0]*x[O].an*.005,-(n[1]*ct)*.01),N=!1):k&&(V+=R.partialLength,C+=1,C>=k.length&&(C=0,E+=1,F[E]?k=F[E].points:mt.v.c?(C=0,E=0,k=F[E].points):(V-=R.partialLength,k=null)),k&&(S=R,R=k[C],H=R.partialLength));vt=x[O].an/2-x[O].add,c.translate(-vt,0,0)}else vt=x[O].an/2-x[O].add,c.translate(-vt,0,0),c.translate(-n[0]*x[O].an*.005,-n[1]*ct*.01,0);for(v=0;v<y;v+=1)I=l[v].a,I.t.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?$.length?D+=I.t.v*$[0]:D+=I.t.v*$:$.length?b+=I.t.v*$[0]:b+=I.t.v*$));for(e.strokeWidthAnim&&(Ze=e.sw||0),e.strokeColorAnim&&(e.sc?ue=[e.sc[0],e.sc[1],e.sc[2]]:ue=[0,0,0]),e.fillColorAnim&&e.fc&&(Ft=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<y;v+=1)I=l[v].a,I.a.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?c.translate(-I.a.v[0]*$[0],-I.a.v[1]*$[1],I.a.v[2]*$[2]):c.translate(-I.a.v[0]*$,-I.a.v[1]*$,I.a.v[2]*$));for(v=0;v<y;v+=1)I=l[v].a,I.s.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?c.scale(1+(I.s.v[0]-1)*$[0],1+(I.s.v[1]-1)*$[1],1):c.scale(1+(I.s.v[0]-1)*$,1+(I.s.v[1]-1)*$,1));for(v=0;v<y;v+=1){if(I=l[v].a,P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),I.sk.propType&&($.length?c.skewFromAxis(-I.sk.v*$[0],I.sa.v*$[1]):c.skewFromAxis(-I.sk.v*$,I.sa.v*$)),I.r.propType&&($.length?c.rotateZ(-I.r.v*$[2]):c.rotateZ(-I.r.v*$)),I.ry.propType&&($.length?c.rotateY(I.ry.v*$[1]):c.rotateY(I.ry.v*$)),I.rx.propType&&($.length?c.rotateX(I.rx.v*$[0]):c.rotateX(I.rx.v*$)),I.o.propType&&($.length?Ve+=(I.o.v*$[0]-Ve)*$[0]:Ve+=(I.o.v*$-Ve)*$),e.strokeWidthAnim&&I.sw.propType&&($.length?Ze+=I.sw.v*$[0]:Ze+=I.sw.v*$),e.strokeColorAnim&&I.sc.propType)for(ht=0;ht<3;ht+=1)$.length?ue[ht]+=(I.sc.v[ht]-ue[ht])*$[0]:ue[ht]+=(I.sc.v[ht]-ue[ht])*$;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(ht=0;ht<3;ht+=1)$.length?Ft[ht]+=(I.fc.v[ht]-Ft[ht])*$[0]:Ft[ht]+=(I.fc.v[ht]-Ft[ht])*$;I.fh.propType&&($.length?Ft=Pp(Ft,I.fh.v*$[0]):Ft=Pp(Ft,I.fh.v*$)),I.fs.propType&&($.length?Ft=Mp(Ft,I.fs.v*$[0]):Ft=Mp(Ft,I.fs.v*$)),I.fb.propType&&($.length?Ft=Rp(Ft,I.fb.v*$[0]):Ft=Rp(Ft,I.fb.v*$))}}for(v=0;v<y;v+=1)I=l[v].a,I.p.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),this._hasMaskedPath?$.length?c.translate(0,I.p.v[1]*$[0],-I.p.v[2]*$[1]):c.translate(0,I.p.v[1]*$,-I.p.v[2]*$):$.length?c.translate(I.p.v[0]*$[0],I.p.v[1]*$[1],-I.p.v[2]*$[2]):c.translate(I.p.v[0]*$,I.p.v[1]*$,-I.p.v[2]*$));if(e.strokeWidthAnim&&(ri=Ze<0?0:Ze),e.strokeColorAnim&&(Li="rgb("+Math.round(ue[0]*255)+","+Math.round(ue[1]*255)+","+Math.round(ue[2]*255)+")"),e.fillColorAnim&&e.fc&&(ii="rgb("+Math.round(Ft[0]*255)+","+Math.round(Ft[1]*255)+","+Math.round(Ft[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,n[1]*ct*.01+w,0),this._pathData.p.v){yt=(R.point[1]-S.point[1])/(R.point[0]-S.point[0]);var vo=Math.atan(yt)*180/Math.PI;R.point[0]<S.point[0]&&(vo+=180),c.rotate(-vo*Math.PI/180)}c.translate(Et,Mt,0),D-=n[0]*x[O].an*.005,x[O+1]&&at!==x[O+1].ind&&(D+=x[O].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(b,w,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(x[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[O].line]),0,0);break;case 2:c.translate(x[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[O].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(vt,0,0),c.translate(n[0]*x[O].an*.005,n[1]*ct*.01,0),b+=x[O].l+e.tr*.001*e.finalSize}g==="html"?Fr=c.toCSS():g==="svg"?Fr=c.to2dCSS():oi=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],si=Ve}A<=O?(Y=new qd(si,ri,Li,ii,Fr,oi),this.renderedLetters.push(Y),A+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[O],this.lettersChangedFlag=Y.update(si,ri,Li,ii,Fr,oi)||this.lettersChangedFlag)}}},fo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},fo.prototype.mHelper=new ye,fo.prototype.defaultPropsArray=[],L([me],fo);function dr(){}dr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new we(this,e.t,this.dynamicProperties),this.textAnimator=new fo(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},dr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},dr.prototype.createPathShape=function(e,i){var n,l=i.length,h,c="";for(n=0;n<l;n+=1)i[n].ty==="sh"&&(h=i[n].ks.k,c+=xm(h,h.i.length,!0,e));return c},dr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},dr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},dr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},dr.prototype.applyTextPropertiesToMatrix=function(e,i,n,l,h){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(l,h,0)},dr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},dr.prototype.emptyProp=new qd,dr.prototype.destroy=function(){},dr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var My={shapes:[]};function ti(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}L([Ci,ds,un,cs,wi,fn,dr],ti),ti.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ti.prototype.buildTextContents=function(e){for(var i=0,n=e.length,l=[],h="";i<n;)e[i]==="\r"||e[i]===""?(l.push(h),h=""):h+=e[i],i+=1;return l.push(h),l},ti.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var l=n.it[n.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},ti.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=it(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 l=this.globalData.fontManager.getFontByName(n.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=n.fWeight,c=n.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],A=!!this.globalData.fontManager.chars;i=g.length;var b,w=this.mHelper,O="",G=this.data.singleShape,x=0,M=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!A&&!n.sz){var V=this.textContainer,N="start";switch(n.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",R);var C=this.buildTextContents(n.finalText);for(i=C.length,M=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=C[e],b.setAttribute("x",0),b.setAttribute("y",M),b.style.display="inherit",V.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,M+=n.finalLineHeight;this.layerElement.appendChild(V)}else{var E=this.textSpans.length,S;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(b=E>e?this.textSpans[e].span:Tt(A?"g":"text"),E<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,A){var k=Tt("g");b.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),G&&(g[e].n&&(x=-R,M+=n.yOffset,M+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,w,g[e].line,x,M),x+=g[e].l||0,x+=R),A){S=this.globalData.fontManager.getCharData(n.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var F;if(S.t===1)F=new bn(S.data,this.globalData,this);else{var H=My;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,n.finalSize)),F=new Xt(H,this.globalData,this)}if(this.textSpans[e].glyph){var K=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(K.layerElement),K.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",O)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ti.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},ti.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ti.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,n=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var h,c,g;for(e=0;e<i;e+=1)l[e].n||(h=n[e],c=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Xd(e,i,n){this.initElement(e,i,n)}L([vn],Xd),Xd.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Ni(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Ni.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Ni.prototype.renderFrame=function(){},Ni.prototype.getBaseElement=function(){return null},Ni.prototype.destroy=function(){},Ni.prototype.sourceRectAtTime=function(){},Ni.prototype.hide=function(){},L([Ci,ds,cs,wi],Ni);function ne(){}L([Ee],ne),ne.prototype.createNull=function(e){return new Ni(e,this.globalData,this)},ne.prototype.createShape=function(e){return new Xt(e,this.globalData,this)},ne.prototype.createText=function(e){return new ti(e,this.globalData,this)},ne.prototype.createImage=function(e){return new vn(e,this.globalData,this)},ne.prototype.createSolid=function(e){return new Xd(e,this.globalData,this)},ne.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=Fe();n.setAttribute("id",h),n.appendChild(l),this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")"),i.appendChild(n),this.layers=e.layers,this.elements=it(e.layers.length)},ne.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},ne.prototype.updateContainerSize=function(){},ne.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},ne.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,Ia()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(n);else{var h=i[l],c=h.getMatte(this.layers[e].tt);n.setMatte(c)}}}},ne.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,h=this.elements[l],c=h.getMatte(this.layers[i].tt);e.setMatte(c);break}i+=1}}},ne.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},ne.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var l=0,h;l<i;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(h=this.elements[l].getBaseElement()),l+=1;h?this.layerElement.insertBefore(n,h):this.layerElement.appendChild(n)}},ne.prototype.hide=function(){this.layerElement.style.display="none"},ne.prototype.show=function(){this.layerElement.style.display="block"};function ei(){}L([Ci,ds,cs,wi,fn],ei),ei.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},ei.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=l-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))}},ei.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ei.prototype.setElements=function(e){this.elements=e},ei.prototype.getElements=function(){return this.elements},ei.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},ei.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function bn(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}L([ne,ei,un],bn),bn.prototype.createComp=function(e){return new bn(e,this.globalData,this)};function Zd(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var l=Tt("title"),h=Fe();l.setAttribute("id",h),l.textContent=i.title,this.svgElement.appendChild(l),n+=h}if(i&&i.description){var c=Tt("desc"),g=Fe();c.setAttribute("id",g),c.textContent=i.description,this.svgElement.appendChild(c),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var A=Tt("defs");this.svgElement.appendChild(A);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return L([ne],Zd),Zd.prototype.createComp=function(e){return new bn(e,this.globalData,this)},Hb("svg",Zd),Ii.registerModifier("tm",Ar),Ii.registerModifier("pb",an),Ii.registerModifier("rp",Pr),Ii.registerModifier("rd",ln),Ii.registerModifier("zz",cn),Ii.registerModifier("op",hn),Pt})});var Ga=globalThis,Ya=Ga.ShadowRoot&&(Ga.ShadyCSS===void 0||Ga.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jd=Symbol(),Sm=new WeakMap,yn=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==Jd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Ya&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Sm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Sm.set(t,o))}return o}toString(){return this.cssText}},Im=a=>new yn(typeof a=="string"?a:a+"",void 0,Jd),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,d)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[d+1],a[0]);return new yn(t,a,Jd)},tc=(a,o)=>{if(Ya)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Ga.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},Ka=Ya?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Im(t)})(a):a;var{is:By,defineProperty:Uy,getOwnPropertyDescriptor:Hy,getOwnPropertyNames:Gy,getOwnPropertySymbols:Yy,getPrototypeOf:Ky}=Object,Pi=globalThis,_m=Pi.trustedTypes,Wy=_m?_m.emptyScript:"",ec=Pi.reactiveElementPolyfillSupport,En=(a,o)=>a,Tn={toAttribute(a,o){switch(o){case Boolean:a=a?Wy:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},Wa=(a,o)=>!By(a,o),Cm={attribute:!0,type:String,converter:Tn,reflect:!1,hasChanged:Wa},wm,km;(wm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(km=Pi.litPropertyMetadata)!=null||(Pi.litPropertyMetadata=new WeakMap);var ni=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Cm){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&Uy(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var p;let{get:s,set:d}=(p=Hy(this.prototype,o))!=null?p:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let T=s==null?void 0:s.call(this);d.call(this,f),this.requestUpdate(o,T,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Cm}static _$Ei(){if(this.hasOwnProperty(En("elementProperties")))return;let o=Ky(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(En("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(En("properties"))){let t=this.properties,r=[...Gy(t),...Yy(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(Ka(s))}else o!==void 0&&t.push(Ka(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return tc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var d;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let p=(((d=r.converter)==null?void 0:d.toAttribute)!==void 0?r.converter:Tn).toAttribute(t,r.type);this._$Em=o,p==null?this.removeAttribute(s):this.setAttribute(s,p),this._$Em=null}}_$AK(o,t){var d;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let p=r.getPropertyOptions(s),f=typeof p.converter=="function"?{fromAttribute:p.converter}:((d=p.converter)==null?void 0:d.fromAttribute)!==void 0?p.converter:Tn;this._$Em=s,this[s]=f.fromAttribute(t,p.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:Wa)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[p,f]of this._$Ep)this[p]=f;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[p,f]of d)f.wrapped!==!0||this._$AL.has(p)||this[p]===void 0||this.P(p,this[p],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(d=>{var p;return(p=d.hostUpdate)==null?void 0:p.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},Nm;ni.elementStyles=[],ni.shadowRootOptions={mode:"open"},ni[En("elementProperties")]=new Map,ni[En("finalized")]=new Map,ec==null||ec({ReactiveElement:ni}),((Nm=Pi.reactiveElementVersions)!=null?Nm:Pi.reactiveElementVersions=[]).push("2.0.4");var An=globalThis,ja=An.trustedTypes,Lm=ja?ja.createPolicy("lit-html",{createHTML:a=>a}):void 0,oc="$lit$",ai=`lit$${Math.random().toFixed(9).slice(2)}$`,sc="?"+ai,jy=`<${sc}>`,yo=document,Sn=()=>yo.createComment(""),In=a=>a===null||typeof a!="object"&&typeof a!="function",nc=Array.isArray,$m=a=>nc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",rc=`[
|
|
3
|
+
\f\r]`,xn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Om=/-->/g,Mm=/>/g,go=RegExp(`>|${rc}(?:([^\\s"'>=/]+)(${rc}*=${rc}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rm=/'/g,Pm=/"/g,zm=/^(?:script|style|textarea|title)$/i,ac=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),_=ac(1),R0=ac(2),P0=ac(3),Te=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Dm=new WeakMap,bo=yo.createTreeWalker(yo,129);function Vm(a,o){if(!nc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lm!==void 0?Lm.createHTML(o):o}var Bm=(a,o)=>{let t=a.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",p=xn;for(let f=0;f<t;f++){let T=a[f],L,U,q=-1,Q=0;for(;Q<T.length&&(p.lastIndex=Q,U=p.exec(T),U!==null);)Q=p.lastIndex,p===xn?U[1]==="!--"?p=Om:U[1]!==void 0?p=Mm:U[2]!==void 0?(zm.test(U[2])&&(s=RegExp("</"+U[2],"g")),p=go):U[3]!==void 0&&(p=go):p===go?U[0]===">"?(p=s!=null?s:xn,q=-1):U[1]===void 0?q=-2:(q=p.lastIndex-U[2].length,L=U[1],p=U[3]===void 0?go:U[3]==='"'?Pm:Rm):p===Pm||p===Rm?p=go:p===Om||p===Mm?p=xn:(p=go,s=void 0);let X=p===go&&a[f+1].startsWith("/>")?" ":"";d+=p===xn?T+jy:q>=0?(r.push(L),T.slice(0,q)+oc+T.slice(q)+ai+X):T+ai+(q===-2?f:X)}return[Vm(a,d+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},_n=class a{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,p=0,f=o.length-1,T=this.parts,[L,U]=Bm(o,t);if(this.el=a.createElement(L,r),bo.currentNode=this.el.content,t===2||t===3){let q=this.el.content.firstChild;q.replaceWith(...q.childNodes)}for(;(s=bo.nextNode())!==null&&T.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let q of s.getAttributeNames())if(q.endsWith(oc)){let Q=U[p++],X=s.getAttribute(q).split(ai),it=/([.?@])?(.*)/.exec(Q);T.push({type:1,index:d,name:it[2],strings:X,ctor:it[1]==="."?Xa:it[1]==="?"?Za:it[1]==="@"?Qa:To}),s.removeAttribute(q)}else q.startsWith(ai)&&(T.push({type:6,index:d}),s.removeAttribute(q));if(zm.test(s.tagName)){let q=s.textContent.split(ai),Q=q.length-1;if(Q>0){s.textContent=ja?ja.emptyScript:"";for(let X=0;X<Q;X++)s.append(q[X],Sn()),bo.nextNode(),T.push({type:2,index:++d});s.append(q[Q],Sn())}}}else if(s.nodeType===8)if(s.data===sc)T.push({type:2,index:d});else{let q=-1;for(;(q=s.data.indexOf(ai,q+1))!==-1;)T.push({type:7,index:d}),q+=ai.length-1}d++}}static createElement(o,t){let r=yo.createElement("template");return r.innerHTML=o,r}};function Eo(a,o,t=a,r){var p,f,T;if(o===Te)return o;let s=r!==void 0?(p=t.o)==null?void 0:p[r]:t.l,d=In(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((f=s==null?void 0:s._$AO)==null||f.call(s,!1),d===void 0?s=void 0:(s=new d(a),s._$AT(a,t,r)),r!==void 0?((T=t.o)!=null?T:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=Eo(a,s._$AS(a,o.values),s,r)),o}var qa=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var L;let{el:{content:t},parts:r}=this._$AD,s=((L=o==null?void 0:o.creationScope)!=null?L:yo).importNode(t,!0);bo.currentNode=s;let d=bo.nextNode(),p=0,f=0,T=r[0];for(;T!==void 0;){if(p===T.index){let U;T.type===2?U=new ps(d,d.nextSibling,this,o):T.type===1?U=new T.ctor(d,T.name,T.strings,this,o):T.type===6&&(U=new Ja(d,this,o)),this._$AV.push(U),T=r[++f]}p!==(T==null?void 0:T.index)&&(d=bo.nextNode(),p++)}return bo.currentNode=yo,s}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},ps=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var d;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(d=s==null?void 0:s.isConnected)!=null?d:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Eo(this,o,t),In(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==Te&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):$m(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==W&&In(this._$AH)?this._$AA.nextSibling.data=o:this.T(yo.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=_n.createElement(Vm(r.h,r.h[0]),this.options)),r);if(((d=this._$AH)==null?void 0:d._$AD)===s)this._$AH.p(t);else{let p=new qa(s,this),f=p.u(this.options);p.p(t),this.T(f),this._$AH=p}}_$AC(o){let t=Dm.get(o.strings);return t===void 0&&Dm.set(o.strings,t=new _n(o)),t}k(o){nc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let d of o)s===t.length?t.push(r=new a(this.O(Sn()),this.O(Sn()),this,this.options)):r=t[s],r._$AI(d),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},To=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,d){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}_$AI(o,t=this,r,s){let d=this.strings,p=!1;if(d===void 0)o=Eo(this,o,t,0),p=!In(o)||o!==this._$AH&&o!==Te,p&&(this._$AH=o);else{let f=o,T,L;for(o=d[0],T=0;T<d.length-1;T++)L=Eo(this,f[r+T],t,T),L===Te&&(L=this._$AH[T]),p||(p=!In(L)||L!==this._$AH[T]),L===W?o=W:o!==W&&(o+=(L!=null?L:"")+d[T+1]),this._$AH[T]=L}p&&!s&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Xa=class extends To{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Za=class extends To{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Qa=class extends To{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var p;if((o=(p=Eo(this,o,t,0))!=null?p:W)===Te)return;let r=this._$AH,s=o===W&&r!==W||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==W&&(r===W||s);s&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},Ja=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){Eo(this,o)}},Um={M:oc,P:ai,A:sc,C:1,L:Bm,R:qa,D:$m,V:Eo,I:ps,H:To,N:Za,U:Qa,B:Xa,F:Ja},ic=An.litHtmlPolyfillSupport,Fm;ic==null||ic(_n,ps),((Fm=An.litHtmlVersions)!=null?Fm:An.litHtmlVersions=[]).push("3.2.0");var Hm=(a,o,t)=>{var d,p;let r=(d=t==null?void 0:t.renderBefore)!=null?d:o,s=r._$litPart$;if(s===void 0){let f=(p=t==null?void 0:t.renderBefore)!=null?p:null;r._$litPart$=s=new ps(o.insertBefore(Sn(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var Di=class extends ni{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Hm(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return Te}},Gm;Di._$litElement$=!0,Di.finalized=!0,(Gm=globalThis.litElementHydrateSupport)==null||Gm.call(globalThis,{LitElement:Di});var lc=globalThis.litElementPolyfillSupport;lc==null||lc({LitElement:Di});var Ym;((Ym=globalThis.litElementVersions)!=null?Ym:globalThis.litElementVersions=[]).push("4.1.0");var qy={attribute:!0,type:String,converter:Tn,reflect:!1,hasChanged:Wa},Xy=(a=qy,o,t)=>{let{kind:r,metadata:s}=t,d=globalThis.litPropertyMetadata.get(s);if(d===void 0&&globalThis.litPropertyMetadata.set(s,d=new Map),d.set(t.name,a),r==="accessor"){let{name:p}=t;return{set(f){let T=o.get.call(this);o.set.call(this,f),this.requestUpdate(p,T,a)},init(f){return f!==void 0&&this.P(p,void 0,a),f}}}if(r==="setter"){let{name:p}=t;return function(f){let T=this[p];o.call(this,f),this.requestUpdate(p,T,a)}}throw Error("Unsupported decorator location: "+r)};function u(a){return(o,t)=>typeof t=="object"?Xy(a,o,t):((r,s,d)=>{let p=s.hasOwnProperty(d);return s.constructor.createProperty(d,p?{...r,wrapped:!0}:r),p?Object.getOwnPropertyDescriptor(s,d):void 0})(a,o,t)}function ut(a){return u({...a,state:!0,attribute:!1})}function Km(a){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,a)}}var $r=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Zt(a,o){return(t,r,s)=>{let d=p=>{var f,T;return(T=(f=p.renderRoot)==null?void 0:f.querySelector(a))!=null?T:null};if(o){let{get:p,set:f}=typeof r=="object"?t:s!=null?s:(()=>{let T=Symbol();return{get(){return this[T]},set(L){this[T]=L}}})();return $r(t,r,{get(){let T=p.call(this);return T===void 0&&(T=d(this),(T!==null||this.hasUpdated)&&f.call(this,T)),T}})}return $r(t,r,{get(){return d(this)}})}}var dc;function Wm(a){return(o,t)=>$r(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:dc!=null?dc:dc=document.createDocumentFragment()).querySelectorAll(a)}})}function Dt(a){return(o,t)=>{let{slot:r,selector:s}=a!=null?a:{},d="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var T,L;let p=(T=this.renderRoot)==null?void 0:T.querySelector(d),f=(L=p==null?void 0:p.assignedElements(a))!=null?L:[];return s===void 0?f:f.filter(U=>U.matches(s))}})}}function jm(a){return(o,t)=>{let{slot:r}=a!=null?a:{},s="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var p,f;let d=(p=this.renderRoot)==null?void 0:p.querySelector(s);return(f=d==null?void 0:d.assignedNodes(a))!=null?f:[]}})}}var Zy={PREFIX:"mdc",SEPARATOR:"-"},Qy={NAMESPACE:Zy},cc=Qy;var Jy=a=>[cc.NAMESPACE.PREFIX,a].join(cc.NAMESPACE.SEPARATOR),z={constructTagName:Jy};var J={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 qm=z.constructTagName("buttonsimple"),xo={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},ms={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Cn={SIZE:xo[32],TYPE:ms.BUTTON,ROLE:J.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var li=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},wn={40:40,32:32,28:28,24:24},cr={64:64,52:52,20:20,...wn},Ao={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},us={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ue={VARIANT:$t.PRIMARY,SIZE:wn[32],COLOR:Ao.DEFAULT,TYPE_INTERNAL:us.ICON,TYPE:ms.BUTTON,INVERTED:!1};var tl=a=>{class o extends a{constructor(){super(...arguments);this.variant=Ue.VARIANT;this.color=Ue.COLOR;this.typeInternal=Ue.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values($t).includes(s)?s:Ue.VARIANT)}setColor(s){!Object.values(Ao).includes(s)||this.variant===$t.TERTIARY?this.setAttribute("color",`${Ue.COLOR}`):this.setAttribute("color",s)}setSize(s){let p=this.typeInternal===us.ICON?Object.values(cr).includes(s)&&!(s===cr[20]&&this.variant!==$t.TERTIARY):Object.values(wn).includes(s);this.setAttribute("size",p?`${s}`:`${Ue.SIZE}`)}inferButtonType(){var L,U,q,Q,X,it;let s=(U=(L=this.shadowRoot)==null?void 0:L.querySelector("slot:not([name])"))==null?void 0:U.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,d=(Q=(q=this.shadowRoot)==null?void 0:q.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,p=this.prefixIcon||d&&d>0,f=(it=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:it.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,T=this.postfixIcon||f&&f>0;s&&(p||T)?(this.typeInternal=us.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(p||T)?(this.typeInternal=us.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=us.PILL,this.setAttribute("data-btn-type","pill"))}}return m([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),m([u({type:String})],o.prototype,"variant",2),m([u({type:String})],o.prototype,"color",2),m([ut()],o.prototype,"typeInternal",2),o};var Xm=B`
|
|
5
5
|
:host {
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
:host *::after {
|
|
12
12
|
box-sizing: inherit;
|
|
13
13
|
}
|
|
14
|
-
`;var el=class extends Di{static register(o){customElements.get(o)||customElements.define(o,this)}};el.styles=[Xm];var Zm=el;var j=Zm;var Fi=class extends Event{constructor(o,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=r!=null?r:!1}};var
|
|
14
|
+
`;var el=class extends Di{static register(o){customElements.get(o)||customElements.define(o,this)}};el.styles=[Xm];var Zm=el;var j=Zm;var Fi=class extends Event{constructor(o,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=r!=null?r:!1}};var fs=class{constructor(o,t,r,s){var d;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(p,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=p,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(p,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let p=t;this.context=p.context,this.callback=p.callback,this.subscribe=(d=p.subscribe)!=null?d:!1}else this.context=t,this.callback=r,this.subscribe=s!=null?s:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Fi(this.context,this.t,this.subscribe))}};var rl=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let r=t||!Object.is(o,this.o);this.o=o,r&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},o!==void 0&&(this.value=o)}addCallback(o,t,r){if(!r)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:s}=this.subscriptions.get(o);o(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var hc=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},vs=class extends rl{constructor(o,t,r){var s,d;super(t.context!==void 0?t.initialValue:r),this.onContextRequest=p=>{let f=p.composedPath()[0];p.context===this.context&&f!==this.host&&(p.stopPropagation(),this.addCallback(p.callback,f,p.subscribe))},this.onProviderRequest=p=>{let f=p.composedPath()[0];if(p.context!==this.context||f===this.host)return;let T=new Set;for(let[L,{consumerHost:U}]of this.subscriptions)T.has(L)||(T.add(L),U.dispatchEvent(new Fi(this.context,L,!0)));p.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(d=(s=this.host).addController)==null||d.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new hc(this.context))}};var tE=B`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
|
-
`,Qm=tE;var il=class extends j{constructor({context:o,initialValue:t}){super(),this.context=new
|
|
18
|
+
`,Qm=tE;var il=class extends j{constructor({context:o,initialValue:t}){super(),this.context=new vs(this,{context:o,initialValue:t})}render(){return this.updateContext(),_`<slot></slot>`}};il.styles=[...j.styles,Qm];var Jm=il;var xe=Jm;var Ae=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Ut=a=>{class o extends a{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var zr=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Qe={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var Z={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},eE={[Qe.ARROW_UP]:Z.UP,[Qe.ARROW_DOWN]:Z.DOWN,[Qe.ARROW_LEFT]:Z.LEFT,[Qe.ARROW_RIGHT]:Z.RIGHT,[Qe.ENTER]:Z.ENTER,[Qe.SPACE]:Z.SPACE,[Qe.ESCAPE]:Z.ESCAPE,[Qe.TAB]:Z.TAB,[Qe.HOME]:Z.HOME,[Qe.END]:Z.END},kt=a=>{class o extends a{getActionForKeyEvent(r,s=!1){let p=eE[r.key];if(s){if(!(window.getComputedStyle(this).direction==="rtl"))return p;if(p===Z.LEFT)return Z.RIGHT;if(p===Z.RIGHT)return Z.LEFT}return p}}return o};var bt=B`
|
|
19
19
|
:host {
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
`,zi=B`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
|
40
40
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
|
41
41
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
|
42
|
-
`,
|
|
42
|
+
`,St=(a=!1)=>a?[$i,B`
|
|
43
43
|
.mdc-focus-ring:focus-visible {
|
|
44
44
|
outline: none;
|
|
45
45
|
}
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
:host([size='20']) {
|
|
132
132
|
--mdc-button-height: 1.25rem;
|
|
133
133
|
}
|
|
134
|
-
`,...
|
|
134
|
+
`,...St()],tu=rE;var Je=class extends kt(Ae(zr(Ut(j)))){constructor(){super();this.size=Cn.SIZE;this.role=Cn.ROLE;this.type=Cn.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Cn.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===ms.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===ms.RESET&&this.form&&this.form.reset()}setActive(t,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(d=>d.trim().startsWith("aria-")).forEach(d=>{r===!0?t.setAttribute(d.trim(),"true"):r===!1?t.setAttribute(d.trim(),"false"):t.removeAttribute(d.trim())})}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,r){r?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,view:window});this.dispatchEvent(t)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.add("pressed"),r===Z.ENTER&&this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.remove("pressed"),r===Z.SPACE&&this.triggerClickEvent())}render(){return _` <slot></slot> `}};Je.formAssociated=!0,Je.styles=[...j.styles,...tu],m([u({type:Boolean,reflect:!0})],Je.prototype,"active",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Je.prototype,"softDisabled",2),m([u({type:Number,reflect:!0})],Je.prototype,"size",2),m([u({type:String,reflect:!0})],Je.prototype,"role",2),m([u({type:String,reflect:!0})],Je.prototype,"ariaStateKey",2),m([u({reflect:!0})],Je.prototype,"type",2),m([u({type:String,reflect:!0})],Je.prototype,"name",2),m([u({type:String,reflect:!0})],Je.prototype,"value",2);var ae=Je;var ol=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let r=this.overflowElement;return r.scrollWidth>r.clientWidth}}return o};var iE=B`
|
|
135
135
|
:host {
|
|
136
136
|
--mdc-button-prefix-icon-size: 1rem;
|
|
137
137
|
--mdc-button-postfix-icon-size: 1rem;
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
:host::part(postfix-icon) {
|
|
417
417
|
flex-shrink: 0;
|
|
418
418
|
}
|
|
419
|
-
`,eu=[iE];var
|
|
419
|
+
`,eu=[iE];var Io=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var Vr=class extends ol(tl(ae)){constructor(){super(...arguments);this.size=Ue.SIZE;this.inverted=Ue.INVERTED;this.role=J.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=`${Io(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Io(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return _`
|
|
420
420
|
<slot name="prefix" part="prefix">
|
|
421
421
|
${this.prefixFilledIconName?_` <mdc-icon
|
|
422
422
|
name="${this.prefixFilledIconName}"
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
length-unit="rem"
|
|
433
433
|
></mdc-icon>`:""}
|
|
434
434
|
</slot>
|
|
435
|
-
`}};Vr.styles=[...ae.styles,...eu],
|
|
435
|
+
`}};Vr.styles=[...ae.styles,...eu],m([Zt('slot[part="button-text"]')],Vr.prototype,"buttonTextPart",2),m([u({type:Number})],Vr.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Vr.prototype,"inverted",2),m([u({type:String,reflect:!0})],Vr.prototype,"role",2),m([ut()],Vr.prototype,"prefixFilledIconName",2),m([ut()],Vr.prototype,"postfixFilledIconName",2);var _o=Vr;var oE=a=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:d}=a,p=(s||d)&&(f=>{d&&d.forEach(T=>{o.requestUpdate(T)}),s==null||s(f)});return new fs(o,{context:t,callback:p,subscribe:r!=null?r:!0})},sE={consume:oE},Se=sE;var sl=z.constructTagName("iconprovider"),ru=["svg"],iu=["em","rem","px","%"],nE={px:16,em:1,rem:1,"%":100},di={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:nE.em,ICON_SET:"momentum-icons"};var nl=class{};nl.context=sl;var al=nl;var Br=class extends xe{constructor(){super({context:al.context,initialValue:new al});this.iconSet=di.ICON_SET;this.fileExtension=di.FILE_EXTENSION;this.lengthUnit=di.LENGTH_UNIT;this.size=di.SIZE}static get Context(){return al.context}updateValuesInContext(){this.fileExtension&&ru.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=di.FILE_EXTENSION,this.context.value.fileExtension=di.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&&iu.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=di.LENGTH_UNIT,this.context.value.lengthUnit=di.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};m([u({type:String,attribute:"icon-set",reflect:!0})],Br.prototype,"iconSet",2),m([u({type:String})],Br.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Br.prototype,"fileExtension",2),m([u({type:String,attribute:"length-unit",reflect:!0})],Br.prototype,"lengthUnit",2),m([u({type:Number,reflect:!0})],Br.prototype,"size",2),m([u({type:String,attribute:"cache-strategy"})],Br.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Br.prototype,"cacheName",2);var kn=Br;var aE=[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
|
-
`,...
|
|
450
|
+
`,...St()],ou=aE;var Nn={},su=async a=>(Nn[a]===void 0&&(Nn[a]=new Map),{async set(o,t){Nn[a].set(o.url,await t.text())},async get(o){return Nn[a].get(o.url)},async delete(o){Nn[a].delete(o.url)}}),nu=async a=>{let o=await caches.open(a);return{set:async(t,r)=>{await o.put(t,r)},get:async t=>{let r=await o.match(t);return r==null?void 0:r.text()},delete:async t=>{await o.delete(t)}}},ll=async(a,o)=>o==="in-memory-cache"?su(a):nu(a);var au=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),lu=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let p=d(),f=new Request(`${a}/${o}.${t}`,{signal:p});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?au(f).then(T=>T.text()):ll(s,r).then(T=>T.get(f).then(L=>L||au(f.clone()).then(U=>{var q;return U.status<400&&U.headers.has("content-type")?(q=T.set)==null?void 0:q.call(T,f,U.clone()).then(()=>U.text()):U.text()})).catch(L=>{throw new Error(`Error in caching the Icon ${o}, ${L}`)}))};var du=z.constructTagName("icon"),pc={NAME:void 0,SIZE:1};var tr=class extends j{constructor(){super();this.name=pc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Se.consume({host:this,context:kn.Context});this.abortController=new AbortController}prepareIconElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:s,cacheName:d,iconSet:p,cacheStrategy:f}=this.iconProviderContext.value;if(p==="custom-icons"&&s&&r&&this.name){let T=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return lu({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:T}).then(L=>{let U=this.prepareIconElement(L);this.handleIconLoadedSuccess(U)}).catch(L=>{this.handleIconLoadedFailure(L)})}if(p==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(T=>{this.handleIconLoadedSuccess(T.default())}).catch(T=>{this.handleIconLoadedFailure(T)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:pc.SIZE}updated(t){var r,s,d,p;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((d=this.iconProviderContext.value)==null?void 0:d.size)&&(this.sizeFromContext=(p=this.iconProviderContext.value)==null?void 0:p.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.iconData} `}};tr.styles=[...j.styles,...ou],m([ut()],tr.prototype,"iconData",2),m([ut()],tr.prototype,"lengthUnitFromContext",2),m([ut()],tr.prototype,"sizeFromContext",2),m([u({type:String,reflect:!0})],tr.prototype,"name",2),m([u({type:Number})],tr.prototype,"size",2),m([u({type:String,attribute:"length-unit"})],tr.prototype,"lengthUnit",2),m([u({type:String,attribute:"aria-label"})],tr.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],tr.prototype,"ariaLabelledby",2),m([ut()],tr.prototype,"abortController",2);var mc=tr;mc.register(du);var lE=mc;_o.register(li);var dE=_o;var cu=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
|
-
`,cu],hu=cE;var
|
|
700
|
+
`,cu],hu=cE;var Ln=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"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},fe={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Co=class extends ol(j){constructor(){super(...arguments);this.type=fe.TYPE;this.tagname=fe.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return _`<h1 part=${fe.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return _`<h2 part=${fe.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return _`<h3 part=${fe.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return _`<h4 part=${fe.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return _`<h5 part=${fe.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return _`<h6 part=${fe.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return _`<div part=${fe.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return _`<span part=${fe.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return _`<small part=${fe.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return _`<p part=${fe.CSS_PART_TEXT}><slot></slot></p>`}}};Co.styles=[...j.styles,...hu],m([Zt(`[part='${fe.CSS_PART_TEXT}']`)],Co.prototype,"textPartElement",2),m([u({attribute:"type",reflect:!0,type:String})],Co.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Co.prototype,"tagname",2);var uc=Co;uc.register(Ln);var hE=uc;var tt=a=>a!=null?a:W;var ve=[];for(let a=0;a<256;++a)ve.push((a+256).toString(16).slice(1));function pu(a,o=0){return(ve[a[o+0]]+ve[a[o+1]]+ve[a[o+2]]+ve[a[o+3]]+"-"+ve[a[o+4]]+ve[a[o+5]]+"-"+ve[a[o+6]]+ve[a[o+7]]+"-"+ve[a[o+8]]+ve[a[o+9]]+"-"+ve[a[o+10]]+ve[a[o+11]]+ve[a[o+12]]+ve[a[o+13]]+ve[a[o+14]]+ve[a[o+15]]).toLowerCase()}var fc,pE=new Uint8Array(16);function vc(){if(!fc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");fc=crypto.getRandomValues.bind(crypto)}return fc(pE)}var mE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),gc={randomUUID:mE};function uE(a,o,t){var s,d,p;if(gc.randomUUID&&!o&&!a)return gc.randomUUID();a=a||{};let r=(p=(d=a.random)!=null?d:(s=a.rng)==null?void 0:s.call(a))!=null?p:vc();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=r[f];return o}return pu(r)}var Ie=uE;var mu=z.constructTagName("accordiongroup"),bc={SMALL:"small",LARGE:"large"},fE={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},On={SIZE:bc.SMALL,VARIANT:fE.STACKED};var dl=z.constructTagName("accordionbutton"),Mn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},vE={DEFAULT:"default",BORDERLESS:"borderless"},Vi={EXPANDED:!1,SIZE:bc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:vE.DEFAULT,ICON_NAME:Mn.ARROW_UP};var gE=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);
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
:host([variant='default']:not([expanded]))::part(header-section) {
|
|
815
815
|
border-bottom: none;
|
|
816
816
|
}
|
|
817
|
-
`,uu=[gE,...
|
|
817
|
+
`,uu=[gE,...St(!0)];var Ur=class extends kt(Ut(j)){constructor(){super(...arguments);this.size=Vi.SIZE;this.variant=Vi.VARIANT;this.dataAriaLevel=Vi.DATA_ARIA_LEVEL;this.expanded=Vi.EXPANDED;this.headSectionId=`head-section-${Ie()}`;this.bodySectionId=`body-section-${Ie()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&this.handleHeaderClick()}renderIcon(t){return t?_`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:W}renderHeadingText(){return this.headerText?_`<mdc-text
|
|
818
818
|
id="${this.headSectionId}"
|
|
819
819
|
type="${ot.BODY_LARGE_REGULAR}"
|
|
820
820
|
tagname=${pt.SPAN}
|
|
@@ -842,14 +842,14 @@
|
|
|
842
842
|
</div>
|
|
843
843
|
</div>
|
|
844
844
|
</div>
|
|
845
|
-
`}getArrowIconName(){return this.disabled?
|
|
845
|
+
`}getArrowIconName(){return this.disabled?Mn.ARROW_DOWN:this.expanded?Mn.ARROW_UP:Mn.ARROW_DOWN}renderBody(){return this.disabled?W:this.expanded?_`<div
|
|
846
846
|
id="${this.bodySectionId}"
|
|
847
847
|
aria-labelledby="${this.headSectionId}"
|
|
848
848
|
part="body-section"
|
|
849
849
|
role="${J.REGION}"
|
|
850
850
|
>
|
|
851
851
|
<slot></slot>
|
|
852
|
-
</div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Vi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Vi.SIZE),t.has("variant")&&!this.variant&&(this.variant=Vi.VARIANT)}render(){return _` ${this.renderHeader()} ${this.renderBody()} `}};Ur.styles=[...j.styles,...uu],
|
|
852
|
+
</div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Vi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Vi.SIZE),t.has("variant")&&!this.variant&&(this.variant=Vi.VARIANT)}render(){return _` ${this.renderHeader()} ${this.renderBody()} `}};Ur.styles=[...j.styles,...uu],m([u({type:String,reflect:!0})],Ur.prototype,"size",2),m([u({type:String,reflect:!0})],Ur.prototype,"variant",2),m([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Ur.prototype,"dataAriaLevel",2),m([u({type:Boolean,reflect:!0})],Ur.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Ur.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],Ur.prototype,"prefixIcon",2);var gs=Ur;var bE=B`
|
|
853
853
|
:host::part(header-section) {
|
|
854
854
|
display: flex;
|
|
855
855
|
align-items: center;
|
|
@@ -863,7 +863,7 @@
|
|
|
863
863
|
:host::part(trailing-header__button) {
|
|
864
864
|
margin: 0.125rem;
|
|
865
865
|
}
|
|
866
|
-
`,fu=[bE];var Bi=class extends
|
|
866
|
+
`,fu=[bE];var Bi=class extends gs{handleHeaderShownEvent(o){o.stopPropagation()}update(o){super.update(o),o.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderHeader(){return _`
|
|
867
867
|
<div part="header-section" @shown="${this.handleHeaderShownEvent}">
|
|
868
868
|
<div part="leading-header">
|
|
869
869
|
${this.renderIcon(this.prefixIcon)}
|
|
@@ -885,7 +885,7 @@
|
|
|
885
885
|
></mdc-button>
|
|
886
886
|
</div>
|
|
887
887
|
</div>
|
|
888
|
-
`}};Bi.styles=[...
|
|
888
|
+
`}};Bi.styles=[...gs.styles,...fu],m([Dt({slot:"leading-controls"})],Bi.prototype,"leadingControlsSlot",2),m([Dt({slot:"trailing-controls"})],Bi.prototype,"trailingControlsSlot",2),m([u({type:String,attribute:"open-button-aria-label",reflect:!0})],Bi.prototype,"openButtonAriaLabel",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Bi.prototype,"closeButtonAriaLabel",2);var yc=Bi;var cl=z.constructTagName("accordion");yc.register(cl);var yE=yc;var EE=B`
|
|
889
889
|
:host {
|
|
890
890
|
--mdc-accordiongroup-items-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
891
891
|
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
:host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
|
|
930
930
|
border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
|
|
931
931
|
}
|
|
932
|
-
`,vu=[EE,...
|
|
932
|
+
`,vu=[EE,...St()];var ci=class extends j{constructor(){super();this.size=On.SIZE;this.variant=On.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(r=>{r!==t.target&&r.hasAttribute("expanded")&&r.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,r){[...this.accordionItems].forEach(s=>{s.setAttribute(t,r)}),[...this.accordionButtonItems].forEach(s=>{s.setAttribute(t,r)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=On.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=On.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return _` <slot></slot> `}};ci.styles=[...j.styles,...vu],m([u({type:String,reflect:!0})],ci.prototype,"size",2),m([u({type:String,reflect:!0})],ci.prototype,"variant",2),m([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],ci.prototype,"allowMultiple",2),m([Dt({selector:cl})],ci.prototype,"accordionItems",2),m([Dt({selector:dl})],ci.prototype,"accordionButtonItems",2);var Ec=ci;Ec.register(mu);var TE=Ec;gs.register(dl);var xE=gs;var Qt=a=>{class o extends a{}return m([u({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var AE=B`
|
|
933
933
|
:host {
|
|
934
934
|
height: 1.5rem;
|
|
935
935
|
gap: 0.25rem;
|
|
@@ -1042,16 +1042,16 @@
|
|
|
1042
1042
|
--mdc-chip-icon-color: ButtonText;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
`,gu=[bt,AE,...
|
|
1045
|
+
`,gu=[bt,AE,...St()];var bu=z.constructTagName("alertchip"),wo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},bs={VARIANT:wo.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],ROLE:J.BUTTON};var yu=a=>({[wo.ERROR]:"error-legacy-badge-filled",[wo.INFORMATIONAL]:"info-badge-filled",[wo.NEUTRAL]:"dnd-presence-badge-filled",[wo.SUCCESS]:"check-circle-badge-filled",[wo.WARNING]:"warning-badge-filled"})[a];var ys=class extends Qt(ae){constructor(){super(...arguments);this.variant=bs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=bs.SIZE,this.role=bs.ROLE}render(){return _`
|
|
1046
1046
|
<mdc-icon part="icon" name="${this.iconName||yu(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
|
1047
|
-
${this.label?_`<mdc-text part="label" type="${
|
|
1047
|
+
${this.label?_`<mdc-text part="label" type="${bs.TEXT_TYPE}" tagname="${bs.TAG_NAME}"
|
|
1048
1048
|
>${this.label}</mdc-text
|
|
1049
1049
|
>`:W}
|
|
1050
|
-
`}};
|
|
1050
|
+
`}};ys.styles=[...j.styles,...gu],m([u({type:String,reflect:!0})],ys.prototype,"variant",2),m([u({type:String})],ys.prototype,"label",2);var Tc=ys;Tc.register(bu);var SE=Tc;var{I:IE}=Um;var hl=a=>a.strings===void 0,Eu=()=>document.createComment(""),Es=(a,o,t)=>{var d;let r=a._$AA.parentNode,s=o===void 0?a._$AB:o._$AA;if(t===void 0){let p=r.insertBefore(Eu(),s),f=r.insertBefore(Eu(),s);t=new IE(p,f,a,a.options)}else{let p=t._$AB.nextSibling,f=t._$AM,T=f!==a;if(T){let L;(d=t._$AQ)==null||d.call(t,a),t._$AM=a,t._$AP!==void 0&&(L=a._$AU)!==f._$AU&&t._$AP(L)}if(p!==s||T){let L=t._$AA;for(;L!==p;){let U=L.nextSibling;r.insertBefore(L,s),L=U}}}return t},Ui=(a,o,t=a)=>(a._$AI(o,t),a),_E={},pl=(a,o=_E)=>a._$AH=o,Tu=a=>a._$AH,ml=a=>{var r;(r=a._$AP)==null||r.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let s=o.nextSibling;o.remove(),o=s}};var er={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},hi=a=>(...o)=>({_$litDirective$:a,values:o}),Hr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this.t=o,this._$AM=t,this.i=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var Rn=(a,o)=>{var r;let t=a._$AN;if(t===void 0)return!1;for(let s of t)(r=s._$AO)==null||r.call(s,o,!1),Rn(s,o);return!0},ul=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},xu=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),kE(o)}};function CE(a){this._$AN!==void 0?(ul(this),this._$AM=a,xu(this)):this._$AM=a}function wE(a,o=!1,t=0){let r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(o)if(Array.isArray(r))for(let d=t;d<r.length;d++)Rn(r[d],!1),ul(r[d]);else r!=null&&(Rn(r,!1),ul(r));else Rn(this,a)}var kE=a=>{var o,t;a.type==er.CHILD&&((o=a._$AP)!=null||(a._$AP=wE),(t=a._$AQ)!=null||(a._$AQ=CE))},fl=class extends Hr{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),xu(this),this.isConnected=o._$AU}_$AO(o,t=!0){var r,s;o!==this.isConnected&&(this.isConnected=o,o?(r=this.reconnected)==null||r.call(this):(s=this.disconnected)==null||s.call(this)),t&&(Rn(this,o),ul(this))}setValue(o){if(hl(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Au=()=>new Ac,Ac=class{},xc=new WeakMap,Su=hi(class extends fl{render(a){return W}update(a,[o]){var r;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(r=a.options)==null?void 0:r.host,this.rt(this.ct=a.element)),W}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,r=xc.get(t);r===void 0&&(r=new WeakMap,xc.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=xc.get((a=this.ht)!=null?a:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var wu=Vy(Iu());var Sc={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var NE=[bt,B`
|
|
1051
1051
|
:host svg {
|
|
1052
1052
|
display: block;
|
|
1053
1053
|
}
|
|
1054
|
-
`],_u=NE;var Cu=z.constructTagName("animation"),Ic={AUTO_PLAY:!0,LOOP:"true"};var pi=class extends j{constructor(){super(...arguments);this.loop=Ic.LOOP;this.autoplay=Ic.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Au();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=wu.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&Sc[this.name]?import(`@momentum-design/animations/dist/lottie${Sc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return _`<div aria-hidden="true" ${Su(this.containerRef)}></div>`}};pi.styles=[...j.styles,..._u],
|
|
1054
|
+
`],_u=NE;var Cu=z.constructTagName("animation"),Ic={AUTO_PLAY:!0,LOOP:"true"};var pi=class extends j{constructor(){super(...arguments);this.loop=Ic.LOOP;this.autoplay=Ic.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Au();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=wu.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&Sc[this.name]?import(`@momentum-design/animations/dist/lottie${Sc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return _`<div aria-hidden="true" ${Su(this.containerRef)}></div>`}};pi.styles=[...j.styles,..._u],m([u({type:String,reflect:!0})],pi.prototype,"name",2),m([u({type:String,reflect:!0})],pi.prototype,"loop",2),m([u({type:Boolean,reflect:!0})],pi.prototype,"autoplay",2),m([u({type:String,attribute:"aria-label"})],pi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],pi.prototype,"ariaLabelledby",2);var _c=pi;_c.register(Cu);var LE=_c;var Nu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Lu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),OE=a=>a.getClientRects().length===0,ME=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=a;return r+s+t+o===0},RE=a=>ME(a)||OE(a),PE=a=>{let{display:o,opacity:t,visibility:r}=a.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},DE=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},FE=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||PE(a)||RE(a)||DE(a),$E=a=>a.disabled,zE=a=>a.getAttribute("tabindex")!=="-1",VE=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),ku=a=>!$E(a)&&zE(a)&&!FE(a)&&VE(a),Ou=a=>{if(!a)return[];let o=new Set,t=r=>{r instanceof HTMLElement&&ku(r)&&o.add(r);let s=[];r instanceof HTMLElement&&r.shadowRoot?s=Array.from(r.shadowRoot.children):r.children.length&&(s=Array.from(r.children)),s.forEach(d=>{let p=d;ku(p)&&o.add(p),p.shadowRoot?t(p.shadowRoot):p.tagName==="SLOT"?p.assignedElements({flatten:!0}).forEach(T=>{T instanceof HTMLElement&&t(T)}):t(p)})};return t(a),[...o]};var Mu=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function";var ko=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};ko.stack=new Set,ko.currentKeydownListener=null;var gl=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),ko.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),ko.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Ou(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,d){let{length:p}=this.focusableElements;if(s===-1)return d>0?0:p-1;let f=s+d;return this.shouldFocusTrapWrap?(f<0&&(f=p-1),f>=p&&(f=0)):(f<0&&(f=0),f>=p&&(f=p-1)),f}getDeepActiveElement(){var d;let s=document.activeElement||document.body;for(;s instanceof HTMLElement&&((d=s.shadowRoot)!=null&&d.activeElement);)s=s.shadowRoot.activeElement;return s||document.body}findElement(s){return this.focusableElements.findIndex(d=>this.isEqualFocusNode(s,d))}isEqualFocusNode(s,d){return s.nodeType>=0?d.isEqualNode(s)&&d===s:!1}trapFocus(s){if(this.setFocusableElements(),this.focusableElements.length===0)return;let d=this.getDeepActiveElement(),p=this.findElement(d);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(p,-1):this.focusTrapIndex=this.calculateNextIndex(p,1);let T=this.focusableElements[this.focusTrapIndex];T.tagName!=="IFRAME"&&T&&(s.preventDefault(),T.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return m([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var bl=a=>{class o extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var yl=z.constructTagName("link"),El={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Tl={LARGE:1,MIDSIZE:.875,SMALL:.75},Ru={LINK_SIZE:El.LARGE};var Pu=z.constructTagName("card"),Cc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},BE={HORIZONTAL:"horizontal",VERTICAL:"vertical"},le={VARIANT:Cc.BORDER,ORIENTATION:BE.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:yl,BUTTON:li};var Ts=a=>{class o extends a{updateFooterButtonColors(r){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(d=>{r===Cc.PROMOTIONAL?d.setAttribute("color",Ao.PROMOTIONAL):d.setAttribute("color",Ao.DEFAULT)})}handleFooterSlot(r,s){var p,f,T;let d=[];r===le.LINK&&((p=this.footerLink)!=null&&p.length)?d=this.footerLink:r===le.BUTTON&&s===$t.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?d=this.footerButtonPrimary:r===le.BUTTON&&s===$t.SECONDARY&&((T=this.footerButtonSecondary)!=null&&T.length)&&(d=this.footerButtonSecondary);for(let L=1;L<d.length;L+=1)d[L].remove();d.forEach(L=>{L.matches(r)||L.remove(),s&&L.setAttribute("variant",s)})}renderFooter(){return _` <slot name="footer">
|
|
1055
1055
|
<div part="footer">
|
|
1056
1056
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(le.LINK)}></slot>
|
|
1057
1057
|
<slot
|
|
@@ -1063,7 +1063,7 @@
|
|
|
1063
1063
|
@slotchange=${()=>this.handleFooterSlot(le.BUTTON,$t.PRIMARY)}
|
|
1064
1064
|
></slot>
|
|
1065
1065
|
</div>
|
|
1066
|
-
</slot>`}}return
|
|
1066
|
+
</slot>`}}return m([Dt({slot:"footer-link"})],o.prototype,"footerLink",2),m([Dt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),m([Dt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var ke=[],UE=1e3,HE=3,wc=-2,kc=-1,Hi=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return ke.length}pushHost(){var o,t;return this.has(this.host)?!1:(ke.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(this.has(o)){let t=ke.indexOf(o)-1;this.popUntil((r,s)=>r!==o&&r.triggerID===o.triggerID?"skip":s!==t)}}pop(){var t;let o=ke.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let r=ke.length-1;r>=0;r-=1){let s=ke[r],d=o(s,r);if(d===!1)break;d!=="skip"&&t.push(s)}return this.remove(t)}peek(){return ke.at(-1)}remove(o){var s,d;let t=o.filter(p=>ke.includes(p)),r=t.reduce((p,f)=>Math.min(p,ke.indexOf(f)),1/0);t.forEach(p=>{var f;ke.splice(ke.indexOf(p),1),(f=p==null?void 0:p.onComponentStackChanged)==null||f.call(p,"removed")});for(let p=r;p<ke.length;p+=1)(d=(s=ke[p]).onComponentStackChanged)==null||d.call(s,"moved");return t}has(o){return ke.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return ke.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?UE+t*HE:-1}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var xl=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(s){var d;if(super.update(s),s.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+wc}`;let p=(d=this.triggerElementCache)==null?void 0:d.deref();p&&(p.style.zIndex=`${this.zIndex+kc}`)}}createBackdrop(s){let d=document.createElement("div");d.classList.add(`${s}-backdrop`);let p=document.createElement("style");p.textContent=`
|
|
1067
1067
|
.${s}-backdrop {
|
|
1068
1068
|
position: fixed;
|
|
1069
1069
|
top: 0;
|
|
@@ -1073,7 +1073,7 @@
|
|
|
1073
1073
|
background: ${this.isBackdropInvisible?"transparent":"var(--mds-color-theme-common-overlays-secondary-normal)"};
|
|
1074
1074
|
z-index: ${this.zIndex+wc};
|
|
1075
1075
|
}
|
|
1076
|
-
`,d.appendChild(
|
|
1076
|
+
`,d.appendChild(p);let T=document.getElementById(this.backdropAppendTo)||this.parentElement;T==null||T.appendChild(d),this.backdropElement=d}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.triggerElementCache=new WeakRef(s),this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex+kc}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var Al=z.constructTagName("responsivesettingsprovider"),_r={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},Du=["float","dialog"],Fu=["unknown","mobile","desktop","tablet"];var Sl=class{constructor(o={}){this.media=_r.MEDIA;this.forceFullscreenDialog=_r.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=_r.POPOVER_POSITIONING;Object.assign(this,o)}};Sl.context=Al;var Il=Sl;var xs=class extends xe{constructor(){super({context:Il.context,initialValue:new Il({media:_r.MEDIA,popoverPositioning:_r.POPOVER_POSITIONING,forceFullscreenDialog:_r.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=_r.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=_r.POPOVER_POSITIONING;this.privateMedia=_r.MEDIA}static get Context(){return Il.context}set popoverPositioning(t){Du.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Fu.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,r,s;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((r=this.context.value)==null?void 0:r.popoverPositioning)!==this.privatePopoverPositioning||((s=this.context.value)==null?void 0:s.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};m([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],xs.prototype,"forceFullscreenDialog",2),m([u({type:String,attribute:"popover-positioning",reflect:!0})],xs.prototype,"popoverPositioning",1),m([u({type:String,attribute:"media",reflect:!0})],xs.prototype,"media",1);var Nc=xs;Nc.register(Al);var Lc=Nc;var $u=z.constructTagName("dialog"),Oc={DEFAULT:"default",PROMOTIONAL:"promotional"},hr={VISIBLE:!1,Z_INDEX:1e3,ROLE:J.DIALOG,SIZE:"small",HEADER_TAG_NAME:pt.H2,DESCRIPTION_TAG_NAME:pt.P,CANCEL_ICON:"cancel-bold",VARIANT:Oc.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var VN=[J.DIALOG,J.ALERTDIALOG];var Gi=class{static dispatchDialogEvent(o,t,r=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:r}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var GE=B`
|
|
1077
1077
|
:host {
|
|
1078
1078
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
1079
1079
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
mdc-text::part(text) {
|
|
1225
1225
|
margin: 0;
|
|
1226
1226
|
}
|
|
1227
|
-
`,zu=[GE];var
|
|
1227
|
+
`,zu=[GE];var Yt=class extends xl(bl(gl(Ts(j)))){constructor(){super(...arguments);this.responsiveSettingsContext=Se.consume({host:this,context:Lc.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new Hi(this);this.id="";this.visible=hr.VISIBLE;this.internalSize=hr.SIZE;this.variant=hr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=hr.HEADER_TAG_NAME;this.descriptionTagName=hr.DESCRIPTION_TAG_NAME;this.role=hr.ROLE;this.disableAriaHasPopup=hr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=hr.FOCUS_TRAP;this.hideBackdrop=hr.HIDE_BACKDROP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,r;return(r=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&r.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(r=this.deactivateFocusTrap)==null||r.call(this),this.focusBackToTrigger(),Gi.onDestroyedDialog(this)}applyZIndex(){this.style.setProperty("z-index",`${this.zIndex}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Gi.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerID")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.setupAriaHasPopup()),t.has("visible")){let r=t.get("visible");await this.isOpenUpdated(r,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=hr.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,r;this.disableAriaHasPopup||(r=this.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerID&&this.setAttribute("aria-labelledby",this.triggerID)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerID&&this.setAttribute("aria-describedby",this.triggerID))}closeDialog(){this.depthManager.popHost(),Gi.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,r){var s,d,p,f,T;t!==r&&(r&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((s=this.activateFocusTrap)==null||s.call(this)),(d=this.setInitialFocus)==null||d.call(this),(p=this.triggerElement)==null||p.setAttribute("aria-expanded","true"),Gi.onShowDialog(this)):!r&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(T=this.deactivateFocusTrap)==null||T.call(this),this.focusBackToTrigger(),Gi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?_` <div part="header-section">
|
|
1228
1228
|
<div part="header">
|
|
1229
1229
|
<slot name="header-prefix"></slot>
|
|
1230
1230
|
<mdc-text
|
|
@@ -1255,7 +1255,7 @@
|
|
|
1255
1255
|
@click="${this.closeDialog}"
|
|
1256
1256
|
></mdc-button>
|
|
1257
1257
|
${this.renderBody()} ${this.renderFooter()}
|
|
1258
|
-
`}};
|
|
1258
|
+
`}};Yt.styles=[...j.styles,...zu],m([u({type:String,reflect:!0})],Yt.prototype,"id",2),m([u({type:String,reflect:!0})],Yt.prototype,"triggerID",2),m([u({type:Boolean,reflect:!0})],Yt.prototype,"visible",2),m([u({type:Number,reflect:!0,attribute:"z-index"})],Yt.prototype,"zIndex",1),m([u({type:String,reflect:!0})],Yt.prototype,"size",1),m([u({type:String,reflect:!0})],Yt.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Yt.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Yt.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Yt.prototype,"ariaLabelledby",2),m([u({type:String,reflect:!0,attribute:"aria-describedby"})],Yt.prototype,"ariaDescribedby",2),m([u({type:String,reflect:!0,attribute:"aria-description"})],Yt.prototype,"ariaDescription",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Yt.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"description-text"})],Yt.prototype,"descriptionText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Yt.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"description-tag-name"})],Yt.prototype,"descriptionTagName",2),m([u({type:String,reflect:!0})],Yt.prototype,"role",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Yt.prototype,"disableAriaHasPopup",2),m([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Yt.prototype,"focusTrap",2),m([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],Yt.prototype,"hideBackdrop",2);var As=Yt;var YE=B`
|
|
1259
1259
|
:host {
|
|
1260
1260
|
--mdc-announcementdialog-illustration-background-color: var(--mds-color-theme-background-solid-secondary-normal);
|
|
1261
1261
|
|
|
@@ -1304,7 +1304,7 @@
|
|
|
1304
1304
|
margin-inline-end: 0;
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
|
-
`,Vu=[YE];var Bu=z.constructTagName("announcementdialog");var Uu={SIZE:"medium"};var
|
|
1307
|
+
`,Vu=[YE];var Bu=z.constructTagName("announcementdialog");var Uu={SIZE:"medium"};var Ss=class extends As{get size(){var o,t;return(t=(o=this.responsiveSettingsContext)==null?void 0:o.value)!=null&&t.forceFullscreenDialog?"fullscreen":this.internalSize}set size(o){this.internalSize=o}constructor(){super(),this.internalSize=Uu.SIZE}connectedCallback(){super.connectedCallback(),this.variant=Oc.DEFAULT}renderHeader(){return _`${W}`}renderBody(){return _`
|
|
1308
1308
|
<div part="body">
|
|
1309
1309
|
<div part="illustration-container">
|
|
1310
1310
|
<slot name="illustration-container">
|
|
@@ -1324,7 +1324,7 @@
|
|
|
1324
1324
|
</slot>
|
|
1325
1325
|
</div>
|
|
1326
1326
|
</div>
|
|
1327
|
-
`}};
|
|
1327
|
+
`}};Ss.styles=[...As.styles,...Vu],m([u({type:String,reflect:!0})],Ss.prototype,"illustration",2),m([u({type:String,reflect:!0})],Ss.prototype,"size",1);var Mc=Ss;var _l=z.constructTagName("illustrationprovider"),Hu=["svg"],Dn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Cl=class{};Cl.context=_l;var wl=Cl;var Yi=class extends xe{constructor(){super({context:wl.context,initialValue:new wl});this.illustrationSet=Dn.ILLUSTRATION_SET;this.fileExtension=Dn.FILE_EXTENSION}static get Context(){return wl.context}updateValuesInContext(){this.fileExtension&&Hu.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Dn.FILE_EXTENSION,this.context.value.fileExtension=Dn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};m([u({type:String,attribute:"illustration-set",reflect:!0})],Yi.prototype,"illustrationSet",2),m([u({type:String})],Yi.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Yi.prototype,"fileExtension",2),m([u({type:String,attribute:"cache-strategy"})],Yi.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Yi.prototype,"cacheName",2);var Fn=Yi;var KE=[bt,B`
|
|
1328
1328
|
:host {
|
|
1329
1329
|
--mdc-illustration-size: auto;
|
|
1330
1330
|
}
|
|
@@ -1332,7 +1332,7 @@
|
|
|
1332
1332
|
height: var(--mdc-illustration-size);
|
|
1333
1333
|
width: var(--mdc-illustration-size);
|
|
1334
1334
|
}
|
|
1335
|
-
`],Gu=KE;var Yu=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),Ku=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let
|
|
1335
|
+
`],Gu=KE;var Yu=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),Ku=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let p=d(),f=new Request(`${a}/${o}.${t}`,{signal:p});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?Yu(f).then(T=>T.text()):ll(s,r).then(T=>T.get(f).then(L=>L||Yu(f.clone()).then(U=>{var q;return U.status<400&&U.headers.has("content-type")?(q=T.set)==null?void 0:q.call(T,f,U.clone()).then(()=>U.text()):U.text()})).catch(L=>{throw new Error(`Error in caching the Illustration ${o}, ${L}`)}))};var Wu=z.constructTagName("illustration"),ju={NAME:void 0};var mi=class extends j{constructor(){super();this.name=ju.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Se.consume({host:this,context:Fn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","illustration"),r.setAttribute("aria-hidden","true"),r}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:r,url:s,cacheName:d,illustrationSet:p,cacheStrategy:f}=this.illustrationProviderContext.value;if(p==="custom-illustrations"&&s&&r&&this.name){let T=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return Ku({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:T}).then(L=>{let U=this.prepareIllustrationElement(L);this.handleIllustrationLoadedSuccess(U)}).catch(L=>{this.handleIllustrationLoadedFailure(L)})}if(p==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(T=>{this.handleIllustrationLoadedSuccess(T.default())}).catch(T=>{this.handleIllustrationLoadedFailure(T)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIllustrationLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(r=>{r.name!=="AbortError"&&this.onerror&&this.onerror(r)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.illustrationData} `}};mi.styles=[...j.styles,...Gu],m([ut()],mi.prototype,"illustrationData",2),m([u({type:String,reflect:!0})],mi.prototype,"name",2),m([u({type:String,attribute:"aria-label"})],mi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],mi.prototype,"ariaLabelledby",2),m([ut()],mi.prototype,"abortController",2);var Rc=mi;Rc.register(Wu);var WE=Rc;Mc.register(Bu);var jE=Mc;var qE=B`
|
|
1336
1336
|
:host {
|
|
1337
1337
|
--mdc-appheader-height: 4rem;
|
|
1338
1338
|
}
|
|
@@ -1376,7 +1376,7 @@
|
|
|
1376
1376
|
<slot name="trailing"></slot>
|
|
1377
1377
|
</div>
|
|
1378
1378
|
</header>
|
|
1379
|
-
`}};kl.styles=[...j.styles,...qu];var Pc=kl;var Xu=z.constructTagName("appheader");Pc.register(Xu);var XE=Pc;var Zu=z.constructTagName("avatar"),Ne={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Dc=99,ZE="user-regular",Bt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},
|
|
1379
|
+
`}};kl.styles=[...j.styles,...qu];var Pc=kl;var Xu=z.constructTagName("appheader");Pc.register(Xu);var XE=Pc;var Zu=z.constructTagName("avatar"),Ne={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Dc=99,ZE="user-regular",Bt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Is={TYPE:Ne.PHOTO,SIZE:Bt[32],ICON_NAME:ZE};var Nl=a=>{class o extends a{constructor(){super(...arguments);this.size=Is.SIZE;this.isTyping=!1}}return m([u({type:String})],o.prototype,"src",2),m([u({type:String})],o.prototype,"initials",2),m([u({type:String})],o.prototype,"presence",2),m([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),m([u({type:Number})],o.prototype,"counter",2),m([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var QE=[bt,B`
|
|
1380
1380
|
:host {
|
|
1381
1381
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
|
1382
1382
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
|
@@ -1532,7 +1532,7 @@
|
|
|
1532
1532
|
outline: 0.125rem solid;
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
`],Qu=QE;var Ju=z.constructTagName("presence"),_e={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},Jt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},
|
|
1535
|
+
`],Qu=QE;var Ju=z.constructTagName("presence"),_e={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},Jt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},_s={TYPE:_e.ACTIVE,SIZE:Jt[32]};var tf=a=>({[Bt[124]]:Jt[124],[Bt[88]]:Jt[88],[Bt[72]]:Jt[72],[Bt[64]]:Jt[64],[Bt[48]]:Jt[48],[Bt[32]]:Jt[32],[Bt[24]]:Jt[24]})[a]||Jt[32],ef=a=>({[Bt[124]]:4.75,[Bt[88]]:3,[Bt[72]]:2.5,[Bt[64]]:2.25,[Bt[48]]:1.75,[Bt[32]]:1.25,[Bt[24]]:1})[a]||1.25,rf=a=>({[Bt[124]]:ot.HEADING_XLARGE_MEDIUM,[Bt[88]]:ot.HEADING_LARGE_MEDIUM,[Bt[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Bt[64]]:ot.HEADING_SMALL_MEDIUM,[Bt[48]]:ot.HEADING_SMALL_MEDIUM,[Bt[32]]:ot.BODY_MIDSIZE_MEDIUM,[Bt[24]]:ot.BODY_SMALL_MEDIUM})[a]||ot.BODY_MIDSIZE_MEDIUM;var $n=class extends Nl(Qt(j)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Ne.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?_`
|
|
1536
1536
|
<mdc-presence part="presence" type="${this.presence}" size="${tf(this.size)}"></mdc-presence>
|
|
1537
1537
|
`:W}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return _`
|
|
1538
1538
|
<img
|
|
@@ -1543,12 +1543,12 @@
|
|
|
1543
1543
|
@load="${this.handleOnLoad}"
|
|
1544
1544
|
@error="${this.handleOnError}"
|
|
1545
1545
|
/>
|
|
1546
|
-
`}iconTemplate(){let t=this.iconName||
|
|
1546
|
+
`}iconTemplate(){let t=this.iconName||Is.ICON_NAME;return _`
|
|
1547
1547
|
<mdc-icon name="${tt(t)}" length-unit="rem" size="${ef(this.size)}"></mdc-icon>
|
|
1548
1548
|
`}textTemplate(t){return _` <mdc-text type="${rf(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Dc?`${Dc}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let r="";return t===Ne.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),t===Ne.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Ne.PHOTO:this.iconName?Ne.ICON:this.initials?Ne.TEXT:this.counter||this.counter===0?Ne.COUNTER:Ne.ICON}getTemplateBasedOnType(t){switch(t){case Ne.PHOTO:return this.photoTemplate();case Ne.TEXT:case Ne.COUNTER:return this.generateTextContent(t);case Ne.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?_`<div part="loading-wrapper"><div part="loader"></div></div>`:W}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?W:t===Ne.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():W}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return _`
|
|
1549
1549
|
${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
|
|
1550
1550
|
${this.getPresenceTemplateBasedOnType(t)}
|
|
1551
|
-
`}}
|
|
1551
|
+
`}};$n.styles=[...j.styles,...Qu],m([ut()],$n.prototype,"isPhotoLoaded",2);var Fc=$n;var JE=[bt,B`
|
|
1552
1552
|
:host {
|
|
1553
1553
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
|
1554
1554
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
|
@@ -1642,7 +1642,7 @@
|
|
|
1642
1642
|
:host::part(mdc-presence-icon__scheduled) {
|
|
1643
1643
|
color: var(--mdc-presence-scheduled-background-color);
|
|
1644
1644
|
}
|
|
1645
|
-
`],of=JE;var sf=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"}},nf=a=>({[Jt[124]]:2.25,[Jt[88]]:1.625,[Jt[72]]:1.3125,[Jt[64]]:1.1875,[Jt[48]]:.875,[Jt[32]]:.875,[Jt[24]]:.875})[a]||.875;var
|
|
1645
|
+
`],of=JE;var sf=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"}},nf=a=>({[Jt[124]]:2.25,[Jt[88]]:1.625,[Jt[72]]:1.3125,[Jt[64]]:1.1875,[Jt[48]]:.875,[Jt[32]]:.875,[Jt[24]]:.875})[a]||.875;var No=class extends j{constructor(){super(...arguments);this.type=_s.TYPE;this.size=_s.SIZE;this.currentIconType=_s.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Jt).includes(t)?`${t}`:_s.SIZE.toString())}get icon(){let t=sf(this.type);return t==="active-presence-small-filled"&&(this.type=_s.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 _`
|
|
1646
1646
|
<div part="presence-content">
|
|
1647
1647
|
<mdc-icon
|
|
1648
1648
|
part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
|
@@ -1652,7 +1652,7 @@
|
|
|
1652
1652
|
@error="${this.handleOnError}"
|
|
1653
1653
|
></mdc-icon>
|
|
1654
1654
|
</div>
|
|
1655
|
-
`}};
|
|
1655
|
+
`}};No.styles=[...j.styles,...of],m([u({type:String,reflect:!0})],No.prototype,"type",2),m([u({type:Number,reflect:!0})],No.prototype,"size",2),m([ut()],No.prototype,"currentIconType",2);var $c=No;$c.register(Ju);var tT=$c;Fc.register(Zu);var eT=Fc;var rT=[bt,B`
|
|
1656
1656
|
:host {
|
|
1657
1657
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
|
1658
1658
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
|
@@ -1681,7 +1681,7 @@
|
|
|
1681
1681
|
:host::part(presence) {
|
|
1682
1682
|
z-index: 2;
|
|
1683
1683
|
}
|
|
1684
|
-
`,...
|
|
1684
|
+
`,...St()],af=rT;var zn=class extends Nl(Qt(ae)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=J.BUTTON,this.type=Ue.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Bt).includes(t)?`${t}`:Is.SIZE.toString())}render(){return _`
|
|
1685
1685
|
<div part="overlay" aria-hidden="true"></div>
|
|
1686
1686
|
<mdc-avatar
|
|
1687
1687
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
|
@@ -1693,7 +1693,7 @@
|
|
|
1693
1693
|
size="${tt(this.size)}"
|
|
1694
1694
|
src="${tt(this.src)}"
|
|
1695
1695
|
></mdc-avatar>
|
|
1696
|
-
`}}
|
|
1696
|
+
`}};zn.styles=[...af],m([u({type:String,attribute:"aria-label"})],zn.prototype,"ariaLabel",2);var zc=zn;var lf=z.constructTagName("avatarbutton");zc.register(lf);var iT=zc;var df=z.constructTagName("badge"),pr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ll={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Vc={PRIMARY:"primary",SECONDARY:"secondary"},ui={TYPE:pr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Vc.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var oT=[bt,B`
|
|
1697
1697
|
:host {
|
|
1698
1698
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
|
1699
1699
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
|
@@ -1786,7 +1786,7 @@
|
|
|
1786
1786
|
>
|
|
1787
1787
|
${this.getCounterText(this.maxCounter,this.counter)}
|
|
1788
1788
|
</mdc-text>
|
|
1789
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=J.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Vc).includes(this.variant)&&(this.variant=ui.VARIANT);let{iconName:t,type:r}=this;switch(r){case pr.ICON:return this.getBadgeIcon(t||"");case pr.COUNTER:return this.getBadgeCounterText();case pr.SUCCESS:return this.getBadgeIcon(Ll.SUCCESS_ICON_NAME);case pr.WARNING:return this.getBadgeIcon(Ll.WARNING_ICON_NAME);case pr.ERROR:return this.getBadgeIcon(Ll.ERROR_ICON_NAME);case pr.DOT:default:return this.type=pr.DOT,this.getBadgeDot()}}};Gr.styles=[...j.styles,...cf],
|
|
1789
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=J.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Vc).includes(this.variant)&&(this.variant=ui.VARIANT);let{iconName:t,type:r}=this;switch(r){case pr.ICON:return this.getBadgeIcon(t||"");case pr.COUNTER:return this.getBadgeCounterText();case pr.SUCCESS:return this.getBadgeIcon(Ll.SUCCESS_ICON_NAME);case pr.WARNING:return this.getBadgeIcon(Ll.WARNING_ICON_NAME);case pr.ERROR:return this.getBadgeIcon(Ll.ERROR_ICON_NAME);case pr.DOT:default:return this.type=pr.DOT,this.getBadgeDot()}}};Gr.styles=[...j.styles,...cf],m([u({type:String,reflect:!0})],Gr.prototype,"type",2),m([u({type:String,reflect:!0})],Gr.prototype,"variant",2),m([u({type:Number})],Gr.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],Gr.prototype,"maxCounter",2),m([u({type:Boolean})],Gr.prototype,"overlay",2),m([u({type:String,attribute:"aria-label"})],Gr.prototype,"ariaLabel",2);var Bc=Gr;Bc.register(df);var sT=Bc;var nT=B`
|
|
1790
1790
|
:host {
|
|
1791
1791
|
display: block;
|
|
1792
1792
|
height: 100%;
|
|
@@ -1800,7 +1800,7 @@
|
|
|
1800
1800
|
width: 100%;
|
|
1801
1801
|
object-fit: contain;
|
|
1802
1802
|
}
|
|
1803
|
-
`,hf=[nT];var
|
|
1803
|
+
`,hf=[nT];var Lo=class extends j{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 o=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(o),Promise.reject(o)}updated(o){super.updated(o),o.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),o.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(o,t,r){let p=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return p&&Object.entries(r).forEach(([f,T])=>{p.setAttribute(f,T)}),p||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([r,s])=>{o.setAttribute(r,s)}),o}handleBrandVisualLoadedSuccess(o){this.brandVisualData=this.injectTemplateAttributes(o,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(o){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:o}});this.dispatchEvent(t)}render(){return _` ${this.brandVisualData} `}};Lo.styles=[...j.styles,...hf],m([ut()],Lo.prototype,"brandVisualData",2),m([u({type:String,reflect:!0})],Lo.prototype,"name",2),m([u({type:String,reflect:!0,attribute:"alt-text"})],Lo.prototype,"altText",2);var Uc=Lo;var pf=z.constructTagName("brandvisual");Uc.register(pf);var aT=Uc;var lT=B`
|
|
1804
1804
|
:host {
|
|
1805
1805
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
1806
1806
|
--mdc-bullet-size: 0.25rem;
|
|
@@ -1820,7 +1820,7 @@
|
|
|
1820
1820
|
:host([size='large']) {
|
|
1821
1821
|
--mdc-bullet-size: 1rem;
|
|
1822
1822
|
}
|
|
1823
|
-
`,mf=[lT];var uf=z.constructTagName("bullet"),ff={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var
|
|
1823
|
+
`,mf=[lT];var uf=z.constructTagName("bullet"),ff={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Vn=class extends j{constructor(){super(...arguments);this.size=ff.SMALL}};Vn.styles=[...j.styles,...mf],m([u({type:String,reflect:!0})],Vn.prototype,"size",2);var Hc=Vn;Hc.register(uf);var dT=Hc;var vf=z.constructTagName("buttongroup"),cT={40:40,32:32,28:28,24:24},hT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},pT={PRIMARY:"primary",SECONDARY:"secondary"},Ol={SIZE:cT[28],VARIANT:pT.PRIMARY,ORIENTATION:hT.HORIZONTAL};var mT=B`
|
|
1824
1824
|
:host {
|
|
1825
1825
|
--mdc-buttongroup-border-radius: 1.25rem;
|
|
1826
1826
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
|
@@ -1920,7 +1920,7 @@
|
|
|
1920
1920
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
|
1921
1921
|
width: 2.5rem;
|
|
1922
1922
|
}
|
|
1923
|
-
`,gf=[bt,mT];var fi=class extends j{constructor(){super(...arguments);this.orientation=Ol.ORIENTATION;this.variant=Ol.VARIANT;this.size=Ol.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return _`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};fi.styles=[...j.styles,...gf],
|
|
1923
|
+
`,gf=[bt,mT];var fi=class extends j{constructor(){super(...arguments);this.orientation=Ol.ORIENTATION;this.variant=Ol.VARIANT;this.size=Ol.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return _`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};fi.styles=[...j.styles,...gf],m([u({type:String,reflect:!0})],fi.prototype,"orientation",2),m([u({type:String,reflect:!0})],fi.prototype,"variant",2),m([u({type:Number,reflect:!0})],fi.prototype,"size",2),m([u({type:Boolean,reflect:!0})],fi.prototype,"compact",2),m([Dt({selector:"mdc-button"})],fi.prototype,"buttons",2);var Gc=fi;Gc.register(vf);var uT=Gc;var Ht=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return m([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var bf=z.constructTagName("linksimple"),Cs={INLINE:!1,INVERTED:!1};var fT=[bt,B`
|
|
1924
1924
|
:host {
|
|
1925
1925
|
--mdc-link-border-radius: 0.25rem;
|
|
1926
1926
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
|
@@ -1999,7 +1999,7 @@
|
|
|
1999
1999
|
:host([inline])::part(anchor) {
|
|
2000
2000
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
|
2001
2001
|
}
|
|
2002
|
-
`,...
|
|
2002
|
+
`,...St(!0)],yf=fT;var Le=class extends Ht(Ut(j)){constructor(){super(...arguments);this.inline=Cs.INLINE;this.inverted=Cs.INVERTED;this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}handleNavigation(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}setDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}renderAnchorContent(){return _`<slot></slot>`}render(){var t;return _`
|
|
2003
2003
|
<a
|
|
2004
2004
|
class="mdc-focus-ring"
|
|
2005
2005
|
part="anchor"
|
|
@@ -2016,7 +2016,7 @@
|
|
|
2016
2016
|
>
|
|
2017
2017
|
${this.renderAnchorContent()}
|
|
2018
2018
|
</a>
|
|
2019
|
-
`}};Le.styles=[...j.styles,...yf],Le.shadowRootOptions={...j.shadowRootOptions,delegatesFocus:!0},
|
|
2019
|
+
`}};Le.styles=[...j.styles,...yf],Le.shadowRootOptions={...j.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],Le.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],Le.prototype,"inverted",2),m([u({type:String,reflect:!0})],Le.prototype,"href",2),m([u({type:String,reflect:!0})],Le.prototype,"target",2),m([u({type:String,reflect:!0})],Le.prototype,"rel",2),m([u({type:String,reflect:!0})],Le.prototype,"download",2),m([u({type:String,reflect:!0})],Le.prototype,"ping",2),m([u({type:String,reflect:!0})],Le.prototype,"hreflang",2),m([u({type:String,reflect:!0})],Le.prototype,"type",2),m([u({type:String,reflect:!0})],Le.prototype,"referrerpolicy",2);var Yr=Le;var vT=B`
|
|
2020
2020
|
:host {
|
|
2021
2021
|
border: unset;
|
|
2022
2022
|
}
|
|
@@ -2070,11 +2070,11 @@
|
|
|
2070
2070
|
:host([variant='secondary'][soft-disabled])::part(anchor) {
|
|
2071
2071
|
border-color: var(--mdc-button-border-color);
|
|
2072
2072
|
}
|
|
2073
|
-
`,Ef=[vT,...
|
|
2073
|
+
`,Ef=[vT,...St(!0)];var ws=class extends tl(Yr){constructor(){super(...arguments);this.size=Ue.SIZE}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),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.inferButtonType()}renderAnchorContent(){return _`
|
|
2074
2074
|
${this.prefixIcon?_`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2075
2075
|
<slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
|
|
2076
2076
|
${this.postfixIcon?_`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2077
|
-
`}};
|
|
2077
|
+
`}};ws.styles=[..._o.styles,...Ef],m([u({type:Number,reflect:!0})],ws.prototype,"size",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ws.prototype,"softDisabled",2);var Yc=ws;var Tf=z.constructTagName("buttonlink");Yc.register(Tf);var gT=Yc;var Ml=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=le.VARIANT;this.orientation=le.ORIENTATION;this.titleTagName=le.TAGNAME;this.subtitleTagName=le.TAGNAME}renderImage(){return this.imageSrc?_`<div part="image-wrapper">
|
|
2078
2078
|
<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
|
|
2079
2079
|
</div>`:W}renderIcon(){return this.iconName?_`<mdc-icon
|
|
2080
2080
|
part="icon"
|
|
@@ -2092,7 +2092,7 @@
|
|
|
2092
2092
|
>${this.subtitle}</mdc-text
|
|
2093
2093
|
>`:W}
|
|
2094
2094
|
</slot>
|
|
2095
|
-
</div>`}}return
|
|
2095
|
+
</div>`}}return m([u({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),m([u({type:String,reflect:!0})],o.prototype,"subtitle",2),m([u({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),m([u({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),m([u({type:String,reflect:!0})],o.prototype,"variant",2),m([u({type:String,reflect:!0})],o.prototype,"orientation",2),m([u({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),m([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),m([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var bT=B`
|
|
2096
2096
|
:host {
|
|
2097
2097
|
--mdc-card-width: 20rem;
|
|
2098
2098
|
align-items: stretch;
|
|
@@ -2201,7 +2201,7 @@
|
|
|
2201
2201
|
mdc-text::part(text) {
|
|
2202
2202
|
margin: 0;
|
|
2203
2203
|
}
|
|
2204
|
-
`,xf=[bt,bT];var
|
|
2204
|
+
`,xf=[bt,bT];var Bn=class extends Ml(Ts(j)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(le.BUTTON)&&(r.setAttribute("variant",$t.TERTIARY),r.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return _`<div part="header">
|
|
2205
2205
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2206
2206
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
|
2207
2207
|
</div>`}render(){return _`
|
|
@@ -2215,7 +2215,7 @@
|
|
|
2215
2215
|
</div>
|
|
2216
2216
|
${this.renderFooter()}
|
|
2217
2217
|
</div>
|
|
2218
|
-
`}};
|
|
2218
|
+
`}};Bn.styles=[...j.styles,...xf],m([Dt({slot:"icon-button"})],Bn.prototype,"iconButtons",2);var Cr=Bn;Cr.register(Pu);var yT=Cr;var ET=B`
|
|
2219
2219
|
:host {
|
|
2220
2220
|
cursor: pointer;
|
|
2221
2221
|
user-select: none;
|
|
@@ -2237,7 +2237,7 @@
|
|
|
2237
2237
|
:host([disabled])::part(image) {
|
|
2238
2238
|
opacity: 0.5;
|
|
2239
2239
|
}
|
|
2240
|
-
`,Af=[ET,...
|
|
2240
|
+
`,Af=[ET,...St()];var Rl=class extends Ml(ae){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return _`
|
|
2241
2241
|
<slot name="image"> ${this.renderImage()} </slot>
|
|
2242
2242
|
<div part="body">
|
|
2243
2243
|
<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
|
|
@@ -2302,7 +2302,7 @@
|
|
|
2302
2302
|
:host([disabled])::part(check-icon) {
|
|
2303
2303
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
2304
2304
|
}
|
|
2305
|
-
`,_f=[xT,...
|
|
2305
|
+
`,_f=[xT,...St()];var ks=class extends kt(Ut(zr(Cr))){constructor(){super();this.checked=!1;this.selectionType=Dl.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let r=this.getActionForKeyEvent(t);r===Z.ENTER&&(this.toggleChecked(),t.preventDefault()),r===Z.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===Z.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?Wc.CHECKED:Wc.DEFAULT;switch(this.selectionType){case Pl.CHECK:return _`<mdc-icon
|
|
2306
2306
|
part="check check-icon"
|
|
2307
2307
|
size="${Dl.ICON_SIZE}"
|
|
2308
2308
|
length-unit="${Dl.ICON_LENGTH_UNIT}"
|
|
@@ -2319,7 +2319,7 @@
|
|
|
2319
2319
|
<slot name="body"></slot>
|
|
2320
2320
|
<slot name="after-body"></slot>
|
|
2321
2321
|
</div>
|
|
2322
|
-
`}};
|
|
2322
|
+
`}};ks.styles=[...Cr.styles,..._f],m([u({type:Boolean,reflect:!0})],ks.prototype,"checked",2),m([u({type:String,attribute:"selection-type",reflect:!0})],ks.prototype,"selectionType",2);var jc=ks;var AT=[B`
|
|
2323
2323
|
:host {
|
|
2324
2324
|
--mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2325
2325
|
--mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
|
|
@@ -2397,7 +2397,7 @@
|
|
|
2397
2397
|
--mdc-staticcheckbox-icon-color: GrayText;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
`],Cf=AT;var wf=z.constructTagName("popover"),Nt={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"},He={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},
|
|
2400
|
+
`],Cf=AT;var wf=z.constructTagName("popover"),Nt={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"},He={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Oo={TONAL:"tonal",CONTRAST:"contrast"},qc={ABSOLUTE:"absolute",FIXED:"fixed"},ST={VIEWPORT:"viewport",DOCUMENT:"document"},At={PLACEMENT:Nt.BOTTOM,TRIGGER:He.CLICK,COLOR:Oo.TONAL,STRATEGY:qc.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:ST.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:J.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},Kr={OPEN:"open",HOVER:"hover",CLOSE:"close"};var kf=z.constructTagName("formfieldwrapper"),zt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ot={VALIDATION:zt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Nt.TOP,TOGGLETIP_STRATEGY:qc.ABSOLUTE},Un={TAGNAME:pt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Nf=z.constructTagName("checkbox"),Fl={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Lf={ERROR:zt.ERROR,DEFAULT:zt.DEFAULT};var Of=z.constructTagName("staticcheckbox");var Ki=class extends Ut(j){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?_`
|
|
2401
2401
|
<mdc-icon
|
|
2402
2402
|
part="checkbox-icon"
|
|
2403
2403
|
name="${this.indeterminate?Fl.INDETERMINATE:Fl.CHECKED}"
|
|
@@ -2405,7 +2405,7 @@
|
|
|
2405
2405
|
length-unit="rem"
|
|
2406
2406
|
></mdc-icon>
|
|
2407
2407
|
`:W;return _`<slot></slot>
|
|
2408
|
-
<div part="icon-container">${t}</div>`}};Ki.styles=[...j.styles,...Cf],
|
|
2408
|
+
<div part="icon-container">${t}</div>`}};Ki.styles=[...j.styles,...Cf],m([u({type:Boolean,reflect:!0})],Ki.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Ki.prototype,"indeterminate",2),m([u({type:Boolean,reflect:!0})],Ki.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ki.prototype,"softDisabled",2);var Xc=Ki;Xc.register(Of);var IT=Xc;jc.register(If);var _T=jc;var CT=B`
|
|
2409
2409
|
:host {
|
|
2410
2410
|
cursor: pointer;
|
|
2411
2411
|
user-select: none;
|
|
@@ -2458,7 +2458,7 @@
|
|
|
2458
2458
|
:host([disabled])::part(image) {
|
|
2459
2459
|
opacity: 0.5;
|
|
2460
2460
|
}
|
|
2461
|
-
`,Mf=[CT,...
|
|
2461
|
+
`,Mf=[CT,...St()];var Ns=class extends kt(Ut(zr(Cr))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(r=>{r.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,r){t[r].focus(),t[r].toggleChecked()}handleKeyDown(t){let r=this.getActionForKeyEvent(t);if(r===Z.SPACE){t.preventDefault();return}if(this.disabled)return;let d=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),p=d.indexOf(this);if(r===Z.DOWN||Z.RIGHT===r){let f=(p+1)%d.length;this.updateCardRadio(d,f)}else if(r===Z.UP||Z.LEFT===r){let f=(p-1+d.length)%d.length;this.updateCardRadio(d,f)}r===Z.ENTER&&this.toggleChecked()}toggleOnSpace(t){this.getActionForKeyEvent(t)===Z.SPACE&&this.toggleChecked()}renderHeader(){return _`<div part="header">
|
|
2462
2462
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2463
2463
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
|
2464
2464
|
</div>`}render(){return _`
|
|
@@ -2469,7 +2469,7 @@
|
|
|
2469
2469
|
<slot name="body"></slot>
|
|
2470
2470
|
<slot name="after-body"></slot>
|
|
2471
2471
|
</div>
|
|
2472
|
-
`}};
|
|
2472
|
+
`}};Ns.styles=[...Cr.styles,...Mf],m([u({type:Boolean,reflect:!0})],Ns.prototype,"checked",2),m([u({type:String})],Ns.prototype,"name",2);var Zc=Ns;var $l=z.constructTagName("cardradio");var wT=[B`
|
|
2473
2473
|
:host {
|
|
2474
2474
|
--mdc-staticradio-inner-circle-size: 0.375rem;
|
|
2475
2475
|
--mdc-staticradio-outer-circle-size: 1rem;
|
|
@@ -2566,8 +2566,8 @@
|
|
|
2566
2566
|
--mdc-staticradio-outer-circle-background-color: GrayText;
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
|
-
`],Rf=wT;var
|
|
2570
|
-
<span part="radio-icon" class="radio-icon"></span>`}};Oo.styles=[...j.styles,...Rf],p([u({type:Boolean,reflect:!0})],Oo.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],Oo.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Oo.prototype,"softDisabled",2);var Qc=Oo;var Pf=z.constructTagName("staticradio");Qc.register(Pf);var kT=Qc;Zc.register($l);var NT=Zc;var Wr=Math.min,Oe=Math.max,Hn=Math.round,Gn=Math.floor,wr=a=>({x:a,y:a}),LT={left:"right",right:"left",bottom:"top",top:"bottom"},OT={start:"end",end:"start"};function Vl(a,o,t){return Oe(a,Wr(o,t))}function Mo(a,o){return typeof a=="function"?a(o):a}function vi(a){return a.split("-")[0]}function Ro(a){return a.split("-")[1]}function Jc(a){return a==="x"?"y":"x"}function Bl(a){return a==="y"?"height":"width"}var MT=new Set(["top","bottom"]);function jr(a){return MT.has(vi(a))?"y":"x"}function Ul(a){return Jc(jr(a))}function $f(a,o,t){t===void 0&&(t=!1);let r=Ro(a),s=Ul(a),d=Bl(s),m=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Un(m)),[m,Un(m)]}function zf(a){let o=Un(a);return[zl(a),o,zl(o)]}function zl(a){return a.replace(/start|end/g,o=>OT[o])}var Df=["left","right"],Ff=["right","left"],RT=["top","bottom"],PT=["bottom","top"];function DT(a,o,t){switch(a){case"top":case"bottom":return t?o?Ff:Df:o?Df:Ff;case"left":case"right":return o?RT:PT;default:return[]}}function Vf(a,o,t,r){let s=Ro(a),d=DT(vi(a),t==="start",r);return s&&(d=d.map(m=>m+"-"+s),o&&(d=d.concat(d.map(zl)))),d}function Un(a){return a.replace(/left|right|bottom|top/g,o=>LT[o])}function FT(a){return{top:0,right:0,bottom:0,left:0,...a}}function th(a){return typeof a!="number"?FT(a):{top:a,right:a,bottom:a,left:a}}function Po(a){let{x:o,y:t,width:r,height:s}=a;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function Bf(a,o,t){let{reference:r,floating:s}=a,d=jr(o),m=Ul(o),v=Bl(m),T=vi(o),L=d==="y",U=r.x+r.width/2-s.width/2,q=r.y+r.height/2-s.height/2,Q=r[v]/2-s[v]/2,X;switch(T){case"top":X={x:U,y:r.y-s.height};break;case"bottom":X={x:U,y:r.y+r.height};break;case"right":X={x:r.x+r.width,y:q};break;case"left":X={x:r.x-s.width,y:q};break;default:X={x:r.x,y:r.y}}switch(Ro(o)){case"start":X[m]-=Q*(t&&L?-1:1);break;case"end":X[m]+=Q*(t&&L?-1:1);break}return X}var Uf=async(a,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:m}=t,v=d.filter(Boolean),T=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:a,floating:o,strategy:s}),{x:U,y:q}=Bf(L,r,T),Q=r,X={},it=0;for(let dt=0;dt<v.length;dt++){let{name:lt,fn:gt}=v[dt],{x:It,y:Ct,data:Kt,reset:Vt}=await gt({x:U,y:q,initialPlacement:r,placement:Q,strategy:s,middlewareData:X,rects:L,platform:m,elements:{reference:a,floating:o}});U=It!=null?It:U,q=Ct!=null?Ct:q,X={...X,[lt]:{...X[lt],...Kt}},Vt&&it<=50&&(it++,typeof Vt=="object"&&(Vt.placement&&(Q=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await m.getElementRects({reference:a,floating:o,strategy:s}):Vt.rects),{x:U,y:q}=Bf(L,Q,T)),dt=-1)}return{x:U,y:q,placement:Q,strategy:s,middlewareData:X}};async function Hl(a,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:m,elements:v,strategy:T}=a,{boundary:L="clippingAncestors",rootBoundary:U="viewport",elementContext:q="floating",altBoundary:Q=!1,padding:X=0}=Mo(o,a),it=th(X),lt=v[Q?q==="floating"?"reference":"floating":q],gt=Po(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(lt)))==null||t?lt:lt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:L,rootBoundary:U,strategy:T})),It=q==="floating"?{x:r,y:s,width:m.floating.width,height:m.floating.height}:m.reference,Ct=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),Kt=await(d.isElement==null?void 0:d.isElement(Ct))?await(d.getScale==null?void 0:d.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Vt=Po(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:It,offsetParent:Ct,strategy:T}):It);return{top:(gt.top-Vt.top+it.top)/Kt.y,bottom:(Vt.bottom-gt.bottom+it.bottom)/Kt.y,left:(gt.left-Vt.left+it.left)/Kt.x,right:(Vt.right-gt.right+it.right)/Kt.x}}var Hf=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:m,elements:v,middlewareData:T}=o,{element:L,padding:U=0}=Mo(a,o)||{};if(L==null)return{};let q=th(U),Q={x:t,y:r},X=Ul(s),it=Bl(X),dt=await m.getDimensions(L),lt=X==="y",gt=lt?"top":"left",It=lt?"bottom":"right",Ct=lt?"clientHeight":"clientWidth",Kt=d.reference[it]+d.reference[X]-Q[X]-d.floating[it],Vt=Q[X]-d.reference[X],Wt=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),te=Wt?Wt[Ct]:0;(!te||!await(m.isElement==null?void 0:m.isElement(Wt)))&&(te=v.floating[Ct]||d.floating[it]);let he=Kt/2-Vt/2,Er=te/2-dt[it]/2-1,De=Wr(q[gt],Er),ir=Wr(q[It],Er),Tr=De,xr=te-dt[it]-ir,wt=te/2-dt[it]/2+he,ge=Vl(Tr,wt,xr),or=!T.arrow&&Ro(s)!=null&&wt!==ge&&d.reference[it]/2-(wt<Tr?De:ir)-dt[it]/2<0,sr=or?wt<Tr?wt-Tr:wt-xr:0;return{[X]:Q[X]+sr,data:{[X]:ge,centerOffset:wt-ge-sr,...or&&{alignmentOffset:sr}},reset:or}}});var Gf=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:m,initialPlacement:v,platform:T,elements:L}=o,{mainAxis:U=!0,crossAxis:q=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:dt=!0,...lt}=Mo(a,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=vi(s),It=jr(v),Ct=vi(v)===v,Kt=await(T.isRTL==null?void 0:T.isRTL(L.floating)),Vt=Q||(Ct||!dt?[Un(v)]:zf(v)),Wt=it!=="none";!Q&&Wt&&Vt.push(...Vf(v,dt,it,Kt));let te=[v,...Vt],he=await Hl(o,lt),Er=[],De=((r=d.flip)==null?void 0:r.overflows)||[];if(U&&Er.push(he[gt]),q){let wt=$f(s,m,Kt);Er.push(he[wt[0]],he[wt[1]])}if(De=[...De,{placement:s,overflows:Er}],!Er.every(wt=>wt<=0)){var ir,Tr;let wt=(((ir=d.flip)==null?void 0:ir.index)||0)+1,ge=te[wt];if(ge&&(!(q==="alignment"?It!==jr(ge):!1)||De.every(nr=>nr.overflows[0]>0&&jr(nr.placement)===It)))return{data:{index:wt,overflows:De},reset:{placement:ge}};let or=(Tr=De.filter(sr=>sr.overflows[0]<=0).sort((sr,nr)=>sr.overflows[1]-nr.overflows[1])[0])==null?void 0:Tr.placement;if(!or)switch(X){case"bestFit":{var xr;let sr=(xr=De.filter(nr=>{if(Wt){let ar=jr(nr.placement);return ar===It||ar==="y"}return!0}).map(nr=>[nr.placement,nr.overflows.filter(ar=>ar>0).reduce((ar,Sa)=>ar+Sa,0)]).sort((nr,ar)=>nr[1]-ar[1])[0])==null?void 0:xr[0];sr&&(or=sr);break}case"initialPlacement":or=v;break}if(s!==or)return{reset:{placement:or}}}return{}}}};var $T=new Set(["left","top"]);async function zT(a,o){let{placement:t,platform:r,elements:s}=a,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),m=vi(t),v=Ro(t),T=jr(t)==="y",L=$T.has(m)?-1:1,U=d&&T?-1:1,q=Mo(o,a),{mainAxis:Q,crossAxis:X,alignmentAxis:it}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return v&&typeof it=="number"&&(X=v==="end"?it*-1:it),T?{x:X*U,y:Q*L}:{x:Q*L,y:X*U}}var Yf=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,r;let{x:s,y:d,placement:m,middlewareData:v}=o,T=await zT(o,a);return m===((t=v.offset)==null?void 0:t.placement)&&(r=v.arrow)!=null&&r.alignmentOffset?{}:{x:s+T.x,y:d+T.y,data:{...T,placement:m}}}}},Kf=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:v={fn:lt=>{let{x:gt,y:It}=lt;return{x:gt,y:It}}},...T}=Mo(a,o),L={x:t,y:r},U=await Hl(o,T),q=jr(vi(s)),Q=Jc(q),X=L[Q],it=L[q];if(d){let lt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",It=X+U[lt],Ct=X-U[gt];X=Vl(It,X,Ct)}if(m){let lt=q==="y"?"top":"left",gt=q==="y"?"bottom":"right",It=it+U[lt],Ct=it-U[gt];it=Vl(It,it,Ct)}let dt=v.fn({...o,[Q]:X,[q]:it});return{...dt,data:{x:dt.x-t,y:dt.y-r,enabled:{[Q]:d,[q]:m}}}}}};var Wf=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,r;let{placement:s,rects:d,platform:m,elements:v}=o,{apply:T=()=>{},...L}=Mo(a,o),U=await Hl(o,L),q=vi(s),Q=Ro(s),X=jr(s)==="y",{width:it,height:dt}=d.floating,lt,gt;q==="top"||q==="bottom"?(lt=q,gt=Q===(await(m.isRTL==null?void 0:m.isRTL(v.floating))?"start":"end")?"left":"right"):(gt=q,lt=Q==="end"?"top":"bottom");let It=dt-U.top-U.bottom,Ct=it-U.left-U.right,Kt=Wr(dt-U[lt],It),Vt=Wr(it-U[gt],Ct),Wt=!o.middlewareData.shift,te=Kt,he=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(he=Ct),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(te=It),Wt&&!Q){let De=Oe(U.left,0),ir=Oe(U.right,0),Tr=Oe(U.top,0),xr=Oe(U.bottom,0);X?he=it-2*(De!==0||ir!==0?De+ir:Oe(U.left,U.right)):te=dt-2*(Tr!==0||xr!==0?Tr+xr:Oe(U.top,U.bottom))}await T({...o,availableWidth:he,availableHeight:te});let Er=await m.getDimensions(v.floating);return it!==Er.width||dt!==Er.height?{reset:{rects:!0}}:{}}}};function Gl(){return typeof window<"u"}function Do(a){return qf(a)?(a.nodeName||"").toLowerCase():"#document"}function Ge(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function kr(a){var o;return(o=(qf(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function qf(a){return Gl()?a instanceof Node||a instanceof Ge(a).Node:!1}function mr(a){return Gl()?a instanceof Element||a instanceof Ge(a).Element:!1}function Nr(a){return Gl()?a instanceof HTMLElement||a instanceof Ge(a).HTMLElement:!1}function jf(a){return!Gl()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Ge(a).ShadowRoot}var VT=new Set(["inline","contents"]);function Ls(a){let{overflow:o,overflowX:t,overflowY:r,display:s}=ur(a);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!VT.has(s)}var BT=new Set(["table","td","th"]);function Xf(a){return BT.has(Do(a))}var UT=[":popover-open",":modal"];function Yn(a){return UT.some(o=>{try{return a.matches(o)}catch{return!1}})}var HT=["transform","translate","scale","rotate","perspective"],GT=["transform","translate","scale","rotate","perspective","filter"],YT=["paint","layout","strict","content"];function Yl(a){let o=Kl(),t=mr(a)?ur(a):a;return HT.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||GT.some(r=>(t.willChange||"").includes(r))||YT.some(r=>(t.contain||"").includes(r))}function Zf(a){let o=gi(a);for(;Nr(o)&&!Fo(o);){if(Yl(o))return o;if(Yn(o))return null;o=gi(o)}return null}function Kl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var KT=new Set(["html","body","#document"]);function Fo(a){return KT.has(Do(a))}function ur(a){return Ge(a).getComputedStyle(a)}function Kn(a){return mr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function gi(a){if(Do(a)==="html")return a;let o=a.assignedSlot||a.parentNode||jf(a)&&a.host||kr(a);return jf(o)?o.host:o}function Qf(a){let o=gi(a);return Fo(o)?a.ownerDocument?a.ownerDocument.body:a.body:Nr(o)&&Ls(o)?o:Qf(o)}function Ns(a,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=Qf(a),d=s===((r=a.ownerDocument)==null?void 0:r.body),m=Ge(s);if(d){let v=Wl(m);return o.concat(m,m.visualViewport||[],Ls(s)?s:[],v&&t?Ns(v):[])}return o.concat(s,Ns(s,[],t))}function Wl(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function ev(a){let o=ur(a),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Nr(a),d=s?a.offsetWidth:t,m=s?a.offsetHeight:r,v=Hn(t)!==d||Hn(r)!==m;return v&&(t=d,r=m),{width:t,height:r,$:v}}function rh(a){return mr(a)?a:a.contextElement}function Os(a){let o=rh(a);if(!Nr(o))return wr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=ev(o),m=(d?Hn(t.width):t.width)/r,v=(d?Hn(t.height):t.height)/s;return(!m||!Number.isFinite(m))&&(m=1),(!v||!Number.isFinite(v))&&(v=1),{x:m,y:v}}var WT=wr(0);function rv(a){let o=Ge(a);return!Kl()||!o.visualViewport?WT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function jT(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==Ge(a)?!1:o}function $o(a,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),d=rh(a),m=wr(1);o&&(r?mr(r)&&(m=Os(r)):m=Os(a));let v=jT(d,t,r)?rv(d):wr(0),T=(s.left+v.x)/m.x,L=(s.top+v.y)/m.y,U=s.width/m.x,q=s.height/m.y;if(d){let Q=Ge(d),X=r&&mr(r)?Ge(r):r,it=Q,dt=Wl(it);for(;dt&&r&&X!==it;){let lt=Os(dt),gt=dt.getBoundingClientRect(),It=ur(dt),Ct=gt.left+(dt.clientLeft+parseFloat(It.paddingLeft))*lt.x,Kt=gt.top+(dt.clientTop+parseFloat(It.paddingTop))*lt.y;T*=lt.x,L*=lt.y,U*=lt.x,q*=lt.y,T+=Ct,L+=Kt,it=Ge(dt),dt=Wl(it)}}return Po({width:U,height:q,x:T,y:L})}function ih(a,o){let t=Kn(a).scrollLeft;return o?o.left+t:$o(kr(a)).left+t}function iv(a,o,t){t===void 0&&(t=!1);let r=a.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:ih(a,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function qT(a){let{elements:o,rect:t,offsetParent:r,strategy:s}=a,d=s==="fixed",m=kr(r),v=o?Yn(o.floating):!1;if(r===m||v&&d)return t;let T={scrollLeft:0,scrollTop:0},L=wr(1),U=wr(0),q=Nr(r);if((q||!q&&!d)&&((Do(r)!=="body"||Ls(m))&&(T=Kn(r)),Nr(r))){let X=$o(r);L=Os(r),U.x=X.x+r.clientLeft,U.y=X.y+r.clientTop}let Q=m&&!q&&!d?iv(m,T,!0):wr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-T.scrollLeft*L.x+U.x+Q.x,y:t.y*L.y-T.scrollTop*L.y+U.y+Q.y}}function XT(a){return Array.from(a.getClientRects())}function ZT(a){let o=kr(a),t=Kn(a),r=a.ownerDocument.body,s=Oe(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=Oe(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),m=-t.scrollLeft+ih(a),v=-t.scrollTop;return ur(r).direction==="rtl"&&(m+=Oe(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:m,y:v}}function QT(a,o){let t=Ge(a),r=kr(a),s=t.visualViewport,d=r.clientWidth,m=r.clientHeight,v=0,T=0;if(s){d=s.width,m=s.height;let L=Kl();(!L||L&&o==="fixed")&&(v=s.offsetLeft,T=s.offsetTop)}return{width:d,height:m,x:v,y:T}}var JT=new Set(["absolute","fixed"]);function tx(a,o){let t=$o(a,!0,o==="fixed"),r=t.top+a.clientTop,s=t.left+a.clientLeft,d=Nr(a)?Os(a):wr(1),m=a.clientWidth*d.x,v=a.clientHeight*d.y,T=s*d.x,L=r*d.y;return{width:m,height:v,x:T,y:L}}function Jf(a,o,t){let r;if(o==="viewport")r=QT(a,t);else if(o==="document")r=ZT(kr(a));else if(mr(o))r=tx(o,t);else{let s=rv(a);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return Po(r)}function ov(a,o){let t=gi(a);return t===o||!mr(t)||Fo(t)?!1:ur(t).position==="fixed"||ov(t,o)}function ex(a,o){let t=o.get(a);if(t)return t;let r=Ns(a,[],!1).filter(v=>mr(v)&&Do(v)!=="body"),s=null,d=ur(a).position==="fixed",m=d?gi(a):a;for(;mr(m)&&!Fo(m);){let v=ur(m),T=Yl(m);!T&&v.position==="fixed"&&(s=null),(d?!T&&!s:!T&&v.position==="static"&&!!s&&JT.has(s.position)||Ls(m)&&!T&&ov(a,m))?r=r.filter(U=>U!==m):s=v,m=gi(m)}return o.set(a,r),r}function rx(a){let{element:o,boundary:t,rootBoundary:r,strategy:s}=a,m=[...t==="clippingAncestors"?Yn(o)?[]:ex(o,this._c):[].concat(t),r],v=m[0],T=m.reduce((L,U)=>{let q=Jf(o,U,s);return L.top=Oe(q.top,L.top),L.right=Wr(q.right,L.right),L.bottom=Wr(q.bottom,L.bottom),L.left=Oe(q.left,L.left),L},Jf(o,v,s));return{width:T.right-T.left,height:T.bottom-T.top,x:T.left,y:T.top}}function ix(a){let{width:o,height:t}=ev(a);return{width:o,height:t}}function ox(a,o,t){let r=Nr(o),s=kr(o),d=t==="fixed",m=$o(a,!0,d,o),v={scrollLeft:0,scrollTop:0},T=wr(0);function L(){T.x=ih(s)}if(r||!r&&!d)if((Do(o)!=="body"||Ls(s))&&(v=Kn(o)),r){let X=$o(o,!0,d,o);T.x=X.x+o.clientLeft,T.y=X.y+o.clientTop}else s&&L();d&&!r&&s&&L();let U=s&&!r&&!d?iv(s,v):wr(0),q=m.left+v.scrollLeft-T.x-U.x,Q=m.top+v.scrollTop-T.y-U.y;return{x:q,y:Q,width:m.width,height:m.height}}function eh(a){return ur(a).position==="static"}function tv(a,o){if(!Nr(a)||ur(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return kr(a)===t&&(t=t.ownerDocument.body),t}function sv(a,o){let t=Ge(a);if(Yn(a))return t;if(!Nr(a)){let s=gi(a);for(;s&&!Fo(s);){if(mr(s)&&!eh(s))return s;s=gi(s)}return t}let r=tv(a,o);for(;r&&Xf(r)&&eh(r);)r=tv(r,o);return r&&Fo(r)&&eh(r)&&!Yl(r)?t:r||Zf(a)||t}var sx=async function(a){let o=this.getOffsetParent||sv,t=this.getDimensions,r=await t(a.floating);return{reference:ox(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nx(a){return ur(a).direction==="rtl"}var ax={convertOffsetParentRelativeRectToViewportRelativeRect:qT,getDocumentElement:kr,getClippingRect:rx,getOffsetParent:sv,getElementRects:sx,getClientRects:XT,getDimensions:ix,getScale:Os,isElement:mr,isRTL:nx};function nv(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function lx(a,o){let t=null,r,s=kr(a);function d(){var v;clearTimeout(r),(v=t)==null||v.disconnect(),t=null}function m(v,T){v===void 0&&(v=!1),T===void 0&&(T=1),d();let L=a.getBoundingClientRect(),{left:U,top:q,width:Q,height:X}=L;if(v||o(),!Q||!X)return;let it=Gn(q),dt=Gn(s.clientWidth-(U+Q)),lt=Gn(s.clientHeight-(q+X)),gt=Gn(U),Ct={rootMargin:-it+"px "+-dt+"px "+-lt+"px "+-gt+"px",threshold:Oe(0,Wr(1,T))||1},Kt=!0;function Vt(Wt){let te=Wt[0].intersectionRatio;if(te!==T){if(!Kt)return m();te?m(!1,te):r=setTimeout(()=>{m(!1,1e-7)},1e3)}te===1&&!nv(L,a.getBoundingClientRect())&&m(),Kt=!1}try{t=new IntersectionObserver(Vt,{...Ct,root:s.ownerDocument})}catch{t=new IntersectionObserver(Vt,Ct)}t.observe(a)}return m(!0),d}function av(a,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:T=!1}=r,L=rh(a),U=s||d?[...L?Ns(L):[],...Ns(o)]:[];U.forEach(gt=>{s&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let q=L&&v?lx(L,t):null,Q=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[It]=gt;It&&It.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),L&&!T&&X.observe(L),X.observe(o));let it,dt=T?$o(a):null;T&<();function lt(){let gt=$o(a);dt&&!nv(dt,gt)&&t(),dt=gt,it=requestAnimationFrame(lt)}return t(),()=>{var gt;U.forEach(It=>{s&&It.removeEventListener("scroll",t),d&&It.removeEventListener("resize",t)}),q==null||q(),(gt=X)==null||gt.disconnect(),X=null,T&&cancelAnimationFrame(it)}}var lv=Yf;var dv=Kf,cv=Gf,hv=Wf;var pv=Hf;var mv=(a,o,t)=>{let r=new Map,s={platform:ax,...t},d={...s.platform,_c:r};return Uf(a,o,{...s,platform:d})};var jl=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,r,...s){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let d=window.setInterval(t,r,...s);return this.nameToIntervalId.set(o,d),d}clearInterval(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);r!==void 0&&clearInterval(r),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,r,...s){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let d=window.setTimeout((...m)=>{t(...m),this.nameToTimeoutId.delete(o)},r,...s);return this.nameToTimeoutId.set(o,d),d}clearTimeout(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);r!==void 0&&window.clearTimeout(r),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var r;if(typeof t=="number"){let s=t;return[(r=[...o.entries()].find(([,m])=>m===t))==null?void 0:r[0],s]}return[t,o.get(t)]}};var bi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var dx=B`
|
|
2569
|
+
`],Rf=wT;var Mo=class extends Ut(j){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return _` <slot></slot>
|
|
2570
|
+
<span part="radio-icon" class="radio-icon"></span>`}};Mo.styles=[...j.styles,...Rf],m([u({type:Boolean,reflect:!0})],Mo.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Mo.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Mo.prototype,"softDisabled",2);var Qc=Mo;var Pf=z.constructTagName("staticradio");Qc.register(Pf);var kT=Qc;Zc.register($l);var NT=Zc;var Wr=Math.min,Oe=Math.max,Gn=Math.round,Yn=Math.floor,wr=a=>({x:a,y:a}),LT={left:"right",right:"left",bottom:"top",top:"bottom"},OT={start:"end",end:"start"};function Vl(a,o,t){return Oe(a,Wr(o,t))}function Ro(a,o){return typeof a=="function"?a(o):a}function vi(a){return a.split("-")[0]}function Po(a){return a.split("-")[1]}function Jc(a){return a==="x"?"y":"x"}function Bl(a){return a==="y"?"height":"width"}var MT=new Set(["top","bottom"]);function jr(a){return MT.has(vi(a))?"y":"x"}function Ul(a){return Jc(jr(a))}function $f(a,o,t){t===void 0&&(t=!1);let r=Po(a),s=Ul(a),d=Bl(s),p=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(p=Hn(p)),[p,Hn(p)]}function zf(a){let o=Hn(a);return[zl(a),o,zl(o)]}function zl(a){return a.replace(/start|end/g,o=>OT[o])}var Df=["left","right"],Ff=["right","left"],RT=["top","bottom"],PT=["bottom","top"];function DT(a,o,t){switch(a){case"top":case"bottom":return t?o?Ff:Df:o?Df:Ff;case"left":case"right":return o?RT:PT;default:return[]}}function Vf(a,o,t,r){let s=Po(a),d=DT(vi(a),t==="start",r);return s&&(d=d.map(p=>p+"-"+s),o&&(d=d.concat(d.map(zl)))),d}function Hn(a){return a.replace(/left|right|bottom|top/g,o=>LT[o])}function FT(a){return{top:0,right:0,bottom:0,left:0,...a}}function th(a){return typeof a!="number"?FT(a):{top:a,right:a,bottom:a,left:a}}function Do(a){let{x:o,y:t,width:r,height:s}=a;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function Bf(a,o,t){let{reference:r,floating:s}=a,d=jr(o),p=Ul(o),f=Bl(p),T=vi(o),L=d==="y",U=r.x+r.width/2-s.width/2,q=r.y+r.height/2-s.height/2,Q=r[f]/2-s[f]/2,X;switch(T){case"top":X={x:U,y:r.y-s.height};break;case"bottom":X={x:U,y:r.y+r.height};break;case"right":X={x:r.x+r.width,y:q};break;case"left":X={x:r.x-s.width,y:q};break;default:X={x:r.x,y:r.y}}switch(Po(o)){case"start":X[p]-=Q*(t&&L?-1:1);break;case"end":X[p]+=Q*(t&&L?-1:1);break}return X}var Uf=async(a,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:p}=t,f=d.filter(Boolean),T=await(p.isRTL==null?void 0:p.isRTL(o)),L=await p.getElementRects({reference:a,floating:o,strategy:s}),{x:U,y:q}=Bf(L,r,T),Q=r,X={},it=0;for(let dt=0;dt<f.length;dt++){let{name:lt,fn:gt}=f[dt],{x:It,y:Ct,data:Kt,reset:Vt}=await gt({x:U,y:q,initialPlacement:r,placement:Q,strategy:s,middlewareData:X,rects:L,platform:p,elements:{reference:a,floating:o}});U=It!=null?It:U,q=Ct!=null?Ct:q,X={...X,[lt]:{...X[lt],...Kt}},Vt&&it<=50&&(it++,typeof Vt=="object"&&(Vt.placement&&(Q=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await p.getElementRects({reference:a,floating:o,strategy:s}):Vt.rects),{x:U,y:q}=Bf(L,Q,T)),dt=-1)}return{x:U,y:q,placement:Q,strategy:s,middlewareData:X}};async function Hl(a,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:p,elements:f,strategy:T}=a,{boundary:L="clippingAncestors",rootBoundary:U="viewport",elementContext:q="floating",altBoundary:Q=!1,padding:X=0}=Ro(o,a),it=th(X),lt=f[Q?q==="floating"?"reference":"floating":q],gt=Do(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(lt)))==null||t?lt:lt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(f.floating)),boundary:L,rootBoundary:U,strategy:T})),It=q==="floating"?{x:r,y:s,width:p.floating.width,height:p.floating.height}:p.reference,Ct=await(d.getOffsetParent==null?void 0:d.getOffsetParent(f.floating)),Kt=await(d.isElement==null?void 0:d.isElement(Ct))?await(d.getScale==null?void 0:d.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Vt=Do(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:Ct,strategy:T}):It);return{top:(gt.top-Vt.top+it.top)/Kt.y,bottom:(Vt.bottom-gt.bottom+it.bottom)/Kt.y,left:(gt.left-Vt.left+it.left)/Kt.x,right:(Vt.right-gt.right+it.right)/Kt.x}}var Hf=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:p,elements:f,middlewareData:T}=o,{element:L,padding:U=0}=Ro(a,o)||{};if(L==null)return{};let q=th(U),Q={x:t,y:r},X=Ul(s),it=Bl(X),dt=await p.getDimensions(L),lt=X==="y",gt=lt?"top":"left",It=lt?"bottom":"right",Ct=lt?"clientHeight":"clientWidth",Kt=d.reference[it]+d.reference[X]-Q[X]-d.floating[it],Vt=Q[X]-d.reference[X],Wt=await(p.getOffsetParent==null?void 0:p.getOffsetParent(L)),te=Wt?Wt[Ct]:0;(!te||!await(p.isElement==null?void 0:p.isElement(Wt)))&&(te=f.floating[Ct]||d.floating[it]);let pe=Kt/2-Vt/2,Er=te/2-dt[it]/2-1,De=Wr(q[gt],Er),ir=Wr(q[It],Er),Tr=De,xr=te-dt[it]-ir,wt=te/2-dt[it]/2+pe,ge=Vl(Tr,wt,xr),or=!T.arrow&&Po(s)!=null&&wt!==ge&&d.reference[it]/2-(wt<Tr?De:ir)-dt[it]/2<0,sr=or?wt<Tr?wt-Tr:wt-xr:0;return{[X]:Q[X]+sr,data:{[X]:ge,centerOffset:wt-ge-sr,...or&&{alignmentOffset:sr}},reset:or}}});var Gf=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:p,initialPlacement:f,platform:T,elements:L}=o,{mainAxis:U=!0,crossAxis:q=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:dt=!0,...lt}=Ro(a,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=vi(s),It=jr(f),Ct=vi(f)===f,Kt=await(T.isRTL==null?void 0:T.isRTL(L.floating)),Vt=Q||(Ct||!dt?[Hn(f)]:zf(f)),Wt=it!=="none";!Q&&Wt&&Vt.push(...Vf(f,dt,it,Kt));let te=[f,...Vt],pe=await Hl(o,lt),Er=[],De=((r=d.flip)==null?void 0:r.overflows)||[];if(U&&Er.push(pe[gt]),q){let wt=$f(s,p,Kt);Er.push(pe[wt[0]],pe[wt[1]])}if(De=[...De,{placement:s,overflows:Er}],!Er.every(wt=>wt<=0)){var ir,Tr;let wt=(((ir=d.flip)==null?void 0:ir.index)||0)+1,ge=te[wt];if(ge&&(!(q==="alignment"?It!==jr(ge):!1)||De.every(nr=>nr.overflows[0]>0&&jr(nr.placement)===It)))return{data:{index:wt,overflows:De},reset:{placement:ge}};let or=(Tr=De.filter(sr=>sr.overflows[0]<=0).sort((sr,nr)=>sr.overflows[1]-nr.overflows[1])[0])==null?void 0:Tr.placement;if(!or)switch(X){case"bestFit":{var xr;let sr=(xr=De.filter(nr=>{if(Wt){let ar=jr(nr.placement);return ar===It||ar==="y"}return!0}).map(nr=>[nr.placement,nr.overflows.filter(ar=>ar>0).reduce((ar,Sa)=>ar+Sa,0)]).sort((nr,ar)=>nr[1]-ar[1])[0])==null?void 0:xr[0];sr&&(or=sr);break}case"initialPlacement":or=f;break}if(s!==or)return{reset:{placement:or}}}return{}}}};var $T=new Set(["left","top"]);async function zT(a,o){let{placement:t,platform:r,elements:s}=a,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),p=vi(t),f=Po(t),T=jr(t)==="y",L=$T.has(p)?-1:1,U=d&&T?-1:1,q=Ro(o,a),{mainAxis:Q,crossAxis:X,alignmentAxis:it}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return f&&typeof it=="number"&&(X=f==="end"?it*-1:it),T?{x:X*U,y:Q*L}:{x:Q*L,y:X*U}}var Yf=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,r;let{x:s,y:d,placement:p,middlewareData:f}=o,T=await zT(o,a);return p===((t=f.offset)==null?void 0:t.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+T.x,y:d+T.y,data:{...T,placement:p}}}}},Kf=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:p=!1,limiter:f={fn:lt=>{let{x:gt,y:It}=lt;return{x:gt,y:It}}},...T}=Ro(a,o),L={x:t,y:r},U=await Hl(o,T),q=jr(vi(s)),Q=Jc(q),X=L[Q],it=L[q];if(d){let lt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",It=X+U[lt],Ct=X-U[gt];X=Vl(It,X,Ct)}if(p){let lt=q==="y"?"top":"left",gt=q==="y"?"bottom":"right",It=it+U[lt],Ct=it-U[gt];it=Vl(It,it,Ct)}let dt=f.fn({...o,[Q]:X,[q]:it});return{...dt,data:{x:dt.x-t,y:dt.y-r,enabled:{[Q]:d,[q]:p}}}}}};var Wf=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,r;let{placement:s,rects:d,platform:p,elements:f}=o,{apply:T=()=>{},...L}=Ro(a,o),U=await Hl(o,L),q=vi(s),Q=Po(s),X=jr(s)==="y",{width:it,height:dt}=d.floating,lt,gt;q==="top"||q==="bottom"?(lt=q,gt=Q===(await(p.isRTL==null?void 0:p.isRTL(f.floating))?"start":"end")?"left":"right"):(gt=q,lt=Q==="end"?"top":"bottom");let It=dt-U.top-U.bottom,Ct=it-U.left-U.right,Kt=Wr(dt-U[lt],It),Vt=Wr(it-U[gt],Ct),Wt=!o.middlewareData.shift,te=Kt,pe=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(pe=Ct),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(te=It),Wt&&!Q){let De=Oe(U.left,0),ir=Oe(U.right,0),Tr=Oe(U.top,0),xr=Oe(U.bottom,0);X?pe=it-2*(De!==0||ir!==0?De+ir:Oe(U.left,U.right)):te=dt-2*(Tr!==0||xr!==0?Tr+xr:Oe(U.top,U.bottom))}await T({...o,availableWidth:pe,availableHeight:te});let Er=await p.getDimensions(f.floating);return it!==Er.width||dt!==Er.height?{reset:{rects:!0}}:{}}}};function Gl(){return typeof window<"u"}function Fo(a){return qf(a)?(a.nodeName||"").toLowerCase():"#document"}function Ge(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function kr(a){var o;return(o=(qf(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function qf(a){return Gl()?a instanceof Node||a instanceof Ge(a).Node:!1}function mr(a){return Gl()?a instanceof Element||a instanceof Ge(a).Element:!1}function Nr(a){return Gl()?a instanceof HTMLElement||a instanceof Ge(a).HTMLElement:!1}function jf(a){return!Gl()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Ge(a).ShadowRoot}var VT=new Set(["inline","contents"]);function Os(a){let{overflow:o,overflowX:t,overflowY:r,display:s}=ur(a);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!VT.has(s)}var BT=new Set(["table","td","th"]);function Xf(a){return BT.has(Fo(a))}var UT=[":popover-open",":modal"];function Kn(a){return UT.some(o=>{try{return a.matches(o)}catch{return!1}})}var HT=["transform","translate","scale","rotate","perspective"],GT=["transform","translate","scale","rotate","perspective","filter"],YT=["paint","layout","strict","content"];function Yl(a){let o=Kl(),t=mr(a)?ur(a):a;return HT.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||GT.some(r=>(t.willChange||"").includes(r))||YT.some(r=>(t.contain||"").includes(r))}function Zf(a){let o=gi(a);for(;Nr(o)&&!$o(o);){if(Yl(o))return o;if(Kn(o))return null;o=gi(o)}return null}function Kl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var KT=new Set(["html","body","#document"]);function $o(a){return KT.has(Fo(a))}function ur(a){return Ge(a).getComputedStyle(a)}function Wn(a){return mr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function gi(a){if(Fo(a)==="html")return a;let o=a.assignedSlot||a.parentNode||jf(a)&&a.host||kr(a);return jf(o)?o.host:o}function Qf(a){let o=gi(a);return $o(o)?a.ownerDocument?a.ownerDocument.body:a.body:Nr(o)&&Os(o)?o:Qf(o)}function Ls(a,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=Qf(a),d=s===((r=a.ownerDocument)==null?void 0:r.body),p=Ge(s);if(d){let f=Wl(p);return o.concat(p,p.visualViewport||[],Os(s)?s:[],f&&t?Ls(f):[])}return o.concat(s,Ls(s,[],t))}function Wl(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function ev(a){let o=ur(a),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Nr(a),d=s?a.offsetWidth:t,p=s?a.offsetHeight:r,f=Gn(t)!==d||Gn(r)!==p;return f&&(t=d,r=p),{width:t,height:r,$:f}}function rh(a){return mr(a)?a:a.contextElement}function Ms(a){let o=rh(a);if(!Nr(o))return wr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=ev(o),p=(d?Gn(t.width):t.width)/r,f=(d?Gn(t.height):t.height)/s;return(!p||!Number.isFinite(p))&&(p=1),(!f||!Number.isFinite(f))&&(f=1),{x:p,y:f}}var WT=wr(0);function rv(a){let o=Ge(a);return!Kl()||!o.visualViewport?WT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function jT(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==Ge(a)?!1:o}function zo(a,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),d=rh(a),p=wr(1);o&&(r?mr(r)&&(p=Ms(r)):p=Ms(a));let f=jT(d,t,r)?rv(d):wr(0),T=(s.left+f.x)/p.x,L=(s.top+f.y)/p.y,U=s.width/p.x,q=s.height/p.y;if(d){let Q=Ge(d),X=r&&mr(r)?Ge(r):r,it=Q,dt=Wl(it);for(;dt&&r&&X!==it;){let lt=Ms(dt),gt=dt.getBoundingClientRect(),It=ur(dt),Ct=gt.left+(dt.clientLeft+parseFloat(It.paddingLeft))*lt.x,Kt=gt.top+(dt.clientTop+parseFloat(It.paddingTop))*lt.y;T*=lt.x,L*=lt.y,U*=lt.x,q*=lt.y,T+=Ct,L+=Kt,it=Ge(dt),dt=Wl(it)}}return Do({width:U,height:q,x:T,y:L})}function ih(a,o){let t=Wn(a).scrollLeft;return o?o.left+t:zo(kr(a)).left+t}function iv(a,o,t){t===void 0&&(t=!1);let r=a.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:ih(a,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function qT(a){let{elements:o,rect:t,offsetParent:r,strategy:s}=a,d=s==="fixed",p=kr(r),f=o?Kn(o.floating):!1;if(r===p||f&&d)return t;let T={scrollLeft:0,scrollTop:0},L=wr(1),U=wr(0),q=Nr(r);if((q||!q&&!d)&&((Fo(r)!=="body"||Os(p))&&(T=Wn(r)),Nr(r))){let X=zo(r);L=Ms(r),U.x=X.x+r.clientLeft,U.y=X.y+r.clientTop}let Q=p&&!q&&!d?iv(p,T,!0):wr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-T.scrollLeft*L.x+U.x+Q.x,y:t.y*L.y-T.scrollTop*L.y+U.y+Q.y}}function XT(a){return Array.from(a.getClientRects())}function ZT(a){let o=kr(a),t=Wn(a),r=a.ownerDocument.body,s=Oe(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=Oe(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),p=-t.scrollLeft+ih(a),f=-t.scrollTop;return ur(r).direction==="rtl"&&(p+=Oe(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:p,y:f}}function QT(a,o){let t=Ge(a),r=kr(a),s=t.visualViewport,d=r.clientWidth,p=r.clientHeight,f=0,T=0;if(s){d=s.width,p=s.height;let L=Kl();(!L||L&&o==="fixed")&&(f=s.offsetLeft,T=s.offsetTop)}return{width:d,height:p,x:f,y:T}}var JT=new Set(["absolute","fixed"]);function tx(a,o){let t=zo(a,!0,o==="fixed"),r=t.top+a.clientTop,s=t.left+a.clientLeft,d=Nr(a)?Ms(a):wr(1),p=a.clientWidth*d.x,f=a.clientHeight*d.y,T=s*d.x,L=r*d.y;return{width:p,height:f,x:T,y:L}}function Jf(a,o,t){let r;if(o==="viewport")r=QT(a,t);else if(o==="document")r=ZT(kr(a));else if(mr(o))r=tx(o,t);else{let s=rv(a);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return Do(r)}function ov(a,o){let t=gi(a);return t===o||!mr(t)||$o(t)?!1:ur(t).position==="fixed"||ov(t,o)}function ex(a,o){let t=o.get(a);if(t)return t;let r=Ls(a,[],!1).filter(f=>mr(f)&&Fo(f)!=="body"),s=null,d=ur(a).position==="fixed",p=d?gi(a):a;for(;mr(p)&&!$o(p);){let f=ur(p),T=Yl(p);!T&&f.position==="fixed"&&(s=null),(d?!T&&!s:!T&&f.position==="static"&&!!s&&JT.has(s.position)||Os(p)&&!T&&ov(a,p))?r=r.filter(U=>U!==p):s=f,p=gi(p)}return o.set(a,r),r}function rx(a){let{element:o,boundary:t,rootBoundary:r,strategy:s}=a,p=[...t==="clippingAncestors"?Kn(o)?[]:ex(o,this._c):[].concat(t),r],f=p[0],T=p.reduce((L,U)=>{let q=Jf(o,U,s);return L.top=Oe(q.top,L.top),L.right=Wr(q.right,L.right),L.bottom=Wr(q.bottom,L.bottom),L.left=Oe(q.left,L.left),L},Jf(o,f,s));return{width:T.right-T.left,height:T.bottom-T.top,x:T.left,y:T.top}}function ix(a){let{width:o,height:t}=ev(a);return{width:o,height:t}}function ox(a,o,t){let r=Nr(o),s=kr(o),d=t==="fixed",p=zo(a,!0,d,o),f={scrollLeft:0,scrollTop:0},T=wr(0);function L(){T.x=ih(s)}if(r||!r&&!d)if((Fo(o)!=="body"||Os(s))&&(f=Wn(o)),r){let X=zo(o,!0,d,o);T.x=X.x+o.clientLeft,T.y=X.y+o.clientTop}else s&&L();d&&!r&&s&&L();let U=s&&!r&&!d?iv(s,f):wr(0),q=p.left+f.scrollLeft-T.x-U.x,Q=p.top+f.scrollTop-T.y-U.y;return{x:q,y:Q,width:p.width,height:p.height}}function eh(a){return ur(a).position==="static"}function tv(a,o){if(!Nr(a)||ur(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return kr(a)===t&&(t=t.ownerDocument.body),t}function sv(a,o){let t=Ge(a);if(Kn(a))return t;if(!Nr(a)){let s=gi(a);for(;s&&!$o(s);){if(mr(s)&&!eh(s))return s;s=gi(s)}return t}let r=tv(a,o);for(;r&&Xf(r)&&eh(r);)r=tv(r,o);return r&&$o(r)&&eh(r)&&!Yl(r)?t:r||Zf(a)||t}var sx=async function(a){let o=this.getOffsetParent||sv,t=this.getDimensions,r=await t(a.floating);return{reference:ox(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nx(a){return ur(a).direction==="rtl"}var ax={convertOffsetParentRelativeRectToViewportRelativeRect:qT,getDocumentElement:kr,getClippingRect:rx,getOffsetParent:sv,getElementRects:sx,getClientRects:XT,getDimensions:ix,getScale:Ms,isElement:mr,isRTL:nx};function nv(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function lx(a,o){let t=null,r,s=kr(a);function d(){var f;clearTimeout(r),(f=t)==null||f.disconnect(),t=null}function p(f,T){f===void 0&&(f=!1),T===void 0&&(T=1),d();let L=a.getBoundingClientRect(),{left:U,top:q,width:Q,height:X}=L;if(f||o(),!Q||!X)return;let it=Yn(q),dt=Yn(s.clientWidth-(U+Q)),lt=Yn(s.clientHeight-(q+X)),gt=Yn(U),Ct={rootMargin:-it+"px "+-dt+"px "+-lt+"px "+-gt+"px",threshold:Oe(0,Wr(1,T))||1},Kt=!0;function Vt(Wt){let te=Wt[0].intersectionRatio;if(te!==T){if(!Kt)return p();te?p(!1,te):r=setTimeout(()=>{p(!1,1e-7)},1e3)}te===1&&!nv(L,a.getBoundingClientRect())&&p(),Kt=!1}try{t=new IntersectionObserver(Vt,{...Ct,root:s.ownerDocument})}catch{t=new IntersectionObserver(Vt,Ct)}t.observe(a)}return p(!0),d}function av(a,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:T=!1}=r,L=rh(a),U=s||d?[...L?Ls(L):[],...Ls(o)]:[];U.forEach(gt=>{s&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let q=L&&f?lx(L,t):null,Q=-1,X=null;p&&(X=new ResizeObserver(gt=>{let[It]=gt;It&&It.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),L&&!T&&X.observe(L),X.observe(o));let it,dt=T?zo(a):null;T&<();function lt(){let gt=zo(a);dt&&!nv(dt,gt)&&t(),dt=gt,it=requestAnimationFrame(lt)}return t(),()=>{var gt;U.forEach(It=>{s&&It.removeEventListener("scroll",t),d&&It.removeEventListener("resize",t)}),q==null||q(),(gt=X)==null||gt.disconnect(),X=null,T&&cancelAnimationFrame(it)}}var lv=Yf;var dv=Kf,cv=Gf,hv=Wf;var pv=Hf;var mv=(a,o,t)=>{let r=new Map,s={platform:ax,...t},d={...s.platform,_c:r};return Uf(a,o,{...s,platform:d})};var jl=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,r,...s){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let d=window.setInterval(t,r,...s);return this.nameToIntervalId.set(o,d),d}clearInterval(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);r!==void 0&&clearInterval(r),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,r,...s){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let d=window.setTimeout((...p)=>{t(...p),this.nameToTimeoutId.delete(o)},r,...s);return this.nameToTimeoutId.set(o,d),d}clearTimeout(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);r!==void 0&&window.clearTimeout(r),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var r;if(typeof t=="number"){let s=t;return[(r=[...o.entries()].find(([,p])=>p===t))==null?void 0:r[0],s]}return[t,o.get(t)]}};var bi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var dx=B`
|
|
2571
2571
|
:host {
|
|
2572
2572
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2573
2573
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2689,7 +2689,7 @@
|
|
|
2689
2689
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2690
2690
|
border-bottom-left-radius: 100%;
|
|
2691
2691
|
}
|
|
2692
|
-
`,uv=[dx];var Xl=z.constructTagName("popoverportal"),ql=class extends j{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Zl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(r=>{let s=parseInt(r,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${r}`);return s});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,s=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=r,t.style.bottom=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${s}px`,t.style.width=r,t.style.right=`calc(-1.5 * (${r}))`;break;case"right":t.style.height=`${s}px`,t.style.width=r,t.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:t.style.height=r,t.style.top=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&!Array.from(r.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Xl),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),r.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,r;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateAriaModal(){this.popover.role===J.DIALOG||this.popover.role===J.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,r;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(r=this.popover.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var U;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:d,y:m}=o,v=this.popover.arrowElement.getBoundingClientRect(),T=(U=this.popover.arrowElement.offsetParent)==null?void 0:U.getBoundingClientRect();if(!this.arrowPixelChange){let q=T!=null&&T[s]?12-Math.abs(v[s]-T[s]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends kt(xl(bl(gl(j)))){constructor(){super();this.depthManager=new Hi(this);this.id="";this.triggerID="";this.trigger=St.TRIGGER;this.placement=St.PLACEMENT;this.color=St.COLOR;this.visible=St.VISIBLE;this.offset=St.OFFSET;this.boundary=St.BOUNDARY;this.boundaryRoot=St.BOUNDARY_ROOT;this.focusTrap=St.FOCUS_TRAP;this.preventScroll=St.PREVENT_SCROLL;this.showArrow=St.ARROW;this.closeButton=St.CLOSE_BUTTON;this.interactive=St.INTERACTIVE;this.delay=St.DELAY;this.hideOnEscape=St.HIDE_ON_ESCAPE;this.propagateEventOnEscape=St.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=St.HIDE_ON_BLUR;this.hideOnOutsideClick=St.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=St.FOCUS_BACK;this.backdrop=St.BACKDROP;this.isBackdropInvisible=St.IS_BACKDROP_INVISIBLE;this.disableFlip=St.DISABLE_FLIP;this.size=St.SIZE;this.closeButtonAriaLabel=null;this.strategy=St.STRATEGY;this.role=St.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=St.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=St.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=St.ANIMATION_FRAME;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new jl(this);this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(He).includes(m)).length>0?this.trigger:St.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 r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&(this.hide(),bi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Z.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),bi.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:r}=t;this.contains(r)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var r,s,d,m;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(m=(d=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:d.querySelector(".mdc-focus-ring"))!=null&&m.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Kr.OPEN)};this.startCloseDelay=()=>{if(this.cancelOpenDelay(),!this.interactive)this.hide();else{let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Kr.HOVER,t,this.closeDelay):(this.timers.clearTimeout(Kr.HOVER),t())}};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Kr.HOVER),this.timers.clearTimeout(Kr.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Kr.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Kr.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let r=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,d=[dv({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],m=this.offset;if(this.disableFlip||d.push(cv({boundary:r,rootBoundary:s})),this.size){let v=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},T=this.renderRoot.querySelector('[part="popover-content"]');d.push(hv({boundary:r,rootBoundary:s,apply({availableHeight:L}){T&&(Object.assign(T.style,{maxHeight:`${L}px`,overflowY:"auto"}),v(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let v=this.arrowElement.offsetHeight,T=Math.sqrt(2*v**2)/2;m+=T,d.push(pv({element:this.arrowElement,padding:12}))}d.push(lv(m)),this.floatingUICleanupFunction=av(t,this,async()=>{let{triggerElement:v}=this;if(!v)return;let T=this.adjustPlacementForRtl(this.placement),{x:L,y:U,middlewareData:q,placement:Q}=await mv(v,this,{placement:T,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,U),q.arrow&&this.arrowElement&&this.utils.updateArrowStyle(q.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Zl(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(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),bi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(r=this.floatingUICleanupFunction)==null||r.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),bi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Nt).includes(this.placement)?this.placement:St.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Lo).includes(this.color)?this.color:St.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,r){var d,m;let{triggerElement:s}=this;t===r||!s||(r&&!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 v,T;this.interactive&&this.focusTrap&&((v=this.activateFocusTrap)==null||v.call(this),(T=this.setInitialFocus)==null||T.call(this))},0),bi.onShowPopover(this)):(this.depthManager.popHost(),(d=this.floatingUICleanupFunction)==null||d.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(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),bi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Kr.OPEN,t,this.openDelay):(this.timers.clearTimeout(Kr.OPEN),t())}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Nt.LEFT:return Nt.RIGHT;case Nt.LEFT_START:return Nt.RIGHT_START;case Nt.LEFT_END:return Nt.RIGHT_END;case Nt.RIGHT:return Nt.LEFT;case Nt.RIGHT_START:return Nt.LEFT_START;case Nt.RIGHT_END:return Nt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,_`
|
|
2692
|
+
`,uv=[dx];var Xl=z.constructTagName("popoverportal"),ql=class extends j{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Zl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(r=>{let s=parseInt(r,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${r}`);return s});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,s=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=r,t.style.bottom=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${s}px`,t.style.width=r,t.style.right=`calc(-1.5 * (${r}))`;break;case"right":t.style.height=`${s}px`,t.style.width=r,t.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:t.style.height=r,t.style.top=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&!Array.from(r.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Xl),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),r.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,r;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateAriaModal(){this.popover.role===J.DIALOG||this.popover.role===J.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,r;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(r=this.popover.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var U;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:d,y:p}=o,f=this.popover.arrowElement.getBoundingClientRect(),T=(U=this.popover.arrowElement.offsetParent)==null?void 0:U.getBoundingClientRect();if(!this.arrowPixelChange){let q=T!=null&&T[s]?12-Math.abs(f[s]-T[s]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:p!=null?`${p}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends kt(xl(bl(gl(j)))){constructor(){super();this.depthManager=new Hi(this);this.id="";this.triggerID="";this.trigger=At.TRIGGER;this.placement=At.PLACEMENT;this.color=At.COLOR;this.visible=At.VISIBLE;this.offset=At.OFFSET;this.boundary=At.BOUNDARY;this.boundaryRoot=At.BOUNDARY_ROOT;this.focusTrap=At.FOCUS_TRAP;this.preventScroll=At.PREVENT_SCROLL;this.showArrow=At.ARROW;this.closeButton=At.CLOSE_BUTTON;this.interactive=At.INTERACTIVE;this.delay=At.DELAY;this.hideOnEscape=At.HIDE_ON_ESCAPE;this.propagateEventOnEscape=At.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=At.HIDE_ON_BLUR;this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=At.FOCUS_BACK;this.backdrop=At.BACKDROP;this.isBackdropInvisible=At.IS_BACKDROP_INVISIBLE;this.disableFlip=At.DISABLE_FLIP;this.size=At.SIZE;this.closeButtonAriaLabel=null;this.strategy=At.STRATEGY;this.role=At.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=At.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=At.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=At.ANIMATION_FRAME;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new jl(this);this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(p=>Object.values(He).includes(p)).length>0?this.trigger:At.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 r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&(this.hide(),bi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Z.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),bi.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:r}=t;this.contains(r)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var r,s,d,p;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(p=(d=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:d.querySelector(".mdc-focus-ring"))!=null&&p.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Kr.OPEN)};this.startCloseDelay=()=>{if(this.cancelOpenDelay(),!this.interactive)this.hide();else{let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Kr.HOVER,t,this.closeDelay):(this.timers.clearTimeout(Kr.HOVER),t())}};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Kr.HOVER),this.timers.clearTimeout(Kr.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Kr.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Kr.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let r=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,d=[dv({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],p=this.offset;if(this.disableFlip||d.push(cv({boundary:r,rootBoundary:s})),this.size){let f=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},T=this.renderRoot.querySelector('[part="popover-content"]');d.push(hv({boundary:r,rootBoundary:s,apply({availableHeight:L}){T&&(Object.assign(T.style,{maxHeight:`${L}px`,overflowY:"auto"}),f(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight,T=Math.sqrt(2*f**2)/2;p+=T,d.push(pv({element:this.arrowElement,padding:12}))}d.push(lv(p)),this.floatingUICleanupFunction=av(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let T=this.adjustPlacementForRtl(this.placement),{x:L,y:U,middlewareData:q,placement:Q}=await mv(f,this,{placement:T,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,U),q.arrow&&this.arrowElement&&this.utils.updateArrowStyle(q.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Zl(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(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),bi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(r=this.floatingUICleanupFunction)==null||r.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),bi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Nt).includes(this.placement)?this.placement:At.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Oo).includes(this.color)?this.color:At.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,r){var d,p;let{triggerElement:s}=this;t===r||!s||(r&&!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,T;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(T=this.setInitialFocus)==null||T.call(this))},0),bi.onShowPopover(this)):(this.depthManager.popHost(),(d=this.floatingUICleanupFunction)==null||d.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(),(p=this.deactivateFocusTrap)==null||p.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),bi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Kr.OPEN,t,this.openDelay):(this.timers.clearTimeout(Kr.OPEN),t())}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Nt.LEFT:return Nt.RIGHT;case Nt.LEFT_START:return Nt.RIGHT_START;case Nt.LEFT_END:return Nt.RIGHT_END;case Nt.RIGHT:return Nt.LEFT;case Nt.RIGHT_START:return Nt.LEFT_START;case Nt.RIGHT_END:return Nt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,_`
|
|
2693
2693
|
<div part="popover-hover-bridge"></div>
|
|
2694
2694
|
${this.closeButton?_` <mdc-button
|
|
2695
2695
|
part="popover-close"
|
|
@@ -2703,7 +2703,7 @@
|
|
|
2703
2703
|
<div part="popover-content">
|
|
2704
2704
|
<slot></slot>
|
|
2705
2705
|
</div>
|
|
2706
|
-
`}};_t.styles=[...j.styles,...uv],
|
|
2706
|
+
`}};_t.styles=[...j.styles,...uv],m([u({type:String,reflect:!0})],_t.prototype,"id",2),m([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),m([u({type:String,reflect:!0})],_t.prototype,"trigger",2),m([u({type:String,reflect:!0})],_t.prototype,"placement",2),m([u({type:String,reflect:!0})],_t.prototype,"color",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),m([u({type:Number,reflect:!0})],_t.prototype,"offset",2),m([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),m([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),m([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),m([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),m([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),m([u({type:String,reflect:!0})],_t.prototype,"delay",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),m([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),m([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),m([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),m([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),m([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0})],_t.prototype,"strategy",2),m([u({type:String,reflect:!0})],_t.prototype,"role",2),m([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),m([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),m([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),m([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2);var Ye=_t;var fv=z.constructTagName("toggletip"),Vo={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Nt.TOP,CLICK:He.CLICK,SHOW_ARROW:!0};var cx=B`
|
|
2707
2707
|
:host {
|
|
2708
2708
|
--mdc-toggletip-max-width: 400px;
|
|
2709
2709
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -2733,7 +2733,7 @@
|
|
|
2733
2733
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
|
2734
2734
|
margin-left: 2rem;
|
|
2735
2735
|
}
|
|
2736
|
-
`,vv=[cx];var Wi=class extends Ye{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=
|
|
2736
|
+
`,vv=[cx];var Wi=class extends Ye{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=Vo.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:Vo.CLOSE_BUTTON,this.closeButtonAriaLabel=Vo.CLOSE_BUTTON_ARIA_LABEL,this.trigger=Vo.CLICK,this.showArrow=Vo.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,r;return((r=(t=this.defaultSlotNodes)==null?void 0:t.map(s=>s.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(Nt).includes(this.placement)||(this.placement=Vo.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return _`
|
|
2737
2737
|
${super.render()}
|
|
2738
2738
|
<mdc-screenreaderannouncer
|
|
2739
2739
|
identity="${tt(this.screenreaderAnnouncerIdentity)}"
|
|
@@ -2741,12 +2741,12 @@
|
|
|
2741
2741
|
delay="300"
|
|
2742
2742
|
>
|
|
2743
2743
|
</mdc-screenreaderannouncer>
|
|
2744
|
-
`}};Wi.styles=[...Ye.styles,...vv],
|
|
2744
|
+
`}};Wi.styles=[...Ye.styles,...vv],m([jm()],Wi.prototype,"defaultSlotNodes",2),m([ut()],Wi.prototype,"currentAnnouncement",2),m([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Wi.prototype,"screenreaderAnnouncerIdentity",2),m([u({type:String,reflect:!0})],Wi.prototype,"placement",2);var oh=Wi;function Ql(a,o=500){let t,r=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...s)},o)};return r.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},r}var gv=z.constructTagName("screenreaderannouncer"),hx={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Bo={ARIA_LIVE:hx.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var px=[B`
|
|
2745
2745
|
:host {
|
|
2746
2746
|
display: none;
|
|
2747
2747
|
visibility: hidden;
|
|
2748
2748
|
}
|
|
2749
|
-
`],bv=px;var qr=class extends j{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=
|
|
2749
|
+
`],bv=px;var qr=class extends j{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Bo.ARIA_LIVE;this.delay=Bo.DELAY;this.timeout=Bo.TIMEOUT;this.debounceTime=Bo.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(t,r,s,d){var p;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${Ie()}`,T=document.createElement("div");T.setAttribute("id",f),T.setAttribute("aria-live",d),(p=this.getElementByIdAcrossShadowRoot(this.identity))==null||p.appendChild(T);let L=window.setTimeout(()=>{let U=document.createElement("p");U.textContent=t,T.appendChild(U),this.ariaLiveAnnouncementIds.push(f);let q=window.setTimeout(()=>{T.remove()},s);this.timeOutIds.push(q)},r);this.timeOutIds.push(L)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var r;(r=this.getElementByIdAcrossShadowRoot(t))==null||r.remove()})}getElementByIdAcrossShadowRoot(t){var d;let r=document.getElementById(t);if(r)return r;let s=this.findModalAncestor();return((d=s==null?void 0:s.shadowRoot)==null?void 0:d.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let r=document.createElement("style");r.textContent=`
|
|
2750
2750
|
.mdc-screenreaderannouncer__visually-hidden {
|
|
2751
2751
|
clip: rect(0 0 0 0);
|
|
2752
2752
|
clip-path: inset(50%);
|
|
@@ -2756,7 +2756,7 @@
|
|
|
2756
2756
|
white-space: nowrap;
|
|
2757
2757
|
width: 1px;
|
|
2758
2758
|
}
|
|
2759
|
-
`,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Ql(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
|
2759
|
+
`,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Ql(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Bo.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=Bo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};qr.styles=[...j.styles,...bv],m([u({type:String,reflect:!0})],qr.prototype,"announcement",2),m([u({type:String,reflect:!0})],qr.prototype,"identity",2),m([u({type:String,reflect:!0,attribute:"data-aria-live"})],qr.prototype,"dataAriaLive",2),m([u({type:Number,reflect:!0})],qr.prototype,"delay",2),m([u({type:Number,reflect:!0})],qr.prototype,"timeout",2),m([u({type:Number,reflect:!0,attribute:"debounce-time"})],qr.prototype,"debounceTime",2);var sh=qr;sh.register(gv);var mx=sh;oh.register(fv);var ux=oh;var Ce=a=>{class o extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,m([u({reflect:!0,type:String})],o.prototype,"name",2),m([u({reflect:!0,type:String})],o.prototype,"value",2),m([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),m([Zt("input")],o.prototype,"inputElement",2),o};var fx=B`
|
|
2760
2760
|
:host {
|
|
2761
2761
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
|
2762
2762
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
|
@@ -2836,16 +2836,16 @@
|
|
|
2836
2836
|
}
|
|
2837
2837
|
`,yv=[bt,fx];var Ev=a=>({[zt.ERROR]:"error-legacy-badge-filled",[zt.WARNING]:"warning-badge-filled",[zt.SUCCESS]:"check-circle-badge-filled",[zt.PRIORITY]:"priority-badge-filled",[zt.DEFAULT]:""})[a]||"";var Ke=class extends Ut(j){constructor(){super(...arguments);this.inputId=`mdc-el-${Ie()}`;this.required=!1;this.helpTextType=Ot.VALIDATION;this.toggletipPlacement=Ot.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Ot.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?_`<label for="${this.inputId}" id="${Ot.HEADING_ID}" part="label">${this.label}</label>`:_` <mdc-text
|
|
2838
2838
|
id="${Ot.HEADING_ID}"
|
|
2839
|
-
tagname="${
|
|
2840
|
-
type="${
|
|
2839
|
+
tagname="${Un.TAGNAME}"
|
|
2840
|
+
type="${Un.HEADER_TYPE}"
|
|
2841
2841
|
part="label"
|
|
2842
2842
|
>${this.label}</mdc-text
|
|
2843
2843
|
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=Ev(this.helpTextType||Ot.VALIDATION);return t&&!this.disabled?_`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:W}renderHelpText(){return this.helpText?_`
|
|
2844
2844
|
<mdc-text
|
|
2845
2845
|
id="${Ot.HELPER_TEXT_ID}"
|
|
2846
2846
|
part="help-text"
|
|
2847
|
-
tagname=${
|
|
2848
|
-
type=${
|
|
2847
|
+
tagname=${Un.TAGNAME}
|
|
2848
|
+
type=${Un.TYPE}
|
|
2849
2849
|
>
|
|
2850
2850
|
${this.helpText}
|
|
2851
2851
|
</mdc-text>
|
|
@@ -2876,7 +2876,7 @@
|
|
|
2876
2876
|
</div>`}renderHelperText(){return this.helpText?_`<div part="help-text-container">
|
|
2877
2877
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
|
2878
2878
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
|
2879
|
-
</div>`:W}};Ke.styles=[...j.styles,...yv],
|
|
2879
|
+
</div>`:W}};Ke.styles=[...j.styles,...yv],m([u({reflect:!0,type:String})],Ke.prototype,"label",2),m([u({type:Boolean,reflect:!0,attribute:"required"})],Ke.prototype,"required",2),m([u({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),m([u({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2),m([u({type:String,reflect:!0,attribute:"toggletip-text"})],Ke.prototype,"toggletipText",2),m([u({type:String,reflect:!0,attribute:"toggletip-placement"})],Ke.prototype,"toggletipPlacement",2),m([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],Ke.prototype,"toggletipStrategy",2),m([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Ke.prototype,"infoIconAriaLabel",2),m([u({type:Boolean,reflect:!0})],Ke.prototype,"readonly",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ke.prototype,"softDisabled",2);var de=Ke;var vx=[B`
|
|
2880
2880
|
:host {
|
|
2881
2881
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
2882
2882
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -2946,7 +2946,7 @@
|
|
|
2946
2946
|
:host([soft-disabled]) {
|
|
2947
2947
|
pointer-events: none;
|
|
2948
2948
|
}
|
|
2949
|
-
`,...
|
|
2949
|
+
`,...St(!0)],Tv=vx;var ji=class extends kt(kt(Ae(Ce(Ht(de))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.helpTextType=Lf.DEFAULT;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(t){var s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault(),r===Z.ENTER&&((s=this.form)==null||s.requestSubmit(),t.preventDefault())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return _`
|
|
2950
2950
|
<mdc-staticcheckbox
|
|
2951
2951
|
part="static-checkbox"
|
|
2952
2952
|
class="mdc-focus-ring"
|
|
@@ -2976,7 +2976,7 @@
|
|
|
2976
2976
|
/>
|
|
2977
2977
|
</mdc-staticcheckbox>
|
|
2978
2978
|
${this.renderLabelAndHelperText()}
|
|
2979
|
-
`}};ji.styles=[...de.styles,...Tv],
|
|
2979
|
+
`}};ji.styles=[...de.styles,...Tv],m([u({type:Boolean,reflect:!0})],ji.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],ji.prototype,"indeterminate",2),m([u({type:Boolean,reflect:!0})],ji.prototype,"autofocus",2),m([u({type:String,reflect:!0,attribute:"help-text-type"})],ji.prototype,"helpTextType",2);var nh=ji;nh.register(Nf);var gx=nh;var xv=z.constructTagName("staticchip"),ah={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Jl={COLOR:ah.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var bx=B`
|
|
2980
2980
|
:host {
|
|
2981
2981
|
height: 1.5rem;
|
|
2982
2982
|
gap: 0.25rem;
|
|
@@ -3048,12 +3048,12 @@
|
|
|
3048
3048
|
--mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
|
|
3049
3049
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
|
|
3050
3050
|
}
|
|
3051
|
-
`,Av=[bt,bx];var
|
|
3051
|
+
`,Av=[bt,bx];var Rs=class extends Qt(j){constructor(){super(...arguments);this.color=Jl.COLOR}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return _`
|
|
3052
3052
|
${this.renderIcon()}
|
|
3053
3053
|
${this.label?_`<mdc-text part="label" type="${Jl.TEXT_TYPE}" tagname="${Jl.TAG_NAME}"
|
|
3054
3054
|
>${this.label}</mdc-text
|
|
3055
3055
|
>`:W}
|
|
3056
|
-
`}};
|
|
3056
|
+
`}};Rs.styles=[...j.styles,...Av],m([u({type:String,reflect:!0})],Rs.prototype,"color",2),m([u({type:String})],Rs.prototype,"label",2);var jn=Rs;var Sv=z.constructTagName("chip"),Ps={COLOR:ah.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],ROLE:J.BUTTON};var yx=B`
|
|
3057
3057
|
:host {
|
|
3058
3058
|
cursor: pointer;
|
|
3059
3059
|
height: 1.5rem;
|
|
@@ -3147,12 +3147,12 @@
|
|
|
3147
3147
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3148
3148
|
cursor: auto;
|
|
3149
3149
|
}
|
|
3150
|
-
`,Iv=[bt,yx,...
|
|
3150
|
+
`,Iv=[bt,yx,...St()];var Ds=class extends Qt(ae){constructor(){super(...arguments);this.color=Ps.COLOR}connectedCallback(){super.connectedCallback(),this.role=Ps.ROLE,this.size=Ps.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return _`
|
|
3151
3151
|
${this.renderIcon()}
|
|
3152
|
-
${this.label?_`<mdc-text part="label" type="${
|
|
3152
|
+
${this.label?_`<mdc-text part="label" type="${Ps.TEXT_TYPE}" tagname="${Ps.TAG_NAME}"
|
|
3153
3153
|
>${this.label}</mdc-text
|
|
3154
3154
|
>`:W}
|
|
3155
|
-
`}};
|
|
3155
|
+
`}};Ds.styles=[...jn.styles,...Iv],m([u({type:String,reflect:!0})],Ds.prototype,"color",2),m([u({type:String})],Ds.prototype,"label",2);var Fs=Ds;Fs.register(Sv);var Ex=Fs;var _v=z.constructTagName("coachmark"),Uo={COLOR:Oo.CONTRAST,TRIGGER:He.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Ho=class extends Ye{constructor(){super(...arguments);this.trigger=Uo.TRIGGER;this.showArrow=Uo.ARROW;this.closeButton=Uo.CLOSE_BUTTON;this.disableAriaExpanded=Uo.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Uo.COLOR,this.showArrow=Uo.ARROW}};m([u({type:String,reflect:!0})],Ho.prototype,"trigger",2),m([u({type:Boolean,attribute:"show-arrow"})],Ho.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],Ho.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ho.prototype,"disableAriaExpanded",2);var lh=Ho;lh.register(_v);var Tx=lh;var td=z.constructTagName("controltypeprovider"),ed={CONTROL_TYPE:"uncontrolled"},rd=["controlled","uncontrolled"];var xx=td,dh=xx;var id=class extends xe{constructor(){super({context:dh});this.innerControlType=ed.CONTROL_TYPE}static get Context(){return dh}set controlType(t){rd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};m([u({type:String,attribute:"control-type",reflect:!0})],id.prototype,"controlType",1);var ch=id;ch.register(td);var hh=ch;As.register($u);var Ax=As;var qn=z.constructTagName("divider"),Go={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Xn={SOLID:"solid",GRADIENT:"gradient"},fr={POSITIVE:"positive",NEGATIVE:"negative"},Zn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Yo={ORIENTATION:Go.HORIZONTAL,VARIANT:Xn.SOLID,ARROW_DIRECTION:fr.NEGATIVE,BUTTON_DIRECTION:fr.NEGATIVE};var Sx=[bt,B`
|
|
3156
3156
|
:host {
|
|
3157
3157
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
3158
3158
|
--mdc-divider-width: 0.0625rem;
|
|
@@ -3353,11 +3353,11 @@
|
|
|
3353
3353
|
:host([data-hidden]) {
|
|
3354
3354
|
display: none;
|
|
3355
3355
|
}
|
|
3356
|
-
`],Cv=Sx;var qi=class extends j{constructor(){super(...arguments);this.orientation=
|
|
3356
|
+
`],Cv=Sx;var qi=class extends j{constructor(){super(...arguments);this.orientation=Yo.ORIENTATION;this.variant=Yo.VARIANT;this.arrowDirection=Yo.ARROW_DIRECTION;this.buttonPosition=Yo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Xn).includes(t)?t:Yo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(Go).includes(t)?t:Yo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===Go.HORIZONTAL?fr.NEGATIVE:fr.POSITIVE;Object.values(fr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(fr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let r=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",r)}}getArrowIcon(){let t=this.orientation===Go.HORIZONTAL,r=this.arrowDirection===fr.POSITIVE;return t?r?Zn.UP:Zn.DOWN:r?Zn.RIGHT:Zn.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 p;let t=(p=this.shadowRoot)==null?void 0:p.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let s=r.some(f=>f.tagName===Ln.toUpperCase()),d=r.some(f=>f.tagName===li.toUpperCase());s&&!d?this.setAttribute("data-type","mdc-text-divider"):!s&&d&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return _`
|
|
3357
3357
|
<div></div>
|
|
3358
3358
|
<slot @slotchange=${this.inferDividerType}></slot>
|
|
3359
3359
|
<div></div>
|
|
3360
|
-
`}};qi.styles=[...j.styles,...Cv],
|
|
3360
|
+
`}};qi.styles=[...j.styles,...Cv],m([u({type:String,reflect:!0})],qi.prototype,"orientation",2),m([u({type:String,reflect:!0})],qi.prototype,"variant",2),m([u({type:String,attribute:"arrow-direction",reflect:!0})],qi.prototype,"arrowDirection",2),m([u({type:String,attribute:"button-position",reflect:!0})],qi.prototype,"buttonPosition",2);var ph=qi;ph.register(qn);var Ix=ph;var _x=B`
|
|
3361
3361
|
:host([selected]) {
|
|
3362
3362
|
border: 2px solid;
|
|
3363
3363
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
|
@@ -3379,7 +3379,7 @@
|
|
|
3379
3379
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3380
3380
|
cursor: auto;
|
|
3381
3381
|
}
|
|
3382
|
-
`,wv=[_x];var kv=z.constructTagName("filterchip"),mh={ICON_NAME:"check-bold",COLOR:"default"};var
|
|
3382
|
+
`,wv=[_x];var kv=z.constructTagName("filterchip"),mh={ICON_NAME:"check-bold",COLOR:"default"};var Qn=class extends Fs{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=mh.COLOR}setSelected(t){t?(this.iconName=mh.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};Qn.styles=[...Fs.styles,...wv],m([u({type:Boolean,reflect:!0})],Qn.prototype,"selected",2);var uh=Qn;uh.register(kv);var Cx=uh;var wx=B`
|
|
3383
3383
|
:host::part(container) {
|
|
3384
3384
|
display: flex;
|
|
3385
3385
|
flex-direction: column;
|
|
@@ -3402,7 +3402,7 @@
|
|
|
3402
3402
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
|
3403
3403
|
<slot></slot>
|
|
3404
3404
|
</div>
|
|
3405
|
-
`}};od.styles=[...de.styles,...Nv];var fh=od;var Lv=z.constructTagName("formfieldgroup");fh.register(Lv);var sd=fh;
|
|
3405
|
+
`}};od.styles=[...de.styles,...Nv];var fh=od;var Lv=z.constructTagName("formfieldgroup");fh.register(Lv);var sd=fh;kn.register(sl);var kx=kn;Fn.register(_l);var Nx=Fn;var Ko=hi(class extends Hr{constructor(a){if(super(a),a.type!==er.PROPERTY&&a.type!==er.ATTRIBUTE&&a.type!==er.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!hl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===Te||o===W)return o;let t=a.element,r=a.name;if(a.type===er.PROPERTY){if(o===t[r])return Te}else if(a.type===er.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return Te}else if(a.type===er.ATTRIBUTE&&t.getAttribute(r)===o+"")return Te;return pl(a),o}});de.register(kf);var rr=de;var Ov=z.constructTagName("input"),nd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},$s={OFF:"off",ON:"on"},Xi={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Mv={MAX_LENGTH:10,VALIDATION:zt.ERROR},yi={VALIDATION:zt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:$t.TERTIARY,CLEAR_BUTTON_SIZE:cr[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:$s.OFF,INPUT_TYPE:Xi.TEXT};var Lx=[B`
|
|
3406
3406
|
:host {
|
|
3407
3407
|
--mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
|
|
3408
3408
|
--mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -3522,7 +3522,7 @@
|
|
|
3522
3522
|
opacity: 0;
|
|
3523
3523
|
pointer-events: none;
|
|
3524
3524
|
}
|
|
3525
|
-
`,...
|
|
3525
|
+
`,...St(!0)],Rv=Lx;var ce=class extends kt(Ae(Ce(Ht(rr)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=nd.OFF;this.autocomplete=$s.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,r,s){super.attributeChangedCallback(t,r,s),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(d=>{this.onerror&&this.onerror(d)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}handleKeyDown(t){var r;this.getActionForKeyEvent(t)===Z.ENTER&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?_`
|
|
3526
3526
|
<mdc-icon
|
|
3527
3527
|
part="leading-icon"
|
|
3528
3528
|
name=${this.leadingIcon}
|
|
@@ -3550,17 +3550,17 @@
|
|
|
3550
3550
|
@click=${this.clearInputText}
|
|
3551
3551
|
?disabled=${this.disabled||this.readonly||!r}
|
|
3552
3552
|
></mdc-button>
|
|
3553
|
-
`:W}renderInputElement(t,r=!1){var d,
|
|
3553
|
+
`:W}renderInputElement(t,r=!1){var d,p;let s=r?"":this.placeholder;return _`<input
|
|
3554
3554
|
aria-label="${(d=this.dataAriaLabel)!=null?d:""}"
|
|
3555
3555
|
part="input-text"
|
|
3556
3556
|
id="${this.inputId}"
|
|
3557
3557
|
name="${this.name}"
|
|
3558
|
-
.value="${
|
|
3558
|
+
.value="${Ko(this.value)}"
|
|
3559
3559
|
?disabled="${this.disabled}"
|
|
3560
3560
|
?readonly="${this.readonly}"
|
|
3561
3561
|
?required="${this.required}"
|
|
3562
3562
|
type="${t}"
|
|
3563
|
-
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:(
|
|
3563
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:(p=this.dataAriaDescribedby)!=null?p:"")}"
|
|
3564
3564
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
|
3565
3565
|
placeholder=${tt(s)}
|
|
3566
3566
|
minlength=${tt(this.minlength)}
|
|
@@ -3585,7 +3585,7 @@
|
|
|
3585
3585
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
|
3586
3586
|
</div>
|
|
3587
3587
|
${this.helpText?this.renderHelperText():W}
|
|
3588
|
-
`}};ce.styles=[...rr.styles,...Rv],
|
|
3588
|
+
`}};ce.styles=[...rr.styles,...Rv],m([u({type:String})],ce.prototype,"placeholder",2),m([u({type:String,attribute:"prefix-text"})],ce.prototype,"prefixText",2),m([u({type:String,attribute:"leading-icon"})],ce.prototype,"leadingIcon",2),m([u({type:Boolean,attribute:"trailing-button"})],ce.prototype,"trailingButton",2),m([u({type:Number})],ce.prototype,"maxlength",2),m([u({type:Number})],ce.prototype,"minlength",2),m([u({type:String})],ce.prototype,"autocapitalize",2),m([u({type:String})],ce.prototype,"autocomplete",2),m([u({type:String})],ce.prototype,"dirname",2),m([u({type:String})],ce.prototype,"pattern",2),m([u({type:String})],ce.prototype,"list",2),m([u({type:Number})],ce.prototype,"size",2),m([u({type:String,attribute:"clear-aria-label"})],ce.prototype,"clearAriaLabel",2),m([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],ce.prototype,"dataAriaDescribedby",2);var Lr=ce;Lr.register(Ov);var Ox=Lr;var Mx=B`
|
|
3589
3589
|
:host {
|
|
3590
3590
|
height: 1.5rem;
|
|
3591
3591
|
gap: 0.25rem;
|
|
@@ -3621,7 +3621,7 @@
|
|
|
3621
3621
|
width: 1.25rem;
|
|
3622
3622
|
height: 1.25rem;
|
|
3623
3623
|
}
|
|
3624
|
-
`,Pv=[bt,Mx];var ad=z.constructTagName("inputchip"),ld={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var
|
|
3624
|
+
`,Pv=[bt,Mx];var ad=z.constructTagName("inputchip"),ld={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var Wo=class extends Qt(Ut(j)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return _`
|
|
3625
3625
|
<slot name="prefix">
|
|
3626
3626
|
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:W}
|
|
3627
3627
|
</slot>
|
|
@@ -3639,7 +3639,7 @@
|
|
|
3639
3639
|
size="20"
|
|
3640
3640
|
@click="${this.handleClose}"
|
|
3641
3641
|
></mdc-button>
|
|
3642
|
-
`}};
|
|
3642
|
+
`}};Wo.styles=[...j.styles,...Pv],m([u({type:String})],Wo.prototype,"label",2),m([u({type:Boolean})],Wo.prototype,"error",2),m([u({type:String,attribute:"clear-aria-label"})],Wo.prototype,"clearAriaLabel",2);var vh=Wo;vh.register(ad);var Rx=vh;var Px=B`
|
|
3643
3643
|
:host::part(anchor) {
|
|
3644
3644
|
display: flex;
|
|
3645
3645
|
align-items: center;
|
|
@@ -3699,8 +3699,8 @@
|
|
|
3699
3699
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
|
3700
3700
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
|
3701
3701
|
}
|
|
3702
|
-
`,Dv=[Px];var
|
|
3703
|
-
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:W}`}};
|
|
3702
|
+
`,Dv=[Px];var Jn=class extends Qt(Yr){constructor(){super(...arguments);this.size=Ru.LINK_SIZE}getIconSize(){switch(this.size){case El.SMALL:return Tl.SMALL;case El.MIDSIZE:return Tl.MIDSIZE;default:return Tl.LARGE}}renderAnchorContent(){return _` <slot></slot>
|
|
3703
|
+
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:W}`}};Jn.styles=[...Yr.styles,...Dv],m([u({type:String,reflect:!0})],Jn.prototype,"size",2);var gh=Jn;gh.register(yl);var Dx=gh;var Fv=z.constructTagName("linkbutton"),zs={12:12,14:14,16:16},Vs={SIZE:zs[16],ROLE:J.BUTTON,INLINE:Cs.INLINE,INVERTED:Cs.INVERTED};var $v=a=>{switch(a){case zs[12]:return .75;case zs[14]:return .875;default:return 1}};var Fx=B`
|
|
3704
3704
|
:host {
|
|
3705
3705
|
gap: 0.25rem;
|
|
3706
3706
|
cursor: pointer;
|
|
@@ -3799,10 +3799,10 @@
|
|
|
3799
3799
|
color: var(--mdc-link-color-disabled);
|
|
3800
3800
|
pointer-events: none;
|
|
3801
3801
|
}
|
|
3802
|
-
`,zv=[Fx,...
|
|
3802
|
+
`,zv=[Fx,...St()];var jo=class extends Qt(ae){constructor(){super(...arguments);this.size=Vs.SIZE;this.inline=Vs.INLINE;this.inverted=Vs.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Vs.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(zs).includes(t)?`${t}`:Vs.SIZE.toString())}render(){return _`
|
|
3803
3803
|
<slot></slot>
|
|
3804
3804
|
${this.iconName?_` <mdc-icon name=${this.iconName} size=${$v(this.size)} length-unit="rem"></mdc-icon> `:W}
|
|
3805
|
-
`}};
|
|
3805
|
+
`}};jo.styles=[...Yr.styles,...zv],m([u({type:Number,reflect:!0})],jo.prototype,"size",2),m([u({type:Boolean,reflect:!0})],jo.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],jo.prototype,"inverted",2);var bh=jo;bh.register(Fv);var $x=bh;Yr.register(bf);var zx=Yr;var Bs=a=>{class o extends kt(a){constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.handleNavigationClick=s=>{let d=s.target,p=this.getCurrentIndex(d);if(p!==-1){let f=!(this.navItems.at(p)!==d&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(p,void 0,f,!1)}};this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}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 d=this.getActionForKeyEvent(s,!0),p=new Set([Z.DOWN,Z.UP,Z.HOME,Z.END]);if(!d||!p.has(d))return;let f=s.target,T=this.getCurrentIndex(f);if(T!==-1){switch(this.resetTabIndexes(T),d){case Z.HOME:{this.resetTabIndexAndSetFocus(0,T);break}case Z.END:{this.resetTabIndexAndSetFocus(this.navItems.length-1,T);break}case Z.DOWN:{let L=this.shouldLoop()?0:T,U=T+1===this.navItems.length?L:T+1;this.resetTabIndexAndSetFocus(U,T);break}case Z.UP:{let L=this.shouldLoop()?this.navItems.length-1:T,U=T-1===-1?L:T-1;this.resetTabIndexAndSetFocus(U,T);break}default:break}this.propagateAllKeyEvents||(s.stopPropagation(),s.preventDefault())}}getCurrentIndex(s){return s?this.navItems.findIndex(d=>d===s||!!(d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(s,d=!0){var p;if(this.navItems.length>0){this.navItems.forEach(L=>L.setAttribute("tabindex","-1"));let f=this.navItems.at(s)?s:0,T=(p=this.navItems.at(f))!=null?p:this.navItems.find(Boolean);T&&(T.setAttribute("tabindex","0"),d&&T.focus())}}resetTabIndexAndSetFocus(s,d,p=!0,f=!0){var U;let{navItems:T}=this;if(T.length===0)return;let L=(U=T.at(s))!=null?U:T.find(Boolean);s===d&&L&&L.getAttribute("tabindex")==="0"||(d===void 0?T.forEach(q=>q.setAttribute("tabindex","-1")):T.at(d)&&T.at(d).setAttribute("tabindex","-1"),L.setAttribute("tabindex","0"),p&&(L.focus({preventScroll:!0}),f&&L.scrollIntoView({block:"nearest"})))}shouldLoop(){return this.loop!=="false"}}return o};var dd=z.constructTagName("listitem"),ta={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Vv={VARIANT:ta.FULL_WIDTH};var Gt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Vx=a=>!!a,Xr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||Vx,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Gt.CREATED,this.itemCreationHandler),this.host.addEventListener(Gt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Gt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Gt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!Nu(this.cache.at(-1),o))return-1;let t=0,r=this.cache.length-1;for(;t<=r;){let s=Math.floor((t+r)/2);Lu(this.cache[s],o)?t=s+1:r=s-1}return t}addItem(o,t=void 0){var s;let r=o;if(this.isValidItem(r)&&!this.cache.includes(r)){let d=t===void 0?this.getIndexToInsertInCache(r):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,r,"added",d===-1?this.cache.length:d,this.cache.slice())),d===-1?this.cache.push(r):d>=0&&this.cache.splice(d,0,r)}}delete(o){var r;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((r=this.onStoreUpdate)==null||r.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var Zi=a=>{class o extends a{constructor(...s){super(...s);this.handleItemCreation=s=>{let d=s.target;d&&d.addEventListener(Gt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Gt.DESTROYED&&(s.target.removeEventListener(Gt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Gt.CREATED,this.handleItemCreation)}}return o};var Bx=B`
|
|
3806
3806
|
:host {
|
|
3807
3807
|
display: flex;
|
|
3808
3808
|
flex-direction: column;
|
|
@@ -3817,11 +3817,11 @@
|
|
|
3817
3817
|
scroll-padding-top: 0.25rem;
|
|
3818
3818
|
scroll-padding-bottom: 0.25rem;
|
|
3819
3819
|
}
|
|
3820
|
-
`,Bv=[Bx];var Uv=z.constructTagName("list");var yh={LOOP:"true",INITIAL_FOCUS:0};var
|
|
3820
|
+
`,Bv=[Bx];var Uv=z.constructTagName("list");var yh={LOOP:"true",INITIAL_FOCUS:0};var Us=class extends Bs(Zi(j)){constructor(){super();this.loop=yh.LOOP;this.initialFocus=yh.INITIAL_FOCUS;this.focusWithin=!1;this.handleModifiedEvent=t=>{let r=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(r);break;case"disabled":this.itemsStore.delete(r);break;default:break}};this.addEventListener(Gt.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Xr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=J.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,r,s){if(r==="added")t.tabIndex=-1;else if(r==="removed"&&t.tabIndex===0){let d=s+1;d>=this.navItems.length&&(d=s-1),this.resetTabIndexes(d,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${dd}:not([disabled])`)}render(){return _`
|
|
3821
3821
|
<slot name="list-header"></slot>
|
|
3822
3822
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
3823
3823
|
<slot part="container" role="presentation"></slot>
|
|
3824
|
-
`}};
|
|
3824
|
+
`}};Us.styles=[...j.styles,...Bv],m([u({type:String,reflect:!0})],Us.prototype,"loop",2),m([u({type:Number,reflect:!0,attribute:"initial-focus"})],Us.prototype,"initialFocus",2);var Hs=Us;Hs.register(Uv);var Eh=Hs;var Ux=B`
|
|
3825
3825
|
:host {
|
|
3826
3826
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
|
3827
3827
|
--mdc-listheader-gap: 0.5rem;
|
|
@@ -3867,7 +3867,7 @@
|
|
|
3867
3867
|
size="1"
|
|
3868
3868
|
length-unit="rem"
|
|
3869
3869
|
></mdc-icon>`:W}
|
|
3870
|
-
`}};Qi.styles=[...j.styles,...Hv],
|
|
3870
|
+
`}};Qi.styles=[...j.styles,...Hv],m([u({type:String,attribute:"prefix-icon"})],Qi.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon"})],Qi.prototype,"postfixIcon",2),m([u({type:String,attribute:"header-text"})],Qi.prototype,"headerText",2),m([u({type:Boolean,reflect:!0})],Qi.prototype,"disabled",2);var Th=Qi;var Gv=z.constructTagName("listheader");Th.register(Gv);var Hx=Th;var Yv=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new Event(Gt.CREATED,{bubbles:!0,composed:!0})),this.updateComplete.then(()=>{this.dispatchEvent(new Event(Gt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new Event(Gt.DESTROYED,{bubbles:!0,composed:!0}))}dispatchModifiedEvent(r){this.dispatchEvent(new CustomEvent(Gt.MODIFIED,{detail:{change:r},bubbles:!0,composed:!0}))}}return o};var ea=class{static dispatchListItemEvent(o,t){t.dispatchEvent(new Event(o,{composed:!0,bubbles:!0}))}static onDisableListItem(o){this.dispatchListItemEvent("disabled",o)}static onEnableListItem(o){this.dispatchListItemEvent("enabled",o)}static onCreatedListItem(o){setTimeout(()=>{this.dispatchListItemEvent("created",o)},0)}static onDestroyedListItem(o){this.dispatchListItemEvent("destroyed",o)}};var Gx=B`
|
|
3871
3871
|
:host {
|
|
3872
3872
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
3873
3873
|
--mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
|
|
@@ -3980,11 +3980,11 @@
|
|
|
3980
3980
|
flex-direction: row;
|
|
3981
3981
|
flex-shrink: 0;
|
|
3982
3982
|
}
|
|
3983
|
-
`,Kv=[Gx,...
|
|
3983
|
+
`,Kv=[Gx,...St()];var Me=class extends kt(Ut(zr(Yv(j)))){constructor(){super();this.variant=Vv.VARIANT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||J.LISTITEM}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&this.triggerClickEvent(t)&&t.preventDefault()}triggerClickEvent(t){if(t.target!==this&&document.activeElement===t.target)return!1;let s=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});return this.dispatchEvent(s),!0}getText(t,r,s){return _`
|
|
3984
3984
|
<slot name="${t}">
|
|
3985
3985
|
${s?_`<mdc-text part="${t}" type="${r}" tagname="${pt.SPAN}">${s}</mdc-text>`:W}
|
|
3986
3986
|
</slot>
|
|
3987
|
-
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{t?(r.setAttribute("disabled",""),
|
|
3987
|
+
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{t?(r.setAttribute("disabled",""),ea.onDisableListItem(this)):(r.removeAttribute("disabled"),ea.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.dispatchModifiedEvent(this.disabled?"disabled":"enabled")),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled),t.has("dataIndex")&&(this.ariaPosInSet=`${this.dataIndex!==void 0?this.dataIndex+1:""}`)}renderTrailingControls(){return _`<slot
|
|
3988
3988
|
name="trailing-controls"
|
|
3989
3989
|
@click=${this.stopEventPropagation}
|
|
3990
3990
|
@keyup=${this.stopEventPropagation}
|
|
@@ -4012,7 +4012,7 @@
|
|
|
4012
4012
|
${this.renderTrailingControls()}
|
|
4013
4013
|
</div>
|
|
4014
4014
|
</slot>
|
|
4015
|
-
`}};Me.styles=[...j.styles,...Kv],
|
|
4015
|
+
`}};Me.styles=[...j.styles,...Kv],m([Dt({slot:"leading-controls"})],Me.prototype,"leadingControlsSlot",2),m([Dt({slot:"trailing-controls"})],Me.prototype,"trailingControlsSlot",2),m([u({type:String,reflect:!0})],Me.prototype,"variant",2),m([u({type:String,reflect:!0})],Me.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"secondary-label"})],Me.prototype,"secondaryLabel",2),m([u({type:String,reflect:!0,attribute:"tertiary-label"})],Me.prototype,"tertiaryLabel",2),m([u({type:String,reflect:!0,attribute:"side-header-text"})],Me.prototype,"sideHeaderText",2),m([u({type:String,reflect:!0,attribute:"subline-text"})],Me.prototype,"sublineText",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Me.prototype,"softDisabled",2),m([u({type:Number,reflect:!0,attribute:"data-index"})],Me.prototype,"dataIndex",2),m([u({type:Boolean,reflect:!0,attribute:"active"})],Me.prototype,"active",2);var Ei=Me;Ei.register(dd);var Yx=Ei;var Kx=B`
|
|
4016
4016
|
:host {
|
|
4017
4017
|
--mdc-marker-width: 0.25rem;
|
|
4018
4018
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -4037,7 +4037,7 @@
|
|
|
4037
4037
|
var(--mdc-marker-striped-background-color) 0.375rem
|
|
4038
4038
|
);
|
|
4039
4039
|
}
|
|
4040
|
-
`,Wv=[Kx];var jv=z.constructTagName("marker"),qv={SOLID:"solid",STRIPED:"striped"};var
|
|
4040
|
+
`,Wv=[Kx];var jv=z.constructTagName("marker"),qv={SOLID:"solid",STRIPED:"striped"};var ra=class extends j{constructor(){super(...arguments);this.variant=qv.SOLID}};ra.styles=[...j.styles,...Wv],m([u({type:String,reflect:!0})],ra.prototype,"variant",2);var xh=ra;xh.register(jv);var Wx=xh;var ie=z.constructTagName("menupopover"),Ah={PLACEMENT:Nt.BOTTOM_START,ORIENTATION:"vertical"};var Ti=z.constructTagName("menusection"),Xv={DIVIDER_VARIANT:"solid"};var Ji=z.constructTagName("sidenavigation"),We={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},cd={VARIANT:We.FLEXIBLE};var ia=z.constructTagName("menubar"),Zv={ORIENTATION:"vertical"};var jx=B`
|
|
4041
4041
|
:host {
|
|
4042
4042
|
display: flex;
|
|
4043
4043
|
}
|
|
@@ -4049,7 +4049,7 @@
|
|
|
4049
4049
|
:host([aria-orientation='vertical']) {
|
|
4050
4050
|
flex-direction: column;
|
|
4051
4051
|
}
|
|
4052
|
-
`,Qv=[jx];var
|
|
4052
|
+
`,Qv=[jx];var oa=class extends kt(j){constructor(){super();this.depthManager=new Hi(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(r=>r===this)){let r=t.target;if(!r||!this.isTopLevelMenuItem(r))return;let s=this.menuItems.filter(p=>p!==r);this.getVisibleSubMenusOfItems(s).forEach(p=>{p.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=J.MENUBAR,this.ariaOrientation=Zv.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(r=>{r.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var p,f;let t=(p=this.shadowRoot)==null?void 0:p.querySelector("slot"),r=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],s=[],d=T=>{T.role===J.MENUITEM&&!T.hasAttribute("disabled")?s.push(T):T.tagName.toLowerCase()===Ti&&Array.from(T.children).forEach(d)};return r.forEach(d),s}getVisibleSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{var f;let d=s.getAttribute("id");if(!d)return;let p=(f=document.querySelector)==null?void 0:f.call(document,`${ie}[triggerid="${d}"]`);p&&p.visible&&r.push(p)}),r}getAllPopovers(){var d,p;if(!this.menuItems.length)return[];let t=(p=(d=this.menuItems[0])==null?void 0:d.closest(Ji))!=null?p:this;if(!t)return[];let r=[],s=f=>{f.querySelectorAll(`${ie}`).forEach(T=>{r.push(T)}),f.querySelectorAll("slot").forEach(T=>{T.assignedElements({flatten:!0}).forEach(s)})};return s(t),r}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((r,s)=>{let d=s===0?"0":"-1";r==null||r.setAttribute("tabindex",d)})}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t||r===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(r=>r.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(d=>d.getAttribute("id")===t))return;let s=this.getSubmenu(t);s&&s.show()}updatePopoverPlacement(){let t=Nt.RIGHT_START;this.getAllPopovers().forEach(r=>{r.setAttribute("placement",t)})}updateTabIndexAndFocus(t,r,s){var d,p,f;s<0||r<0||(r!==s&&((d=t[r])==null||d.setAttribute("tabindex","-1"),(p=t[s])==null||p.setAttribute("tabindex","0")),(f=t[s])==null||f.focus())}navigateToMenuItem(t,r,s=!1){var f;let{length:d}=this.menuItems;if(d===0)return;let p=t;if(p=r==="prev"?(t-1+d)%d:(t+1)%d,this.updateTabIndexAndFocus(this.menuItems,t,p),s){let T=(f=this.menuItems[p])==null?void 0:f.getAttribute("id");this.getSubmenu(T)&&!this.menuItems[p].hasAttribute("soft-disabled")&&this.showSubmenu(T)}}isTopLevelMenuItem(t){var p;let r=t.parentElement;if(!r||t.role!==J.MENUITEM)return!1;let s=r.tagName.toLowerCase(),d=(p=r.parentElement)==null?void 0:p.tagName.toLowerCase();return s===ia||s===Ji||s===Ti&&(d===ia||d===Ji)}isNestedMenuItem(t){return!!t.closest(ie)&&t.role===J.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(r=>this.contains(r));await Promise.all(t.map(r=>r.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===J.MENUITEM){let s=t.closest(ie),d=s==null?void 0:s.getAttribute("triggerid"),p=this.menuItems.find(f=>f.getAttribute("id")===d);if(p){this.isTopLevelMenuItem(p)&&(s==null||s.hide()),await(s==null?void 0:s.updateComplete);let f=this.getCurrentIndex(p);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id);else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let r=this.getParentMenuItemIndex(t);r>=0&&this.navigateToMenuItem(r,"next",!0)}}getParentMenuItemIndex(t){let r=t.parentElement;for(;r;){if(r.tagName.toLowerCase()===ie){let s=r.getAttribute("triggerid"),d=this.menuItems.find(p=>p.getAttribute("id")===s);if(d)return this.isTopLevelMenuItem(d)?this.menuItems.findIndex(p=>p===d):this.getParentMenuItemIndex(d)}r=r.parentElement}return-1}async handleKeyDown(t){let r=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case Z.HOME:this.updateTabIndexAndFocus(this.menuItems,r,0);break;case Z.END:this.updateTabIndexAndFocus(this.menuItems,r,this.menuItems.length-1);break;case Z.LEFT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnLeft(d);break}case Z.RIGHT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnRight(d);break}case Z.UP:{this.navigateToMenuItem(r,"prev"),t.preventDefault();break}case Z.DOWN:{this.navigateToMenuItem(r,"next"),t.preventDefault();break}default:break}}render(){return _`<slot></slot>`}};oa.styles=[...j.styles,...Qv],m([Dt({selector:"mdc-menusection",flatten:!0})],oa.prototype,"menusections",2);var Sh=oa;Sh.register(ia);var qx=Sh;var sa=z.constructTagName("menuitem"),na={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Ih={POSITIVE:"positive",NEGATIVE:"negative"},_h={LEADING:"leading",TRAILING:"trailing"};var Xx=B`
|
|
4053
4053
|
:host(:dir(rtl))::part(trailing-arrow),
|
|
4054
4054
|
:host(:dir(rtl))::part(leading-arrow) {
|
|
4055
4055
|
transform: rotate(180deg);
|
|
@@ -4058,7 +4058,7 @@
|
|
|
4058
4058
|
:host::part(leading-arrow) {
|
|
4059
4059
|
--mdc-icon-size: 1rem;
|
|
4060
4060
|
}
|
|
4061
|
-
`,Jv=[Xx];var to=class extends Ei{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){this.getActionForKeyEvent(o)===Z.ENTER&&(this.triggerClickEvent(o),o.preventDefault())}handleKeyUp(o){this.getActionForKeyEvent(o)===Z.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEM,this.variant=
|
|
4061
|
+
`,Jv=[Xx];var to=class extends Ei{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){this.getActionForKeyEvent(o)===Z.ENTER&&(this.triggerClickEvent(o),o.preventDefault())}handleKeyUp(o){this.getActionForKeyEvent(o)===Z.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEM,this.variant=ta.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Ih.NEGATIVE?na.LEFT:na.RIGHT;return _`
|
|
4062
4062
|
<slot
|
|
4063
4063
|
name="trailing-controls"
|
|
4064
4064
|
@click=${this.stopEventPropagation}
|
|
@@ -4066,7 +4066,7 @@
|
|
|
4066
4066
|
@keydown=${this.stopEventPropagation}
|
|
4067
4067
|
></slot>
|
|
4068
4068
|
${this.arrowPosition===_h.TRAILING?_`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
|
|
4069
|
-
`}renderLeadingControls(){let o=this.arrowDirection===Ih.POSITIVE?
|
|
4069
|
+
`}renderLeadingControls(){let o=this.arrowDirection===Ih.POSITIVE?na.RIGHT:na.LEFT;return _`
|
|
4070
4070
|
<slot
|
|
4071
4071
|
name="leading-controls"
|
|
4072
4072
|
@click=${this.stopEventPropagation}
|
|
@@ -4074,7 +4074,7 @@
|
|
|
4074
4074
|
@keydown=${this.stopEventPropagation}
|
|
4075
4075
|
></slot>
|
|
4076
4076
|
${this.arrowPosition===_h.LEADING?_`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
|
|
4077
|
-
`}};to.styles=[...Ei.styles,...Jv],
|
|
4077
|
+
`}};to.styles=[...Ei.styles,...Jv],m([u({type:String,reflect:!0,attribute:"arrow-position"})],to.prototype,"arrowPosition",2),m([u({type:String,reflect:!0,attribute:"arrow-direction"})],to.prototype,"arrowDirection",2),m([u({type:String,reflect:!0})],to.prototype,"name",2),m([u({type:String,reflect:!0})],to.prototype,"value",2);var vr=to;vr.register(sa);var Zx=vr;var tg=z.constructTagName("statictoggle"),Qx={DEFAULT:"default",COMPACT:"compact"},Ch={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},eg={compact:.75,default:1.25},rg={SIZE:Qx.DEFAULT};var Jx=[B`
|
|
4078
4078
|
:host {
|
|
4079
4079
|
--mdc-statictoggle-width: 3rem;
|
|
4080
4080
|
--mdc-statictoggle-height: 1.5rem;
|
|
@@ -4179,7 +4179,7 @@
|
|
|
4179
4179
|
size="${eg[this.size]}"
|
|
4180
4180
|
></mdc-icon>
|
|
4181
4181
|
</div>
|
|
4182
|
-
`}};eo.styles=[...j.styles,...ig],
|
|
4182
|
+
`}};eo.styles=[...j.styles,...ig],m([u({type:Boolean,reflect:!0})],eo.prototype,"checked",2),m([u({type:String,reflect:!0})],eo.prototype,"size",2),m([u({type:Boolean,reflect:!0})],eo.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],eo.prototype,"softDisabled",2);var wh=eo;wh.register(tg);var tA=wh;var aa=z.constructTagName("tooltip"),gr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Re={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${He.MOUSEENTER} ${He.FOCUSIN}`,OFFSET:4,PLACEMENT:Nt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:gr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var eA=B`
|
|
4183
4183
|
:host {
|
|
4184
4184
|
--mdc-tooltip-max-width: 400px;
|
|
4185
4185
|
--mdc-tooltip-padding: 0.75rem;
|
|
@@ -4203,29 +4203,29 @@
|
|
|
4203
4203
|
:host([color='contrast'])::part(popover-content) {
|
|
4204
4204
|
color: var(--mdc-tooltip-text-color-contrast);
|
|
4205
4205
|
}
|
|
4206
|
-
`,og=[eA];var
|
|
4206
|
+
`,og=[eA];var Gs=class extends Ye{constructor(){super(...arguments);this.tooltipType=Re.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Re.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=J.TOOLTIP,this.ariaHidden=Re.ARIA_HIDDEN,this.backdrop=Re.BACKDROP,this.delay=this.delay||Re.DELAY,this.disableAriaExpanded=Re.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Re.HIDE_ON_BLUR,this.hideOnEscape=Re.HIDE_ON_ESCAPE,this.offset=this.offset||Re.OFFSET,this.placement=this.placement||Re.PLACEMENT,this.trigger=Re.TRIGGER,this.closeButton=At.CLOSE_BUTTON,this.disableFlip=At.DISABLE_FLIP,this.focusBackToTrigger=At.FOCUS_BACK,this.focusTrap=At.FOCUS_TRAP,this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE,this.interactive=At.INTERACTIVE,this.preventScroll=At.PREVENT_SCROLL,this.size=At.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(gr).includes(t)?t:Re.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Ie()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case gr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case gr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Nt).includes(this.placement)||(this.placement=Re.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(gr).includes(this.tooltipType)||this.setTooltipType(Re.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case gr.DESCRIPTION:r===gr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case gr.LABEL:r===gr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:r===gr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):r===gr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,r){let{triggerElement:s}=this;t===r||!s||(r||this.depthManager.remove([this]),await super.isOpenUpdated(t,r))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Mu(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};Gs.styles=[...Ye.styles,...og],m([u({type:String,attribute:"tooltip-type",reflect:!0})],Gs.prototype,"tooltipType",2),m([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],Gs.prototype,"onlyShowWhenTriggerOverflows",2);var kh=Gs;kh.register(aa);var rA=kh;var ro=hi(class extends Hr{constructor(a){var o;if(super(a),a.type!==er.ATTRIBUTE||a.name!=="class"||((o=a.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(o=>a[o]).join(" ")+" "}update(a,[o]){var r,s;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(let d in o)o[d]&&!((r=this.nt)!=null&&r.has(d))&&this.st.add(d);return this.render(o)}let t=a.element.classList;for(let d of this.st)d in o||(t.remove(d),this.st.delete(d));for(let d in o){let p=!!o[d];p===this.st.has(d)||(s=this.nt)!=null&&s.has(d)||(p?(t.add(d),this.st.add(d)):(t.remove(d),this.st.delete(d)))}return Te}});var sg=z.constructTagName("toggle"),la={DEFAULT:"default",COMPACT:"compact"};var Nh={SIZE:la.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var io=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=Se.consume({host:this,context:hh.Context})}willUpdate(){this.controlType&&rd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=ed.CONTROL_TYPE)}}return m([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var hd=z.constructTagName("menuitemcheckbox"),da={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},ng={INDICATOR:da.CHECKBOX};var iA=B`
|
|
4207
4207
|
:host::part(checkmark-icon) {
|
|
4208
4208
|
--mdc-icon-fill-color: currentColor;
|
|
4209
4209
|
}
|
|
4210
4210
|
:host .hidden-checkmark {
|
|
4211
4211
|
visibility: hidden;
|
|
4212
4212
|
}
|
|
4213
|
-
`,ag=[iA];var Ys=class extends
|
|
4213
|
+
`,ag=[iA];var Ys=class extends io(vr){constructor(){super();this.checked=!1;this.indicator=ng.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===da.CHECKBOX?_`
|
|
4214
4214
|
<mdc-staticcheckbox
|
|
4215
4215
|
slot="leading-controls"
|
|
4216
4216
|
?checked="${this.checked}"
|
|
4217
4217
|
?disabled="${this.disabled}"
|
|
4218
4218
|
?soft-disabled="${this.softDisabled}"
|
|
4219
4219
|
></mdc-staticcheckbox>
|
|
4220
|
-
`:W}staticToggle(){return this.indicator===
|
|
4220
|
+
`:W}staticToggle(){return this.indicator===da.TOGGLE?_`
|
|
4221
4221
|
<mdc-statictoggle
|
|
4222
4222
|
slot="trailing-controls"
|
|
4223
4223
|
?checked="${this.checked}"
|
|
4224
4224
|
?disabled="${this.disabled}"
|
|
4225
4225
|
?soft-disabled="${this.softDisabled}"
|
|
4226
|
-
size="${
|
|
4226
|
+
size="${la.COMPACT}"
|
|
4227
4227
|
></mdc-statictoggle>
|
|
4228
|
-
`:W}getCheckmarkIcon(){return this.indicator===
|
|
4228
|
+
`:W}getCheckmarkIcon(){return this.indicator===da.CHECKMARK?_`
|
|
4229
4229
|
<mdc-icon
|
|
4230
4230
|
slot="trailing-controls"
|
|
4231
4231
|
name="check-bold"
|
|
@@ -4252,14 +4252,14 @@
|
|
|
4252
4252
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
|
4253
4253
|
</div>
|
|
4254
4254
|
</slot>
|
|
4255
|
-
`}};Ys.styles=[...vr.styles,...ag],
|
|
4255
|
+
`}};Ys.styles=[...vr.styles,...ag],m([u({type:Boolean,reflect:!0})],Ys.prototype,"checked",2),m([u({type:String,reflect:!0})],Ys.prototype,"indicator",2);var Lh=Ys;Lh.register(hd);var oA=Lh;var pd=z.constructTagName("menuitemradio"),md={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},lg={INDICATOR:md.RADIO};var sA=B`
|
|
4256
4256
|
:host::part(checkmark-icon) {
|
|
4257
4257
|
--mdc-icon-fill-color: currentColor;
|
|
4258
4258
|
}
|
|
4259
4259
|
:host .hidden-checkmark {
|
|
4260
4260
|
visibility: hidden;
|
|
4261
4261
|
}
|
|
4262
|
-
`,dg=[sA];var Ks=class extends
|
|
4262
|
+
`,dg=[sA];var Ks=class extends io(vr){constructor(){super();this.checked=!1;this.indicator=lg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Ti}, ${ie}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===md.RADIO?_`
|
|
4263
4263
|
<mdc-staticradio
|
|
4264
4264
|
slot="leading-controls"
|
|
4265
4265
|
?checked="${this.checked}"
|
|
@@ -4293,7 +4293,7 @@
|
|
|
4293
4293
|
${this.renderCheckmarkIcon()}
|
|
4294
4294
|
</div>
|
|
4295
4295
|
</slot>
|
|
4296
|
-
`}};Ks.styles=[...vr.styles,...dg],
|
|
4296
|
+
`}};Ks.styles=[...vr.styles,...dg],m([u({type:Boolean,reflect:!0})],Ks.prototype,"checked",2),m([u({type:String,reflect:!0})],Ks.prototype,"indicator",2);var Oh=Ks;Oh.register(pd);var nA=Oh;var oo=z.constructTagName("navmenuitem"),cg={DOT:pr.DOT,COUNTER:pr.COUNTER},hg={RIGHT_ARROW:"arrow-right-bold"},Mh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],VARIANT:We.FLEXIBLE,CANNOT_ACTIVATE:!1};var aA=B`
|
|
4297
4297
|
:host::part(popover-content) {
|
|
4298
4298
|
padding: 0.75rem 0.5rem;
|
|
4299
4299
|
}
|
|
@@ -4301,7 +4301,7 @@
|
|
|
4301
4301
|
::slotted(mdc-divider) {
|
|
4302
4302
|
margin-block: 0.25rem;
|
|
4303
4303
|
}
|
|
4304
|
-
`,pg=[aA];var
|
|
4304
|
+
`,pg=[aA];var ca=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===J.MENUITEM||o===J.MENUITEMCHECKBOX||o===J.MENUITEMRADIO},Rh=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===ie};var ha=class extends Ye{constructor(){super();this.placement=Ah.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||(t.composedPath().find(s=>s.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let r=t.target;ca(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,d=this.getCurrentIndex(s);if(d===-1)return;switch(this.resetTabIndexes(d),this.getActionForKeyEvent(t,!0)){case Z.HOME:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case Z.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,d),r=!0;break}case Z.DOWN:{let f=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case Z.UP:{let f=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case Z.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),r=!0);break}case Z.LEFT:{Rh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Z.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Z.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case Z.SPACE:{r=!0;break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case Z.SPACE:{!s.matches(`${pd}, ${hd}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0));break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,d;let r=t.getAttribute("id");return r?(d=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:d.call(s,`${ie}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(d=>d.tagName.toLowerCase()===Ti?Array.from(d.children).filter(p=>ca(p)):ca(d)?d:[]).flat().filter(d=>!!d&&!d.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(d=>this.getSubMenuPopoverOfTarget(d))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.visible&&r.push(d)}),r}connectedCallback(){super.connectedCallback(),this.role=J.MENU,this.ariaOrientation=Ah.ORIENTATION,this.backdrop=!1,this.color=Oo.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![sa,oo].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(r=>r!==t&&Rh(r))}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(r).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(sa)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(!(!ca(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}};ha.styles=[...Ye.styles,...pg],m([u({type:String,reflect:!0})],ha.prototype,"placement",2);var Ph=ha;Ph.register(ie);var lA=Ph;var ud=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var s,d;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((d=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?d:[]).some(p=>p!==o&&p.tagName.toLowerCase()===ie&&p.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(ie);if(!s)break;let d=s.getAttribute("triggerid");if(!d)break;let p=document.getElementById(d);if(p&&p.tagName.toLowerCase()===oo)t.push(p),r=p;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(p=>{p.hasActiveChild=!0,p.setAttribute("active","")})}};ud.context=Ji;var fd=ud;var dA=B`
|
|
4305
4305
|
:host {
|
|
4306
4306
|
--mdc-sidenavigation-expanded-width: 14.5rem;
|
|
4307
4307
|
--mdc-sidenavigation-expanded-left-padding: 1rem;
|
|
@@ -4439,7 +4439,7 @@
|
|
|
4439
4439
|
:host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
|
|
4440
4440
|
opacity: 1;
|
|
4441
4441
|
}
|
|
4442
|
-
`,mg=[dA];var xi=class extends xe{constructor(){super({context:fd.context,initialValue:new fd(cd.VARIANT,!0)});this.variant=cd.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(r=>r===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===We.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var r;if((r=this.context)!=null&&r.value){let s=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(s)}};this.findNav=(t,r)=>t.find(s=>s.navId===r);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return fd.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case We.FIXED_EXPANDED:this.expanded=!0;break;case We.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===We.FLEXIBLE||this.variant===We.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext())}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${
|
|
4442
|
+
`,mg=[dA];var xi=class extends xe{constructor(){super({context:fd.context,initialValue:new fd(cd.VARIANT,!0)});this.variant=cd.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(r=>r===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===We.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var r;if((r=this.context)!=null&&r.value){let s=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(s)}};this.findNav=(t,r)=>t.find(s=>s.navId===r);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return fd.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case We.FIXED_EXPANDED:this.expanded=!0;break;case We.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===We.FLEXIBLE||this.variant===We.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext())}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${oo}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(We).includes(t)?t:cd.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===We.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){t.key===Qe.SPACE&&t.preventDefault()}render(){var t;return this.variant===We.HIDDEN?_``:_`
|
|
4443
4443
|
<div part="side-navigation-container" id="side-nav-container">
|
|
4444
4444
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
|
4445
4445
|
<slot name="scrollable-section">
|
|
@@ -4470,8 +4470,8 @@
|
|
|
4470
4470
|
</div>
|
|
4471
4471
|
${this.variant===We.FLEXIBLE||this.variant===We.FLEXIBLE_ON_HOVER?_`<mdc-divider
|
|
4472
4472
|
part="vertical-divider"
|
|
4473
|
-
orientation=${
|
|
4474
|
-
variant=${
|
|
4473
|
+
orientation=${Go.VERTICAL}
|
|
4474
|
+
variant=${Xn.GRADIENT}
|
|
4475
4475
|
arrow-direction=${this.expanded?fr.NEGATIVE:fr.POSITIVE}
|
|
4476
4476
|
button-position=${fr.POSITIVE}
|
|
4477
4477
|
>
|
|
@@ -4483,7 +4483,7 @@
|
|
|
4483
4483
|
aria-controls="side-nav-container"
|
|
4484
4484
|
></mdc-button>
|
|
4485
4485
|
</mdc-divider>`:W}
|
|
4486
|
-
`}};xi.styles=[...j.styles,...mg],
|
|
4486
|
+
`}};xi.styles=[...j.styles,...mg],m([u({type:String,reflect:!0})],xi.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"footer-text"})],xi.prototype,"footerText",2),m([u({type:Boolean,reflect:!0,attribute:"expanded"})],xi.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],xi.prototype,"grabberBtnAriaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],xi.prototype,"hideFixedSectionDivider",2);var qo=xi;var cA=B`
|
|
4487
4487
|
:host {
|
|
4488
4488
|
--mdc-menusection-divider-margin-block: 0.25rem;
|
|
4489
4489
|
--mdc-menusection-gap: 0rem;
|
|
@@ -4504,7 +4504,7 @@
|
|
|
4504
4504
|
:host::part(align-header) {
|
|
4505
4505
|
--mdc-listheader-padding: var(--mdc-menusection-header-padding);
|
|
4506
4506
|
}
|
|
4507
|
-
`,ug=[cA];var Zr=class extends j{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Xv.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Se.consume({host:this,context:
|
|
4507
|
+
`,ug=[cA];var Zr=class extends j{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Xv.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Se.consume({host:this,context:qo.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",J.GROUP)}update(t){var d;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let r=(d=this.sideNavigationContext)==null?void 0:d.value;if(!r)return;let{expanded:s}=r;this.hideHeaderText=!s}renderHeader(){var t,r;return this.headerText?_` <mdc-listheader
|
|
4508
4508
|
part="header ${(r=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&r.expanded?"align-header":""}"
|
|
4509
4509
|
header-text="${this.headerText}"
|
|
4510
4510
|
prefix-icon="${tt(this.prefixIcon)}"
|
|
@@ -4513,7 +4513,7 @@
|
|
|
4513
4513
|
${this.hideHeaderText?null:this.renderHeader()}
|
|
4514
4514
|
<slot part="container"></slot>
|
|
4515
4515
|
${this.showDivider?_`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
|
4516
|
-
`}};Zr.styles=[...j.styles,...ug],
|
|
4516
|
+
`}};Zr.styles=[...j.styles,...ug],m([u({type:String,reflect:!0,attribute:"aria-label"})],Zr.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Zr.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],Zr.prototype,"prefixIcon",2),m([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Zr.prototype,"showDivider",2),m([u({type:String,reflect:!0,attribute:"divider-variant"})],Zr.prototype,"dividerVariant",2),m([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Zr.prototype,"hideHeaderText",2);var Dh=Zr;Dh.register(Ti);var hA=Dh;var pA=[bt,B`
|
|
4517
4517
|
:host {
|
|
4518
4518
|
--mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
|
|
4519
4519
|
--mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
|
|
@@ -4704,7 +4704,7 @@
|
|
|
4704
4704
|
background-color: ButtonText;
|
|
4705
4705
|
}
|
|
4706
4706
|
}
|
|
4707
|
-
`,...
|
|
4707
|
+
`,...St()],fg=pA;var qt=class extends vr{constructor(){super();this.cannotActivate=Mh.CANNOT_ACTIVATE;this.maxCounter=Mh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=Se.consume({host:this,context:qo.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var s;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let r=(s=this.sideNavigationContext)==null?void 0:s.value;r&&(this.showLabel=this.isNested()?!0:r.expanded)}renderDynamicTooltip(){var r;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Ie()}`);let t=document.createElement(aa);t.id=`mdc-navmenuitem-tooltip-${Ie()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((r=this.tooltipBoundaryPadding)==null?void 0:r.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${aa}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ie)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:`${Io(this.iconName)}-filled`}renderBadge(t){return Object.values(cg).includes(this.badgeType)?_`
|
|
4708
4708
|
<mdc-badge
|
|
4709
4709
|
part="${t?"":"badge"}"
|
|
4710
4710
|
type="${tt(this.badgeType)}"
|
|
@@ -4735,7 +4735,7 @@
|
|
|
4735
4735
|
${this.renderBadge(this.showLabel)}
|
|
4736
4736
|
`:W}
|
|
4737
4737
|
${t!=null&&t.hasSiblingWithTriggerId(this)?_` <mdc-icon name=${hg.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:W}
|
|
4738
|
-
`}};qt.styles=[...vr.styles,...fg],
|
|
4738
|
+
`}};qt.styles=[...vr.styles,...fg],m([u({type:Boolean,reflect:!0})],qt.prototype,"active",2),m([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],qt.prototype,"cannotActivate",2),m([u({type:String,attribute:"icon-name",reflect:!0})],qt.prototype,"iconName",2),m([u({type:String,reflect:!0,attribute:"badge-type"})],qt.prototype,"badgeType",2),m([u({type:Number,reflect:!0})],qt.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],qt.prototype,"maxCounter",2),m([u({type:String,reflect:!0,attribute:"nav-id"})],qt.prototype,"navId",2),m([u({type:Boolean,reflect:!0,attribute:"show-label"})],qt.prototype,"showLabel",2),m([u({type:String,attribute:"aria-label"})],qt.prototype,"ariaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],qt.prototype,"disableAriaCurrent",2),m([u({type:String,reflect:!0,attribute:"tooltip-text"})],qt.prototype,"tooltipText",2),m([u({type:String,reflect:!0,attribute:"tooltip-placement"})],qt.prototype,"tooltipPlacement",2),m([u({type:String,reflect:!0,attribute:"tooltip-type"})],qt.prototype,"tooltipType",2),m([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],qt.prototype,"tooltipAppearance",2),m([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],qt.prototype,"tooltipBoundaryPadding",2),m([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],qt.prototype,"isActiveParentTooltipText",2),m([ut()],qt.prototype,"hasActiveChild",2);var Fh=qt;Fh.register(oo);var mA=Fh;var vg="check-bold",br=z.constructTagName("option");var pa=z.constructTagName("optgroup"),$h="header-id";var uA=B`
|
|
4739
4739
|
:host {
|
|
4740
4740
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
|
4741
4741
|
}
|
|
@@ -4768,7 +4768,7 @@
|
|
|
4768
4768
|
${o}
|
|
4769
4769
|
<slot role="${J.PRESENTATION}"></slot>
|
|
4770
4770
|
</div>
|
|
4771
|
-
`}};Ws.styles=[...j.styles,...gg],
|
|
4771
|
+
`}};Ws.styles=[...j.styles,...gg],m([u({type:String,reflect:!0})],Ws.prototype,"label",2),m([Dt({selector:br})],Ws.prototype,"options",2);var zh=Ws;zh.register(pa);var fA=zh;var vA=[$i,B`
|
|
4772
4772
|
:host {
|
|
4773
4773
|
--mdc-listitem-column-gap: 0.75rem;
|
|
4774
4774
|
--mdc-option-icon-width: 1rem;
|
|
@@ -4797,7 +4797,7 @@
|
|
|
4797
4797
|
:host([data-hidden]) {
|
|
4798
4798
|
display: none;
|
|
4799
4799
|
}
|
|
4800
|
-
`],bg=vA;var
|
|
4800
|
+
`],bg=vA;var Xo=class extends Ce(Ei){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=J.OPTION,this.variant=ta.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,r){return _` <mdc-icon length-unit="rem" slot="${t}" name="${r}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",vg):W;return _`
|
|
4801
4801
|
<div part="leading">
|
|
4802
4802
|
<slot name="leading-controls">
|
|
4803
4803
|
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):W}
|
|
@@ -4808,7 +4808,7 @@
|
|
|
4808
4808
|
</div>
|
|
4809
4809
|
</div>
|
|
4810
4810
|
<div part="trailing">${t}</div>
|
|
4811
|
-
`}};
|
|
4811
|
+
`}};Xo.styles=[...Ei.styles,...bg],m([u({type:Boolean,reflect:!0})],Xo.prototype,"selected",2),m([u({type:String,reflect:!0,attribute:"prefix-icon"})],Xo.prototype,"prefixIcon",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Xo.prototype,"ariaLabel",2);var Vh=Xo;Vh.register(br);var gA=Vh;var Bh={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},yg=z.constructTagName("password");var so=class extends Lr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.helpTextType=Ot.VALIDATION;this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let r=t||this.value;return r?_`
|
|
4812
4812
|
<mdc-button
|
|
4813
4813
|
part="trailing-button"
|
|
4814
4814
|
class="own-focus-ring ${r?"":"hidden"}"
|
|
@@ -4819,7 +4819,7 @@
|
|
|
4819
4819
|
aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
|
|
4820
4820
|
prefix-icon=${this.showPassword?Bh.HIDE_BOLD:Bh.SHOW_BOLD}
|
|
4821
4821
|
></mdc-button>
|
|
4822
|
-
`:W}renderInputElement(t,r){let s=this.showPassword?Xi.TEXT:Xi.PASSWORD;return super.renderInputElement(s,r)}};
|
|
4822
|
+
`:W}renderInputElement(t,r){let s=this.showPassword?Xi.TEXT:Xi.PASSWORD;return super.renderInputElement(s,r)}};so.styles=[...Lr.styles],m([u({type:String,attribute:"show-button-aria-label",reflect:!0})],so.prototype,"showButtonAriaLabel",2),m([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],so.prototype,"hideButtonAriaLabel",2),m([u({type:String,attribute:"help-text-type"})],so.prototype,"helpTextType",2),m([ut()],so.prototype,"showPassword",2);var Uh=so;Uh.register(yg);var bA=Uh;Ye.register(wf);ql.register(Xl);var yA=Ye;var vd=z.constructTagName("progressbar"),gd={DEFAULT:"default",INLINE:"inline"},Eg={VARIANT:gd.DEFAULT,VALIDATION:zt.DEFAULT};var EA=[bt,B`
|
|
4823
4823
|
:host {
|
|
4824
4824
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
4825
4825
|
--mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
|
|
@@ -4892,7 +4892,7 @@
|
|
|
4892
4892
|
border: var(--mdc-progressbar-border);
|
|
4893
4893
|
}
|
|
4894
4894
|
}
|
|
4895
|
-
`],Tg=EA;var
|
|
4895
|
+
`],Tg=EA;var Zo=class extends Ht(rr){constructor(){super(...arguments);this.variant=Eg.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var d;let t=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,s=this.error?"100":`${this.clampedValue}`;return _`
|
|
4896
4896
|
<div
|
|
4897
4897
|
part="progress-container ${r?"gap":""}"
|
|
4898
4898
|
role="${J.PROGRESSBAR}"
|
|
@@ -4912,7 +4912,7 @@
|
|
|
4912
4912
|
</div>
|
|
4913
4913
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
|
4914
4914
|
`}
|
|
4915
|
-
`}};
|
|
4915
|
+
`}};Zo.styles=[...rr.styles,...Tg],m([u({type:String,reflect:!0})],Zo.prototype,"variant",2),m([u({type:String,reflect:!0})],Zo.prototype,"value",2),m([u({type:Boolean,attribute:"error"})],Zo.prototype,"error",2);var ma=Zo;ma.register(vd);var TA=ma;var xg=z.constructTagName("progressspinner"),oe={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Hh={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Gh=a=>{if(a===0)return 0;let o=a/100*oe.CIRCUMFERENCE-oe.GAP_SIZE;return Math.max(o,.1*a)},Ag=a=>{let o=oe.CIRCUMFERENCE-Gh(a)-2*oe.GAP_SIZE;return a===0?oe.CIRCUMFERENCE:o<0?0:o},Sg=a=>a===0?0:oe.GAP_SIZE*.5,Ig=(a,o)=>{let t=o+oe.GAP_SIZE*1.5;return a===0?0:t};var xA=B`
|
|
4916
4916
|
:host {
|
|
4917
4917
|
--mdc-spinner-size: 3rem;
|
|
4918
4918
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
@@ -4959,7 +4959,7 @@
|
|
|
4959
4959
|
color: var(--mdc-progress-error-color);
|
|
4960
4960
|
margin: calc(1 / 6 * var(--mdc-spinner-size));
|
|
4961
4961
|
}
|
|
4962
|
-
`,_g=[xA];var bd=class extends
|
|
4962
|
+
`,_g=[xA];var bd=class extends ma{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var d;let o=Gh(this.clampedValue),t=Ag(this.clampedValue),r=Sg(this.clampedValue),s=Ig(this.clampedValue,o);return _`
|
|
4963
4963
|
<div
|
|
4964
4964
|
part="spinner-container ${this.variant}"
|
|
4965
4965
|
role="${J.PROGRESSBAR}"
|
|
@@ -5063,7 +5063,7 @@
|
|
|
5063
5063
|
:host([soft-disabled]) {
|
|
5064
5064
|
pointer-events: none;
|
|
5065
5065
|
}
|
|
5066
|
-
`,...
|
|
5066
|
+
`,...St(!0)],Cg=SA;var ua=class extends kt(Ae(Ce(Ht(de)))){constructor(){super(...arguments);this.checked=!1;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.updateTabIndex(),this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,r){this.updateComplete.then(()=>{t.forEach(s=>{s.setComponentValidity(r)})}).catch(s=>{this.onerror&&this.onerror(s)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let s=r.some(f=>f.required),d=!!r.find(f=>f.checked),p=s&&!d;this.setGroupValidity(r,!p)}this.internals.setFormValue(t)}handleChange(){var s;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(d=>{var f;let p=(f=d.shadowRoot)==null?void 0:f.querySelector("input");p&&(d.checked=!1,p.checked=!1)}),this.checked=!0;let r=(s=this.shadowRoot)==null?void 0:s.querySelector("input");r&&(r.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updateRadio(t,r){var s,d;(d=(s=t[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||d.focus(),t[r].handleChange()}handleKeyDown(t){var f;if(this.disabled)return;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault();let d=this.getAllRadiosWithinSameGroup().filter(T=>!T.disabled),p=d.indexOf(this);if(r===Z.DOWN||r===Z.RIGHT){let T=(p+1)%d.length;this.updateRadio(d,T)}else if(r===Z.UP||r===Z.LEFT){let T=(p-1+d.length)%d.length;this.updateRadio(d,T)}else r===Z.SPACE&&this.updateRadio(d,p);this.updateTabIndex(),r===Z.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),r=t.find(d=>d.checked),s=t.find(d=>!d.disabled);t.forEach(d=>{var f;let p=(f=d.shadowRoot)==null?void 0:f.querySelector("input");p&&(p.tabIndex=-1,(d===r||!r&&d===s)&&(p.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return _`
|
|
5067
5067
|
<mdc-staticradio
|
|
5068
5068
|
class="mdc-focus-ring"
|
|
5069
5069
|
?checked="${this.checked}"
|
|
@@ -5092,7 +5092,7 @@
|
|
|
5092
5092
|
/>
|
|
5093
5093
|
</mdc-staticradio>
|
|
5094
5094
|
${this.renderLabelAndHelperText()}
|
|
5095
|
-
`}};
|
|
5095
|
+
`}};ua.styles=[...de.styles,...Cg],m([u({type:Boolean,reflect:!0})],ua.prototype,"checked",2);var Kh=ua;var yd=z.constructTagName("radio");Kh.register(yd);var IA=Kh;var fa=class extends sd{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,r,s,d,p;(p=(d=(s=(r=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(f=>f.assignedElements({flatten:!0})))==null?void 0:s.filter(f=>f.tagName.toLowerCase()===yd||f.tagName.toLowerCase()===$l))==null?void 0:d.filter(f=>!f.hasAttribute("name")))==null||p.forEach(f=>{f.setAttribute("name",this.name),this.required&&f.setAttribute("required",this.required.toString())})}};fa.styles=[...sd.styles],m([u({type:String})],fa.prototype,"name",2);var Wh=fa;var wg=z.constructTagName("radiogroup");Wh.register(wg);var _A=Wh;var CA=B`
|
|
5096
5096
|
:host::part(filters-container) {
|
|
5097
5097
|
display: flex;
|
|
5098
5098
|
gap: 0.25rem;
|
|
@@ -5122,7 +5122,7 @@
|
|
|
5122
5122
|
position: relative;
|
|
5123
5123
|
scrollbar-width: none;
|
|
5124
5124
|
}
|
|
5125
|
-
`,kg=[CA];var Ng=z.constructTagName("searchfield"),
|
|
5125
|
+
`,kg=[CA];var Ng=z.constructTagName("searchfield"),va={TYPE:Xi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:ad};var Qo=class extends Lr{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===Z.ENTER&&this.handleFilterContainerClick()};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===Z.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===Z.ESCAPE&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=va.ICON,this.trailingButton=va.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(va.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return _`
|
|
5126
5126
|
${this.renderLabelElement()}
|
|
5127
5127
|
<div
|
|
5128
5128
|
class="${ro({"mdc-focus-ring":this.isInputFocused})}"
|
|
@@ -5138,11 +5138,11 @@
|
|
|
5138
5138
|
>
|
|
5139
5139
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot>
|
|
5140
5140
|
</div>
|
|
5141
|
-
${this.renderInputElement(
|
|
5141
|
+
${this.renderInputElement(va.TYPE,this.hasInputChips)}
|
|
5142
5142
|
</div>
|
|
5143
5143
|
${this.renderTrailingButton(this.hasInputChips)}
|
|
5144
5144
|
</div>
|
|
5145
|
-
`}};
|
|
5145
|
+
`}};Qo.styles=[...Lr.styles,...kg],m([Dt({slot:"filters"})],Qo.prototype,"inputChips",2),m([ut()],Qo.prototype,"isInputFocused",2),m([ut()],Qo.prototype,"hasInputChips",2);var js=Qo;js.register(Ng);var wA=js;var kA=B`
|
|
5146
5146
|
:host {
|
|
5147
5147
|
--mdc-searchpopover-width: 100%;
|
|
5148
5148
|
--mdc-searchpopover-popover-width: var(--mdc-searchpopover-width);
|
|
@@ -5162,12 +5162,12 @@
|
|
|
5162
5162
|
min-width: auto;
|
|
5163
5163
|
padding: 0.75rem 0.5rem;
|
|
5164
5164
|
}
|
|
5165
|
-
`,Lg=[kA];var Og=z.constructTagName("searchpopover"),jh={TYPE:Xi.TEXT,DISPLAY_POPOVER:!1},qh="searchpopover-container-triggerid",Ed="searchpopover-popoverid";var
|
|
5165
|
+
`,Lg=[kA];var Og=z.constructTagName("searchpopover"),jh={TYPE:Xi.TEXT,DISPLAY_POPOVER:!1},qh="searchpopover-container-triggerid",Ed="searchpopover-popoverid";var no=class extends js{constructor(){super(...arguments);this.displayPopover=jh.DISPLAY_POPOVER;this.placement=Nt.BOTTOM_START;this.popoverZIndex=void 0}renderInputElement(){var r,s;let t=this.hasInputChips?"":this.placeholder;return _`<input
|
|
5166
5166
|
aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
|
|
5167
5167
|
part="input-text"
|
|
5168
5168
|
id="${this.inputId}"
|
|
5169
5169
|
name="${this.name}"
|
|
5170
|
-
.value="${
|
|
5170
|
+
.value="${Ko(this.value)}"
|
|
5171
5171
|
?disabled="${this.disabled}"
|
|
5172
5172
|
?readonly="${this.readonly}"
|
|
5173
5173
|
?required="${this.required}"
|
|
@@ -5230,7 +5230,7 @@
|
|
|
5230
5230
|
>
|
|
5231
5231
|
<slot></slot>
|
|
5232
5232
|
</mdc-popover>
|
|
5233
|
-
`}};
|
|
5233
|
+
`}};no.styles=[...js.styles,...Lg],m([u({type:Boolean,reflect:!0,attribute:"display-popover"})],no.prototype,"displayPopover",2),m([u({type:String,reflect:!0})],no.prototype,"placement",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],no.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"popover-aria-label"})],no.prototype,"popoverAriaLabel",2);var Xh=no;Xh.register(Og);var NA=Xh;var Mg=z.constructTagName("select"),Zh={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Td="select-base-triggerid",Rg="select-listbox",Pg={DISABLE_FLIP:!1};var LA=B`
|
|
5234
5234
|
:host {
|
|
5235
5235
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
5236
5236
|
--mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
|
|
@@ -5339,7 +5339,7 @@
|
|
|
5339
5339
|
:host([soft-disabled])::part(base-text) {
|
|
5340
5340
|
--mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
5341
5341
|
}
|
|
5342
|
-
`,Dg=[LA,...
|
|
5342
|
+
`,Dg=[LA,...St(!0)];var je=class extends Bs(Zi(Ae(Ce(Ht(de))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=Pg.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,r,s,d)=>{switch(r){case"added":t.setAttribute("tabindex","-1");break;case"removed":{if(s===-1||d.length===0)return;let p=s+1;if(p>=d.length&&(p=s-1),p===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(p),t.hasAttribute("selected")){let f=null;this.placeholder||(f=s===0?d[p]:d[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${br}:not([disabled])`);this.addEventListener(Gt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Xr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,r,s){var d;if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&s!==((d=this.selectedOption)==null?void 0:d.value)&&this.navItems.length){let p=this.getFirstSelectedOption(),f=this.getFirstOption(),T=this.navItems.find(U=>U.value===s),L=null;if(T)L=T;else if(this.placeholder)L=null;else if(f)L=f;else if(p)L=p;else return;this.updateComplete.then(()=>{this.setSelectedOption(L)}).catch(U=>{this.onerror&&this.onerror(U)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let r=t.target,s=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{s&&s!==this.selectedOption?this.setSelectedOption(s):this.setSelectedOption(r);break}case"unselected":{s?this.setSelectedOption(s):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(r);break}case"disabled":{this.itemsStore.delete(r);break}default:break}}async firstUpdated(t){await this.updateComplete;let r=this.getFirstSelectedOption();if(r)this.initialSelectedOption=r,this.setSelectedOption(r);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstOption();this.setSelectedOption(s),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let r=t.target;r&&r.tagName===br.toUpperCase()&&!r.hasAttribute("disabled")&&!r.hasAttribute("soft-disabled")&&(this.setSelectedOption(r),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var r,s,d;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(s=(r=this.selectedOption)==null?void 0:r.value)!=null?s:"",this.internals.setFormValue(this.value),(d=this.inputElement)==null||d.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(r=>{r!==t&&r.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,r;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()}formResetCallback(){var r;let t=this.initialSelectedOption||null;((r=this.selectedOption)==null?void 0:r.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var s;let r=this.navItems.find(d=>d.value===t||d.label===t);((s=this.selectedOption)==null?void 0:s.value)!==(r==null?void 0:r.value)&&(this.setSelectedOption(r||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=Ql(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var r;return(r=this.debounceSearch)==null||r.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,r){return t.filter(s=>{var d;return(d=s.getAttribute("label"))==null?void 0:d.toLowerCase().startsWith(r.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let r=this.navItems.findIndex(f=>f.tabIndex===0)+1,s=[...this.navItems.slice(r),...this.navItems.slice(0,r)],d=this.filterOptionsBySearchKey(s,t),p=null;if(d.length)[p]=d;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[r],T=this.filterOptionsBySearchKey(s,t[0]),L=T.filter(U=>U===f);p=L.length?L[0]:T[0]}this.navItems.indexOf(p)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(p))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;switch(this.getActionForKeyEvent(t)){case Z.DOWN:case Z.UP:case Z.ENTER:case Z.SPACE:this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Z.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case Z.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let r=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(r)}handleKeydownPopover(t){t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,r,s,d,p,f;return _`
|
|
5343
5343
|
${this.renderLabel()}
|
|
5344
5344
|
<div part="container">
|
|
5345
5345
|
<div
|
|
@@ -5371,7 +5371,7 @@
|
|
|
5371
5371
|
type="${ot.BODY_MIDSIZE_REGULAR}"
|
|
5372
5372
|
tagname="${pt.SPAN}"
|
|
5373
5373
|
>
|
|
5374
|
-
${(
|
|
5374
|
+
${(f=(p=this.selectedOption)==null?void 0:p.label)!=null?f:this.placeholder}
|
|
5375
5375
|
</mdc-text>
|
|
5376
5376
|
<div part="icon-container">
|
|
5377
5377
|
<mdc-icon
|
|
@@ -5422,7 +5422,7 @@
|
|
|
5422
5422
|
</mdc-popover>
|
|
5423
5423
|
</div>
|
|
5424
5424
|
${this.renderHelperText()}
|
|
5425
|
-
`}};je.styles=[...de.styles,...Dg],
|
|
5425
|
+
`}};je.styles=[...de.styles,...Dg],m([u({type:String})],je.prototype,"placeholder",2),m([u({type:String,reflect:!0})],je.prototype,"placement",2),m([u({type:String,reflect:!0,attribute:"boundary"})],je.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"strategy"})],je.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],je.prototype,"popoverZIndex",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],je.prototype,"disableFlip",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],je.prototype,"backdropAppendTo",2),m([Zt(`[id="${Td}"]`)],je.prototype,"visualCombobox",2),m([ut()],je.prototype,"selectedOption",2),m([ut()],je.prototype,"displayPopover",2);var Qh=je;Qh.register(Mg);var OA=Qh;var Jh=class extends j{connectedCallback(){super.connectedCallback(),this.role=J.LISTBOX}createRenderRoot(){return this}},tp=Jh;var xd=z.constructTagName("selectlistbox");tp.register(xd);var MA=tp;qo.register(Ji);var RA=qo;var Fg=z.constructTagName("skeleton"),$g={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},zg={VARIANT:$g.RECTANGULAR};var PA=B`
|
|
5426
5426
|
:host {
|
|
5427
5427
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
5428
5428
|
--mdc-skeleton-height: 100%;
|
|
@@ -5459,7 +5459,7 @@
|
|
|
5459
5459
|
::slotted(*) {
|
|
5460
5460
|
visibility: hidden;
|
|
5461
5461
|
}
|
|
5462
|
-
`,Vg=PA;var
|
|
5462
|
+
`,Vg=PA;var ga=class extends j{constructor(){super(...arguments);this.variant=zg.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var r;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return _`<slot @slotchange=${this.checkSlotContent}></slot>`}};ga.styles=[...j.styles,Vg],m([u({type:String,reflect:!0})],ga.prototype,"variant",2);var ep=ga;ep.register(Fg);var DA=ep;var FA=[bt,B`
|
|
5463
5463
|
:host {
|
|
5464
5464
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
|
5465
5465
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
|
@@ -5523,11 +5523,11 @@
|
|
|
5523
5523
|
stroke-dashoffset: -292;
|
|
5524
5524
|
}
|
|
5525
5525
|
}
|
|
5526
|
-
`],Bg=FA;var Ug=z.constructTagName("spinner"),$A={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zA={STANDALONE:"standalone",BUTTON:"button"},Ad={VARIANT:zA.STANDALONE,SIZE:$A.MIDSIZE,INVERTED:!1};var
|
|
5526
|
+
`],Bg=FA;var Ug=z.constructTagName("spinner"),$A={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zA={STANDALONE:"standalone",BUTTON:"button"},Ad={VARIANT:zA.STANDALONE,SIZE:$A.MIDSIZE,INVERTED:!1};var ao=class extends j{constructor(){super(...arguments);this.inverted=Ad.INVERTED;this.size=Ad.SIZE;this.ariaLabel=null;this.variant=Ad.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?J.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return _`
|
|
5527
5527
|
<svg part="container" viewBox="0 0 100 100">
|
|
5528
5528
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
|
5529
5529
|
</svg>
|
|
5530
|
-
`}};
|
|
5530
|
+
`}};ao.styles=[...j.styles,...Bg],m([u({type:Boolean,reflect:!0})],ao.prototype,"inverted",2),m([u({type:String,reflect:!0})],ao.prototype,"size",2),m([u({type:String,attribute:"aria-label"})],ao.prototype,"ariaLabel",2),m([u({type:String,reflect:!0})],ao.prototype,"variant",2);var rp=ao;rp.register(Ug);var VA=rp;jn.register(xv);var BA=jn;var UA={COMPLETE:"complete",INCOMPLETE:"incomplete"},ip={VERTICAL:"vertical",HORIZONTAL:"horizontal"},op={STATUS:UA.INCOMPLETE,ORIENTATION:ip.HORIZONTAL},Hg=z.constructTagName("stepperconnector");var Gg=z.constructTagName("stepperitem"),sp={INLINE:"inline",STACKED:"stacked"},Ai={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Sd={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},np={VARIANT:sp.INLINE,STATUS:Ai.NOT_STARTED};var Id=z.constructTagName("stepper"),ba={ORIENTATION:ip.HORIZONTAL,VARIANT:sp.INLINE};var _d=class{constructor(o,t){this.orientation=o,this.variant=t}};_d.context=Id;var Cd=_d;var HA=B`
|
|
5531
5531
|
:host {
|
|
5532
5532
|
gap: 0.5rem;
|
|
5533
5533
|
}
|
|
@@ -5564,7 +5564,7 @@
|
|
|
5564
5564
|
padding-top: 0.9375rem;
|
|
5565
5565
|
margin: 0 -3rem;
|
|
5566
5566
|
}
|
|
5567
|
-
`,Yg=[bt,HA];var qs=class extends xe{constructor(){super({context:Cd.context,initialValue:new Cd(
|
|
5567
|
+
`,Yg=[bt,HA];var qs=class extends xe{constructor(){super({context:Cd.context,initialValue:new Cd(ba.ORIENTATION,ba.VARIANT)});this.orientation=ba.ORIENTATION;this.variant=ba.VARIANT}connectedCallback(){super.connectedCallback(),this.role=J.LIST}static get Context(){return Cd.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return _` <slot></slot> `}};qs.styles=[...j.styles,...Yg],m([u({type:String,reflect:!0})],qs.prototype,"orientation",2),m([u({type:String,reflect:!0})],qs.prototype,"variant",2);var Jo=qs;Jo.register(Id);var GA=Jo;var YA=B`
|
|
5568
5568
|
:host {
|
|
5569
5569
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
|
5570
5570
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -5599,7 +5599,7 @@
|
|
|
5599
5599
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
|
5600
5600
|
}
|
|
5601
5601
|
}
|
|
5602
|
-
`,Kg=[YA];var Xs=class extends j{constructor(){super(...arguments);this.status=op.STATUS;this.orientation=op.ORIENTATION;this.stepperContext=Se.consume({host:this,context:
|
|
5602
|
+
`,Kg=[YA];var Xs=class extends j{constructor(){super(...arguments);this.status=op.STATUS;this.orientation=op.ORIENTATION;this.stepperContext=Se.consume({host:this,context:Jo.Context})}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.orientation||(this.orientation=r.orientation)}render(){return _` <div part="connector"></div> `}};Xs.styles=[...j.styles,...Kg],m([u({type:String,reflect:!0})],Xs.prototype,"status",2),m([u({type:String,reflect:!0})],Xs.prototype,"orientation",2);var ap=Xs;ap.register(Hg);var KA=ap;var WA=B`
|
|
5603
5603
|
:host {
|
|
5604
5604
|
gap: 0.5rem;
|
|
5605
5605
|
border-radius: 0.25rem;
|
|
@@ -5755,7 +5755,7 @@
|
|
|
5755
5755
|
:host([status='error-incomplete']:active) {
|
|
5756
5756
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
|
5757
5757
|
}
|
|
5758
|
-
`,Wg=[bt,WA,...
|
|
5758
|
+
`,Wg=[bt,WA,...St()];var Si=class extends kt(zr(j)){constructor(){super();this.variant=np.VARIANT;this.status=np.STATUS;this.label="";this.stepperContext=Se.consume({host:this,context:Jo.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.variant||(this.variant=r.variant)}connectedCallback(){super.connectedCallback(),this.role=J.LISTITEM}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.add("pressed"),r===Z.ENTER&&this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.remove("pressed"),r===Z.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Ai.COMPLETED?_`<mdc-icon part="status-icon" name=${Sd.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Ai.ERROR_CURRENT||this.status===Ai.CURRENT?_`<mdc-icon part="status-icon" name=${Sd.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Ai.NOT_STARTED||this.status===Ai.ERROR_INCOMPLETE)?_`<mdc-text part="step-number" tagname=${pt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
|
5759
5759
|
>${this.stepNumber}</mdc-text
|
|
5760
5760
|
>`:W}renderHelpText(){if(!this.helpText)return W;let t=_`<mdc-text
|
|
5761
5761
|
part="help-text"
|
|
@@ -5771,7 +5771,7 @@
|
|
|
5771
5771
|
>${this.label}</mdc-text
|
|
5772
5772
|
>`:W}
|
|
5773
5773
|
${this.renderHelpText()}
|
|
5774
|
-
</div>`}};Si.styles=[...j.styles,...Wg],
|
|
5774
|
+
</div>`}};Si.styles=[...j.styles,...Wg],m([u({type:String,reflect:!0})],Si.prototype,"variant",2),m([u({type:String,reflect:!0})],Si.prototype,"status",2),m([u({type:String,reflect:!0})],Si.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"help-text"})],Si.prototype,"helpText",2),m([u({type:Number,reflect:!0,attribute:"step-number"})],Si.prototype,"stepNumber",2);var lp=Si;lp.register(Gg);var jA=lp;var jg=z.constructTagName("tab"),dp={GLASS:"glass",LINE:"line",PILL:"pill"},wd={VARIANT:dp.PILL,ACTIVE:!1};var qA=[bt,B`
|
|
5775
5775
|
:host {
|
|
5776
5776
|
--mdc-tab-content-gap: 0.5rem;
|
|
5777
5777
|
--mdc-tab-height: 2rem;
|
|
@@ -5973,7 +5973,7 @@
|
|
|
5973
5973
|
--mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
|
5974
5974
|
--mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
|
|
5975
5975
|
}
|
|
5976
|
-
`,...
|
|
5976
|
+
`,...St()],qg=qA;var lo=class extends Qt(ae){constructor(){super(...arguments);this.active=wd.ACTIVE;this.variant=wd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=J.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=`${Io(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(dp).includes(t)?t:wd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return _`
|
|
5977
5977
|
<div part="container">
|
|
5978
5978
|
<slot name="prefix">
|
|
5979
5979
|
${this.iconName?_` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:W}
|
|
@@ -5989,7 +5989,7 @@
|
|
|
5989
5989
|
<slot name="chip"></slot>
|
|
5990
5990
|
</div>
|
|
5991
5991
|
<div part="indicator"></div>
|
|
5992
|
-
`}};
|
|
5992
|
+
`}};lo.styles=[...ae.styles,...qg],m([u({type:Boolean,reflect:!0})],lo.prototype,"active",2),m([u({type:String,reflect:!0})],lo.prototype,"text",2),m([u({type:String,reflect:!0})],lo.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"tab-id"})],lo.prototype,"tabId",2);var yr=lo;yr.register(jg);var XA=yr;var ZA=[$i,B`
|
|
5993
5993
|
:host {
|
|
5994
5994
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
|
5995
5995
|
--mdc-tablist-gap: 0.5rem;
|
|
@@ -6019,7 +6019,7 @@
|
|
|
6019
6019
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
|
6020
6020
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
|
6021
6021
|
}
|
|
6022
|
-
`],Xg=[...ZA];var Zg=z.constructTagName("tablist"),
|
|
6022
|
+
`],Xg=[...ZA];var Zg=z.constructTagName("tablist"),ya={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Zs={FORWARD:"forward",BACKWARD:"backward"};var kd=a=>a[0],cp=a=>a[a.length-1],Qg=(a,o)=>{let t=a.findIndex(r=>o===r)-1;return a[(t+a.length)%a.length]},Jg=(a,o)=>{let t=a.findIndex(r=>o===r)+1;return a[t%a.length]},tb=(a,o)=>a.find(t=>t.tabId===o),hp=a=>a.find(o=>o.active);var Or=class extends j{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,d,p;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=kd(this.tabs))==null?void 0:s.tabId),(d=this.tabsContainer)==null||d.addEventListener("focusin",this.handleFocus.bind(this)),(p=this.tabsContainer)==null||p.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(r=this.tabsContainer)==null||r.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=tb(this.tabs,this.activeTabId);if(!(r instanceof yr))return;this.setActiveTab(r),t.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}fireTabChangeEvent(t){let r=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(r)}async handleFocus(t){if(t.relatedTarget instanceof yr||!(t.target instanceof yr))return;let r=hp(this.tabs||[]);r instanceof yr&&await this.focusTab(r)}handleMousedown(t){t.target instanceof yr&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let r=t.target;r instanceof yr&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)}resetTabIndexAndSetNewTabIndex(t){var r;(r=this.tabs)==null||r.forEach(s=>{s.setAttribute("tabindex",s===t?"0":"-1")})}setActiveTab(t){var r;(r=this.tabs)==null||r.forEach(s=>{s===t?s.setAttribute("active",""):s.removeAttribute("active")})}async focusTab(t){t instanceof yr&&(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility())}async handleKeydown(t){let r=t.target;if(!(r instanceof yr)||!this.tabs)return;let s=Qg(this.tabs,r),d=Jg(this.tabs,r),p=kd(this.tabs),f=cp(this.tabs);switch(t.code){case ya.LEFT:t.preventDefault(),await this.focusTab(this.isRtl()?d:s);break;case ya.RIGHT:t.preventDefault(),await this.focusTab(this.isRtl()?s:d);break;case ya.HOME:await this.focusTab(p);break;case ya.END:await this.focusTab(f);break;default:}}shouldShowArrowButton(t){return t===Zs.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=hp(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())}async handleArrowButtonVisibility(){var q,Q,X;if(!this.tabs||!this.tabsContainer)return;let t=!1;((q=this.shadowRoot)==null?void 0:q.activeElement)instanceof _o&&(t=!0);let r=kd(this.tabs),s=cp(this.tabs),d=r.getBoundingClientRect().left,p=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=s.getBoundingClientRect().right,T=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,L=r.getBoundingClientRect().right,U=s.getBoundingClientRect().left;if(!this.isRtl()){d<=p?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>T?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}L>T?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,U<p?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var d;let r=this.isRtl()?-1:1,s=this.isRtl()?1:-1;(d=this.tabsContainer)==null||d.scrollBy({left:this.tabsContainer.clientWidth*(t===Zs.FORWARD?r:s),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",s=d=>_` ${this.shouldShowArrowButton(d)?_`<mdc-button
|
|
6023
6023
|
variant="tertiary"
|
|
6024
6024
|
prefix-icon="arrow-${d===Zs.FORWARD?t:r}-regular"
|
|
6025
6025
|
aria-label="Scroll tabs ${d===Zs.FORWARD?t:r}"
|
|
@@ -6028,7 +6028,7 @@
|
|
|
6028
6028
|
<div part="container" role="${J.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
|
|
6029
6029
|
<slot></slot>
|
|
6030
6030
|
</div>
|
|
6031
|
-
${s(Zs.FORWARD)}`}};Or.styles=[...j.styles,...Xg],
|
|
6031
|
+
${s(Zs.FORWARD)}`}};Or.styles=[...j.styles,...Xg],m([u({type:String,attribute:"active-tab-id",reflect:!0})],Or.prototype,"activeTabId",2),m([u({type:String,attribute:"data-aria-label"})],Or.prototype,"dataAriaLabel",2),m([Zt('[part="container"]')],Or.prototype,"tabsContainer",2),m([Zt("mdc-button:not(:focus-visible)")],Or.prototype,"notFocusedArrowButton",2),m([Dt({selector:"mdc-tab"})],Or.prototype,"tabs",2),m([ut()],Or.prototype,"showForwardArrowButton",2),m([ut()],Or.prototype,"showBackwardArrowButton",2);var pp=Or;pp.register(Zg);var QA=pp;var eb=z.constructTagName("textarea"),mp={HARD:"hard",SOFT:"soft"},rb={OFF:"off",ON:"on"},Ea={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:mp.SOFT};var JA=[B`
|
|
6032
6032
|
:host {
|
|
6033
6033
|
--mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
|
|
6034
6034
|
--mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -6153,11 +6153,11 @@
|
|
|
6153
6153
|
:host([disabled])::part(resize-button) {
|
|
6154
6154
|
cursor: default;
|
|
6155
6155
|
}
|
|
6156
|
-
`,...
|
|
6157
|
-
<mdc-text part="character-counter" tagname="span" type=${
|
|
6156
|
+
`,...St(!0)],ib=JA;var se=class extends kt(Ae(Ce(Ht(rr)))){constructor(){super(...arguments);this.rows=Ea.ROWS;this.wrap=mp.SOFT;this.autocapitalize=nd.OFF;this.autocomplete=rb.OFF;this.resizable=!1;this.characterLimitExceedingFired=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let r=t.currentTarget;r&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||Ea.ROWS,r.setPointerCapture(t.pointerId),r.addEventListener("pointermove",this.handlePointerMove),r.addEventListener("pointerup",this.handlePointerUp),r.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let r=t.clientY-this.resizeStartY,s=parseFloat(window.getComputedStyle(this.textarea).lineHeight),d=Math.round(r/s);this.rows=Math.max(1,this.resizeStartRows+d)};this.handlePointerUp=t=>{let r=t.currentTarget;r&&(t.type==="pointerup"&&r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),r.removeEventListener("pointermove",this.handlePointerMove),r.removeEventListener("pointerup",this.handlePointerUp),r.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===zt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceMaxLengthWarning()}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceMaxLengthWarning()}announceMaxLengthWarning(){this.ariaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.ariaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.ariaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}onChange(t){this.updateValue();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?_`
|
|
6157
|
+
<mdc-text part="character-counter" tagname="span" type=${Ea.CHARACTER_COUNTER_TYPE}>
|
|
6158
6158
|
${this.value.length}/${this.maxCharacterLimit}
|
|
6159
6159
|
</mdc-text>
|
|
6160
|
-
`:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:_` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let r=this.rows||
|
|
6160
|
+
`:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:_` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let r=this.rows||Ea.ROWS,s,d=this.getActionForKeyEvent(t);d===Z.UP?s=Math.max(1,r-1):d===Z.DOWN&&(s=r+1),s!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=s)}render(){var t,r;return _`
|
|
6161
6161
|
${this.renderLabel()}
|
|
6162
6162
|
<div class="mdc-focus-ring" part="textarea-container">
|
|
6163
6163
|
<textarea
|
|
@@ -6204,7 +6204,7 @@
|
|
|
6204
6204
|
`:W}
|
|
6205
6205
|
</div>
|
|
6206
6206
|
${this.renderTextareaFooter()}
|
|
6207
|
-
`}};se.styles=[...rr.styles,...ib],
|
|
6207
|
+
`}};se.styles=[...rr.styles,...ib],m([u({type:String})],se.prototype,"placeholder",2),m([u({type:Number,reflect:!0})],se.prototype,"rows",2),m([u({type:Number})],se.prototype,"cols",2),m([u({type:String})],se.prototype,"wrap",2),m([u({type:String})],se.prototype,"autocapitalize",2),m([u({type:String})],se.prototype,"autocomplete",2),m([u({type:String})],se.prototype,"dirname",2),m([u({type:Number})],se.prototype,"maxlength",2),m([u({type:Number})],se.prototype,"minlength",2),m([u({type:Number,attribute:"max-character-limit"})],se.prototype,"maxCharacterLimit",2),m([u({type:String,attribute:"character-limit-announcement"})],se.prototype,"characterLimitAnnouncement",2),m([u({type:Boolean,reflect:!0})],se.prototype,"resizable",2),m([u({type:String,attribute:"resize-button-aria-label"})],se.prototype,"resizeButtonAriaLabel",2),m([Zt("textarea")],se.prototype,"inputElement",2),m([ut()],se.prototype,"ariaLiveAnnouncer",2);var up=se;up.register(eb);var t0=up;var e0=[B`
|
|
6208
6208
|
:host {
|
|
6209
6209
|
display: block;
|
|
6210
6210
|
position: relative;
|
|
@@ -6218,7 +6218,7 @@
|
|
|
6218
6218
|
:host::part(typewriter-hidden) {
|
|
6219
6219
|
display: none;
|
|
6220
6220
|
}
|
|
6221
|
-
`],ob=e0;var sb=z.constructTagName("typewriter"),
|
|
6221
|
+
`],ob=e0;var sb=z.constructTagName("typewriter"),ts={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},Qr={TYPE:fe.TYPE,TEXT_ELEMENT_TAGNAME:fe.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CSS_PART_HIDDEN:"typewriter-hidden",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var Mr=class extends j{constructor(){super(...arguments);this.type=Qr.TYPE;this.tagname=Qr.TEXT_ELEMENT_TAGNAME;this.speed=Qr.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,r){let s=window.setTimeout(()=>{this.pendingTimeouts.delete(s),t()},r);return this.pendingTimeouts.add(s),s}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,r,s){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:r,instant:s}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),r=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=r),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Qr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=r),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Qr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return ts.SLOW;case"fast":return ts.FAST;case"very-slow":return ts.VERY_SLOW;case"very-fast":return ts.VERY_FAST;case"normal":return ts.NORMAL;default:{let r=parseInt(t,10);return Number.isNaN(r)?ts.NORMAL:Math.max(10,r)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");if(!t)return;let r=t.assignedNodes().filter(d=>d.nodeType===Node.TEXT_NODE||d.nodeType===Node.ELEMENT_NODE).map(d=>d.textContent||"").join("");r!==this.previousTextContent&&(this.displayedText===""||!r.includes(this.displayedText)?(this.originalText=r,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=r,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=r,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let r=()=>{if(this.currentIndex<this.originalText.length){let s=this.originalText[this.currentIndex],d=this.displayedText+s;d!==this.displayedText&&(this.displayedText=d,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(r,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(Qr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(r,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return _`
|
|
6222
6222
|
<div part="${Qr.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
|
|
6223
6223
|
<mdc-text
|
|
6224
6224
|
part="${Qr.CSS_PART_TEXT}"
|
|
@@ -6229,7 +6229,7 @@
|
|
|
6229
6229
|
>
|
|
6230
6230
|
<slot @slotchange=${this.handleSlotChange} part="${Qr.CSS_PART_HIDDEN}"></slot>
|
|
6231
6231
|
</div>
|
|
6232
|
-
`}};Mr.styles=[...j.styles,...ob],
|
|
6232
|
+
`}};Mr.styles=[...j.styles,...ob],m([u({attribute:"type",reflect:!0,type:String})],Mr.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Mr.prototype,"tagname",2),m([u({attribute:"speed",reflect:!0})],Mr.prototype,"speed",2),m([u({attribute:"max-queue-size",type:Number,reflect:!0})],Mr.prototype,"maxQueueSize",2),m([ut()],Mr.prototype,"displayedText",2),m([ut()],Mr.prototype,"originalText",2),m([ut()],Mr.prototype,"typingComplete",2);var fp=Mr;fp.register(sb);var r0=fp;var Nd=z.constructTagName("themeprovider"),vp={THEMECLASS:"mds-theme-stable-darkWebex"};var Ld=class{constructor(o){this.themeclass=o}};Ld.context=Nd;var Od=Ld;var i0=B`
|
|
6233
6233
|
:host {
|
|
6234
6234
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
|
6235
6235
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
|
@@ -6256,7 +6256,7 @@
|
|
|
6256
6256
|
* {
|
|
6257
6257
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
|
6258
6258
|
}
|
|
6259
|
-
`,nb=[i0];var Qs=class extends xe{constructor(){super({context:Od.context,initialValue:new Od(vp.THEMECLASS)});this.themeclass=vp.THEMECLASS}static get Context(){return Od.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Qs.styles=[...xe.styles,...nb],
|
|
6259
|
+
`,nb=[i0];var Qs=class extends xe{constructor(){super({context:Od.context,initialValue:new Od(vp.THEMECLASS)});this.themeclass=vp.THEMECLASS}static get Context(){return Od.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Qs.styles=[...xe.styles,...nb],m([ut()],Qs.prototype,"currentThemeClass",2),m([u({type:String})],Qs.prototype,"themeclass",2);var gp=Qs;gp.register(Nd);var o0=gp;var ab=z.constructTagName("toast"),Ta={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Md={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},qe={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:cr[20],BUTTON:li,PRIMARY_BUTTON:$t.PRIMARY,SECONDARY_BUTTON:$t.SECONDARY,TERTIARY_BUTTON:$t.TERTIARY,VARIANT:Ta.CUSTOM};var lb=a=>{switch(a){case Ta.SUCCESS:return Md.SUCCESS_ICON_NAME;case Ta.WARNING:return Md.WARNING_ICON_NAME;case Ta.ERROR:return Md.ERROR_ICON_NAME;default:return null}};var s0=B`
|
|
6260
6260
|
:host {
|
|
6261
6261
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
6262
6262
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -6341,7 +6341,7 @@
|
|
|
6341
6341
|
mdc-text::part(text) {
|
|
6342
6342
|
margin: 0;
|
|
6343
6343
|
}
|
|
6344
|
-
`,db=[s0];var Pe=class extends
|
|
6344
|
+
`,db=[s0];var Pe=class extends Ts(j){constructor(){super(...arguments);this.variant=qe.VARIANT;this.headerTagName=qe.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,r;this.hasDetailedSlot=(r=(t=this.detailedElements)==null?void 0:t.some(s=>{var d;return(d=s.textContent)==null?void 0:d.trim()}))!=null?r:!1}updateFooterButtonsPresence(){var t,r,s,d;this.hasFooterButtons=((r=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?r:0)>0||((d=(s=this.footerButtonSecondary)==null?void 0:s.length)!=null?d:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?_`
|
|
6345
6345
|
<mdc-icon name="${t}" size="${qe.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
|
|
6346
6346
|
`:W}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?_`
|
|
6347
6347
|
<mdc-button
|
|
@@ -6388,7 +6388,7 @@
|
|
|
6388
6388
|
></mdc-button>
|
|
6389
6389
|
</div>
|
|
6390
6390
|
${this.renderFooter()}
|
|
6391
|
-
`}};Pe.styles=[...j.styles,...db],
|
|
6391
|
+
`}};Pe.styles=[...j.styles,...db],m([u({type:String,reflect:!0})],Pe.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Pe.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Pe.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Pe.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Pe.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"show-more-text"})],Pe.prototype,"showMoreText",2),m([u({type:String,reflect:!0,attribute:"show-less-text"})],Pe.prototype,"showLessText",2),m([ut()],Pe.prototype,"isDetailVisible",2),m([ut()],Pe.prototype,"hasDetailedSlot",2),m([Dt({slot:"toast-body-detailed",flatten:!0})],Pe.prototype,"detailedElements",2),m([ut()],Pe.prototype,"hasFooterButtons",2);var bp=Pe;bp.register(ab);var n0=bp;var a0=[bt,B`
|
|
6392
6392
|
:host {
|
|
6393
6393
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
6394
6394
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -6466,7 +6466,7 @@
|
|
|
6466
6466
|
:host([soft-disabled]) {
|
|
6467
6467
|
pointer-events: none;
|
|
6468
6468
|
}
|
|
6469
|
-
`,...
|
|
6469
|
+
`,...St(!0)],cb=a0;var es=class extends kt(io(Ae(Ce(Ht(rr))))){constructor(){super(...arguments);this.checked=!1;this.size=Nh.SIZE;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}handleKeyDown(t){var s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault(),r===Z.ENTER&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(la).includes(t)?t:Nh.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return _`
|
|
6470
6470
|
<mdc-statictoggle
|
|
6471
6471
|
?checked="${this.checked}"
|
|
6472
6472
|
?disabled="${this.disabled}"
|
|
@@ -6496,10 +6496,10 @@
|
|
|
6496
6496
|
/>
|
|
6497
6497
|
</mdc-statictoggle>
|
|
6498
6498
|
${this.renderLabelAndHelperText()}
|
|
6499
|
-
`}};
|
|
6499
|
+
`}};es.styles=[...rr.styles,...cb],es.shadowRootOptions={...rr.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],es.prototype,"checked",2),m([u({type:String,reflect:!0})],es.prototype,"size",2);var yp=es;yp.register(sg);var l0=yp;function rs(a,o,t){var p;let r=(p=t.initialDeps)!=null?p:[],s;function d(){var f,T,L,U;let q;t.key&&((f=t.debug)!=null&&f.call(t))&&(q=Date.now());let Q=a();if(!(Q.length!==r.length||Q.some((dt,lt)=>r[lt]!==dt)))return s;r=Q;let it;if(t.key&&((T=t.debug)!=null&&T.call(t))&&(it=Date.now()),s=o(...Q),t.key&&((L=t.debug)!=null&&L.call(t))){let dt=Math.round((Date.now()-q)*100)/100,lt=Math.round((Date.now()-it)*100)/100,gt=lt/16,It=(Ct,Kt)=>{for(Ct=String(Ct);Ct.length<Kt;)Ct=" "+Ct;return Ct};console.info(`%c\u23F1 ${It(lt,5)} /${It(dt,5)} ms`,`
|
|
6500
6500
|
font-size: .6rem;
|
|
6501
6501
|
font-weight: bold;
|
|
6502
|
-
color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(U=t==null?void 0:t.onChange)==null||U.call(t,s),s}return d.updateDeps=v=>{r=v},d}function Ep(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var hb=(a,o)=>Math.abs(a-o)<1.01,pb=(a,o,t)=>{let r;return function(...s){a.clearTimeout(r),r=a.setTimeout(()=>o.apply(this,s),t)}};var mb=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},d0=a=>a,Tp=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},vb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=m=>{let{width:v,height:T}=m;o({width:Math.round(v),height:Math.round(T)})};if(s(mb(t)),!r.ResizeObserver)return()=>{};let d=new r.ResizeObserver(m=>{let v=()=>{let T=m[0];if(T!=null&&T.borderBoxSize){let L=T.borderBoxSize[0];if(L){s({width:L.inlineSize,height:L.blockSize});return}}s(mb(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(v):v()});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},ub={passive:!0};var fb=typeof window>"u"?!0:"onscrollend"in window,gb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=0,d=a.options.useScrollendEvent&&fb?()=>{}:pb(r,()=>{o(s,!1)},a.options.isScrollingResetDelay),m=U=>()=>{let{horizontal:q,isRtl:Q}=a.options;s=q?t.scrollLeft*(Q&&-1||1):t.scrollTop,d(),o(s,U)},v=m(!0),T=m(!1);T(),t.addEventListener("scroll",v,ub);let L=a.options.useScrollendEvent&&fb;return L&&t.addEventListener("scrollend",T,ub),()=>{t.removeEventListener("scroll",v),L&&t.removeEventListener("scrollend",T)}};var c0=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var bb=(a,{adjustments:o=0,behavior:t},r)=>{var s,d;let m=a+o;(d=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||d.call(s,{[r.options.horizontal?"left":"top"]:m,behavior:t})},Rd=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(d=>{let m=()=>{this._measureElement(d.target,d)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(m):m()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var d;return(d=r())==null?void 0:d.observe(s,{box:"border-box"})},unobserve:s=>{var d;return(d=r())==null?void 0:d.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:d0,rangeExtractor:Tp,onChange:()=>{},measureElement:c0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var r,s;(s=(r=this.options).onChange)==null||s.call(r,this,t)},this.maybeNotify=es(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,m)=>{this.scrollAdjustments=0,this.scrollDirection=m?this.getScrollOffset()<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=m,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,r)=>{let s=new Map,d=new Map;for(let m=r-1;m>=0;m--){let v=t[m];if(s.has(v.lane))continue;let T=d.get(v.lane);if(T==null||v.end>T.end?d.set(v.lane,v):v.end<T.end&&s.set(v.lane,!0),s.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((m,v)=>m.end===v.end?m.index-v.index:m.end-v.end)[0]:void 0},this.getMeasurementOptions=es(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,d,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:m}),{key:!1}),this.getMeasurements=es(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:m},v)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(U=>{this.itemSizeCache.set(U.key,U.size)}));let T=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let L=this.measurementsCache.slice(0,T);for(let U=T;U<t;U++){let q=d(U),Q=this.options.lanes===1?L[U-1]:this.getFurthestMeasurement(L,U),X=Q?Q.end+this.options.gap:r+s,it=v.get(q),dt=typeof it=="number"?it:this.options.estimateSize(U),lt=X+dt,gt=Q?Q.lane:U%this.options.lanes;L[U]={index:U,start:X,size:dt,end:lt,key:q,lane:gt}}return this.measurementsCache=L,L},{key:!1,debug:()=>this.options.debug}),this.calculateRange=es(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,d)=>this.range=t.length>0&&r>0?h0({measurements:t,outerSize:r,scrollOffset:s,lanes:d}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=es(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,d,m)=>d===null||m===null?[]:t({startIndex:d,endIndex:m,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),d=this.measurementsCache[s];if(!d)return;let m=d.key,v=this.elementsCache.get(m);v!==t&&(v&&this.observer.unobserve(v),this.observer.observe(t),this.elementsCache.set(m,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var v;let s=this.measurementsCache[t];if(!s)return;let d=(v=this.itemSizeCache.get(s.key))!=null?v:s.size,m=r-d;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,m,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=es(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let d=0,m=t.length;d<m;d++){let v=t[d],T=r[v];s.push(T)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return Ep(r[yb(0,r.length-1,s=>Ep(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let d=this.getSize(),m=this.getScrollOffset();r==="auto"&&(r=t>=m+d?"end":"start"),r==="center"?t+=(s-d)/2:r==="end"&&(t-=d);let v=this.getTotalSize()+this.options.scrollMargin-d;return Math.max(Math.min(v,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let d=this.getSize(),m=this.getScrollOffset();if(r==="auto")if(s.end>=m+d-this.options.scrollPaddingEnd)r="end";else if(s.start<=m+this.options.scrollPaddingStart)r="start";else return[m,r];let v=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(v,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let d=0,m=10,v=L=>{if(!this.targetWindow)return;let U=this.getOffsetForIndex(t,L);if(!U){console.warn("Failed to get offset for index:",t);return}let[q,Q]=U;this._scrollToOffset(q,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let X=this.getScrollOffset(),it=this.getOffsetForIndex(t,Q);if(!it){console.warn("Failed to get offset for index:",t);return}hb(it[0],X)||T(Q)})},T=L=>{this.targetWindow&&(d++,d<m?this.targetWindow.requestAnimationFrame(()=>v(L)):console.warn(`Failed to scroll to index ${t} after ${m} attempts.`))};v(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var d;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(d=(t=r[r.length-1])==null?void 0:t.end)!=null?d:0;else{let m=Array(this.options.lanes).fill(null),v=r.length-1;for(;v>=0&&m.some(T=>T===null);){let T=r[v];m[T.lane]===null&&(m[T.lane]=T.end),v--}s=Math.max(...m.filter(T=>T!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},yb=(a,o,t,r)=>{for(;a<=o;){let s=(a+o)/2|0,d=t(s);if(d<r)a=s+1;else if(d>r)o=s-1;else return s}return a>0?a-1:0};function h0({measurements:a,outerSize:o,scrollOffset:t,lanes:r}){let s=a.length-1,d=T=>a[T].start;if(a.length<=r)return{startIndex:0,endIndex:s};let m=yb(0,s,d,t),v=m;if(r===1)for(;v<s&&a[v].end<t+o;)v++;else if(r>1){let T=Array(r).fill(0);for(;v<s&&T.some(U=>U<t+o);){let U=a[v];T[U.lane]=U.end,v++}let L=Array(r).fill(t+o);for(;m>=0&&L.some(U=>U>=t);){let U=a[m];L[U.lane]=U.start,m--}m=Math.max(0,m-m%r),v=Math.min(s,v+(r-1-v%r))}return{startIndex:m,endIndex:v}}var xp=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,d)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=t.onChange)==null||m.call(t,s,d)}};this.virtualizer=new Rd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pd=class extends xp{constructor(o,t){super(o,{observeElementRect:vb,observeElementOffset:gb,scrollToFn:bb,...t})}};var p0={includeEnd:!1},Dd=class{constructor(o,t,r={}){let s={...p0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,d=Math.min(t,r),m=Math.max(t,r);return s?o>=d&&o<=m:o>=d&&o<m}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:r,end:s}=this,d=this.start,m=!1;return{next:()=>{if(m)return{value:void 0,done:!0};let v=d;return d+=t,(r?v>s:v>=s)?(m=!0,{value:void 0,done:!0}):{value:v,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Fd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,d)=>o.call(t,r,this.getIndex(r),d))}forEach(o,t){this.items.forEach((r,s,d)=>{o.call(t,r,this.getIndex(r),d)})}findIndex(o,t){let r=this.items.find((s,d,m)=>o.call(t,s,this.getIndex(s),m));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,d)=>o.call(t,r,this.getIndex(r),d))}};var m0=[B`
|
|
6502
|
+
color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(U=t==null?void 0:t.onChange)==null||U.call(t,s),s}return d.updateDeps=f=>{r=f},d}function Ep(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var hb=(a,o)=>Math.abs(a-o)<1.01,pb=(a,o,t)=>{let r;return function(...s){a.clearTimeout(r),r=a.setTimeout(()=>o.apply(this,s),t)}};var mb=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},d0=a=>a,Tp=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},vb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=p=>{let{width:f,height:T}=p;o({width:Math.round(f),height:Math.round(T)})};if(s(mb(t)),!r.ResizeObserver)return()=>{};let d=new r.ResizeObserver(p=>{let f=()=>{let T=p[0];if(T!=null&&T.borderBoxSize){let L=T.borderBoxSize[0];if(L){s({width:L.inlineSize,height:L.blockSize});return}}s(mb(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},ub={passive:!0};var fb=typeof window>"u"?!0:"onscrollend"in window,gb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=0,d=a.options.useScrollendEvent&&fb?()=>{}:pb(r,()=>{o(s,!1)},a.options.isScrollingResetDelay),p=U=>()=>{let{horizontal:q,isRtl:Q}=a.options;s=q?t.scrollLeft*(Q&&-1||1):t.scrollTop,d(),o(s,U)},f=p(!0),T=p(!1);T(),t.addEventListener("scroll",f,ub);let L=a.options.useScrollendEvent&&fb;return L&&t.addEventListener("scrollend",T,ub),()=>{t.removeEventListener("scroll",f),L&&t.removeEventListener("scrollend",T)}};var c0=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var bb=(a,{adjustments:o=0,behavior:t},r)=>{var s,d;let p=a+o;(d=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||d.call(s,{[r.options.horizontal?"left":"top"]:p,behavior:t})},Rd=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(d=>{let p=()=>{this._measureElement(d.target,d)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(p):p()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var d;return(d=r())==null?void 0:d.observe(s,{box:"border-box"})},unobserve:s=>{var d;return(d=r())==null?void 0:d.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:d0,rangeExtractor:Tp,onChange:()=>{},measureElement:c0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var r,s;(s=(r=this.options).onChange)==null||s.call(r,this,t)},this.maybeNotify=rs(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,p)=>{this.scrollAdjustments=0,this.scrollDirection=p?this.getScrollOffset()<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=p,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,r)=>{let s=new Map,d=new Map;for(let p=r-1;p>=0;p--){let f=t[p];if(s.has(f.lane))continue;let T=d.get(f.lane);if(T==null||f.end>T.end?d.set(f.lane,f):f.end<T.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((p,f)=>p.end===f.end?p.index-f.index:p.end-f.end)[0]:void 0},this.getMeasurementOptions=rs(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,d,p)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:p}),{key:!1}),this.getMeasurements=rs(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:p},f)=>{if(!p)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(U=>{this.itemSizeCache.set(U.key,U.size)}));let T=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let L=this.measurementsCache.slice(0,T);for(let U=T;U<t;U++){let q=d(U),Q=this.options.lanes===1?L[U-1]:this.getFurthestMeasurement(L,U),X=Q?Q.end+this.options.gap:r+s,it=f.get(q),dt=typeof it=="number"?it:this.options.estimateSize(U),lt=X+dt,gt=Q?Q.lane:U%this.options.lanes;L[U]={index:U,start:X,size:dt,end:lt,key:q,lane:gt}}return this.measurementsCache=L,L},{key:!1,debug:()=>this.options.debug}),this.calculateRange=rs(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,d)=>this.range=t.length>0&&r>0?h0({measurements:t,outerSize:r,scrollOffset:s,lanes:d}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=rs(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,d,p)=>d===null||p===null?[]:t({startIndex:d,endIndex:p,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),d=this.measurementsCache[s];if(!d)return;let p=d.key,f=this.elementsCache.get(p);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(p,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var f;let s=this.measurementsCache[t];if(!s)return;let d=(f=this.itemSizeCache.get(s.key))!=null?f:s.size,p=r-d;p!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,p,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=p,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=rs(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let d=0,p=t.length;d<p;d++){let f=t[d],T=r[f];s.push(T)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return Ep(r[yb(0,r.length-1,s=>Ep(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let d=this.getSize(),p=this.getScrollOffset();r==="auto"&&(r=t>=p+d?"end":"start"),r==="center"?t+=(s-d)/2:r==="end"&&(t-=d);let f=this.getTotalSize()+this.options.scrollMargin-d;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let d=this.getSize(),p=this.getScrollOffset();if(r==="auto")if(s.end>=p+d-this.options.scrollPaddingEnd)r="end";else if(s.start<=p+this.options.scrollPaddingStart)r="start";else return[p,r];let f=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let d=0,p=10,f=L=>{if(!this.targetWindow)return;let U=this.getOffsetForIndex(t,L);if(!U){console.warn("Failed to get offset for index:",t);return}let[q,Q]=U;this._scrollToOffset(q,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let X=this.getScrollOffset(),it=this.getOffsetForIndex(t,Q);if(!it){console.warn("Failed to get offset for index:",t);return}hb(it[0],X)||T(Q)})},T=L=>{this.targetWindow&&(d++,d<p?this.targetWindow.requestAnimationFrame(()=>f(L)):console.warn(`Failed to scroll to index ${t} after ${p} attempts.`))};f(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var d;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(d=(t=r[r.length-1])==null?void 0:t.end)!=null?d:0;else{let p=Array(this.options.lanes).fill(null),f=r.length-1;for(;f>=0&&p.some(T=>T===null);){let T=r[f];p[T.lane]===null&&(p[T.lane]=T.end),f--}s=Math.max(...p.filter(T=>T!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},yb=(a,o,t,r)=>{for(;a<=o;){let s=(a+o)/2|0,d=t(s);if(d<r)a=s+1;else if(d>r)o=s-1;else return s}return a>0?a-1:0};function h0({measurements:a,outerSize:o,scrollOffset:t,lanes:r}){let s=a.length-1,d=T=>a[T].start;if(a.length<=r)return{startIndex:0,endIndex:s};let p=yb(0,s,d,t),f=p;if(r===1)for(;f<s&&a[f].end<t+o;)f++;else if(r>1){let T=Array(r).fill(0);for(;f<s&&T.some(U=>U<t+o);){let U=a[f];T[U.lane]=U.end,f++}let L=Array(r).fill(t+o);for(;p>=0&&L.some(U=>U>=t);){let U=a[p];L[U.lane]=U.start,p--}p=Math.max(0,p-p%r),f=Math.min(s,f+(r-1-f%r))}return{startIndex:p,endIndex:f}}var xp=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,d)=>{var p;this.host.updateComplete.then(()=>this.host.requestUpdate()),(p=t.onChange)==null||p.call(t,s,d)}};this.virtualizer=new Rd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pd=class extends xp{constructor(o,t){super(o,{observeElementRect:vb,observeElementOffset:gb,scrollToFn:bb,...t})}};var p0={includeEnd:!1},Dd=class{constructor(o,t,r={}){let s={...p0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,d=Math.min(t,r),p=Math.max(t,r);return s?o>=d&&o<=p:o>=d&&o<p}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:r,end:s}=this,d=this.start,p=!1;return{next:()=>{if(p)return{value:void 0,done:!0};let f=d;return d+=t,(r?f>s:f>=s)?(p=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Fd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,d)=>o.call(t,r,this.getIndex(r),d))}forEach(o,t){this.items.forEach((r,s,d)=>{o.call(t,r,this.getIndex(r),d)})}findIndex(o,t){let r=this.items.find((s,d,p)=>o.call(t,s,this.getIndex(s),p));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,d)=>o.call(t,r,this.getIndex(r),d))}};var m0=[B`
|
|
6503
6503
|
:host {
|
|
6504
6504
|
height: 100%;
|
|
6505
6505
|
}
|
|
@@ -6529,7 +6529,7 @@
|
|
|
6529
6529
|
::slotted(mdc-listitem) {
|
|
6530
6530
|
position: relative;
|
|
6531
6531
|
}
|
|
6532
|
-
`],Eb=m0;var Tb=z.constructTagName("virtualizedlist"),Y9=z.constructTagName("virtualizedwrapper"),
|
|
6532
|
+
`],Eb=m0;var Tb=z.constructTagName("virtualizedlist"),Y9=z.constructTagName("virtualizedwrapper"),xa={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var Xe=class extends kt(Ht(Hs)){constructor(){super();this.virtualizerProps=xa.VIRTUALIZER_PROPS;this.loop=xa.LOOP;this.scrollAnchoring=xa.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=xa.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var r,s;this.observeSizeChanges&&this.navItems.find(d=>d===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Gt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,d;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let p=(d=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?d:"data-index";this.virtualizedNavItems=new Fd(super.navItems,f=>Number(f.getAttribute(p)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Pd(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,d;this.observeSizeChanges&&((d=(s=this.virtualizer)==null?void 0:s.measureElement)==null||d.call(s,r))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var d,p;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let f=Math.abs(this.virtualizerProps.count-((d=t==null?void 0:t.count)!=null?d:0)),T=this.selectedIndex,L=this.firstKey,U=new Dd(T-f,T+f,{includeEnd:!0}),q=(p=Array.from(U).find(X=>r.options.getItemKey(X)===this.selectedKey))!=null?p:this.selectedIndex;if(this.setSelectedIndex(q),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&T!==this.selectedIndex||!this.focusWithin&&this.firstKey!==L){let X=r.measurementsCache[this.selectedIndex].end-s[T].end;this.scrollRef.scrollTop+=X}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var r,s,d,p,f;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(p=(d=this.virtualizer)==null?void 0:d.getVirtualItems)==null?void 0:p.call(d))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var T,L,U,q;let{navItems:r,virtualizerProps:s,virtualizer:d}=this,p=(L=(T=s.rangeExtractor)==null?void 0:T.call(s,t))!=null?L:Tp(t);return this.hiddenIndexes.forEach(Q=>{let X=r.at(Q);X&&(X.removeAttribute("data-virtualized-hidden"),X.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(q=(U=this.virtualizer)==null?void 0:U.options.getItemKey(this.firstIndex))!=null?q:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var X;p.includes(Q)||(Q<t.startIndex&&Q>=0&&(p.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((X=d==null?void 0:d.options.count)!=null?X:0)&&(p.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),p.sort((Q,X)=>Q-X),p}updateHiddenItemsPosition(t){let{navItems:r,virtualizerProps:s,virtualizer:d}=this;if(!d||s.count===0)return;let{measurementsCache:p}=d;this.hiddenIndexes.forEach(f=>{let T=r.at(f);if(T){let L=Math.max(t.startIndex-t.overscan,0),U=p[L],q=p[f];T.setAttribute("data-virtualized-hidden","true"),T.style.setProperty("--mdc-virtualizedlist-hidden-top",`${q.start-U.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t)}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var s,d,p,f;switch(this.getActionForKeyEvent(t)){case Z.HOME:{(d=(s=this.virtualizer)==null?void 0:s.scrollToIndex)==null||d.call(s,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Z.END:{let T=this.virtualizerProps.count-1;(f=(p=this.virtualizer)==null?void 0:p.scrollToIndex)==null||f.call(p,T,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(T));break}case Z.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s=!0,d=s){if(this.navItems.find(f=>{var T;return((T=this.virtualizer)==null?void 0:T.indexFromElement(f))===t})===void 0){this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s,d),this.setSelectedIndex(t)});return}super.resetTabIndexAndSetFocus(t,r,s,d),this.setSelectedIndex(t)}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,d;(d=(s=this.virtualizer).scrollToIndex)==null||d.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var d;let t=this.virtualItems.find(({index:p})=>!this.hiddenIndexes.includes(p)),r=(d=t==null?void 0:t.start)!=null?d:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return _`
|
|
6533
6533
|
<slot name="list-header"></slot>
|
|
6534
6534
|
<div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
|
|
6535
6535
|
<div part="wrapper">
|
|
@@ -6538,14 +6538,13 @@
|
|
|
6538
6538
|
</div>
|
|
6539
6539
|
</div>
|
|
6540
6540
|
</div>
|
|
6541
|
-
`}};Xe.styles=[...
|
|
6541
|
+
`}};Xe.styles=[...Hs.styles,...Eb],m([u({type:Object})],Xe.prototype,"virtualizerProps",2),m([u({type:String,reflect:!0})],Xe.prototype,"loop",2),m([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],Xe.prototype,"scrollAnchoring",2),m([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],Xe.prototype,"observeSizeChanges",2),m([u({type:Boolean,reflect:!0,attribute:"revert-list"})],Xe.prototype,"revertList",2),m([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],Xe.prototype,"atBottomThreshold",2),m([Zt('[part="scroll"]',!0)],Xe.prototype,"scrollRef",2),m([Zt('[part="wrapper"]',!0)],Xe.prototype,"wrapperRef",2),m([Zt('[part="container"]',!0)],Xe.prototype,"containerRef",2),m([Km({passive:!0})],Xe.prototype,"onScrollHandler",1);var Ap=Xe;Ap.register(Tb);var u0=Ap;ae.register(qm);var xb=z.constructTagName("combobox"),Sp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Ab="list";var Ip="combobox-trigger-id";var Js=class{static dispatchComboboxEvent(o,t,r,s=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:r==null?void 0:r.value,label:r==null?void 0:r.label},composed:!0,bubbles:s}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var f0=B`
|
|
6542
6542
|
:host {
|
|
6543
6543
|
--mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
6544
6544
|
--mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
6545
6545
|
--mdc-combobox-width: 100%;
|
|
6546
6546
|
--mdc-combobox-listbox-width: var(--mdc-combobox-width);
|
|
6547
6547
|
--mdc-combobox-listbox-height: auto;
|
|
6548
|
-
--mdc-combobox-text-color-disabled: var(--mds-color-theme-text-primary-disabled);
|
|
6549
6548
|
--mdc-combobox-hover-background-color: var(--mds-color-theme-background-primary-hover);
|
|
6550
6549
|
|
|
6551
6550
|
display: flex;
|
|
@@ -6553,13 +6552,13 @@
|
|
|
6553
6552
|
row-gap: 0.5rem;
|
|
6554
6553
|
width: var(--mdc-combobox-width);
|
|
6555
6554
|
}
|
|
6556
|
-
:host::part(
|
|
6555
|
+
:host::part(combobox-base) {
|
|
6557
6556
|
width: 100%;
|
|
6558
6557
|
display: flex;
|
|
6559
6558
|
position: relative;
|
|
6560
6559
|
border-radius: 0.5rem;
|
|
6561
6560
|
}
|
|
6562
|
-
:host(:dir(ltr))::part(
|
|
6561
|
+
:host(:dir(ltr))::part(combobox-button) {
|
|
6563
6562
|
background-color: unset;
|
|
6564
6563
|
border-radius: 0 0.5rem 0.5rem 0;
|
|
6565
6564
|
border-left: 1px solid var(--mdc-combobox-border-color);
|
|
@@ -6567,7 +6566,7 @@
|
|
|
6567
6566
|
padding: 0.5rem;
|
|
6568
6567
|
right: 0;
|
|
6569
6568
|
}
|
|
6570
|
-
:host(:dir(rtl))::part(
|
|
6569
|
+
:host(:dir(rtl))::part(combobox-button) {
|
|
6571
6570
|
background-color: unset;
|
|
6572
6571
|
border-radius: 0.5rem 0 0 0.5rem;
|
|
6573
6572
|
border-right: 1px solid var(--mdc-combobox-border-color);
|
|
@@ -6575,29 +6574,26 @@
|
|
|
6575
6574
|
padding: 0.5rem;
|
|
6576
6575
|
left: 0;
|
|
6577
6576
|
}
|
|
6578
|
-
:host([disabled])::part(
|
|
6577
|
+
:host([disabled])::part(combobox-button) {
|
|
6579
6578
|
cursor: unset;
|
|
6580
6579
|
}
|
|
6581
|
-
:host(:focus-within)::part(
|
|
6580
|
+
:host(:focus-within)::part(combobox-button) {
|
|
6582
6581
|
border-inline-start-color: var(--mdc-combobox-border-color);
|
|
6583
6582
|
}
|
|
6584
|
-
:host(:not([disabled]))::part(
|
|
6583
|
+
:host(:not([disabled]))::part(combobox-base):hover {
|
|
6585
6584
|
background-color: var(--mdc-combobox-hover-background-color);
|
|
6586
6585
|
}
|
|
6587
|
-
:host([help-text-type='error'])::part(
|
|
6588
|
-
:host([help-text-type='warning'])::part(
|
|
6589
|
-
:host([help-text-type='success'])::part(
|
|
6590
|
-
:host([help-text-type='priority'])::part(
|
|
6586
|
+
:host([help-text-type='error'])::part(combobox-button),
|
|
6587
|
+
:host([help-text-type='warning'])::part(combobox-button),
|
|
6588
|
+
:host([help-text-type='success'])::part(combobox-button),
|
|
6589
|
+
:host([help-text-type='priority'])::part(combobox-button) {
|
|
6591
6590
|
border-color: var(--mdc-help-text-color);
|
|
6592
6591
|
}
|
|
6593
|
-
:host
|
|
6594
|
-
border-inline-start-color: var(--mdc-combobox-text-color-disabled);
|
|
6595
|
-
}
|
|
6596
|
-
:host::part(combobox__button-icon) {
|
|
6592
|
+
:host::part(combobox-button-icon) {
|
|
6597
6593
|
--mdc-icon-fill-color: var(--mdc-combobox-icon-color);
|
|
6598
6594
|
}
|
|
6599
|
-
:host([disabled])::part(
|
|
6600
|
-
--mdc-icon-fill-color: var(--
|
|
6595
|
+
:host([disabled])::part(combobox-button-icon) {
|
|
6596
|
+
--mdc-icon-fill-color: var(--mds-color-theme-text-primary-disabled);
|
|
6601
6597
|
}
|
|
6602
6598
|
:host::part(no-result-text) {
|
|
6603
6599
|
pointer-events: none;
|
|
@@ -6606,6 +6602,9 @@
|
|
|
6606
6602
|
/* 2rem is the complete width of dropdown button */
|
|
6607
6603
|
width: calc(100% - 2rem);
|
|
6608
6604
|
}
|
|
6605
|
+
mdc-input {
|
|
6606
|
+
--mdc-input-border-color: var(--mdc-combobox-border-color);
|
|
6607
|
+
}
|
|
6609
6608
|
:host([disabled]) input,
|
|
6610
6609
|
:host([disabled]) mdc-input {
|
|
6611
6610
|
user-select: none;
|
|
@@ -6640,23 +6639,23 @@
|
|
|
6640
6639
|
}
|
|
6641
6640
|
/* High Contrast Mode */
|
|
6642
6641
|
@media (forced-colors: active) {
|
|
6643
|
-
:host::part(
|
|
6642
|
+
:host::part(combobox-button-icon) {
|
|
6644
6643
|
--mdc-icon-fill-color: ButtonText;
|
|
6645
6644
|
}
|
|
6646
6645
|
}
|
|
6647
|
-
`,Sb=[f0];var
|
|
6646
|
+
`,Sb=[f0];var he=class extends kt(Zi(Ae(Ce(Ht(io(de)))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=At.Z_INDEX;this.isOpen=!1;this.filteredValue="";this.forceValueUpdate=!1;this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.handleModifiedEvent=t=>{if(this.controlType==="controlled")return;let r=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;r&&r.value!==this.value&&this.setSelectedValue(r,!1);break}case"unselected":{r&&this.setSelectedValue(r,!1);break}default:break}};this.handleDestroyEvent=t=>{let r=t.detail.originalTarget;if(r&&(!this.isValidItem(r)||r.tabIndex!==0))return;let s=this.navItems.findIndex(p=>p===r);if(s===-1)return;let d=s+1;d>=this.navItems.length&&(d=s-1)};this.addEventListener(Gt.DESTROYED,this.handleDestroyEvent),this.addEventListener(Gt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Xr(this,{isValidItem:this.isValidItem})}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(br)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}toggleDropdown(){this.isOpen=!this.isOpen}compareOptionWithValue(t,r){return(t.getAttribute("label")||"").toLowerCase().startsWith(r==null?void 0:r.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(r=>this.compareOptionWithValue(r,t))}setSelectedValue(t,r=!0){if(this.controlType==="controlled"&&!this.forceValueUpdate){Js.onChangeCombobox(this,t);return}this.forceValueUpdate=!1,this.filteredValue=(t==null?void 0:t.getAttribute("label"))||"",this.value=(t==null?void 0:t.getAttribute("value"))||"",this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.setInputValidity(),this.resetHelpText(),r&&(Js.onInputCombobox(this,t),Js.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=zt.DEFAULT)}attributeChangedCallback(t,r,s){if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&this.navItems.length&&this.controlType!=="controlled"){let d=this.getFirstSelectedOption(),p=this.navItems.find(T=>T.value===s),f=null;if(p)f=p;else if(this.placeholder)f=null;else if(d)f=d;else return;this.updateComplete.then(()=>{this.setSelectedValue(f)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let r=this.getFirstSelectedOption();r&&this.controlType!=="controlled"?(this.initialSelectedOption=r,this.setSelectedValue(r)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}updateValueBasedSelection(){this.forceValueUpdate=!0;let t=this.navItems.find(r=>r.value===this.value);t&&this.setSelectedValue(t)}updated(t){super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,r;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var r;let t=this.initialSelectedOption||null;this.setSelectedValue(t),this.controlType!=="controlled"&&(this.filteredValue=(r=t==null?void 0:t.label)!=null?r:""),this.setInputValidity()}formStateRestoreCallback(t){let r=this.navItems.find(s=>s.value===t||s.label===t);this.setSelectedValue(r||null)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(r=>{r.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,r){t!==void 0&&(r?t.setAttribute("data-focused",""):t.removeAttribute("data-focused"),t.setAttribute("aria-selected",r.toString()))}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),r=t.findIndex(s=>s.hasAttribute("data-focused"));if(r!==-1){this.setSelectedValue(t[r]),this.closePopover();return}r===-1&&this.filteredValue!==""&&this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=zt.ERROR),this.setInputValidity()}updateFocusAndScrollIntoView(t,r,s){var d;this.updateOptionAttributes(t[r],!1),this.updateOptionAttributes(t[s],!0),(d=t[s])==null||d.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let r=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),s=r.findIndex(d=>d.hasAttribute("data-focused"));switch(this.getActionForKeyEvent(t)){case Z.DOWN:{this.openPopover();let d=r.length-1===s?0:s+1;this.updateFocusAndScrollIntoView(r,s,d),t.preventDefault();break}case Z.UP:{this.openPopover();let d=s===-1||s===0?r.length-1:s-1;this.updateFocusAndScrollIntoView(r,s,d),t.preventDefault();break}case Z.ENTER:{if(s===-1)return;this.setSelectedValue(r[s]),this.isOpen&&this.closePopover();break}case Z.ESCAPE:{s!==-1&&this.updateOptionAttributes(r[s],!1),r.length&&this.shouldDisplayPopover(r.length)?this.closePopover():(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue=""));break}case Z.TAB:{this.closePopover();break}case Z.HOME:case Z.END:{this.resetFocusedOption();break}default:break}}updateHiddenOptions(){this.navItems.forEach(t=>{this.compareOptionWithValue(t,this.filteredValue)?(t.removeAttribute("data-hidden"),this.showOptionGroupAndDivider(t)):(t.setAttribute("data-hidden",""),this.hideOptionGroupAndDivider(t))})}hideOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(pa)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length===0&&(t.parentElement.setAttribute("data-hidden",""),(d=t.parentElement.nextElementSibling)!=null&&d.matches(qn)&&t.parentElement.nextElementSibling.setAttribute("data-hidden",""))}showOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(pa)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length>0&&(t.parentElement.removeAttribute("data-hidden"),(d=t.parentElement.nextElementSibling)!=null&&d.matches(qn)&&t.parentElement.nextElementSibling.removeAttribute("data-hidden"))}handleInputChange(t){var r;this.controlType!=="controlled"&&(this.filteredValue=t.target.value),this.resetSelectedValue(),this.resetFocusedOption(),this.updateHiddenOptions(),(r=this.getFirstSelectedOption())==null||r.removeAttribute("selected"),this.isOpen===!1&&this.openPopover()}handleOptionsClick(t){var s;let r=(s=t.target.closest(br))!=null?s:null;r&&!r.hasAttribute("disabled")&&(this.setSelectedValue(r),this.closePopover(),this.updateComplete.then(()=>this.handleNativeInputFocus()).catch(this.handleUpdateError))}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t?this.isOpen:!!this.noResultText}renderNativeInput(){return _`
|
|
6648
6647
|
<input
|
|
6649
6648
|
id="${this.inputId}"
|
|
6650
6649
|
name="${this.name}"
|
|
6651
6650
|
type="text"
|
|
6652
|
-
.value="${
|
|
6651
|
+
.value="${Ko(this.value)}"
|
|
6653
6652
|
aria-hidden="true"
|
|
6654
6653
|
part="internal-native-input"
|
|
6655
6654
|
tabindex="-1"
|
|
6656
6655
|
?required=${this.required}
|
|
6657
6656
|
?disabled=${this.disabled}
|
|
6658
6657
|
?readonly=${this.readonly}
|
|
6659
|
-
autocomplete="${
|
|
6658
|
+
autocomplete="${$s.OFF}"
|
|
6660
6659
|
@focus=${this.handleNativeInputFocus}
|
|
6661
6660
|
@invalid=${this.setInputValidity}
|
|
6662
6661
|
/>
|
|
@@ -6665,8 +6664,8 @@
|
|
|
6665
6664
|
id="${this.id}"
|
|
6666
6665
|
slot="input"
|
|
6667
6666
|
?disabled="${this.disabled}"
|
|
6668
|
-
.value="${
|
|
6669
|
-
autocomplete="${
|
|
6667
|
+
.value="${Ko(this.filteredValue)}"
|
|
6668
|
+
autocomplete="${$s.OFF}"
|
|
6670
6669
|
part="input-text"
|
|
6671
6670
|
placeholder="${tt(this.placeholder)}"
|
|
6672
6671
|
role="${J.COMBOBOX}"
|
|
@@ -6688,7 +6687,7 @@
|
|
|
6688
6687
|
/>
|
|
6689
6688
|
`}renderNoResultsText(t){return t===0&&this.noResultText?_`<mdc-listitem part="no-result-text" tabindex="-1" role="" label="${this.noResultText}"></mdc-listitem>`:W}render(){var r;let t=this.getVisibleOptions(this.filteredValue);return _`
|
|
6690
6689
|
${this.renderLabel()}
|
|
6691
|
-
<div part="
|
|
6690
|
+
<div part="combobox-base" id="${Ip}">
|
|
6692
6691
|
${this.renderNativeInput()}
|
|
6693
6692
|
<mdc-input
|
|
6694
6693
|
@click="${()=>this.toggleDropdown()}"
|
|
@@ -6700,14 +6699,14 @@
|
|
|
6700
6699
|
</mdc-input>
|
|
6701
6700
|
<mdc-buttonsimple
|
|
6702
6701
|
@click="${()=>this.toggleDropdown()}"
|
|
6703
|
-
part="
|
|
6702
|
+
part="combobox-button"
|
|
6704
6703
|
?disabled="${this.disabled}"
|
|
6705
6704
|
tabindex="-1"
|
|
6706
6705
|
aria-expanded="${this.isOpen?"true":"false"}"
|
|
6707
6706
|
aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
|
|
6708
6707
|
>
|
|
6709
6708
|
<mdc-icon
|
|
6710
|
-
part="
|
|
6709
|
+
part="combobox-button-icon"
|
|
6711
6710
|
name="${this.shouldDisplayPopover(t.length)?Sp.ARROW_UP:Sp.ARROW_DOWN}"
|
|
6712
6711
|
size="1"
|
|
6713
6712
|
length-unit="rem"
|
|
@@ -6738,7 +6737,7 @@
|
|
|
6738
6737
|
</mdc-popover>
|
|
6739
6738
|
</div>
|
|
6740
6739
|
${this.renderHelperText()}
|
|
6741
|
-
`}};
|
|
6740
|
+
`}};he.styles=[...Lr.styles,...de.styles,...Sb],m([u({type:String})],he.prototype,"placeholder",2),m([u({type:String,reflect:!0})],he.prototype,"placement",2),m([u({type:String,attribute:"no-result-text",reflect:!0})],he.prototype,"noResultText",2),m([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],he.prototype,"invalidCustomValueText",2),m([u({type:String,reflect:!0})],he.prototype,"boundary",2),m([u({type:String,reflect:!0})],he.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],he.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],he.prototype,"backdropAppendTo",2),m([Zt(`[role="${J.COMBOBOX}"]`)],he.prototype,"visualCombobox",2),m([Zt('[part="combobox-button"]')],he.prototype,"dropDownButton",2),m([Dt({selector:xd})],he.prototype,"slottedListboxes",2),m([ut()],he.prototype,"isOpen",2),m([ut()],he.prototype,"filteredValue",2),m([ut()],he.prototype,"forceValueUpdate",2);var _p=he;_p.register(xb);var v0=_p;var Ib=(a,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(a[s],s);return r},_b=hi(class extends Hr{constructor(a){if(super(a),a.type!==er.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let s=[],d=[],p=0;for(let f of a)s[p]=r?r(f,p):p,d[p]=t(f,p),p++;return{values:d,keys:s}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,r]){var dt;let s=Tu(a),{values:d,keys:p}=this.dt(o,t,r);if(!Array.isArray(s))return this.ut=p,d;let f=(dt=this.ut)!=null?dt:this.ut=[],T=[],L,U,q=0,Q=s.length-1,X=0,it=d.length-1;for(;q<=Q&&X<=it;)if(s[q]===null)q++;else if(s[Q]===null)Q--;else if(f[q]===p[X])T[X]=Ui(s[q],d[X]),q++,X++;else if(f[Q]===p[it])T[it]=Ui(s[Q],d[it]),Q--,it--;else if(f[q]===p[it])T[it]=Ui(s[q],d[it]),Es(a,T[it+1],s[q]),q++,it--;else if(f[Q]===p[X])T[X]=Ui(s[Q],d[X]),Es(a,s[q],s[Q]),Q--,X++;else if(L===void 0&&(L=Ib(p,X,it),U=Ib(f,q,Q)),L.has(f[q]))if(L.has(f[Q])){let lt=U.get(p[X]),gt=lt!==void 0?s[lt]:null;if(gt===null){let It=Es(a,s[q]);Ui(It,d[X]),T[X]=It}else T[X]=Ui(gt,d[X]),Es(a,s[q],gt),s[lt]=null;X++}else ml(s[Q]),Q--;else ml(s[q]),q++;for(;X<=it;){let lt=Es(a,T[it+1]);Ui(lt,d[X]),T[X++]=lt}for(;q<=Q;){let lt=s[q++];lt!==null&&ml(lt)}return this.ut=p,pl(a,T),Te}});var Cb=z.constructTagName("slider"),g0={START:"start",END:"end",UNDEFINED:void 0},co={MIN:0,MAX:100,STEP:1,STATE:g0.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var b0=B`
|
|
6742
6741
|
:host {
|
|
6743
6742
|
width: 100%;
|
|
6744
6743
|
--mdc-slider-tooltip-left: 0;
|
|
@@ -6960,24 +6959,24 @@
|
|
|
6960
6959
|
border: 1px solid;
|
|
6961
6960
|
}
|
|
6962
6961
|
}
|
|
6963
|
-
`,wb=[$i,b0];var Lt=class extends kt(j){constructor(){super();this.thumbFocused=
|
|
6962
|
+
`,wb=[$i,b0];var Lt=class extends kt(j){constructor(){super();this.thumbFocused=co.STATE;this.thumbHovered=co.STATE;this.range=!1;this.min=co.MIN;this.max=co.MAX;this.step=co.STEP;this.addEventListener("keydown",this.preventChange.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 instanceof KeyboardEvent&&this.getActionForKeyEvent(t)!==Z.TAB||!(t instanceof KeyboardEvent))&&(t.preventDefault(),t.stopPropagation())}setSoftDisabled(){this.inputElements.forEach(t=>{let r=t;this.softDisabled?r.setAttribute("aria-disabled","true"):r.removeAttribute("aria-disabled")})}initializeRangeSlider(){this.valueStart===void 0&&(this.valueStart=this.min),this.valueEnd===void 0&&(this.valueEnd=this.max),this.handleInput(0),this.handleInput(1)}handleInput(t){let r=this.inputElements[t];if(r)if(t===0){if(!this.valueEnd)return;let s=Number(r.value);s>this.valueEnd?(r.value=String(this.valueEnd),this.valueStart=this.valueEnd):s>=this.min&&s<this.valueEnd?this.valueStart=s:s<this.min&&(r.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let s=Number(r.value);s<this.valueStart?(r.value=String(this.valueStart),this.valueEnd=this.valueStart):s<=this.max&&s>this.valueStart?this.valueEnd=s:s>this.max&&(r.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,r){return typeof t=="string"&&t.length>0?_`<mdc-icon
|
|
6964
6963
|
name="${t}"
|
|
6965
6964
|
part="${r}"
|
|
6966
|
-
length-unit="${
|
|
6967
|
-
size="${
|
|
6968
|
-
></mdc-icon>`:null}tooltipTemplate(t,r){let[s,d]=this.inputElements,
|
|
6969
|
-
${t||
|
|
6970
|
-
</div> `}updateTrackStyling(){let t="var(--mdc-slider-progress-color)",r="var(--mdc-slider-track-color)";if((this.disabled||this.softDisabled)&&(t="var(--mds-color-theme-control-active-disabled)",r="var(--mds-color-theme-control-inactive-disabled)"),this.range){if(!this.inputElements[1])return;let s=Number(this.inputElements[0].value),d=Number(this.inputElements[1].value),
|
|
6965
|
+
length-unit="${co.ICON_LENGTH_UNIT}"
|
|
6966
|
+
size="${co.ICON_SIZE}"
|
|
6967
|
+
></mdc-icon>`:null}tooltipTemplate(t,r){let[s,d]=this.inputElements,p=r==="end"?d:s,f=Number(p==null?void 0:p.value);if(typeof f!="number"||Number.isNaN(f)||this.max===this.min||this.disabled||this.hideTooltip)return W;let T=(f-this.min)/(this.max-this.min);return _`<div part="slider-tooltip" aria-hidden="true" style="--mdc-slider-tooltip-left: ${T}">
|
|
6968
|
+
${t||f}
|
|
6969
|
+
</div> `}updateTrackStyling(){let t="var(--mdc-slider-progress-color)",r="var(--mdc-slider-track-color)";if((this.disabled||this.softDisabled)&&(t="var(--mds-color-theme-control-active-disabled)",r="var(--mds-color-theme-control-inactive-disabled)"),this.range){if(!this.inputElements[1])return;let s=Number(this.inputElements[0].value),d=Number(this.inputElements[1].value),p=Number(this.inputElements[0].max)||1,f=Math.max(0,Math.min(100,(s-this.min)/(p-this.min)*100)),T=Math.max(0,Math.min(100,(d-this.min)/(p-this.min)*100));this.inputElements[1].style.background=`linear-gradient(
|
|
6971
6970
|
to right,
|
|
6972
6971
|
${r} 0%,
|
|
6973
|
-
${r} ${
|
|
6974
|
-
${t} ${
|
|
6972
|
+
${r} ${f}%,
|
|
6973
|
+
${t} ${f}%,
|
|
6975
6974
|
${t} ${T}%,
|
|
6976
6975
|
${r} ${T}%,
|
|
6977
6976
|
${r} 100%
|
|
6978
|
-
)`}else{if(!this.inputElements[0])return;let s=Number(this.inputElements[0].value),d=Number(this.inputElements[0].max)||1,
|
|
6977
|
+
)`}else{if(!this.inputElements[0])return;let s=Number(this.inputElements[0].value),d=Number(this.inputElements[0].max)||1,p=Math.max(0,Math.min(100,(s-this.min)/(d-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${p}%, ${r} ${p}%)`}}onInput(t){let r=t.target;this.value=Number(r.value)}onChange(t){let r=t.target;this.value=Number(r.value),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}}))}onChangeStart(t){let r=t.target;this.valueStart=Number(r.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueStart:this.valueStart,valueEnd:this.valueEnd}}))}onChangeEnd(t){let r=t.target;this.valueEnd=Number(r.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueEnd:this.valueEnd,valueStart:this.valueStart}}))}getTickStyles(t){if(this.max===this.min)return"";let r=(t-this.min)/(this.max-this.min),s=[];if(this.inputElements[0]){let p=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);s.push(p)}if(this.range&&this.inputElements[1]){let p=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);s.push(p)}return s.includes(r)?"display:none;":`--mdc-slider-tick-left:${r};`}renderTicks(){let t=[];if(this.step&&this.step>1)for(let r=this.min;r<=this.max;r+=this.step)t.push(r);return this.step>1?_` <div part="slider-ticks">
|
|
6979
6978
|
${_b(t,r=>r,r=>_`<span part="slider-tick" style=${this.getTickStyles(r)}></span>`)}
|
|
6980
|
-
</div>`:W}render(){var t,r,s,d,
|
|
6979
|
+
</div>`:W}render(){var t,r,s,d,p,f,T,L,U,q,Q,X,it,dt,lt,gt,It;return _`
|
|
6981
6980
|
${this.label?_`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
|
|
6982
6981
|
<div part="slider-track">
|
|
6983
6982
|
${this.iconTemplate(this.leadingIcon,"leading-icon")}
|
|
@@ -7014,8 +7013,8 @@
|
|
|
7014
7013
|
type="range"
|
|
7015
7014
|
min="${this.min}"
|
|
7016
7015
|
max="${this.max}"
|
|
7017
|
-
step="${(
|
|
7018
|
-
.value="${String((
|
|
7016
|
+
step="${(p=this.step)!=null?p:1}"
|
|
7017
|
+
.value="${String((f=this.valueEnd)!=null?f:this.max)}"
|
|
7019
7018
|
?disabled="${this.disabled}"
|
|
7020
7019
|
name="${(T=this.nameEnd)!=null?T:""}"
|
|
7021
7020
|
aria-valuemin="${this.min}"
|
|
@@ -7065,7 +7064,7 @@
|
|
|
7065
7064
|
${this.labelStart?_`<span part="slider-label-start">${this.labelStart}</span>`:null}
|
|
7066
7065
|
${this.labelEnd?_`<span part="slider-label-end">${this.labelEnd}</span>`:null}
|
|
7067
7066
|
</div>
|
|
7068
|
-
`}};Lt.styles=[...j.styles,...wb],
|
|
7067
|
+
`}};Lt.styles=[...j.styles,...wb],m([ut()],Lt.prototype,"thumbFocused",2),m([ut()],Lt.prototype,"thumbHovered",2),m([u({reflect:!0,type:Boolean})],Lt.prototype,"range",2),m([u({reflect:!0,type:Number})],Lt.prototype,"min",2),m([u({reflect:!0,type:Number})],Lt.prototype,"max",2),m([u({reflect:!0,type:Boolean})],Lt.prototype,"disabled",2),m([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Lt.prototype,"softDisabled",2),m([u({reflect:!0,type:String,attribute:"leading-icon"})],Lt.prototype,"leadingIcon",2),m([u({reflect:!0,type:String,attribute:"trailing-icon"})],Lt.prototype,"trailingIcon",2),m([u({reflect:!0,type:Number})],Lt.prototype,"value",2),m([u({reflect:!0,type:Number,attribute:"value-start"})],Lt.prototype,"valueStart",2),m([u({reflect:!0,type:Number,attribute:"value-end"})],Lt.prototype,"valueEnd",2),m([u({reflect:!0,type:Number})],Lt.prototype,"step",2),m([u({reflect:!0,type:String})],Lt.prototype,"label",2),m([u({reflect:!0,type:String,attribute:"label-start"})],Lt.prototype,"labelStart",2),m([u({reflect:!0,type:String,attribute:"label-end"})],Lt.prototype,"labelEnd",2),m([u({reflect:!0,type:String,attribute:"value-label"})],Lt.prototype,"valueLabel",2),m([u({reflect:!0,type:String,attribute:"value-label-start"})],Lt.prototype,"valueLabelStart",2),m([u({reflect:!0,type:String,attribute:"value-label-end"})],Lt.prototype,"valueLabelEnd",2),m([u({reflect:!0,type:String})],Lt.prototype,"name",2),m([u({reflect:!0,type:String,attribute:"name-start"})],Lt.prototype,"nameStart",2),m([u({reflect:!0,type:String,attribute:"name-end"})],Lt.prototype,"nameEnd",2),m([u({reflect:!0,type:String,attribute:"data-aria-label"})],Lt.prototype,"dataAriaLabel",2),m([u({reflect:!0,type:String,attribute:"start-aria-label"})],Lt.prototype,"startAriaLabel",2),m([u({reflect:!0,type:String,attribute:"end-aria-label"})],Lt.prototype,"endAriaLabel",2),m([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Lt.prototype,"dataAriaValuetext",2),m([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Lt.prototype,"startAriaValuetext",2),m([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Lt.prototype,"endAriaValueText",2),m([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Lt.prototype,"hideTooltip",2),m([Wm('input[type="range"]')],Lt.prototype,"inputElements",2);var Cp=Lt;Cp.register(Cb);var y0=Cp;var E0=B`
|
|
7069
7068
|
:host {
|
|
7070
7069
|
--mdc-listbox-max-height: auto;
|
|
7071
7070
|
|
|
@@ -7082,7 +7081,7 @@
|
|
|
7082
7081
|
::slotted(mdc-option) {
|
|
7083
7082
|
width: 100%;
|
|
7084
7083
|
}
|
|
7085
|
-
`,kb=[E0];var
|
|
7084
|
+
`,kb=[E0];var is=class extends Bs(Zi(j)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Xr(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=J.LISTBOX}handleModifiedEvent(t){let r=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(r);break;case"disabled":this.itemsStore.delete(r);break;case"selected":this.setSelectedOption(r,!1,!1);break;case"unselected":this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${br}:not([disabled])`)}handleClick(t){let r=t.target;this.isValidItem(r)&&this.setSelectedOption(r)}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}updated(t){if(t.has("value")){let r=this.itemsStore.items.find(s=>s.value===this.value);r?this.setSelectedOption(r,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,r=!0,s=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(s&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,r&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(r=>r.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.selectedOption&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return _`<slot part="container"></slot>`}};is.styles=[...Eh.styles,...kb],m([u({type:String,reflect:!0})],is.prototype,"name",2),m([u({type:String,reflect:!0})],is.prototype,"value",2),m([ut()],is.prototype,"selectedOption",2);var wp=is;var Nb=z.constructTagName("listbox");wp.register(Nb);var T0=wp;var Lb=z.constructTagName("banner"),tn={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},Aa={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},$d={VARIANT:tn.CUSTOM,PREFIX_ICON_SIZE:1.25};var x0=B`
|
|
7086
7085
|
:host {
|
|
7087
7086
|
--mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
7088
7087
|
--mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -7165,7 +7164,7 @@
|
|
|
7165
7164
|
gap: var(--mdc-banner-gap);
|
|
7166
7165
|
flex-wrap: wrap;
|
|
7167
7166
|
}
|
|
7168
|
-
`,Ob=[x0];var Mb=a=>{switch(a){case
|
|
7167
|
+
`,Ob=[x0];var Mb=a=>{switch(a){case tn.INFORMATIONAL:return Aa.INFORMATIONAL_ICON_NAME;case tn.SUCCESS:return Aa.SUCCESS_ICON_NAME;case tn.WARNING:return Aa.WARNING_ICON_NAME;case tn.ERROR:return Aa.ERROR_ICON_NAME;default:return null}};var os=class extends j{constructor(){super(...arguments);this.variant=$d.VARIANT}renderIcon(t){return t?_`
|
|
7169
7168
|
<mdc-icon name="${t}" size="${$d.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
|
|
7170
7169
|
`:W}getTextLabel(){return this.label?_`
|
|
7171
7170
|
<mdc-text
|
|
@@ -7194,7 +7193,7 @@
|
|
|
7194
7193
|
<slot name="trailing-actions"></slot>
|
|
7195
7194
|
</div>
|
|
7196
7195
|
</slot>
|
|
7197
|
-
`}};
|
|
7196
|
+
`}};os.styles=[...j.styles,...Ob],m([u({type:String,reflect:!0})],os.prototype,"variant",2),m([u({type:String,reflect:!0})],os.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"secondary-label"})],os.prototype,"secondaryLabel",2);var kp=os;kp.register(Lb);var A0=kp;})();
|
|
7198
7197
|
/*! Bundled license information:
|
|
7199
7198
|
|
|
7200
7199
|
lottie-web/build/player/lottie_light.js:
|