@momentum-design/components 0.129.42 → 0.129.44
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 +386 -386
- package/dist/browser/index.js.map +4 -4
- package/dist/components/accordionbutton/accordionbutton.component.d.ts +1 -1
- package/dist/components/accordionbutton/accordionbutton.component.js +4 -3
- package/dist/components/buttonsimple/buttonsimple.component.d.ts +1 -1
- package/dist/components/buttonsimple/buttonsimple.component.js +8 -6
- package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +1 -1
- package/dist/components/cardcheckbox/cardcheckbox.component.js +7 -5
- package/dist/components/cardradio/cardradio.component.d.ts +1 -1
- package/dist/components/cardradio/cardradio.component.js +8 -7
- package/dist/components/checkbox/checkbox.component.d.ts +2 -1
- package/dist/components/checkbox/checkbox.component.js +7 -4
- package/dist/components/coachmark/coachmark.component.d.ts +14 -1
- package/dist/components/coachmark/coachmark.component.js +14 -1
- package/dist/components/coachmark/index.d.ts +0 -1
- package/dist/components/coachmark/index.js +0 -1
- package/dist/components/combobox/combobox.component.d.ts +1 -1
- package/dist/components/combobox/combobox.component.js +11 -11
- package/dist/components/input/input.component.d.ts +1 -1
- package/dist/components/input/input.component.js +3 -3
- package/dist/components/list/list.component.d.ts +1 -1
- package/dist/components/listbox/listbox.component.d.ts +1 -1
- package/dist/components/listitem/listitem.component.d.ts +1 -1
- package/dist/components/listitem/listitem.component.js +11 -5
- package/dist/components/menubar/menubar.component.d.ts +2 -2
- package/dist/components/menubar/menubar.component.js +10 -20
- package/dist/components/menuitem/menuitem.component.js +3 -3
- package/dist/components/menupopover/menupopover.component.d.ts +0 -10
- package/dist/components/menupopover/menupopover.component.js +15 -36
- package/dist/components/popover/popover.component.d.ts +26 -13
- package/dist/components/popover/popover.component.js +26 -12
- package/dist/components/popover/popover.constants.d.ts +5 -1
- package/dist/components/popover/popover.constants.js +6 -2
- package/dist/components/popover/popover.types.d.ts +3 -2
- package/dist/components/radio/radio.component.d.ts +1 -1
- package/dist/components/radio/radio.component.js +8 -7
- package/dist/components/searchfield/searchfield.component.d.ts +3 -0
- package/dist/components/searchfield/searchfield.component.js +18 -5
- package/dist/components/searchpopover/searchpopover.component.js +3 -4
- package/dist/components/select/select.component.d.ts +1 -1
- package/dist/components/select/select.component.js +9 -8
- package/dist/components/slider/slider.component.d.ts +2 -1
- package/dist/components/slider/slider.component.js +4 -3
- package/dist/components/stepperitem/stepperitem.component.d.ts +1 -1
- package/dist/components/stepperitem/stepperitem.component.js +8 -6
- package/dist/components/textarea/textarea.component.d.ts +1 -1
- package/dist/components/textarea/textarea.component.js +5 -4
- package/dist/components/toggle/toggle.component.d.ts +1 -1
- package/dist/components/toggle/toggle.component.js +5 -4
- package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +1 -1
- package/dist/components/virtualizedlist/virtualizedlist.component.js +7 -6
- package/dist/custom-elements.json +1417 -1020
- package/dist/react/checkbox/index.d.ts +1 -0
- package/dist/react/checkbox/index.js +1 -0
- package/dist/react/coachmark/index.d.ts +14 -1
- package/dist/react/coachmark/index.js +14 -1
- package/dist/utils/mixins/KeyToActionMixin.d.ts +69 -0
- package/dist/utils/mixins/KeyToActionMixin.js +92 -0
- package/dist/utils/mixins/ListNavigationMixin.d.ts +2 -1
- package/dist/utils/mixins/ListNavigationMixin.js +10 -33
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var _y=Object.create;var Kd=Object.defineProperty;var bm=Object.getOwnPropertyDescriptor;var Cy=Object.getOwnPropertyNames;var wy=Object.getPrototypeOf,ky=Object.prototype.hasOwnProperty;var Ny=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var Ly=(n,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Cy(o))!ky.call(n,s)&&s!==t&&Kd(n,s,{get:()=>o[s],enumerable:!(r=bm(o,s))||r.enumerable});return n};var Oy=(n,o,t)=>(t=n!=null?_y(wy(n)):{},Ly(o||!n||!n.__esModule?Kd(t,"default",{value:n,enumerable:!0}):t,n));var p=(n,o,t,r)=>{for(var s=r>1?void 0:r?bm(o,t):o,d=n.length-1,m;d>=0;d--)(m=n[d])&&(s=(r?m(o,t,s):m(s))||s);return r&&s&&Kd(o,t,s),s};var Eu=Ny((ka,pl)=>{typeof navigator<"u"&&function(n,o){typeof ka=="object"&&typeof pl<"u"?pl.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(ka,function(){"use strict";var n="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},b=function(){return o};function x(e){return document.createElement(e)}function N(e,i){var a,l=e.length,h;for(a=0;a<l;a+=1){h=e[a].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(i.prototype[c]=h[c])}}function B(e,i){return Object.getOwnPropertyDescriptor(e,i)}function K(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(a){this.audios.push(a)},pause:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].pause()},resume:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].resume()},setRate:function(a){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].setRate(a)},createAudio:function(a){return this.audioFactory?this.audioFactory(a):window.Howl?new window.Howl({src:[a]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(a){this.audioFactory=a},setVolume:function(a){this._volume=a,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(a,l){var h=0,c=[],v;switch(a){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(h=0;h<l;h+=1)c.push(v);return c}function i(a,l){return a==="float32"?new Float32Array(l):a==="int16"?new Int16Array(l):a==="uint8c"?new Uint8ClampedArray(l):e(a,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(a){return typeof a}:dt=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},dt(e)}var lt=!0,bt=null,It=null,Ct="",Yt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),zt=!1,Wt=Math.pow,Qt=Math.sqrt,de=Math.floor,br=Math.max,Me=Math.min,rr={};(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,a=e.length;for(i=0;i<a;i+=1)rr[e[i]]=Math[e[i]]})();function yr(){return{}}rr.random=Math.random,rr.abs=function(e){var i=dt(e);if(i==="object"&&e.length){var a=it(e.length),l,h=e.length;for(l=0;l<h;l+=1)a[l]=Math.abs(e[l]);return a}return Math.abs(e)};var Er=150,wt=Math.PI/180,ue=.5519;function ir(e){zt=!!e}function or(e){return zt?Math.round(e):e}function sr(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,a,l){this.type=e,this.currentTime=i,this.totalTime=a,this.direction=l<0?-1:1}function Tn(e,i){this.type=e,this.direction=i<0?-1:1}function Ip(e,i,a,l){this.type=e,this.currentLoop=a,this.totalLoops=i,this.direction=l<0?-1:1}function _p(e,i,a){this.type=e,this.firstFrame=i,this.totalFrames=a}function Cp(e,i){this.type=e,this.target=i}function _b(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function Cb(e){this.type="configError",this.nativeError=e}function i0(e,i){this.type=e,this.nativeError=i}var Pe=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function Pd(e,i,a){var l,h,c,v,A,g,w,O;switch(v=Math.floor(e*6),A=e*6-v,g=a*(1-i),w=a*(1-A*i),O=a*(1-(1-A)*i),v%6){case 0:l=a,h=O,c=g;break;case 1:l=w,h=a,c=g;break;case 2:l=g,h=a,c=O;break;case 3:l=g,h=w,c=a;break;case 4:l=O,h=g,c=a;break;case 5:l=a,h=g,c=w;break;default:break}return[l,h,c]}function Dd(e,i,a){var l=Math.max(e,i,a),h=Math.min(e,i,a),c=l-h,v,A=l===0?0:c/l,g=l/255;switch(l){case h:v=0;break;case e:v=i-a+c*(i<a?6:0),v/=6*c;break;case i:v=a-e+c*2,v/=6*c;break;case a:v=e-i+c*4,v/=6*c;break;default:break}return[v,A,g]}function wp(e,i){var a=Dd(e[0]*255,e[1]*255,e[2]*255);return a[1]+=i,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),Pd(a[0],a[1],a[2])}function kp(e,i){var a=Dd(e[0]*255,e[1]*255,e[2]*255);return a[2]+=i,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),Pd(a[0],a[1],a[2])}function Np(e,i){var a=Dd(e[0]*255,e[1]*255,e[2]*255);return a[0]+=i/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),Pd(a[0],a[1],a[2])}var o0=function(){var e=[],i,a;for(i=0;i<256;i+=1)a=i.toString(16),e[i]=a.length===1?"0"+a:a;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),wb=function(i){lt=!!i},kb=function(){return lt},Nb=function(i){bt=i},xn=function(){return bt},s0=function(i){It=i},Lp=function(){return It},An=function(i){Er=i},Xs=function(){return Er},Lb=function(i){Ct=i},a0=function(){return Ct};function xt(e){return document.createElementNS(n,e)}function Sn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sn=function(a){return typeof a}:Sn=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Sn(e)}var Zs=function(){var e=1,i=[],a,l,h={onmessage:function(){},postMessage:function(R){a({data:R})}},c={postMessage:function(R){h.onmessage({data:R})}};function v(T){if(window.Worker&&window.Blob&&d()){var R=new Blob(["var _workerSelf = self; self.onmessage = ",T.toString()],{type:"text/javascript"}),D=URL.createObjectURL(R);return new Worker(D)}return a=T,h}function A(){l||(l=v(function(R){function D(){function V(et,I){var P,f,y=et.length,Y,$,nt,vt;for(f=0;f<y;f+=1)if(P=et[f],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Tt=P.masksProperties;for($=Tt.length,Y=0;Y<$;Y+=1)if(Tt[Y].pt.k.i)k(Tt[Y].pt.k);else for(vt=Tt[Y].pt.k.length,nt=0;nt<vt;nt+=1)Tt[Y].pt.k[nt].s&&k(Tt[Y].pt.k[nt].s[0]),Tt[Y].pt.k[nt].e&&k(Tt[Y].pt.k[nt].e[0])}P.ty===0?(P.layers=E(P.refId,I),V(P.layers,I)):P.ty===4?S(P.shapes):P.ty===5&&At(P)}}function L(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)}}}(),W=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)}}}(),Et=function(){var et=[4,1,9];function I(f){var y,Y=f.length,$,nt;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(nt=f[y].c.k.length,$=0;$<nt;$+=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)}}}(),pt=function(){var et=[4,4,18];function I(f){var y,Y=f.length,$,nt;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(nt=f[y].ks.k.length,$=0;$<nt;$+=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,nt,vt,Tt,Ot;for(Y=0;Y<$;Y+=1){if(y=f[Y],y.hasMask){var Rt=y.masksProperties;for(vt=Rt.length,nt=0;nt<vt;nt+=1)if(Rt[nt].pt.k.i)Rt[nt].pt.k.c=Rt[nt].cl;else for(Ot=Rt[nt].pt.k.length,Tt=0;Tt<Ot;Tt+=1)Rt[nt].pt.k[Tt].s&&(Rt[nt].pt.k[Tt].s[0].c=Rt[nt].cl),Rt[nt].pt.k[Tt].e&&(Rt[nt].pt.k[Tt].e[0].c=Rt[nt].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||(Et(et),H(et),W(et),rt(et),pt(et),V(et.layers,et.assets),L(et.chars,et.assets),et.__complete=!0)}function At(et){et.t.a.length===0&&"m"in et.t.p}var ct={};return ct.completeData=st,ct.checkColors=Et,ct.checkChars=W,ct.checkPathProperties=rt,ct.checkShapes=pt,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&&Sn(C.response)==="object"?C.response:C.response&&typeof C.response=="string"?JSON.parse(C.response):C.responseText?JSON.parse(C.responseText):null}function L(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(W){k&&k(W)}};try{H.open(["G","E","T"].join(""),C,!0)}catch{H.open(["G","E","T"].join(""),E+"/"+C,!0)}H.send()}return{load:L}}()),R.data.type==="loadAnimation")c.assetLoader.load(R.data.path,R.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:R.data.id,payload:V,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})});else if(R.data.type==="complete"){var M=R.data.animation;c.dataManager.completeData(M),c.postMessage({id:R.data.id,payload:M,status:"success"})}else R.data.type==="loadData"&&c.assetLoader.load(R.data.path,R.data.fullPath,function(V){c.postMessage({id:R.data.id,payload:V,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})})}),l.onmessage=function(T){var R=T.data,D=R.id,M=i[D];i[D]=null,R.status==="success"?M.onComplete(R.payload):M.onError&&M.onError()})}function g(T,R){e+=1;var D="processId_"+e;return i[D]={onComplete:T,onError:R},D}function w(T,R,D){A();var M=g(R,D);l.postMessage({type:"loadAnimation",path:T,fullPath:window.location.origin+window.location.pathname,id:M})}function O(T,R,D){A();var M=g(R,D);l.postMessage({type:"loadData",path:T,fullPath:window.location.origin+window.location.pathname,id:M})}function G(T,R,D){A();var M=g(R,D);l.postMessage({type:"complete",animation:T,id:M})}return{loadAnimation:w,loadData:O,completeAnimation:G}}(),Ob=function(){var e=function(){var L=x("canvas");L.width=1,L.height=1;var C=L.getContext("2d");return C.fillStyle="rgba(0,0,0,0)",C.fillRect(0,0,1,1),L}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(L,C,E){var S="";if(L.e)S=L.p;else if(C){var k=L.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),S=C+k}else S=E,S+=L.u?L.u:"",S+=L.p;return S}function h(L){var C=0,E=setInterval((function(){var S=L.getBBox();(S.width||C>500)&&(this._imageLoaded(),clearInterval(E)),C+=1}).bind(this),50)}function c(L){var C=l(L,this.assetsPath,this.path),E=xt("image");Yt?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:L};return S}function v(L){var C=l(L,this.assetsPath,this.path),E=x("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:L};return S}function A(L){var C={assetData:L},E=l(L,this.assetsPath,this.path);return Zs.loadData(E,(function(S){C.img=S,this._footageLoaded()}).bind(this),(function(){C.img={},this._footageLoaded()}).bind(this)),C}function g(L,C){this.imagesLoadedCb=C;var E,S=L.length;for(E=0;E<S;E+=1)L[E].layers||(!L[E].t||L[E].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[E]))):L[E].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[E]))))}function w(L){this.path=L||""}function O(L){this.assetsPath=L||""}function G(L){for(var C=0,E=this.images.length;C<E;){if(this.images[C].assetData===L)return this.images[C].img;C+=1}return null}function T(){this.imagesLoadedCb=null,this.images.length=0}function R(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function M(L,C){L==="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=a.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:g,setAssetsPath:O,setPath:w,loadedImages:R,loadedFootages:D,destroy:T,getAsset:G,createImgData:v,createImageData:c,imageLoaded:i,footageLoaded:a,setCacheType:M},V}();function Op(){}Op.prototype={triggerEvent:function(i,a){if(this._cbs[i])for(var l=this._cbs[i],h=0;h<l.length;h+=1)l[h](a)},addEventListener:function(i,a){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(a),(function(){this.removeEventListener(i,a)}).bind(this)},removeEventListener:function(i,a){if(!a)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,h=this._cbs[i].length;l<h;)this._cbs[i][l]===a&&(this._cbs[i].splice(l,1),l-=1,h-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var Rb=function(){function e(i){for(var a=i.split(`\r
|
|
2
|
-
`),l={},h,c=0,v=0;v<a.length;v+=1)h=a[v].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 a=[],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}}}a.push(c)}return a}}(),Mb=function(){function e(i){this.compositions.push(i)}return function(){function i(a){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===a)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}}(),Qs={},Pb=function(i,a){Qs[i]=a};function Db(e){return Qs[e]}function Fb(){if(Qs.canvas)return"canvas";for(var e in Qs)if(Qs[e])return e;return""}function Js(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Js=function(a){return typeof a}:Js=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Js(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=Pe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=kb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Mb(),this.imagePreloader=new Ob,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=xn()};N([Op],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 a=Db(i);this.renderer=new a(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")),Zs.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){Zs.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&Js(i)!=="object"&&(i=JSON.parse(i));var a={wrapper:e,animationData:i},l=e.attributes;a.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:"",a.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:Fb()||"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"?a.loop=!1:h==="true"?a.loop=!0:h!==""&&(a.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;a.autoplay=c!=="false",a.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var v=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";v==="false"&&(a.prerender=!1),a.path?this.setParams(a):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,a,l=i.length,h=e.layers,c,v=h.length;for(c=0;c<v;c+=1)for(a=0;a<l;){if(i[a].id===h[c].id){i[a]=h[c];break}a+=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,a=0;a<l;a+=1)this.animationData.assets.push(e.assets[a]);this.animationData.__complete=!1,Zs.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=xn();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 a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Zs.loadData(a,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=Rb(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=xn();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 a=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(a,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,a=0;a<this.markers.length;a+=1)if(i=this.markers[a],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,a){if(!(a&&this.name!==a)){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,a){if(!(a&&this.name!==a)){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,a);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,a=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(a=!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):(a=!0,i=0)):this.setCurrentRawFrameValue(i),a&&(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 a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?a=e:this.currentRawFrame+this.firstFrame>i&&(a=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,a!==-1&&this.goToAndStop(a,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),Js(e[0])==="object"){var a,l=e.length;for(a=0;a<l;a+=1)this.segments.push(e[a])}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 a=e.p;a.indexOf("images/")!==-1&&(a=a.split("/")[1]),i=this.assetsPath+a}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,a=this.assets.length;i<a;){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,a){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,a)}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 Ip(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Tn(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new _p(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Cp(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 Ip(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Tn(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new _p(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Cp(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new _b(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new Cb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var Jt=function(){var e={},i=[],a=0,l=0,h=0,c=!0,v=!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 g(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 T(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,Et()}function G(){h-=1}function T(I,P){I.addEventListener("destroy",A),I.addEventListener("_active",O),I.addEventListener("_idle",G),i.push({elem:P,animation:I}),l+=1}function R(I){var P=new ft;return T(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 M(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 L(I){var P=I-a,f;for(f=0;f<l;f+=1)i[f].animation.advanceTime(P);a=I,h&&!v?window.requestAnimationFrame(L):c=!0}function C(I){a=I,window.requestAnimationFrame(L)}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 W(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),g(y[Y],I);if(P&&$===0){f||(f="svg");var nt=document.getElementsByTagName("body")[0];nt.innerText="";var vt=x("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",f),nt.appendChild(vt),g(vt,I)}}function rt(){var I;for(I=0;I<l;I+=1)i[I].animation.resize()}function Et(){!v&&h&&c&&(window.requestAnimationFrame(C),c=!1)}function pt(){v=!0}function st(){v=!1,Et()}function At(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=g,e.loadAnimation=R,e.setSpeed=D,e.setDirection=M,e.play=V,e.pause=E,e.stop=k,e.togglePause=F,e.searchAnimations=W,e.resize=rt,e.goToAndStop=S,e.destroy=H,e.freeze=pt,e.unfreeze=st,e.setVolume=At,e.mute=ct,e.unmute=et,e.getRegisteredAnimations=w,e}(),ta=function(){var e={};e.getBezierEasing=a;var i={};function a(C,E,S,k,F){var H=F||("bez_"+C+"_"+E+"_"+S+"_"+k).replace(/\./g,"p");if(i[H])return i[H];var W=new L([C,E,S,k]);return i[H]=W,W}var l=4,h=.001,c=1e-7,v=10,A=11,g=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 T(C){return 3*C}function R(C,E,S){return((O(E,S)*C+G(E,S))*C+T(E))*C}function D(C,E,S){return 3*O(E,S)*C*C+2*G(E,S)*C+T(E)}function M(C,E,S,k,F){var H,W,rt=0;do W=E+(S-E)/2,H=R(W,k,F)-C,H>0?S=W:E=W;while(Math.abs(H)>c&&++rt<v);return W}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 W=R(E,S,k)-C;E-=W/H}return E}function L(C){this._p=C,this._mSampleValues=w?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return L.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:R(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]=R(k*g,E,S)},_getTForX:function(E){for(var S=this._p[0],k=this._p[2],F=this._mSampleValues,H=0,W=1,rt=A-1;W!==rt&&F[W]<=E;++W)H+=g;--W;var Et=(E-F[W])/(F[W+1]-F[W]),pt=H+Et*g,st=D(pt,S,k);return st>=h?V(E,pt,S,k):st===0?pt:M(E,H,H+g,S,k)}},e}(),Rp=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),In=function(){return function(e,i,a){var l=0,h=e,c=it(h),v={newElement:A,release:g};function A(){var w;return l?(l-=1,w=c[l]):w=i(),w}function g(w){l===h&&(c=Rp.double(c),h*=2),a&&a(w),c[l]=w,l+=1}return v}}(),Mp=function(){function e(){return{addedLength:0,percents:X("float32",Xs()),lengths:X("float32",Xs())}}return In(8,e)}(),Pp=function(){function e(){return{lengths:[],totalLength:0}}function i(a){var l,h=a.lengths.length;for(l=0;l<h;l+=1)Mp.release(a.lengths[l]);a.lengths.length=0}return In(8,e,i)}();function $b(){var e=Math;function i(T,R,D,M,V,L){var C=T*M+R*V+D*L-V*M-L*T-D*R;return C>-.001&&C<.001}function a(T,R,D,M,V,L,C,E,S){if(D===0&&L===0&&S===0)return i(T,R,M,V,C,E);var k=e.sqrt(e.pow(M-T,2)+e.pow(V-R,2)+e.pow(L-D,2)),F=e.sqrt(e.pow(C-T,2)+e.pow(E-R,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(C-M,2)+e.pow(E-V,2)+e.pow(S-L,2)),W;return k>F?k>H?W=k-F-H:W=H-F-k:H>F?W=H-F-k:W=F-k-H,W>-1e-4&&W<1e-4}var l=function(){return function(T,R,D,M){var V=Xs(),L,C,E,S,k,F=0,H,W=[],rt=[],Et=Mp.newElement();for(E=D.length,L=0;L<V;L+=1){for(k=L/(V-1),H=0,C=0;C<E;C+=1)S=Wt(1-k,3)*T[C]+3*Wt(1-k,2)*k*D[C]+3*(1-k)*Wt(k,2)*M[C]+Wt(k,3)*R[C],W[C]=S,rt[C]!==null&&(H+=Wt(W[C]-rt[C],2)),rt[C]=W[C];H&&(H=Qt(H),F+=H),Et.percents[L]=k,Et.lengths[L]=F}return Et.addedLength=F,Et}}();function h(T){var R=Pp.newElement(),D=T.c,M=T.v,V=T.o,L=T.i,C,E=T._length,S=R.lengths,k=0;for(C=0;C<E-1;C+=1)S[C]=l(M[C],M[C+1],V[C],L[C+1]),k+=S[C].addedLength;return D&&E&&(S[C]=l(M[C],M[0],V[C],L[0]),k+=S[C].addedLength),R.totalLength=k,R}function c(T){this.segmentLength=0,this.points=new Array(T)}function v(T,R){this.partialLength=T,this.point=R}var A=function(){var T={};return function(R,D,M,V){var L=(R[0]+"_"+R[1]+"_"+D[0]+"_"+D[1]+"_"+M[0]+"_"+M[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!T[L]){var C=Xs(),E,S,k,F,H,W=0,rt,Et,pt=null;R.length===2&&(R[0]!==D[0]||R[1]!==D[1])&&i(R[0],R[1],D[0],D[1],R[0]+M[0],R[1]+M[1])&&i(R[0],R[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(C=2);var st=new c(C);for(k=M.length,E=0;E<C;E+=1){for(Et=it(k),H=E/(C-1),rt=0,S=0;S<k;S+=1)F=Wt(1-H,3)*R[S]+3*Wt(1-H,2)*H*(R[S]+M[S])+3*(1-H)*Wt(H,2)*(D[S]+V[S])+Wt(H,3)*D[S],Et[S]=F,pt!==null&&(rt+=Wt(Et[S]-pt[S],2));rt=Qt(rt),W+=rt,st.points[E]=new v(rt,Et),pt=Et}st.segmentLength=W,T[L]=st}return T[L]}}();function g(T,R){var D=R.percents,M=R.lengths,V=D.length,L=de((V-1)*T),C=T*R.addedLength,E=0;if(L===V-1||L===0||C===M[L])return D[L];for(var S=M[L]>C?-1:1,k=!0;k;)if(M[L]<=C&&M[L+1]>C?(E=(C-M[L])/(M[L+1]-M[L]),k=!1):L+=S,L<0||L>=V-1){if(L===V-1)return D[L];k=!1}return D[L]+(D[L+1]-D[L])*E}function w(T,R,D,M,V,L){var C=g(V,L),E=1-C,S=e.round((E*E*E*T[0]+(C*E*E+E*C*E+E*E*C)*D[0]+(C*C*E+E*C*C+C*E*C)*M[0]+C*C*C*R[0])*1e3)/1e3,k=e.round((E*E*E*T[1]+(C*E*E+E*C*E+E*E*C)*D[1]+(C*C*E+E*C*C+C*E*C)*M[1]+C*C*C*R[1])*1e3)/1e3;return[S,k]}var O=X("float32",8);function G(T,R,D,M,V,L,C){V<0?V=0:V>1&&(V=1);var E=g(V,C);L=L>1?1:L;var S=g(L,C),k,F=T.length,H=1-E,W=1-S,rt=H*H*H,Et=E*H*H*3,pt=E*E*H*3,st=E*E*E,At=H*H*W,ct=E*H*W+H*E*W+H*H*S,et=E*E*W+H*E*S+E*H*S,I=E*E*S,P=H*W*W,f=E*W*W+H*S*W+H*W*S,y=E*S*W+H*S*S+E*W*S,Y=E*S*S,$=W*W*W,nt=S*W*W+W*S*W+W*W*S,vt=S*S*W+W*S*S+S*W*S,Tt=S*S*S;for(k=0;k<F;k+=1)O[k*4]=e.round((rt*T[k]+Et*D[k]+pt*M[k]+st*R[k])*1e3)/1e3,O[k*4+1]=e.round((At*T[k]+ct*D[k]+et*M[k]+I*R[k])*1e3)/1e3,O[k*4+2]=e.round((P*T[k]+f*D[k]+y*M[k]+Y*R[k])*1e3)/1e3,O[k*4+3]=e.round(($*T[k]+nt*D[k]+vt*M[k]+Tt*R[k])*1e3)/1e3;return O}return{getSegmentsLength:h,getNewSegment:G,getPointInSegment:w,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:a}}var Or=$b(),ao=r,Dp=Math.abs;function Fp(e,i){var a=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=i.lastIndex,c=h,v=this.keyframes.length-1,A=!0,g,w,O;A;){if(g=this.keyframes[c],w=this.keyframes[c+1],c===v-1&&e>=w.t-a){g.h&&(g=w),h=0;break}if(w.t-a>e){h=c;break}c<v-1?c+=1:(h=0,A=!1)}O=this.keyframesMetadata[c]||{};var G,T,R,D,M,V,L=w.t-a,C=g.t-a,E;if(g.to){O.bezierData||(O.bezierData=Or.buildBezierData(g.s,w.s||g.e,g.to,g.ti));var S=O.bezierData;if(e>=L||e<C){var k=e>=L?S.points.length-1:0;for(T=S.points[k].point.length,G=0;G<T;G+=1)l[G]=S.points[k].point[G]}else{O.__fnct?V=O.__fnct:(V=ta.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,O.__fnct=V),R=V((e-C)/(L-C));var F=S.segmentLength*R,H,W=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastAddedLength:0;for(M=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastPoint:0,A=!0,D=S.points.length;A;){if(W+=S.points[M].partialLength,F===0||R===0||M===S.points.length-1){for(T=S.points[M].point.length,G=0;G<T;G+=1)l[G]=S.points[M].point[G];break}else if(F>=W&&F<W+S.points[M+1].partialLength){for(H=(F-W)/S.points[M+1].partialLength,T=S.points[M].point.length,G=0;G<T;G+=1)l[G]=S.points[M].point[G]+(S.points[M+1].point[G]-S.points[M].point[G])*H;break}M<D-1?M+=1:A=!1}i._lastPoint=M,i._lastAddedLength=W-S.points[M].partialLength,i._lastKeyframeIndex=c}}else{var rt,Et,pt,st,At;if(v=g.s.length,E=w.s||g.e,this.sh&&g.h!==1)if(e>=L)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=C)l[0]=g.s[0],l[1]=g.s[1],l[2]=g.s[2];else{var ct=$p(g.s),et=$p(E),I=(e-C)/(L-C);Vb(l,zb(ct,et,I))}else for(c=0;c<v;c+=1)g.h!==1&&(e>=L?R=1:e<C?R=0:(g.o.x.constructor===Array?(O.__fnct||(O.__fnct=[]),O.__fnct[c]?V=O.__fnct[c]:(rt=g.o.x[c]===void 0?g.o.x[0]:g.o.x[c],Et=g.o.y[c]===void 0?g.o.y[0]:g.o.y[c],pt=g.i.x[c]===void 0?g.i.x[0]:g.i.x[c],st=g.i.y[c]===void 0?g.i.y[0]:g.i.y[c],V=ta.getBezierEasing(rt,Et,pt,st).get,O.__fnct[c]=V)):O.__fnct?V=O.__fnct:(rt=g.o.x,Et=g.o.y,pt=g.i.x,st=g.i.y,V=ta.getBezierEasing(rt,Et,pt,st).get,g.keyframeMetadata=V),R=V((e-C)/(L-C)))),E=w.s||g.e,At=g.h===1?g.s[c]:g.s[c]+(E[c]-g.s[c])*R,this.propType==="multidimensional"?l[c]=At:l=At}return i.lastIndex=h,l}function zb(e,i,a){var l=[],h=e[0],c=e[1],v=e[2],A=e[3],g=i[0],w=i[1],O=i[2],G=i[3],T,R,D,M,V;return R=h*g+c*w+v*O+A*G,R<0&&(R=-R,g=-g,w=-w,O=-O,G=-G),1-R>1e-6?(T=Math.acos(R),D=Math.sin(T),M=Math.sin((1-a)*T)/D,V=Math.sin(a*T)/D):(M=1-a,V=a),l[0]=M*h+V*g,l[1]=M*c+V*w,l[2]=M*v+V*O,l[3]=M*A+V*G,l}function Vb(e,i){var a=i[0],l=i[1],h=i[2],c=i[3],v=Math.atan2(2*l*c-2*a*h,1-2*l*l-2*h*h),A=Math.asin(2*a*l+2*h*c),g=Math.atan2(2*a*c-2*l*h,1-2*a*a-2*h*h);e[0]=v/wt,e[1]=A/wt,e[2]=g/wt}function $p(e){var i=e[0]*wt,a=e[1]*wt,l=e[2]*wt,h=Math.cos(i/2),c=Math.cos(a/2),v=Math.cos(l/2),A=Math.sin(i/2),g=Math.sin(a/2),w=Math.sin(l/2),O=h*c*v-A*g*w,G=A*g*v+h*c*w,T=A*c*v+h*g*w,R=h*g*v-A*c*w;return[G,T,R,O]}function zp(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==ao&&(this._caching.lastFrame>=a&&e>=a||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 _n(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Dp(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var a=0,l=this.v.length;a<l;)i=e[a]*this.mult,Dp(this.v[a]-i)>1e-5&&(this.v[a]=i,this._mdf=!0),a+=1}function Cn(){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,a=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)a=this.effectsSequence[e](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function wn(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function Bb(e,i,a,l){this.propType="unidimensional",this.mult=a||1,this.data=i,this.v=a?i.k*a: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=Cn,this.setVValue=_n,this.addEffect=wn}function Ub(e,i,a,l){this.propType="multidimensional",this.mult=a||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=Cn,this.setVValue=_n,this.addEffect=wn}function Hb(e,i,a,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:ao,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=ao,this.pv=ao,this._isFirstFrame=!0,this.getValue=Cn,this.setVValue=_n,this.interpolateValue=Fp,this.effectsSequence=[zp.bind(this)],this.addEffect=wn}function Gb(e,i,a,l){this.propType="multidimensional";var h,c=i.k.length,v,A,g,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&&(v=i.k[h].s,A=i.k[h+1].s,g=i.k[h].to,w=i.k[h].ti,(v.length===2&&!(v[0]===A[0]&&v[1]===A[1])&&Or.pointOnLine2D(v[0],v[1],A[0],A[1],v[0]+g[0],v[1]+g[1])&&Or.pointOnLine2D(v[0],v[1],A[0],A[1],A[0]+w[0],A[1]+w[1])||v.length===3&&!(v[0]===A[0]&&v[1]===A[1]&&v[2]===A[2])&&Or.pointOnLine3D(v[0],v[1],v[2],A[0],A[1],A[2],v[0]+g[0],v[1]+g[1],v[2]+g[2])&&Or.pointOnLine3D(v[0],v[1],v[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),v[0]===A[0]&&v[1]===A[1]&&g[0]===0&&g[1]===0&&w[0]===0&&w[1]===0&&(v.length===2||v[2]===A[2]&&g[2]===0&&w[2]===0)&&(i.k[h].to=null,i.k[h].ti=null));this.effectsSequence=[zp.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=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=Cn,this.setVValue=_n,this.interpolateValue=Fp,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]=ao,this.pv[h]=ao;this._caching={lastFrame:ao,lastIndex:0,value:X("float32",O)},this.addEffect=wn}var at=function(){function e(a,l,h,c,v){l.sid&&(l=a.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new Bb(a,l,c,v);else if(typeof l.k[0]=="number")A=new Ub(a,l,c,v);else switch(h){case 0:A=new Hb(a,l,c,v);break;case 1:A=new Gb(a,l,c,v);break;default:break}return A.effectsSequence.length&&v.addDynamicProperty(A),A}var i={getProp:e};return i}();function ce(){}ce.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,a=this.dynamicProperties.length;for(i=0;i<a;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 no=function(){function e(){return X("float32",2)}return In(8,e)}();function Xr(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}Xr.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var a=0;a<i;)this.v[a]=no.newElement(),this.o[a]=no.newElement(),this.i[a]=no.newElement(),a+=1},Xr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Xr.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},Xr.prototype.setXYAt=function(e,i,a,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){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]=no.newElement()),c[l][0]=e,c[l][1]=i},Xr.prototype.setTripleAt=function(e,i,a,l,h,c,v,A){this.setXYAt(e,i,"v",v,A),this.setXYAt(a,l,"o",v,A),this.setXYAt(h,c,"i",v,A)},Xr.prototype.reverse=function(){var e=new Xr;e.setPathData(this.c,this._length);var i=this.v,a=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],a[0][0],a[0][1],0,!1),h=1);var c=this._length-1,v=this._length,A;for(A=h;A<v;A+=1)e.setTripleAt(i[c][0],i[c][1],l[c][0],l[c][1],a[c][0],a[c][1],A,!1),c-=1;return e},Xr.prototype.length=function(){return this._length};var fe=function(){function e(){return new Xr}function i(h){var c=h._length,v;for(v=0;v<c;v+=1)no.release(h.v[v]),no.release(h.i[v]),no.release(h.o[v]),h.v[v]=null,h.i[v]=null,h.o[v]=null;h._length=0,h.c=!1}function a(h){var c=l.newElement(),v,A=h._length===void 0?h.v.length:h._length;for(c.setLength(A),c.c=h.c,v=0;v<A;v+=1)c.setTripleAt(h.v[v][0],h.v[v][1],h.o[v][0],h.o[v][1],h.i[v][0],h.i[v][1],v);return c}var l=In(4,e,i);return l.clone=a,l}();function Fd(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}Fd.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},Fd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)fe.release(this.shapes[e]);this._length=0};var Jo=function(){var e={newShapeCollection:h,release:c},i=0,a=4,l=it(a);function h(){var v;return i?(i-=1,v=l[i]):v=new Fd,v}function c(v){var A,g=v._length;for(A=0;A<g;A+=1)fe.release(v.shapes[A]);v._length=0,i===a&&(l=Rp.double(l),a*=2),l[i]=v,i+=1}return e}(),kn=function(){var e=-999999;function i(L,C,E){var S=E.lastIndex,k,F,H,W,rt,Et,pt,st,At,ct=this.keyframes;if(L<ct[0].t-this.offsetTime)k=ct[0].s[0],H=!0,S=0;else if(L>=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>L));)et<I-1?et+=1:P=!1;if(Y=this.keyframesMetadata[et]||{},H=f.h===1,S=et,!H){if(L>=y.t-this.offsetTime)st=1;else if(L<f.t-this.offsetTime)st=0;else{var $;Y.__fnct?$=Y.__fnct:($=ta.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,Y.__fnct=$),st=$((L-(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(Et=C._length,pt=k.i[0].length,E.lastIndex=S,W=0;W<Et;W+=1)for(rt=0;rt<pt;rt+=1)At=H?k.i[W][rt]:k.i[W][rt]+(F.i[W][rt]-k.i[W][rt])*st,C.i[W][rt]=At,At=H?k.o[W][rt]:k.o[W][rt]+(F.o[W][rt]-k.o[W][rt])*st,C.o[W][rt]=At,At=H?k.v[W][rt]:k.v[W][rt]+(F.v[W][rt]-k.v[W][rt])*st,C.v[W][rt]=At}function a(){var L=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&&L<C||S>E&&L>E)||(this._caching.lastIndex=S<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function l(){this.paths=this.localShapeCollection}function h(L,C){if(L._length!==C._length||L.c!==C.c)return!1;var E,S=L._length;for(E=0;E<S;E+=1)if(L.v[E][0]!==C.v[E][0]||L.v[E][1]!==C.v[E][1]||L.o[E][0]!==C.o[E][0]||L.o[E][1]!==C.o[E][1]||L.i[E][0]!==C.i[E][0]||L.i[E][1]!==C.i[E][1])return!1;return!0}function c(L){h(this.v,L)||(this.v=fe.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function v(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var C,E=this.effectsSequence.length;for(C=0;C<E;C+=1)L=this.effectsSequence[C](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(L,C,E){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=C,this.k=!1,this.kf=!1,this._mdf=!1;var S=E===3?C.pt.k:C.ks.k;this.v=fe.clone(S),this.pv=fe.clone(this.v),this.localShapeCollection=Jo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function g(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=v,A.prototype.setVValue=c,A.prototype.addEffect=g;function w(L,C,E){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.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=fe.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=fe.clone(this.v),this.localShapeCollection=Jo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[a.bind(this)]}w.prototype.getValue=v,w.prototype.interpolateShape=i,w.prototype.setVValue=c,w.prototype.addEffect=g;var O=function(){var L=ue;function C(E,S){this.v=fe.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Jo.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=at.getProp(E,S.p,1,0,this),this.s=at.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,W=this.d!==3,rt=this.v;rt.v[0][0]=S,rt.v[0][1]=k-H,rt.v[1][0]=W?S+F:S-F,rt.v[1][1]=k,rt.v[2][0]=S,rt.v[2][1]=k+H,rt.v[3][0]=W?S-F:S+F,rt.v[3][1]=k,rt.i[0][0]=W?S-F*L:S+F*L,rt.i[0][1]=k-H,rt.i[1][0]=W?S+F:S-F,rt.i[1][1]=k-H*L,rt.i[2][0]=W?S+F*L:S-F*L,rt.i[2][1]=k+H,rt.i[3][0]=W?S-F:S+F,rt.i[3][1]=k+H*L,rt.o[0][0]=W?S+F*L:S-F*L,rt.o[0][1]=k-H,rt.o[1][0]=W?S+F:S-F,rt.o[1][1]=k+H*L,rt.o[2][0]=W?S-F*L:S+F*L,rt.o[2][1]=k+H,rt.o[3][0]=W?S-F:S+F,rt.o[3][1]=k-H*L}},N([ce],C),C}(),G=function(){function L(C,E){this.v=fe.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=at.getProp(C,E.ir,0,0,this),this.is=at.getProp(C,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(C,E.pt,0,0,this),this.p=at.getProp(C,E.p,1,0,this),this.r=at.getProp(C,E.r,0,wt,this),this.or=at.getProp(C,E.or,0,0,this),this.os=at.getProp(C,E.os,0,.01,this),this.localShapeCollection=Jo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset: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,W=this.os.v,rt=this.is.v,Et=2*Math.PI*F/(E*2),pt=2*Math.PI*H/(E*2),st,At,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){At=k?F:H,ct=k?W:rt,et=k?Et:pt;var f=At*Math.cos(I),y=At*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),W,rt=-Math.PI*.5,Et=this.data.d===3?-1:1;for(rt+=this.r.v,this.v._length=0,W=0;W<E;W+=1){var pt=k*Math.cos(rt),st=k*Math.sin(rt),At=pt===0&&st===0?0:st/Math.sqrt(pt*pt+st*st),ct=pt===0&&st===0?0:-pt/Math.sqrt(pt*pt+st*st);pt+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(pt,st,pt-At*H*F*Et,st-ct*H*F*Et,pt+At*H*F*Et,st+ct*H*F*Et,W,!0),rt+=S*Et}this.paths.length=0,this.paths[0]=this.v}},N([ce],L),L}(),T=function(){function L(C,E){this.v=fe.newElement(),this.v.c=!0,this.localShapeCollection=Jo.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=at.getProp(C,E.p,1,0,this),this.s=at.getProp(C,E.s,1,0,this),this.r=at.getProp(C,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.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=Me(k,F,this.r.v),W=H*(1-ue);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+W,0,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-W,E+k,S+F-H,1,!0),H!==0?(this.v.setTripleAt(E+k-H,S+F,E+k-H,S+F,E+k-W,S+F,2,!0),this.v.setTripleAt(E-k+H,S+F,E-k+W,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-W,4,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+W,E-k,S-F+H,5,!0),this.v.setTripleAt(E-k+H,S-F,E-k+H,S-F,E-k+W,S-F,6,!0),this.v.setTripleAt(E+k-H,S-F,E+k-W,S-F,E+k-H,S-F,7,!0)):(this.v.setTripleAt(E-k,S+F,E-k+W,S+F,E-k,S+F,2),this.v.setTripleAt(E-k,S-F,E-k,S-F+W,E-k,S-F,3))):(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+W,E+k,S-F+H,0,!0),H!==0?(this.v.setTripleAt(E+k-H,S-F,E+k-H,S-F,E+k-W,S-F,1,!0),this.v.setTripleAt(E-k+H,S-F,E-k+W,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+W,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-W,E-k,S+F-H,4,!0),this.v.setTripleAt(E-k+H,S+F,E-k+H,S+F,E-k+W,S+F,5,!0),this.v.setTripleAt(E+k-H,S+F,E+k-W,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-W,7,!0)):(this.v.setTripleAt(E-k,S-F,E-k+W,S-F,E-k,S-F,1,!0),this.v.setTripleAt(E-k,S+F,E-k,S+F-W,E-k,S+F,2,!0),this.v.setTripleAt(E+k,S+F,E+k-W,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},N([ce],L),L}();function R(L,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(L,C,E):S=new A(L,C,E)}else E===5?S=new T(L,C):E===6?S=new O(L,C):E===7&&(S=new G(L,C));return S.k&&L.addDynamicProperty(S),S}function D(){return A}function M(){return w}var V={};return V.getShapeProp=R,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=M,V}();var ve=function(){var e=Math.cos,i=Math.sin,a=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 v(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 g(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(a(f),a(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,a(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 T(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 R(f,y,Y,$,nt,vt,Tt,Ot,Rt,te,Fe,Mr,$e,he,Xe,Dt){return this.props[0]=f,this.props[1]=y,this.props[2]=Y,this.props[3]=$,this.props[4]=nt,this.props[5]=vt,this.props[6]=Tt,this.props[7]=Ot,this.props[8]=Rt,this.props[9]=te,this.props[10]=Fe,this.props[11]=Mr,this.props[12]=$e,this.props[13]=he,this.props[14]=Xe,this.props[15]=Dt,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 M(f,y,Y,$,nt,vt,Tt,Ot,Rt,te,Fe,Mr,$e,he,Xe,Dt){var ht=this.props;if(f===1&&y===0&&Y===0&&$===0&&nt===0&&vt===1&&Tt===0&&Ot===0&&Rt===0&&te===0&&Fe===1&&Mr===0)return ht[12]=ht[12]*f+ht[15]*$e,ht[13]=ht[13]*vt+ht[15]*he,ht[14]=ht[14]*Fe+ht[15]*Xe,ht[15]*=Dt,this._identityCalculated=!1,this;var Jr=ht[0],ki=ht[1],ti=ht[2],Pr=ht[3],ei=ht[4],ri=ht[5],ze=ht[6],Ni=ht[7],Li=ht[8],xr=ht[9],Oi=ht[10],Ar=ht[11],po=ht[12],$n=ht[13],zn=ht[14],Vn=ht[15];return ht[0]=Jr*f+ki*nt+ti*Rt+Pr*$e,ht[1]=Jr*y+ki*vt+ti*te+Pr*he,ht[2]=Jr*Y+ki*Tt+ti*Fe+Pr*Xe,ht[3]=Jr*$+ki*Ot+ti*Mr+Pr*Dt,ht[4]=ei*f+ri*nt+ze*Rt+Ni*$e,ht[5]=ei*y+ri*vt+ze*te+Ni*he,ht[6]=ei*Y+ri*Tt+ze*Fe+Ni*Xe,ht[7]=ei*$+ri*Ot+ze*Mr+Ni*Dt,ht[8]=Li*f+xr*nt+Oi*Rt+Ar*$e,ht[9]=Li*y+xr*vt+Oi*te+Ar*he,ht[10]=Li*Y+xr*Tt+Oi*Fe+Ar*Xe,ht[11]=Li*$+xr*Ot+Oi*Mr+Ar*Dt,ht[12]=po*f+$n*nt+zn*Rt+Vn*$e,ht[13]=po*y+$n*vt+zn*te+Vn*he,ht[14]=po*Y+$n*Tt+zn*Fe+Vn*Xe,ht[15]=po*$+$n*Ot+zn*Mr+Vn*Dt,this._identityCalculated=!1,this}function V(f){var y=f.props;return this.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function 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 W(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,nt=this.props[0]/f,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/f,Tt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/f,Ot=new ve;return Ot.props[0]=y,Ot.props[1]=Y,Ot.props[4]=$,Ot.props[5]=nt,Ot.props[12]=vt,Ot.props[13]=Tt,Ot}function Et(f){var y=this.getInverseMatrix();return y.applyToPointArray(f[0],f[1],f[2]||0)}function pt(f){var y,Y=f.length,$=[];for(y=0;y<Y;y+=1)$[y]=Et(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 nt=this.props[0],vt=this.props[1],Tt=this.props[4],Ot=this.props[5],Rt=this.props[12],te=this.props[13];$[0]=f[0]*nt+f[1]*Tt+Rt,$[1]=f[0]*vt+f[1]*Ot+te,$[2]=y[0]*nt+y[1]*Tt+Rt,$[3]=y[0]*vt+y[1]*Ot+te,$[4]=Y[0]*nt+Y[1]*Tt+Rt,$[5]=Y[0]*vt+Y[1]*Ot+te}return $}function At(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]),nt=I(f[5]),vt=I(f[12]),Tt=I(f[13]);return"matrix("+y+","+Y+","+$+","+nt+","+vt+","+Tt+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=v,this.rotateY=A,this.rotateZ=g,this.skew=O,this.skewFromAxis=G,this.shear=w,this.scale=T,this.setTransform=R,this.translate=D,this.transform=M,this.multiply=V,this.applyToPoint=k,this.applyToX=F,this.applyToY=H,this.applyToZ=W,this.applyToPointArray=At,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=et,this.to2dCSS=P,this.clone=E,this.cloneFromProps=S,this.equals=C,this.inversePoints=pt,this.inversePoint=Et,this.getInverseMatrix=rt,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function Nn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nn=function(a){return typeof a}:Nn=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Nn(e)}var Mt={},Ln="__[STANDALONE]__",Vp="__[ANIMATIONDATA]__",Bp="";function Yb(e){m(e)}function Up(){Ln===!0?Jt.searchAnimations(Vp,Ln,Bp):Jt.searchAnimations()}function Wb(e){wb(e)}function jb(e){Lb(e)}function Kb(e){return Ln===!0&&(e.animationData=JSON.parse(Vp)),Jt.loadAnimation(e)}function qb(e){if(typeof e=="string")switch(e){case"high":An(200);break;default:case"medium":An(50);break;case"low":An(10);break}else!isNaN(e)&&e>1&&An(e);Xs()>=50?ir(!1):ir(!0)}function Xb(){return typeof navigator<"u"}function Zb(e,i){e==="expressions"&&Nb(i)}function Qb(e){switch(e){case"propertyFactory":return at;case"shapePropertyFactory":return kn;case"matrix":return ve;default:return null}}Mt.play=Jt.play,Mt.pause=Jt.pause,Mt.setLocationHref=Yb,Mt.togglePause=Jt.togglePause,Mt.setSpeed=Jt.setSpeed,Mt.setDirection=Jt.setDirection,Mt.stop=Jt.stop,Mt.searchAnimations=Up,Mt.registerAnimation=Jt.registerAnimation,Mt.loadAnimation=Kb,Mt.setSubframeRendering=Wb,Mt.resize=Jt.resize,Mt.goToAndStop=Jt.goToAndStop,Mt.destroy=Jt.destroy,Mt.setQuality=qb,Mt.inBrowser=Xb,Mt.installPlugin=Zb,Mt.freeze=Jt.freeze,Mt.unfreeze=Jt.unfreeze,Mt.setVolume=Jt.setVolume,Mt.mute=Jt.mute,Mt.unmute=Jt.unmute,Mt.getRegisteredAnimations=Jt.getRegisteredAnimations,Mt.useWebWorker=s,Mt.setIDPrefix=jb,Mt.__getFactory=Qb,Mt.version="5.12.2";function Jb(){document.readyState==="complete"&&(clearInterval(ry),Up())}function ty(e){for(var i=Hp.split("&"),a=0;a<i.length;a+=1){var l=i[a].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var Hp="";if(Ln){var Gp=document.getElementsByTagName("script"),ey=Gp.length-1,Yp=Gp[ey]||{src:""};Hp=Yp.src?Yp.src.replace(/^[^\?]+\??/,""):"",Bp=ty("renderer")}var ry=setInterval(Jb,100);try{!((typeof ka>"u"?"undefined":Nn(ka))==="object"&&typeof pl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Mt)}catch{}var Ai=function(){var e={},i={};e.registerModifier=a,e.getModifier=l;function a(h,c){i[h]||(i[h]=c)}function l(h,c,v){return new i[h](c,v)}return e}();function nr(){}nr.prototype.initModifierProperties=function(){},nr.prototype.addShapeToModifier=function(){},nr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:Jo.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},nr.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)},nr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},N([ce],nr);function Tr(){}N([nr],Tr),Tr.prototype.initModifierProperties=function(e,i){this.s=at.getProp(e,i.s,0,.01,this),this.e=at.getProp(e,i.e,0,.01,this),this.o=at.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},Tr.prototype.addShapeToModifier=function(e){e.pathsData=[]},Tr.prototype.calculateShapeEdges=function(e,i,a,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 v=[],A,g=c.length,w;for(A=0;A<g;A+=1)if(w=c[A],!(w.e*h<l||w.s*h>l+a)){var O,G;w.s*h<=l?O=0:O=(w.s*h-l)/a,w.e*h>=l+a?G=1:G=(w.e*h-l)/a,v.push([O,G])}return v.length||v.push([0,0]),v},Tr.prototype.releasePathsData=function(e){var i,a=e.length;for(i=0;i<a;i+=1)Pp.release(e[i]);return e.length=0,e},Tr.prototype.processShapes=function(e){var i,a;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?a=1+l:this.e.v<0?a=0+l:a=this.e.v+l,i>a){var h=i;i=a,a=h}i=Math.round(i*1e4)*1e-4,a=Math.round(a*1e4)*1e-4,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var c,v,A=this.shapes.length,g,w,O,G,T,R=0;if(a===i)for(v=0;v<A;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(a===1&&i===0||a===0&&i===1){if(this._mdf)for(v=0;v<A;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var D=[],M,V;for(v=0;v<A;v+=1)if(M=this.shapes[v],!M.shape._mdf&&!this._mdf&&!e&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,w=c._length,T=0,!M.shape._mdf&&M.pathsData.length)T=M.totalShapeLength;else{for(O=this.releasePathsData(M.pathsData),g=0;g<w;g+=1)G=Or.getSegmentsLength(c.shapes[g]),O.push(G),T+=G.totalLength;M.totalShapeLength=T,M.pathsData=O}R+=T,M.shape._mdf=!0}var L=i,C=a,E=0,S;for(v=A-1;v>=0;v-=1)if(M=this.shapes[v],M.shape._mdf){for(V=M.localShapeCollection,V.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,a,M.totalShapeLength,E,R),E+=M.totalShapeLength):S=[[L,C]],w=S.length,g=0;g<w;g+=1){L=S[g][0],C=S[g][1],D.length=0,C<=1?D.push({s:M.totalShapeLength*L,e:M.totalShapeLength*C}):L>=1?D.push({s:M.totalShapeLength*(L-1),e:M.totalShapeLength*(C-1)}):(D.push({s:M.totalShapeLength*L,e:M.totalShapeLength}),D.push({s:0,e:M.totalShapeLength*(C-1)}));var k=this.addShapes(M,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=M.shape.paths.shapes[M.shape.paths._length-1];if(F.c){var H=k.pop();this.addPaths(k,V),k=this.addShapes(M,D[1],H)}else this.addPaths(k,V),k=this.addShapes(M,D[1])}this.addPaths(k,V)}}M.shape.paths=V}}},Tr.prototype.addPaths=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)i.addShape(e[a])},Tr.prototype.addSegment=function(e,i,a,l,h,c,v){h.setXYAt(i[0],i[1],"o",c),h.setXYAt(a[0],a[1],"i",c+1),v&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},Tr.prototype.addSegmentFromArray=function(e,i,a,l){i.setXYAt(e[1],e[5],"o",a),i.setXYAt(e[2],e[6],"i",a+1),l&&i.setXYAt(e[0],e[4],"v",a),i.setXYAt(e[3],e[7],"v",a+1)},Tr.prototype.addShapes=function(e,i,a){var l=e.pathsData,h=e.shape.paths.shapes,c,v=e.shape.paths._length,A,g,w=0,O,G,T,R,D=[],M,V=!0;for(a?(G=a._length,M=a._length):(a=fe.newElement(),G=0,M=0),D.push(a),c=0;c<v;c+=1){for(T=l[c].lengths,a.c=h[c].c,g=h[c].c?T.length:T.length+1,A=1;A<g;A+=1)if(O=T[A-1],w+O.addedLength<i.s)w+=O.addedLength,a.c=!1;else if(w>i.e){a.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],a,G,V),V=!1):(R=Or.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,T[A-1]),this.addSegmentFromArray(R,a,G,V),V=!1,a.c=!1),w+=O.addedLength,G+=1;if(h[c].c&&T.length){if(O=T[A-1],w<=i.e){var L=T[A-1].addedLength;i.s<=w&&i.e>=w+L?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[0],h[c].v[0],a,G,V),V=!1):(R=Or.getNewSegment(h[c].v[A-1],h[c].v[0],h[c].o[A-1],h[c].i[0],(i.s-w)/L,(i.e-w)/L,T[A-1]),this.addSegmentFromArray(R,a,G,V),V=!1,a.c=!1)}else a.c=!1;w+=O.addedLength,G+=1}if(a._length&&(a.setXYAt(a.v[M][0],a.v[M][1],"i",M),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),w>i.e)break;c<v-1&&(a=fe.newElement(),V=!0,D.push(a),G=0)}return D};function ea(){}N([nr],ea),ea.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ea.prototype.processPath=function(e,i){var a=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 v=fe.newElement();v.c=e.c;var A,g,w,O,G,T;for(c=0;c<h;c+=1)A=e.v[c][0]+(l[0]-e.v[c][0])*a,g=e.v[c][1]+(l[1]-e.v[c][1])*a,w=e.o[c][0]+(l[0]-e.o[c][0])*-a,O=e.o[c][1]+(l[1]-e.o[c][1])*-a,G=e.i[c][0]+(l[0]-e.i[c][0])*-a,T=e.i[c][1]+(l[1]-e.i[c][1])*-a,v.setTripleAt(A,g,w,O,G,T,c);return v},ea.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amount.v;if(v!==0){var A,g;for(a=0;a<l;a+=1){if(A=this.shapes[a],g=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(i[h],v));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var $d=function(){var e=[0,0];function i(g){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){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 T=this.px,R=this.py;T._caching.lastFrame+T.offsetTime<=T.keyframes[0].t?(O[0]=T.getValueAtTime((T.keyframes[0].t+.01)/w,0),O[1]=R.getValueAtTime((R.keyframes[0].t+.01)/w,0),G[0]=T.getValueAtTime(T.keyframes[0].t/w,0),G[1]=R.getValueAtTime(R.keyframes[0].t/w,0)):T._caching.lastFrame+T.offsetTime>=T.keyframes[T.keyframes.length-1].t?(O[0]=T.getValueAtTime(T.keyframes[T.keyframes.length-1].t/w,0),O[1]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/w,0),G[0]=T.getValueAtTime((T.keyframes[T.keyframes.length-1].t-.01)/w,0),G[1]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/w,0)):(O=[T.pv,R.pv],G[0]=T.getValueAtTime((T._caching.lastFrame+T.offsetTime-.01)/w,T.offsetTime),G[1]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/w,R.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(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(g,w,O){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=w,this.v=new ve,this.pre=new ve,this.appliedTransformations=0,this.initDynamicPropertyContainer(O||g),w.p&&w.p.s?(this.px=at.getProp(g,w.p.x,0,0,this),this.py=at.getProp(g,w.p.y,0,0,this),w.p.z&&(this.pz=at.getProp(g,w.p.z,0,0,this))):this.p=at.getProp(g,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=at.getProp(g,w.rx,0,wt,this),this.ry=at.getProp(g,w.ry,0,wt,this),this.rz=at.getProp(g,w.rz,0,wt,this),w.or.k[0].ti){var G,T=w.or.k.length;for(G=0;G<T;G+=1)w.or.k[G].to=null,w.or.k[G].ti=null}this.or=at.getProp(g,w.or,1,wt,this),this.or.sh=!0}else this.r=at.getProp(g,w.r||{k:0},0,wt,this);w.sk&&(this.sk=at.getProp(g,w.sk,0,wt,this),this.sa=at.getProp(g,w.sa,0,wt,this)),this.a=at.getProp(g,w.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(g,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=at.getProp(g,w.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}v.prototype={applyToMatrix:i,getValue:a,precalculateMatrix:l,autoOrient:h},N([ce],v),v.prototype.addDynamicProperty=c,v.prototype._addDynamicProperty=ce.prototype.addDynamicProperty;function A(g,w,O){return new v(g,w,O)}return{getTransformProperty:A}}();function Rr(){}N([nr],Rr),Rr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=at.getProp(e,i.c,0,null,this),this.o=at.getProp(e,i.o,0,null,this),this.tr=$d.getTransformProperty(e,i.tr,this),this.so=at.getProp(e,i.tr.so,0,.01,this),this.eo=at.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 ve,this.rMatrix=new ve,this.sMatrix=new ve,this.tMatrix=new ve,this.matrix=new ve},Rr.prototype.applyTransforms=function(e,i,a,l,h,c){var v=c?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-h),g=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*v*h,l.p.v[1]*v*h,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*v*h),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),a.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),a.scale(c?1/A:A,c?1/g:g),a.translate(l.a.v[0],l.a.v[1],l.a.v[2])},Rr.prototype.init=function(e,i,a,l){for(this.elem=e,this.arr=i,this.pos=a,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[a]);a>0;)a-=1,this._elements.unshift(i[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Rr.prototype.resetElements=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Rr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Rr.prototype.changeGroupRender=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)e[a]._render=i,e[a].ty==="gr"&&this.changeGroupRender(e[a].it,i)},Rr.prototype.processShapes=function(e){var i,a,l,h,c,v=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),v=!0}c=0;var 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 T=this.o.v,R=T%1,D=T>0?Math.floor(T):Math.ceil(T),M=this.pMatrix.props,V=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C=0;if(T>0){for(;C<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,R,!1),C+=R)}else if(T<0){for(;C>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-R,!0),C-=R)}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,a=i[i.length-1].transform.mProps.v.props,S=a.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(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),E=0;E<S;E+=1)a[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<S;E+=1)a[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,a=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 v},Rr.prototype.addShape=function(){};function ra(){}N([nr],ra),ra.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=at.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ra.prototype.processPath=function(e,i){var a=fe.newElement();a.c=e.c;var l,h=e._length,c,v,A,g,w,O,G=0,T,R,D,M,V,L;for(l=0;l<h;l+=1)c=e.v[l],A=e.o[l],v=e.i[l],c[0]===A[0]&&c[1]===A[1]&&c[0]===v[0]&&c[1]===v[1]?(l===0||l===h-1)&&!e.c?(a.setTripleAt(c[0],c[1],A[0],A[1],v[0],v[1],G),G+=1):(l===0?g=e.v[h-1]:g=e.v[l-1],w=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),O=w?Math.min(w/2,i)/w:0,V=c[0]+(g[0]-c[0])*O,T=V,L=c[1]-(c[1]-g[1])*O,R=L,D=T-(T-c[0])*ue,M=R-(R-c[1])*ue,a.setTripleAt(T,R,D,M,V,L,G),G+=1,l===h-1?g=e.v[0]:g=e.v[l+1],w=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),O=w?Math.min(w/2,i)/w:0,D=c[0]+(g[0]-c[0])*O,T=D,M=c[1]+(g[1]-c[1])*O,R=M,V=T-(T-c[0])*ue,L=R-(R-c[1])*ue,a.setTripleAt(T,R,D,M,V,L,G),G+=1):(a.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 a},ra.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.rd.v;if(v!==0){var A,g;for(a=0;a<l;a+=1){if(A=this.shapes[a],g=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(i[h],v));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function On(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function zd(e){return Math.abs(e)<=1e-5}function Wp(e,i,a){return e*(1-a)+i*a}function Si(e,i,a){return[Wp(e[0],i[0],a),Wp(e[1],i[1],a)]}function iy(e,i,a){if(e===0)return[];var l=i*i-4*e*a;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 jp(e,i,a,l){return[-e+3*i-3*a+l,3*e-6*i+3*a,-3*e+3*i,e]}function Kp(e){return new jt(e,e,e,e,!1)}function jt(e,i,a,l,h){h&&es(e,i)&&(i=Si(e,l,1/3)),h&&es(a,l)&&(a=Si(e,l,2/3));var c=jp(e[0],i[0],a[0],l[0]),v=jp(e[1],i[1],a[1],l[1]);this.a=[c[0],v[0]],this.b=[c[1],v[1]],this.c=[c[2],v[2]],this.d=[c[3],v[3]],this.points=[e,i,a,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(zd(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,a=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(a<0)return[];var l=Math.sqrt(a);return zd(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[Kp(this.points[0]),this];if(e>=1)return[this,Kp(this.points[this.points.length-1])];var i=Si(this.points[0],this.points[1],e),a=Si(this.points[1],this.points[2],e),l=Si(this.points[2],this.points[3],e),h=Si(i,a,e),c=Si(a,l,e),v=Si(h,c,e);return[new jt(this.points[0],i,h,v,!0),new jt(v,c,l,this.points[3],!0)]};function qp(e,i){var a=e.points[0][i],l=e.points[e.points.length-1][i];if(a>l){var h=l;l=a,a=h}for(var c=iy(3*e.a[i],2*e.b[i],e.c[i]),v=0;v<c.length;v+=1)if(c[v]>0&&c[v]<1){var A=e.point(c[v])[i];A<a?a=A:A>l&&(l=A)}return{min:a,max:l}}jt.prototype.bounds=function(){return{x:qp(this,0),y:qp(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 Rn(e,i,a){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+a)/2,t1:i,t2:a}}function Xp(e){var i=e.bez.split(.5);return[Rn(i[0],e.t1,e.t),Rn(i[1],e.t,e.t2)]}function oy(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 ia(e,i,a,l,h,c){if(oy(e,i)){if(a>=c||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){h.push([e.t,i.t]);return}var v=Xp(e),A=Xp(i);ia(v[0],A[0],a+1,l,h,c),ia(v[0],A[1],a+1,l,h,c),ia(v[1],A[0],a+1,l,h,c),ia(v[1],A[1],a+1,l,h,c)}}jt.prototype.intersections=function(e,i,a){i===void 0&&(i=2),a===void 0&&(a=7);var l=[];return ia(Rn(this,0,1),Rn(e,0,1),0,i,l,a),l},jt.shapeSegment=function(e,i){var a=(i+1)%e.length();return new jt(e.v[i],e.o[i],e.i[a],e.v[a],!0)},jt.shapeSegmentInverted=function(e,i){var a=(i+1)%e.length();return new jt(e.v[a],e.i[a],e.o[i],e.v[i],!0)};function Vd(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 Mn(e,i,a,l){var h=[e[0],e[1],1],c=[i[0],i[1],1],v=[a[0],a[1],1],A=[l[0],l[1],1],g=Vd(Vd(h,c),Vd(v,A));return zd(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function ts(e,i,a){return[e[0]+Math.cos(i)*a,e[1]-Math.sin(i)*a]}function Bd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function es(e,i){return On(e[0],i[0])&&On(e[1],i[1])}function oa(){}N([nr],oa),oa.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=at.getProp(e,i.s,0,null,this),this.frequency=at.getProp(e,i.r,0,null,this),this.pointsType=at.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 Zp(e,i,a,l,h,c,v){var A=a-Math.PI/2,g=a+Math.PI/2,w=i[0]+Math.cos(a)*l*h,O=i[1]-Math.sin(a)*l*h;e.setTripleAt(w,O,w+Math.cos(A)*c,O-Math.sin(A)*c,w+Math.cos(g)*v,O-Math.sin(g)*v,e.length())}function sy(e,i){var a=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*a[0]-Math.sin(l)*a[1],Math.sin(l)*a[0]+Math.cos(l)*a[1]];return h}function ay(e,i){var a=i===0?e.length()-1:i-1,l=(i+1)%e.length(),h=e.v[a],c=e.v[l],v=sy(h,c);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function Qp(e,i,a,l,h,c,v){var A=ay(i,a),g=i.v[a%i._length],w=i.v[a===0?i._length-1:a-1],O=i.v[(a+1)%i._length],G=c===2?Math.sqrt(Math.pow(g[0]-w[0],2)+Math.pow(g[1]-w[1],2)):0,T=c===2?Math.sqrt(Math.pow(g[0]-O[0],2)+Math.pow(g[1]-O[1],2)):0;Zp(e,i.v[a%i._length],A,v,l,T/((h+1)*2),G/((h+1)*2),c)}function ny(e,i,a,l,h,c){for(var v=0;v<l;v+=1){var A=(v+1)/(l+1),g=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);Zp(e,O,w,c,a,g/((l+1)*2),g/((l+1)*2),h),c=-c}return c}oa.prototype.processPath=function(e,i,a,l){var h=e._length,c=fe.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var v=-1,A=jt.shapeSegment(e,0);Qp(c,e,0,i,a,l,v);for(var g=0;g<h;g+=1)v=ny(c,A,i,a,l,-v),g===h-1&&!e.c?A=null:A=jt.shapeSegment(e,(g+1)%h),Qp(c,e,g+1,i,a,l,v);return c},oa.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==0){var w,O;for(a=0;a<l;a+=1){if(w=this.shapes[a],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],v,A,g));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ud(e,i,a){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[ts(e,l,a),ts(i,l,a)]}function rs(e,i){var a,l,h,c,v,A,g;g=Ud(e.points[0],e.points[1],i),a=g[0],l=g[1],g=Ud(e.points[1],e.points[2],i),h=g[0],c=g[1],g=Ud(e.points[2],e.points[3],i),v=g[0],A=g[1];var w=Mn(a,l,h,c);w===null&&(w=l);var O=Mn(v,A,h,c);return O===null&&(O=v),new jt(a,w,O,A)}function Jp(e,i,a,l,h){var c=i.points[3],v=a.points[0];if(l===3||es(c,v))return c;if(l===2){var A=-i.tangentAngle(1),g=-a.tangentAngle(0)+Math.PI,w=Mn(c,ts(c,A+Math.PI/2,100),v,ts(v,A+Math.PI/2,100)),O=w?Bd(w,c):Bd(c,v)/2,G=ts(c,A,2*O*ue);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=ts(v,g,2*O*ue),e.setTripleAt(v[0],v[1],v[0],v[1],G[0],G[1],e.length()),v}var T=es(c,i.points[2])?i.points[0]:i.points[2],R=es(v,a.points[1])?a.points[3]:a.points[1],D=Mn(T,c,v,R);return D&&Bd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function tm(e,i){var a=e.intersections(i);return a.length&&On(a[0][0],1)&&a.shift(),a.length?a[0]:null}function em(e,i){var a=e.slice(),l=i.slice(),h=tm(e[e.length-1],i[0]);return h&&(a[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=tm(e[0],i[i.length-1]),h)?[[e[0].split(h[0])[0]],[i[i.length-1].split(h[1])[1]]]:[a,l]}function ly(e){for(var i,a=1;a<e.length;a+=1)i=em(e[a-1],e[a]),e[a-1]=i[0],e[a]=i[1];return e.length>1&&(i=em(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function rm(e,i){var a=e.inflectionPoints(),l,h,c,v;if(a.length===0)return[rs(e,i)];if(a.length===1||On(a[1],1))return c=e.split(a[0]),l=c[0],h=c[1],[rs(l,i),rs(h,i)];c=e.split(a[0]),l=c[0];var A=(a[1]-a[0])/(1-a[0]);return c=c[1].split(A),v=c[0],h=c[1],[rs(l,i),rs(v,i),rs(h,i)]}function sa(){}N([nr],sa),sa.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this.miterLimit=at.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},sa.prototype.processPath=function(e,i,a,l){var h=fe.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var v,A,g,w=[];for(v=0;v<c;v+=1)g=jt.shapeSegment(e,v),w.push(rm(g,i));if(!e.c)for(v=c-1;v>=0;v-=1)g=jt.shapeSegmentInverted(e,v),w.push(rm(g,i));w=ly(w);var O=null,G=null;for(v=0;v<w.length;v+=1){var T=w[v];for(G&&(O=Jp(h,G,T[0],a,l)),G=T[T.length-1],A=0;A<T.length;A+=1)g=T[A],O&&es(g.points[0],O)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],h.length()),h.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],h.length()),O=g.points[3]}return w.length&&Jp(h,G,w[0][0],a,l),h},sa.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amount.v,A=this.miterLimit.v,g=this.lineJoin;if(v!==0){var w,O;for(a=0;a<l;a+=1){if(w=this.shapes[a],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],v,g,A));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function im(e){for(var i=e.fStyle?e.fStyle.split(" "):[],a="normal",l="normal",h=i.length,c,v=0;v<h;v+=1)switch(c=i[v].toLowerCase(),c){case"italic":l="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:l,weight:e.fWeight||a}}var lo=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var l=127988,h=917631,c=917601,v=917626,A=65039,g=8205,w=127462,O=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function T(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 R(I,P){var f=x("span");f.setAttribute("aria-hidden",!0),f.style.fontFamily=P;var y=x("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=T(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 M(I,P){var f=document.body&&P?"svg":"canvas",y,Y=im(I);if(f==="svg"){var $=xt("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 nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=Y.style+" "+Y.weight+" 100px "+I.fFamily,y=nt}function vt(Tt){return f==="svg"?(y.textContent=Tt,y.getComputedTextLength()):y.measureText(Tt).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(Fe){Fe.helper=M(Fe),Fe.cache={}}),this.fonts=I.list;return}var f=I.list,y,Y=f.length,$=Y;for(y=0;y<Y;y+=1){var nt=!0,vt,Tt;if(f[y].loaded=!1,f[y].monoCase=R(f[y].fFamily,"monospace"),f[y].sansCase=R(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&&(nt=!1),nt){var Ot=x("style");Ot.setAttribute("f-forigin",f[y].fOrigin),Ot.setAttribute("f-origin",f[y].origin),Ot.setAttribute("f-family",f[y].fFamily),Ot.type="text/css",Ot.innerText="@font-face {font-family: "+f[y].fFamily+"; font-style: normal; src: url('"+f[y].fPath+"');}",P.appendChild(Ot)}}else if(f[y].fOrigin==="g"||f[y].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Tt=0;Tt<vt.length;Tt+=1)vt[Tt].href.indexOf(f[y].fPath)!==-1&&(nt=!1);if(nt){var Rt=x("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"]'),Tt=0;Tt<vt.length;Tt+=1)f[y].fPath===vt[Tt].src&&(nt=!1);if(nt){var te=x("link");te.setAttribute("f-forigin",f[y].fOrigin),te.setAttribute("f-origin",f[y].origin),te.setAttribute("rel","stylesheet"),te.setAttribute("href",f[y].fPath),P.appendChild(te)}}f[y].helper=M(f[y],P),f[y].cache={},this.fonts.push(f[y])}$===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(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 nt=$.measureText("|"+I+"|"),vt=$.measureText("||");y.cache[Y]=(nt-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===g}function W(I){return I===A}function rt(I){var P=k(I);return P>=w&&P<=O}function Et(I){return rt(I.substr(0,2))&&rt(I.substr(2,2))}function pt(I){return a.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>v)return!1;y+=1,P+=2}return k(I.substr(P,2))===h}function At(){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=Et,ct.isRegionalCode=rt,ct.isCombinedCharacter=pt,ct.isRegionalFlag=st,ct.isVariationSelector=W,ct.BLACK_FLAG_CODE_POINT=l;var et={addChars:L,addFonts:V,getCharData:C,getFontByName:S,measureText:E,checkLoadedFonts:D,setIsLoaded:At};return ct.prototype=et,ct}();function om(e){this.animationData=e}om.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function dy(e){return new om(e)}function Pn(){}Pn.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,a=this.renderableComponents.length;for(i=0;i<a;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 Hd=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 cy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function hy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function py(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function my(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function uy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function fy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function vy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function gy(){this.p={}}function sm(e,i){var a=e.ef||[];this.effectElements=[];var l,h=a.length,c;for(l=0;l<h;l+=1)c=new aa(a[l],i),this.effectElements.push(c)}function aa(e,i){this.init(e,i)}N([ce],aa),aa.prototype.getValue=aa.prototype.iterateDynamicProperties,aa.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,l=this.data.ef.length,h,c=this.data.ef;for(a=0;a<l;a+=1){switch(h=null,c[a].ty){case 0:h=new cy(c[a],i,this);break;case 1:h=new hy(c[a],i,this);break;case 2:h=new py(c[a],i,this);break;case 3:h=new my(c[a],i,this);break;case 4:case 7:h=new vy(c[a],i,this);break;case 10:h=new uy(c[a],i,this);break;case 11:h=new fy(c[a],i,this);break;case 5:h=new sm(c[a],i,this);break;default:h=new gy(c[a],i,this);break}h&&this.effectElements.push(h)}};function Ii(){}Ii.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,a=this.data.masksProperties.length;i<a;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Lp();if(i){var a=i("layer"),l=i("effects"),h=i("shape"),c=i("text"),v=i("comp");this.layerInterface=a(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=v(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=Hd(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function(i,a,l){this.globalData=a,this.comp=l,this.data=i,this.layerId=Pe(),this.data.sr||(this.data.sr=1),this.effectsManager=new sm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function _i(){}_i.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,a){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(a||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 Ci(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,a)}Ci.prototype.prepareFrame=function(){},N([Pn,Ii,_i],Ci),Ci.prototype.getBaseElement=function(){return null},Ci.prototype.renderFrame=function(){},Ci.prototype.destroy=function(){},Ci.prototype.initExpressions=function(){var e=Lp();if(e){var i=e("footage");this.layerInterface=i(this)}},Ci.prototype.getFootageData=function(){return this.footageData};function De(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,a),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}De.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 a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},N([Pn,Ii,_i],De),De.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))},De.prototype.show=function(){},De.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},De.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},De.prototype.resume=function(){this._canPlay=!0},De.prototype.setRate=function(e){this.audio.rate(e)},De.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},De.prototype.getBaseElement=function(){return null},De.prototype.destroy=function(){},De.prototype.sourceRectAtTime=function(){},De.prototype.initExpressions=function(){};function ge(){}ge.prototype.checkLayers=function(e){var i,a=this.layers.length,l;for(this.completeLayers=!0,i=a-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()},ge.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)}},ge.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ge.prototype.createAudio=function(e){return new De(e,this.globalData,this)},ge.prototype.createFootage=function(e){return new Ci(e,this.globalData,this)},ge.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},ge.prototype.includeLayers=function(e){this.completeLayers=!1;var i,a=e.length,l,h=this.layers.length;for(i=0;i<a;i+=1)for(l=0;l<h;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},ge.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},ge.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ge.prototype.buildElementParenting=function(e,i,a){for(var l=this.elements,h=this.layers,c=0,v=h.length;c<v;)h[c].ind==i&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(a.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,a):e.setHierarchy(a))),c+=1},ge.prototype.addPendingElement=function(e){this.pendingElements.push(e)},ge.prototype.searchExtraCompositions=function(e){var i,a=e.length;for(i=0;i<a;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},ge.prototype.getElementById=function(e){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},ge.prototype.getElementByPath=function(e){var i=e.shift(),a;if(typeof i=="number")a=this.elements[i];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===i){a=this.elements[l];break}}return e.length===0?a:a.getElementByPath(e)},ge.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new lo,this.globalData.slotManager=dy(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 by={TRANSFORM_EFFECT:"transformEFfect"};function is(){}is.prototype={initTransform:function(){var i=new ve;this.finalTransform={mProp:this.data.ks?$d.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,a=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,a.cloneFromProps(i),l=0;l<h;l+=1)a.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,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<a;)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<a;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<a;i+=1)c*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(by.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new ve;var a=0,l=i.length;for(a=0;a<l;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function(i){var a=[];a.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&a.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,v=a.length,A;for(c=0;c<v;c+=1)A=a[c].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new ve};function co(e,i,a){this.data=e,this.element=i,this.globalData=a,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 v,A=this.masksProperties,g=0,w=[],O,G,T=Pe(),R,D,M,V,L="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)&&(L="mask",C="mask"),(A[h].mode==="s"||A[h].mode==="i")&&g===0?(R=xt("rect"),R.setAttribute("fill","#ffffff"),R.setAttribute("width",this.element.comp.data.w||0),R.setAttribute("height",this.element.comp.data.h||0),w.push(R)):R=null,v=xt("path"),A[h].mode==="n")this.viewData[h]={op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:kn.getShapeProp(this.element,A[h],3),elem:v,lastPath:""},l.appendChild(v);else{g+=1,v.setAttribute("fill",A[h].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var E;if(A[h].x.k!==0?(L="mask",C="mask",V=at.getProp(this.element,A[h].x,0,null,this.element),E=Pe(),D=xt("filter"),D.setAttribute("id",E),M=xt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),D.appendChild(M),l.appendChild(D),v.setAttribute("stroke",A[h].mode==="s"?"#000000":"#ffffff")):(M=null,V=null),this.storedData[h]={elem:v,x:V,expan:M,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},A[h].mode==="i"){G=w.length;var S=xt("g");for(O=0;O<G;O+=1)S.appendChild(w[O]);var k=xt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",T+"_"+g),k.appendChild(v),l.appendChild(k),S.setAttribute("mask","url("+b()+"#"+T+"_"+g+")"),w.length=0,w.push(S)}else w.push(v);A[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:v,lastPath:"",op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:kn.getShapeProp(this.element,A[h],3),invRect:R},this.viewData[h].prop.k||this.drawPath(A[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=xt(L),c=w.length,h=0;h<c;h+=1)this.maskElement.appendChild(w[h]);g>0&&(this.maskElement.setAttribute("id",T),this.element.maskedElement.setAttribute(C,"url("+b()+"#"+T+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}co.prototype.getMaskProperty=function(e){return this.viewData[e].prop},co.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,a,l=this.masksProperties.length;for(a=0;a<l;a+=1)if((this.viewData[a].prop._mdf||e)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||e)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),this.masksProperties[a].mode!=="n"&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||e))){var h=this.storedData[a].expan;this.storedData[a].x.v<0?(this.storedData[a].lastOperator!=="erode"&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+b()+"#"+this.storedData[a].filterId+")")),h.setAttribute("radius",-this.storedData[a].x.v)):(this.storedData[a].lastOperator!=="dilate"&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2))}},co.prototype.getMaskelement=function(){return this.maskElement},co.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},co.prototype.drawPath=function(e,i,a){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]),a.lastPath!==l){var v="";a.elem&&(i.c&&(v=e.inv?this.solidPath+l:l),a.elem.setAttribute("d",v)),a.lastPath=l}},co.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var na=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=a;function i(l,h){var c=xt("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 a(){var l=xt("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}(),am=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}(),Dn={},nm="filter_result_";function Gd(e){var i,a="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=Pe(),c=na.createFilter(h,!0),v=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var g=e.data.ef[i].ty;if(Dn[g]){var w=Dn[g].effect;A=new w(c,e.effectsManager.effectElements[i],e,nm+v,a),a=nm+v,Dn[g].countsAsEffect&&(v+=1)}A&&this.filters.push(A)}v&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+b()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}Gd.prototype.renderFrame=function(e){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(e)},Gd.prototype.getEffects=function(e){var i,a=this.filters.length,l=[];for(i=0;i<a;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function n0(e,i,a){Dn[e]={effect:i,countsAsEffect:a}}function la(){}la.prototype={initRendererElement:function(){this.layerElement=xt("g")},createContainerElements:function(){this.matteElement=xt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=xt("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}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=xt("clipPath"),h=xt("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=Pe();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var v=xt("g");v.setAttribute("clip-path","url("+b()+"#"+c+")"),v.appendChild(this.layerElement),this.transformedElement=v,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+b()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new co(this.data,this,this.globalData),this.renderableEffectsManager=new Gd(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var a=this.layerId+"_"+i,l,h,c,v;if(i===1||i===3){var A=xt("mask");A.setAttribute("id",a),A.setAttribute("mask-type",i===3?"luminance":"alpha"),c=xt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(c),this.globalData.defs.appendChild(A),!am.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=Pe(),h=na.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(na.createAlphaToLuminanceFilter()),v=xt("g"),v.appendChild(c),A.appendChild(v),v.setAttribute("filter","url("+b()+"#"+l+")"))}else if(i===2){var g=xt("mask");g.setAttribute("id",a),g.setAttribute("mask-type","alpha");var w=xt("g");g.appendChild(w),l=Pe(),h=na.createFilter(l);var O=xt("feComponentTransfer");O.setAttribute("in","SourceGraphic"),h.appendChild(O);var G=xt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),O.appendChild(G),this.globalData.defs.appendChild(h);var T=xt("rect");T.setAttribute("width",this.comp.data.w),T.setAttribute("height",this.comp.data.h),T.setAttribute("x","0"),T.setAttribute("y","0"),T.setAttribute("fill","#ffffff"),T.setAttribute("opacity","0"),w.setAttribute("filter","url("+b()+"#"+l+")"),w.appendChild(T),c=xt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(c),am.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(na.createAlphaToLuminanceFilter()),v=xt("g"),w.appendChild(T),v.appendChild(this.layerElement),w.appendChild(v)),this.globalData.defs.appendChild(g)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+b()+"#"+i+")")}};function os(){}os.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 da(){}(function(){var e={initElement:function(a,l,h){this.initFrame(),this.initBaseData(a,l,h),this.initTransform(a,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 a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.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(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};N([Pn,K(e)],da)})();function ca(e,i,a){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}N([Ii,is,la,os,_i,da],ca),ca.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=xt("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)},ca.prototype.sourceRectAtTime=function(){return this.sourceRect};function yy(e,i){this.elem=e,this.pos=i}function lm(){}lm.prototype={addShapeToModifiers:function(i){var a,l=this.shapeModifiers.length;for(a=0;a<l;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var a=0,l=this.shapeModifiers.length;a<l;)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var l;for(i=a-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var a=this.processedElements,l=0,h=a.length;l<h;){if(a[l].elem===i)return a[l].pos;l+=1}return 0},addProcessedElement:function(i,a){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===i){l[h].pos=a;return}l.push(new yy(i,a))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var dm={1:"butt",2:"round",3:"square"},cm={1:"miter",2:"round",3:"bevel"};function hm(e,i,a){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}hm.prototype.setAsAnimated=function(){this._isAnimated=!0};function pm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=xt("path"),this.msElem=null}pm.prototype.reset=function(){this.d="",this._mdf=!1};function Fn(e,i,a,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=a,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,v;for(h=0;h<c;h+=1)v=at.getProp(e,i[h].v,0,0,this),this.k=v.k||this.k,this.dataProps[h]={n:i[h].n,p:v};this.k||this.getValue(!0),this._isAnimated=this.k}Fn.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,a=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<a;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}},N([ce],Fn);function mm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.w=at.getProp(e,i.w,0,null,this),this.d=new Fn(e,i.d||{},"svg",this),this.c=at.getProp(e,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}N([ce],mm);function um(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.c=at.getProp(e,i.c,1,255,this),this.style=a}N([ce],um);function fm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=a}N([ce],fm);function ha(e,i,a){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(a),this.prop=at.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ha.prototype.comparePoints=function(e,i){for(var a=0,l=this.o.length/2,h;a<l;){if(h=Math.abs(e[a*4]-e[i*4+a*2]),h>.01)return!1;a+=1}return!0},ha.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},ha.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,a=this.data.p*4,l,h;for(i=0;i<a;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(a=this.prop.v.length,i=this.data.p*4;i<a;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}},N([ce],ha);function ss(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,a)}ss.prototype.initGradientData=function(e,i,a){this.o=at.getProp(e,i.o,0,.01,this),this.s=at.getProp(e,i.s,1,null,this),this.e=at.getProp(e,i.e,1,null,this),this.h=at.getProp(e,i.h||{k:0},0,.01,this),this.a=at.getProp(e,i.a||{k:0},0,wt,this),this.g=new ha(e,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},ss.prototype.setGradientData=function(e,i){var a=Pe(),l=xt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",a),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,v,A;for(A=i.g.p*4,v=0;v<A;v+=4)c=xt("stop"),l.appendChild(c),h.push(c);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+b()+"#"+a+")"),this.gf=l,this.cst=h},ss.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,l,h,c=xt("mask"),v=xt("path");c.appendChild(v);var A=Pe(),g=Pe();c.setAttribute("id",g);var w=xt(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)a=xt("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(a),O.push(a);v.setAttribute(e.ty==="gf"?"fill":"stroke","url("+b()+"#"+A+")"),e.ty==="gs"&&(v.setAttribute("stroke-linecap",dm[e.lc||2]),v.setAttribute("stroke-linejoin",cm[e.lj||2]),e.lj===1&&v.setAttribute("stroke-miterlimit",e.ml)),this.of=w,this.ms=c,this.ost=O,this.maskId=g,i.msElem=v}},N([ce],ss);function vm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(e,i.w,0,null,this),this.d=new Fn(e,i.d||{},"svg",this),this.initGradientData(e,i,a),this._isAnimated=!!this._isAnimated}N([ss,ce],vm);function Ey(){this.it=[],this.prevViewData=[],this.gr=xt("g")}function Ty(e,i,a){this.transform={mProps:e,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var gm=function(i,a,l,h){if(a===0)return"";var c=i.o,v=i.i,A=i.v,g,w=" M"+h.applyToPointStringified(A[0][0],A[0][1]);for(g=1;g<a;g+=1)w+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[g][0],v[g][1])+" "+h.applyToPointStringified(A[g][0],A[g][1]);return l&&a&&(w+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[0][0],v[0][1])+" "+h.applyToPointStringified(A[0][0],A[0][1]),w+="z"),w},xy=function(){var e=new ve,i=new ve,a={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return w;case"gs":return g;case"st":return O;case"sh":case"el":case"rc":case"sr":return v;case"tr":return h;case"no":return c;default:return null}}function h(G,T,R){(R||T.transform.op._mdf)&&T.transform.container.setAttribute("opacity",T.transform.op.v),(R||T.transform.mProps._mdf)&&T.transform.container.setAttribute("transform",T.transform.mProps.v.to2dCSS())}function c(){}function v(G,T,R){var D,M,V,L,C,E,S=T.styles.length,k=T.lvl,F,H,W,rt;for(E=0;E<S;E+=1){if(L=T.sh._mdf||R,T.styles[E].lvl<k){for(H=i.reset(),W=k-T.styles[E].lvl,rt=T.transformers.length-1;!L&&W>0;)L=T.transformers[rt].mProps._mdf||L,W-=1,rt-=1;if(L)for(W=k-T.styles[E].lvl,rt=T.transformers.length-1;W>0;)H.multiply(T.transformers[rt].mProps.v),W-=1,rt-=1}else H=e;if(F=T.sh.paths,M=F._length,L){for(V="",D=0;D<M;D+=1)C=F.shapes[D],C&&C._length&&(V+=gm(C,C._length,C.c,H));T.caches[E]=V}else V=T.caches[E];T.styles[E].d+=G.hd===!0?"":V,T.styles[E]._mdf=L||T.styles[E]._mdf}}function A(G,T,R){var D=T.style;(T.c._mdf||R)&&D.pElem.setAttribute("fill","rgb("+de(T.c.v[0])+","+de(T.c.v[1])+","+de(T.c.v[2])+")"),(T.o._mdf||R)&&D.pElem.setAttribute("fill-opacity",T.o.v)}function g(G,T,R){w(G,T,R),O(G,T,R)}function w(G,T,R){var D=T.gf,M=T.g._hasOpacity,V=T.s.v,L=T.e.v;if(T.o._mdf||R){var C=G.ty==="gf"?"fill-opacity":"stroke-opacity";T.style.pElem.setAttribute(C,T.o.v)}if(T.s._mdf||R){var E=G.t===1?"x1":"cx",S=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(S,V[1]),M&&!T.g._collapsable&&(T.of.setAttribute(E,V[0]),T.of.setAttribute(S,V[1]))}var k,F,H,W;if(T.g._cmdf||R){k=T.cst;var rt=T.g.c;for(H=k.length,F=0;F<H;F+=1)W=k[F],W.setAttribute("offset",rt[F*4]+"%"),W.setAttribute("stop-color","rgb("+rt[F*4+1]+","+rt[F*4+2]+","+rt[F*4+3]+")")}if(M&&(T.g._omdf||R)){var Et=T.g.o;for(T.g._collapsable?k=T.cst:k=T.ost,H=k.length,F=0;F<H;F+=1)W=k[F],T.g._collapsable||W.setAttribute("offset",Et[F*2]+"%"),W.setAttribute("stop-opacity",Et[F*2+1])}if(G.t===1)(T.e._mdf||R)&&(D.setAttribute("x2",L[0]),D.setAttribute("y2",L[1]),M&&!T.g._collapsable&&(T.of.setAttribute("x2",L[0]),T.of.setAttribute("y2",L[1])));else{var pt;if((T.s._mdf||T.e._mdf||R)&&(pt=Math.sqrt(Math.pow(V[0]-L[0],2)+Math.pow(V[1]-L[1],2)),D.setAttribute("r",pt),M&&!T.g._collapsable&&T.of.setAttribute("r",pt)),T.e._mdf||T.h._mdf||T.a._mdf||R){pt||(pt=Math.sqrt(Math.pow(V[0]-L[0],2)+Math.pow(V[1]-L[1],2)));var st=Math.atan2(L[1]-V[1],L[0]-V[0]),At=T.h.v;At>=1?At=.99:At<=-1&&(At=-.99);var ct=pt*At,et=Math.cos(st+T.a.v)*ct+V[0],I=Math.sin(st+T.a.v)*ct+V[1];D.setAttribute("fx",et),D.setAttribute("fy",I),M&&!T.g._collapsable&&(T.of.setAttribute("fx",et),T.of.setAttribute("fy",I))}}}function O(G,T,R){var D=T.style,M=T.d;M&&(M._mdf||R)&&M.dashStr&&(D.pElem.setAttribute("stroke-dasharray",M.dashStr),D.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),T.c&&(T.c._mdf||R)&&D.pElem.setAttribute("stroke","rgb("+de(T.c.v[0])+","+de(T.c.v[1])+","+de(T.c.v[2])+")"),(T.o._mdf||R)&&D.pElem.setAttribute("stroke-opacity",T.o.v),(T.w._mdf||R)&&(D.pElem.setAttribute("stroke-width",T.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",T.w.v))}return a}();function qt(e,i,a){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,a),this.prevViewData=[]}N([Ii,is,la,lm,os,_i,da],qt),qt.prototype.initSecondaryElement=function(){},qt.prototype.identityMatrix=new ve,qt.prototype.buildExpressionInterface=function(){},qt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},qt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,a,l,h=this.stylesList.length,c,v=[],A=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],A=!1,v.length=0,e=0;e<i;e+=1)a=this.shapes[e],a.styles.indexOf(c)!==-1&&(v.push(a),A=a._isAnimated||A);v.length>1&&A&&this.setShapesAsAnimated(v)}},qt.prototype.setShapesAsAnimated=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i].setAsAnimated()},qt.prototype.createStyleElement=function(e,i){var a,l=new pm(e,i),h=l.pElem;if(e.ty==="st")a=new mm(this,e,l);else if(e.ty==="fl")a=new um(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?ss:vm;a=new c(this,e,l),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),h.setAttribute("mask","url("+b()+"#"+a.maskId+")"))}else e.ty==="no"&&(a=new fm(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",dm[e.lc||2]),h.setAttribute("stroke-linejoin",cm[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"]=Hd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,a),a},qt.prototype.createGroupElement=function(e){var i=new Ey;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"]=Hd(e.bm)),i},qt.prototype.createTransformElement=function(e,i){var a=$d.getTransformProperty(this,e,this),l=new Ty(a,a.o,i);return this.addToAnimatedContents(e,l),l},qt.prototype.createShapeElement=function(e,i,a){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=kn.getShapeProp(this,e,l,this),c=new hm(i,a,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},qt.prototype.addToAnimatedContents=function(e,i){for(var a=0,l=this.animatedContents.length;a<l;){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:xy.createRenderFunction(e),element:i,data:e})},qt.prototype.setElementStyles=function(e){var i=e.styles,a,l=this.stylesList.length;for(a=0;a<l;a+=1)this.stylesList[a].closed||i.push(this.stylesList[a])},qt.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()},qt.prototype.searchShapes=function(e,i,a,l,h,c,v){var A=[].concat(c),g,w=e.length-1,O,G,T=[],R=[],D,M,V;for(g=w;g>=0;g-=1){if(V=this.searchProcessedElement(e[g]),V?i[g]=a[V-1]:e[g]._render=v,e[g].ty==="fl"||e[g].ty==="st"||e[g].ty==="gf"||e[g].ty==="gs"||e[g].ty==="no")V?i[g].style.closed=!1:i[g]=this.createStyleElement(e[g],h),e[g]._render&&i[g].style.pElem.parentNode!==l&&l.appendChild(i[g].style.pElem),T.push(i[g].style);else if(e[g].ty==="gr"){if(!V)i[g]=this.createGroupElement(e[g]);else for(G=i[g].it.length,O=0;O<G;O+=1)i[g].prevViewData[O]=i[g].it[O];this.searchShapes(e[g].it,i[g].it,i[g].prevViewData,i[g].gr,h+1,A,v),e[g]._render&&i[g].gr.parentNode!==l&&l.appendChild(i[g].gr)}else e[g].ty==="tr"?(V||(i[g]=this.createTransformElement(e[g],l)),D=i[g].transform,A.push(D)):e[g].ty==="sh"||e[g].ty==="rc"||e[g].ty==="el"||e[g].ty==="sr"?(V||(i[g]=this.createShapeElement(e[g],A,h)),this.setElementStyles(i[g])):e[g].ty==="tm"||e[g].ty==="rd"||e[g].ty==="ms"||e[g].ty==="pb"||e[g].ty==="zz"||e[g].ty==="op"?(V?(M=i[g],M.closed=!1):(M=Ai.getModifier(e[g].ty),M.init(this,e[g]),i[g]=M,this.shapeModifiers.push(M)),R.push(M)):e[g].ty==="rp"&&(V?(M=i[g],M.closed=!0):(M=Ai.getModifier(e[g].ty),i[g]=M,M.init(this,e,g,i),this.shapeModifiers.push(M),v=!1),R.push(M));this.addProcessedElement(e[g],g+1)}for(w=T.length,g=0;g<w;g+=1)T[g].closed=!0;for(w=R.length,g=0;g<w;g+=1)R[g].closed=!0},qt.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"))},qt.prototype.renderShape=function(){var e,i=this.animatedContents.length,a;for(e=0;e<i;e+=1)a=this.animatedContents[e],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0&&a.fn(a.data,a.element,this._isFirstFrame)},qt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Yd(e,i,a,l,h,c){this.o=e,this.sw=i,this.sc=a,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!l,m:!0,p:!0}}Yd.prototype.update=function(e,i,a,l,h,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var v=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,v=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,v=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,v=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,v=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,v=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,v=!0),v};function Ce(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)}Ce.prototype.defaultBoxWidth=[0,0],Ce.prototype.copyData=function(e,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);return e},Ce.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ce.prototype.searchProperty=function(){return this.searchKeyframes()},Ce.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ce.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Ce.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,a=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)a!==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}},Ce.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,a=0,l=e.length;a<=l-1&&!(a===l-1||e[a+1].t>i);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},Ce.prototype.buildFinalText=function(e){for(var i=[],a=0,l=e.length,h,c,v=!1,A=!1,g="";a<l;)v=A,A=!1,h=e.charCodeAt(a),g=e.charAt(a),lo.isCombinedCharacter(h)?v=!0:h>=55296&&h<=56319?lo.isRegionalFlag(e,a)?g=e.substr(a,14):(c=e.charCodeAt(a+1),c>=56320&&c<=57343&&(lo.isModifier(h,c)?(g=e.substr(a,2),v=!0):lo.isFlagEmoji(e.substr(a,4))?g=e.substr(a,4):g=e.substr(a,2))):h>56319?(c=e.charCodeAt(a+1),lo.isVariationSelector(h)&&(v=!0)):lo.isZeroWidthJoiner(h)&&(v=!0,A=!0),v?(i[i.length-1]+=g,v=!1):i.push(g),a+=g.length;return i},Ce.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,l=[],h,c,v,A=0,g,w=a.m.g,O=0,G=0,T=0,R=[],D=0,M=0,V,L,C=i.getFontByName(e.f),E,S=0,k=im(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 W=!0,rt=e.sz[0],Et=e.sz[1],pt,st;W;){st=this.buildFinalText(e.t),pt=0,D=0,c=st.length,F=e.tr/1e3*e.finalSize;var At=-1;for(h=0;h<c;h+=1)H=st[h].charCodeAt(0),v=!1,st[h]===" "?At=h:(H===13||H===3)&&(D=0,v=!0,pt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(E=i.getCharData(st[h],C.fStyle,C.fFamily),S=v?0:E.w*e.finalSize/100):S=i.measureText(st[h],e.f,e.finalSize),D+S>rt&&st[h]!==" "?(At===-1?c+=1:h=At,pt+=e.finalLineHeight||e.finalSize*1.2,st.splice(h,At===h?1:0,"\r"),At=-1,D=0):(D+=S,D+=F);pt+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&Et<pt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,c=e.finalText.length,W=!1)}D=-F,S=0;var ct=0,et;for(h=0;h<c;h+=1)if(v=!1,et=e.finalText[h],H=et.charCodeAt(0),H===13||H===3?(ct=0,R.push(D),M=D>M?D:M,D=-2*F,g="",v=!0,T+=1):g=et,i.chars?(E=i.getCharData(et,C.fStyle,i.getFontByName(e.f).fFamily),S=v?0:E.w*e.finalSize/100):S=i.measureText(g,e.f,e.finalSize),et===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:O,n:v,anIndexes:[],val:g,line:T,animatorJustifyOffset:0}),w==2){if(O+=S,g===""||g===" "||h===c-1){for((g===""||g===" ")&&(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,g===""||h===c-1){for(g===""&&(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,M=D>M?D:M,R.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=M,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=R;var I=a.a,P,f;L=I.length;var y,Y,$=[];for(V=0;V<L;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);a.a[V].s.totalChars=Y;var nt=-1,vt;if(P.s.rn===1)for(h=0;h<c;h+=1)f=l[h],nt!=f.anIndexes[V]&&(nt=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},Ce.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,e),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),this.elem.addDynamicProperty(this)},Ce.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Ce.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ce.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Ay=function(){var e=Math.max,i=Math.min,a=Math.floor;function l(c,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=at.getProp(c,v.s||{k:0},0,0,this),"e"in v?this.e=at.getProp(c,v.e,0,0,this):this.e={v:100},this.o=at.getProp(c,v.o||{k:0},0,0,this),this.xe=at.getProp(c,v.xe||{k:0},0,0,this),this.ne=at.getProp(c,v.ne||{k:0},0,0,this),this.sm=at.getProp(c,v.sm||{k:100},0,0,this),this.a=at.getProp(c,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(v){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,g=0,w=1,O=1;this.ne.v>0?A=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:O=1+this.xe.v/100;var G=ta.getBezierEasing(A,g,w,O).get,T=0,R=this.finalS,D=this.finalE,M=this.data.sh;if(M===2)D===R?T=v>=D?1:0:T=e(0,i(.5/(D-R)+(v-R)/(D-R),1)),T=G(T);else if(M===3)D===R?T=v>=D?0:1:T=1-e(0,i(.5/(D-R)+(v-R)/(D-R),1)),T=G(T);else if(M===4)D===R?T=0:(T=e(0,i(.5/(D-R)+(v-R)/(D-R),1)),T<.5?T*=2:T=1-2*(T-.5)),T=G(T);else if(M===5){if(D===R)T=0;else{var V=D-R;v=i(e(0,v+.5-R),D-R);var L=-V/2+v,C=V/2;T=Math.sqrt(1-L*L/(C*C))}T=G(T)}else M===6?(D===R?T=0:(v=i(e(0,v+.5-R),D-R),T=(1+Math.cos(Math.PI+Math.PI*2*v/(D-R)))/2),T=G(T)):(v>=a(R)&&(v-R<0?T=e(0,i(i(D,1)-(R-v),1)):T=e(0,i(D-v,1))),T=G(T));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var S=.5-E*.5;T<S?T=0:(T=(T-S)/E,T>1&&(T=1))}return T*this.a.v},getValue:function(v){this.iterateDynamicProperties(),this._mdf=v||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,v&&this.data.r===2&&(this.e.v=this._currentTextLength);var A=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/A,w=this.s.v/A+g,O=this.e.v/A+g;if(w>O){var G=w;w=O,O=G}this.finalS=w,this.finalE=O}},N([ce],l);function h(c,v,A){return new l(c,v,A)}return{getTextSelectorProp:h}}();function Sy(e,i,a){var l={propType:!1},h=at.getProp,c=i.a;this.a={r:c.r?h(e,c.r,0,wt,a):l,rx:c.rx?h(e,c.rx,0,wt,a):l,ry:c.ry?h(e,c.ry,0,wt,a):l,sk:c.sk?h(e,c.sk,0,wt,a):l,sa:c.sa?h(e,c.sa,0,wt,a):l,s:c.s?h(e,c.s,1,.01,a):l,a:c.a?h(e,c.a,1,0,a):l,o:c.o?h(e,c.o,0,.01,a):l,p:c.p?h(e,c.p,1,0,a):l,sw:c.sw?h(e,c.sw,0,0,a):l,sc:c.sc?h(e,c.sc,1,0,a):l,fc:c.fc?h(e,c.fc,1,0,a):l,fh:c.fh?h(e,c.fh,0,0,a):l,fs:c.fs?h(e,c.fs,0,.01,a):l,fb:c.fb?h(e,c.fb,0,.01,a):l,t:c.t?h(e,c.t,0,0,a):l},this.s=Ay.getTextSelectorProp(e,i.s,a),this.s.t=i.s.t}function ho(e,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=a,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}ho.prototype.searchProperties=function(){var e,i=this._textData.a.length,a,l=at.getProp;for(e=0;e<i;e+=1)a=this._textData.a[e],this._animatorsData[e]=new Sy(this._elem,a,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)},ho.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,v=this._renderType,A=this.renderedLetters.length,g,w,O,G,T=e.l,R,D,M,V,L,C,E,S,k,F,H,W,rt,Et,pt;if(this._hasMaskedPath){if(pt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=pt.v;this._pathData.r.v&&(st=st.reverse()),R={tLength:0,segments:[]},G=st._length-1;var At;for(W=0,O=0;O<G;O+=1)At=Or.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]]),R.tLength+=At.segmentLength,R.segments.push(At),W+=At.segmentLength;O=G,pt.v.c&&(At=Or.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]]),R.tLength+=At.segmentLength,R.segments.push(At),W+=At.segmentLength),this._pathData.pi=R}if(R=this._pathData.pi,D=this._pathData.f.v,E=0,C=1,V=0,L=!0,F=R.segments,D<0&&pt.v.c)for(R.tLength<Math.abs(D)&&(D=-Math.abs(D)%R.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],M=k[C],H=M.partialLength}G=T.length,g=0,w=0;var ct=e.finalSize*1.2*.714,et=!0,I,P,f,y,Y;y=l.length;var $,nt=-1,vt,Tt,Ot,Rt=D,te=E,Fe=C,Mr=-1,$e,he,Xe,Dt,ht,Jr,ki,ti,Pr="",ei=this.defaultPropsArray,ri;if(e.j===2||e.j===1){var ze=0,Ni=0,Li=e.j===2?-.5:-1,xr=0,Oi=!0;for(O=0;O<G;O+=1)if(T[O].n){for(ze&&(ze+=Ni);xr<O;)T[xr].animatorJustifyOffset=ze,xr+=1;ze=0,Oi=!0}else{for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(Oi&&e.j===2&&(Ni+=I.t.v*Li),P=l[f].s,$=P.getMult(T[O].anIndexes[f],h.a[f].s.totalChars),$.length?ze+=I.t.v*$[0]*Li:ze+=I.t.v*$*Li);Oi=!1}for(ze&&(ze+=Ni);xr<O;)T[xr].animatorJustifyOffset=ze,xr+=1}for(O=0;O<G;O+=1){if(c.reset(),$e=1,T[O].n)g=0,w+=e.yOffset,w+=et?1:0,D=Rt,et=!1,this._hasMaskedPath&&(E=te,C=Fe,k=F[E].points,S=k[C-1],M=k[C],H=M.partialLength,V=0),Pr="",ti="",Jr="",ri="",ei=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Mr!==T[O].line){switch(e.j){case 1:D+=W-e.lineWidths[T[O].line];break;case 2:D+=(W-e.lineWidths[T[O].line])/2;break;default:break}Mr=T[O].line}nt!==T[O].ind&&(T[nt]&&(D+=T[nt].extra),D+=T[O].an/2,nt=T[O].ind),D+=a[0]*T[O].an*.005;var Ar=0;for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(T[O].anIndexes[f],h.a[f].s.totalChars),$.length?Ar+=I.p.v[0]*$[0]:Ar+=I.p.v[0]*$),I.a.propType&&(P=l[f].s,$=P.getMult(T[O].anIndexes[f],h.a[f].s.totalChars),$.length?Ar+=I.a.v[0]*$[0]:Ar+=I.a.v[0]*$);for(L=!0,this._pathData.a.v&&(D=T[0].an*.5+(W-this._pathData.f.v-T[0].an*.5-T[T.length-1].an*.5)*nt/(G-1),D+=this._pathData.f.v);L;)V+H>=D+Ar||!k?(rt=(D+Ar-V)/M.partialLength,Tt=S.point[0]+(M.point[0]-S.point[0])*rt,Ot=S.point[1]+(M.point[1]-S.point[1])*rt,c.translate(-a[0]*T[O].an*.005,-(a[1]*ct)*.01),L=!1):k&&(V+=M.partialLength,C+=1,C>=k.length&&(C=0,E+=1,F[E]?k=F[E].points:pt.v.c?(C=0,E=0,k=F[E].points):(V-=M.partialLength,k=null)),k&&(S=M,M=k[C],H=M.partialLength));vt=T[O].an/2-T[O].add,c.translate(-vt,0,0)}else vt=T[O].an/2-T[O].add,c.translate(-vt,0,0),c.translate(-a[0]*T[O].an*.005,-a[1]*ct*.01,0);for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(P=l[f].s,$=P.getMult(T[O].anIndexes[f],h.a[f].s.totalChars),(g!==0||e.j!==0)&&(this._hasMaskedPath?$.length?D+=I.t.v*$[0]:D+=I.t.v*$:$.length?g+=I.t.v*$[0]:g+=I.t.v*$));for(e.strokeWidthAnim&&(Xe=e.sw||0),e.strokeColorAnim&&(e.sc?he=[e.sc[0],e.sc[1],e.sc[2]]:he=[0,0,0]),e.fillColorAnim&&e.fc&&(Dt=[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(T[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(T[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(T[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?$e+=(I.o.v*$[0]-$e)*$[0]:$e+=(I.o.v*$-$e)*$),e.strokeWidthAnim&&I.sw.propType&&($.length?Xe+=I.sw.v*$[0]:Xe+=I.sw.v*$),e.strokeColorAnim&&I.sc.propType)for(ht=0;ht<3;ht+=1)$.length?he[ht]+=(I.sc.v[ht]-he[ht])*$[0]:he[ht]+=(I.sc.v[ht]-he[ht])*$;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(ht=0;ht<3;ht+=1)$.length?Dt[ht]+=(I.fc.v[ht]-Dt[ht])*$[0]:Dt[ht]+=(I.fc.v[ht]-Dt[ht])*$;I.fh.propType&&($.length?Dt=Np(Dt,I.fh.v*$[0]):Dt=Np(Dt,I.fh.v*$)),I.fs.propType&&($.length?Dt=wp(Dt,I.fs.v*$[0]):Dt=wp(Dt,I.fs.v*$)),I.fb.propType&&($.length?Dt=kp(Dt,I.fb.v*$[0]):Dt=kp(Dt,I.fb.v*$))}}for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(T[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&&(Jr=Xe<0?0:Xe),e.strokeColorAnim&&(ki="rgb("+Math.round(he[0]*255)+","+Math.round(he[1]*255)+","+Math.round(he[2]*255)+")"),e.fillColorAnim&&e.fc&&(ti="rgb("+Math.round(Dt[0]*255)+","+Math.round(Dt[1]*255)+","+Math.round(Dt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,a[1]*ct*.01+w,0),this._pathData.p.v){Et=(M.point[1]-S.point[1])/(M.point[0]-S.point[0]);var po=Math.atan(Et)*180/Math.PI;M.point[0]<S.point[0]&&(po+=180),c.rotate(-po*Math.PI/180)}c.translate(Tt,Ot,0),D-=a[0]*T[O].an*.005,T[O+1]&&nt!==T[O+1].ind&&(D+=T[O].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(g,w,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(T[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[O].line]),0,0);break;case 2:c.translate(T[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[O].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(vt,0,0),c.translate(a[0]*T[O].an*.005,a[1]*ct*.01,0),g+=T[O].l+e.tr*.001*e.finalSize}v==="html"?Pr=c.toCSS():v==="svg"?Pr=c.to2dCSS():ei=[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]],ri=$e}A<=O?(Y=new Yd(ri,Jr,ki,ti,Pr,ei),this.renderedLetters.push(Y),A+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[O],this.lettersChangedFlag=Y.update(ri,Jr,ki,ti,Pr,ei)||this.lettersChangedFlag)}}},ho.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ho.prototype.mHelper=new ve,ho.prototype.defaultPropsArray=[],N([ce],ho);function lr(){}lr.prototype.initElement=function(e,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,a),this.textProperty=new Ce(this,e.t,this.dynamicProperties),this.textAnimator=new ho(e.t,this.renderType,this),this.initTransform(e,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},lr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},lr.prototype.createPathShape=function(e,i){var a,l=i.length,h,c="";for(a=0;a<l;a+=1)i[a].ty==="sh"&&(h=i[a].ks.k,c+=gm(h,h.i.length,!0,e));return c},lr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},lr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},lr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},lr.prototype.applyTextPropertiesToMatrix=function(e,i,a,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[a]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a])/2,0,0);break;default:break}i.translate(l,h,0)},lr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},lr.prototype.emptyProp=new Yd,lr.prototype.destroy=function(){},lr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Iy={shapes:[]};function Zr(e,i,a){this.textSpans=[],this.renderType="svg",this.initElement(e,i,a)}N([Ii,is,la,os,_i,da,lr],Zr),Zr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=xt("text"))},Zr.prototype.buildTextContents=function(e){for(var i=0,a=e.length,l=[],h="";i<a;)e[i]==="\r"||e[i]===""?(l.push(h),h=""):h+=e[i],i+=1;return l.push(h),l},Zr.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var a=e.shapes[0];if(a.it){var l=a.it[a.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},Zr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,a=this.textProperty.currentData;this.renderedLetters=it(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var l=this.globalData.fontManager.getFontByName(a.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=a.fWeight,c=a.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",a.t);var v=a.l||[],A=!!this.globalData.fontManager.chars;i=v.length;var g,w=this.mHelper,O="",G=this.data.singleShape,T=0,R=0,D=!0,M=a.tr*.001*a.finalSize;if(G&&!A&&!a.sz){var V=this.textContainer,L="start";switch(a.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}V.setAttribute("text-anchor",L),V.setAttribute("letter-spacing",M);var C=this.buildTextContents(a.finalText);for(i=C.length,R=a.ps?a.ps[1]+a.ascent:0,e=0;e<i;e+=1)g=this.textSpans[e].span||xt("tspan"),g.textContent=C[e],g.setAttribute("x",0),g.setAttribute("y",R),g.style.display="inherit",V.appendChild(g),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=g,R+=a.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(g=E>e?this.textSpans[e].span:xt(A?"g":"text"),E<=e){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=g,A){var k=xt("g");g.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(w.reset(),G&&(v[e].n&&(T=-M,R+=a.yOffset,R+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(a,w,v[e].line,T,R),T+=v[e].l||0,T+=M),A){S=this.globalData.fontManager.getCharData(a.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var F;if(S.t===1)F=new pa(S.data,this.globalData,this);else{var H=Iy;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,a.finalSize)),F=new qt(H,this.globalData,this)}if(this.textSpans[e].glyph){var W=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(W.layerElement),W.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("+a.finalSize/100+","+a.finalSize/100+")")}else G&&g.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),g.textContent=v[e].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&g&&g.setAttribute("d",O)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Zr.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},Zr.prototype.getValue=function(){var e,i=this.textSpans.length,a;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)a=this.textSpans[e].glyph,a&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},Zr.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,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var h,c,v;for(e=0;e<i;e+=1)l[e].n||(h=a[e],c=this.textSpans[e].span,v=this.textSpans[e].glyph,v&&v.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Wd(e,i,a){this.initElement(e,i,a)}N([ca],Wd),Wd.prototype.createContent=function(){var e=xt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function wi(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initFrame(),this.initTransform(e,i,a),this.initHierarchy()}wi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},wi.prototype.renderFrame=function(){},wi.prototype.getBaseElement=function(){return null},wi.prototype.destroy=function(){},wi.prototype.sourceRectAtTime=function(){},wi.prototype.hide=function(){},N([Ii,is,os,_i],wi);function oe(){}N([ge],oe),oe.prototype.createNull=function(e){return new wi(e,this.globalData,this)},oe.prototype.createShape=function(e){return new qt(e,this.globalData,this)},oe.prototype.createText=function(e){return new Zr(e,this.globalData,this)},oe.prototype.createImage=function(e){return new ca(e,this.globalData,this)},oe.prototype.createSolid=function(e){return new Wd(e,this.globalData,this)},oe.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 a=xt("clipPath"),l=xt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=Pe();a.setAttribute("id",h),a.appendChild(l),this.layerElement.setAttribute("clip-path","url("+b()+"#"+h+")"),i.appendChild(a),this.layers=e.layers,this.elements=it(e.layers.length)},oe.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},oe.prototype.updateContainerSize=function(){},oe.prototype.findIndexByInd=function(e){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===e)return i;return-1},oe.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var a=this.createItem(this.layers[e]);if(i[e]=a,xn()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,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(a);else{var h=i[l],c=h.getMatte(this.layers[e].tt);a.setMatte(c)}}}},oe.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,a=this.elements.length;i<a;){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}}},oe.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,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-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<a;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},oe.prototype.appendElementInPos=function(e,i){var a=e.getBaseElement();if(a){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(a,h):this.layerElement.appendChild(a)}},oe.prototype.hide=function(){this.layerElement.style.display="none"},oe.prototype.show=function(){this.layerElement.style.display="block"};function Qr(){}N([Ii,is,os,_i,da],Qr),Qr.prototype.initElement=function(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initTransform(e,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},Qr.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 a,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=l-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},Qr.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()},Qr.prototype.setElements=function(e){this.elements=e},Qr.prototype.getElements=function(){return this.elements},Qr.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},Qr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function pa(e,i,a){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,a),this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}N([oe,Qr,la],pa),pa.prototype.createComp=function(e){return new pa(e,this.globalData,this)};function jd(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=xt("svg");var a="";if(i&&i.title){var l=xt("title"),h=Pe();l.setAttribute("id",h),l.textContent=i.title,this.svgElement.appendChild(l),a+=h}if(i&&i.description){var c=xt("desc"),v=Pe();c.setAttribute("id",v),c.textContent=i.description,this.svgElement.appendChild(c),a+=" "+v}a&&this.svgElement.setAttribute("aria-labelledby",a);var A=xt("defs");this.svgElement.appendChild(A);var g=xt("g");this.svgElement.appendChild(g),this.layerElement=g,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 N([oe],jd),jd.prototype.createComp=function(e){return new pa(e,this.globalData,this)},Pb("svg",jd),Ai.registerModifier("tm",Tr),Ai.registerModifier("pb",ea),Ai.registerModifier("rp",Rr),Ai.registerModifier("rd",ra),Ai.registerModifier("zz",oa),Ai.registerModifier("op",sa),Mt})});var Bn=globalThis,Un=Bn.ShadowRoot&&(Bn.ShadyCSS===void 0||Bn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qd=Symbol(),ym=new WeakMap,ma=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==qd)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(Un&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=ym.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&ym.set(t,o))}return o}toString(){return this.cssText}},Em=n=>new ma(typeof n=="string"?n:n+"",void 0,qd),U=(n,...o)=>{let t=n.length===1?n[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)+n[d+1],n[0]);return new ma(t,n,qd)},Xd=(n,o)=>{if(Un)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Bn.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,n.appendChild(r)}},Hn=Un?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Em(t)})(n):n;var{is:Ry,defineProperty:My,getOwnPropertyDescriptor:Py,getOwnPropertyNames:Dy,getOwnPropertySymbols:Fy,getPrototypeOf:$y}=Object,Ri=globalThis,Tm=Ri.trustedTypes,zy=Tm?Tm.emptyScript:"",Zd=Ri.reactiveElementPolyfillSupport,ua=(n,o)=>n,fa={toAttribute(n,o){switch(o){case Boolean:n=n?zy:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Gn=(n,o)=>!Ry(n,o),xm={attribute:!0,type:String,converter:fa,reflect:!1,hasChanged:Gn},Am,Sm;(Am=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Sm=Ri.litPropertyMetadata)!=null||(Ri.litPropertyMetadata=new WeakMap);var ii=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=xm){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&&My(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var m;let{get:s,set:d}=(m=Py(this.prototype,o))!=null?m:{get(){return this[t]},set(b){this[t]=b}};return{get(){return s==null?void 0:s.call(this)},set(b){let x=s==null?void 0:s.call(this);d.call(this,b),this.requestUpdate(o,x,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:xm}static _$Ei(){if(this.hasOwnProperty(ua("elementProperties")))return;let o=$y(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(ua("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ua("properties"))){let t=this.properties,r=[...Dy(t),...Fy(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(Hn(s))}else o!==void 0&&t.push(Hn(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 Xd(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:fa).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),b=typeof m.converter=="function"?{fromAttribute:m.converter}:((d=m.converter)==null?void 0:d.fromAttribute)!==void 0?m.converter:fa;this._$Em=s,this[s]=b.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:Gn)(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,b]of this._$Ep)this[m]=b;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[m,b]of d)b.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],b)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(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){}},Im;ii.elementStyles=[],ii.shadowRootOptions={mode:"open"},ii[ua("elementProperties")]=new Map,ii[ua("finalized")]=new Map,Zd==null||Zd({ReactiveElement:ii}),((Im=Ri.reactiveElementVersions)!=null?Im:Ri.reactiveElementVersions=[]).push("2.0.4");var ga=globalThis,Yn=ga.trustedTypes,_m=Yn?Yn.createPolicy("lit-html",{createHTML:n=>n}):void 0,tc="$lit$",oi=`lit$${Math.random().toFixed(9).slice(2)}$`,ec="?"+oi,Vy=`<${ec}>`,fo=document,ba=()=>fo.createComment(""),ya=n=>n===null||typeof n!="object"&&typeof n!="function",rc=Array.isArray,Rm=n=>rc(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Qd=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),km=/'/g,Nm=/"/g,Mm=/^(?:script|style|textarea|title)$/i,ic=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),_=ic(1),m0=ic(2),u0=ic(3),be=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Lm=new WeakMap,uo=fo.createTreeWalker(fo,129);function Pm(n,o){if(!rc(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return _m!==void 0?_m.createHTML(o):o}var Dm=(n,o)=>{let t=n.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",m=va;for(let b=0;b<t;b++){let x=n[b],N,B,K=-1,Q=0;for(;Q<x.length&&(m.lastIndex=Q,B=m.exec(x),B!==null);)Q=m.lastIndex,m===va?B[1]==="!--"?m=Cm:B[1]!==void 0?m=wm:B[2]!==void 0?(Mm.test(B[2])&&(s=RegExp("</"+B[2],"g")),m=mo):B[3]!==void 0&&(m=mo):m===mo?B[0]===">"?(m=s!=null?s:va,K=-1):B[1]===void 0?K=-2:(K=m.lastIndex-B[2].length,N=B[1],m=B[3]===void 0?mo:B[3]==='"'?Nm:km):m===Nm||m===km?m=mo:m===Cm||m===wm?m=va:(m=mo,s=void 0);let X=m===mo&&n[b+1].startsWith("/>")?" ":"";d+=m===va?x+Vy:K>=0?(r.push(N),x.slice(0,K)+tc+x.slice(K)+oi+X):x+oi+(K===-2?b:X)}return[Pm(n,d+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},Ea=class n{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,m=0,b=o.length-1,x=this.parts,[N,B]=Dm(o,t);if(this.el=n.createElement(N,r),uo.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(s=uo.nextNode())!==null&&x.length<b;){if(s.nodeType===1){if(s.hasAttributes())for(let K of s.getAttributeNames())if(K.endsWith(tc)){let Q=B[m++],X=s.getAttribute(K).split(oi),it=/([.?@])?(.*)/.exec(Q);x.push({type:1,index:d,name:it[2],strings:X,ctor:it[1]==="."?jn:it[1]==="?"?Kn:it[1]==="@"?qn:go}),s.removeAttribute(K)}else K.startsWith(oi)&&(x.push({type:6,index:d}),s.removeAttribute(K));if(Mm.test(s.tagName)){let K=s.textContent.split(oi),Q=K.length-1;if(Q>0){s.textContent=Yn?Yn.emptyScript:"";for(let X=0;X<Q;X++)s.append(K[X],ba()),uo.nextNode(),x.push({type:2,index:++d});s.append(K[Q],ba())}}}else if(s.nodeType===8)if(s.data===ec)x.push({type:2,index:d});else{let K=-1;for(;(K=s.data.indexOf(oi,K+1))!==-1;)x.push({type:7,index:d}),K+=oi.length-1}d++}}static createElement(o,t){let r=fo.createElement("template");return r.innerHTML=o,r}};function vo(n,o,t=n,r){var m,b,x;if(o===be)return o;let s=r!==void 0?(m=t.o)==null?void 0:m[r]:t.l,d=ya(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((b=s==null?void 0:s._$AO)==null||b.call(s,!1),d===void 0?s=void 0:(s=new d(n),s._$AT(n,t,r)),r!==void 0?((x=t.o)!=null?x:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=vo(n,s._$AS(n,o.values),s,r)),o}var Wn=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 N;let{el:{content:t},parts:r}=this._$AD,s=((N=o==null?void 0:o.creationScope)!=null?N:fo).importNode(t,!0);uo.currentNode=s;let d=uo.nextNode(),m=0,b=0,x=r[0];for(;x!==void 0;){if(m===x.index){let B;x.type===2?B=new as(d,d.nextSibling,this,o):x.type===1?B=new x.ctor(d,x.name,x.strings,this,o):x.type===6&&(B=new Xn(d,this,o)),this._$AV.push(B),x=r[++b]}m!==(x==null?void 0:x.index)&&(d=uo.nextNode(),m++)}return uo.currentNode=fo,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++}},as=class n{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=j,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=vo(this,o,t),ya(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==be&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Rm(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==j&&ya(this._$AH)?this._$AA.nextSibling.data=o:this.T(fo.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=Ea.createElement(Pm(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 Wn(s,this),b=m.u(this.options);m.p(t),this.T(b),this._$AH=m}}_$AC(o){let t=Lm.get(o.strings);return t===void 0&&Lm.set(o.strings,t=new Ea(o)),t}k(o){rc(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 n(this.O(ba()),this.O(ba()),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))}},go=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,d){this.type=1,this._$AH=j,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=j}_$AI(o,t=this,r,s){let d=this.strings,m=!1;if(d===void 0)o=vo(this,o,t,0),m=!ya(o)||o!==this._$AH&&o!==be,m&&(this._$AH=o);else{let b=o,x,N;for(o=d[0],x=0;x<d.length-1;x++)N=vo(this,b[r+x],t,x),N===be&&(N=this._$AH[x]),m||(m=!ya(N)||N!==this._$AH[x]),N===j?o=j:o!==j&&(o+=(N!=null?N:"")+d[x+1]),this._$AH[x]=N}m&&!s&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},jn=class extends go{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},Kn=class extends go{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},qn=class extends go{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var m;if((o=(m=vo(this,o,t,0))!=null?m:j)===be)return;let r=this._$AH,s=o===j&&r!==j||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==j&&(r===j||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)}},Xn=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){vo(this,o)}},Fm={M:tc,P:oi,A:ec,C:1,L:Dm,R:Wn,D:Rm,V:vo,I:as,H:go,N:Kn,U:qn,B:jn,F:Xn},Jd=ga.litHtmlPolyfillSupport,Om;Jd==null||Jd(Ea,as),((Om=ga.litHtmlVersions)!=null?Om:ga.litHtmlVersions=[]).push("3.2.0");var $m=(n,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 b=(m=t==null?void 0:t.renderBefore)!=null?m:null;r._$litPart$=s=new as(o.insertBefore(ba(),b),b,void 0,t!=null?t:{})}return s._$AI(n),s};var Mi=class extends ii{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=$m(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 be}},zm;Mi._$litElement$=!0,Mi.finalized=!0,(zm=globalThis.litElementHydrateSupport)==null||zm.call(globalThis,{LitElement:Mi});var oc=globalThis.litElementPolyfillSupport;oc==null||oc({LitElement:Mi});var Vm;((Vm=globalThis.litElementVersions)!=null?Vm:globalThis.litElementVersions=[]).push("4.1.0");var By={attribute:!0,type:String,converter:fa,reflect:!1,hasChanged:Gn},Uy=(n=By,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,n),r==="accessor"){let{name:m}=t;return{set(b){let x=o.get.call(this);o.set.call(this,b),this.requestUpdate(m,x,n)},init(b){return b!==void 0&&this.P(m,void 0,n),b}}}if(r==="setter"){let{name:m}=t;return function(b){let x=this[m];o.call(this,b),this.requestUpdate(m,x,n)}}throw Error("Unsupported decorator location: "+r)};function u(n){return(o,t)=>typeof t=="object"?Uy(n,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})(n,o,t)}function ut(n){return u({...n,state:!0,attribute:!1})}function Bm(n){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,n)}}var Dr=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function ye(n,o){return(t,r,s)=>{let d=m=>{var b,x;return(x=(b=m.renderRoot)==null?void 0:b.querySelector(n))!=null?x:null};if(o){let{get:m,set:b}=typeof r=="object"?t:s!=null?s:(()=>{let x=Symbol();return{get(){return this[x]},set(N){this[x]=N}}})();return Dr(t,r,{get(){let x=m.call(this);return x===void 0&&(x=d(this),(x!==null||this.hasUpdated)&&b.call(this,x)),x}})}return Dr(t,r,{get(){return d(this)}})}}var sc;function Um(n){return(o,t)=>Dr(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:sc!=null?sc:sc=document.createDocumentFragment()).querySelectorAll(n)}})}function Pt(n){return(o,t)=>{let{slot:r,selector:s}=n!=null?n:{},d="slot"+(r?`[name=${r}]`:":not([name])");return Dr(o,t,{get(){var x,N;let m=(x=this.renderRoot)==null?void 0:x.querySelector(d),b=(N=m==null?void 0:m.assignedElements(n))!=null?N:[];return s===void 0?b:b.filter(B=>B.matches(s))}})}}function Hm(n){return(o,t)=>{let{slot:r}=n!=null?n:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Dr(o,t,{get(){var m,b;let d=(m=this.renderRoot)==null?void 0:m.querySelector(s);return(b=d==null?void 0:d.assignedNodes(n))!=null?b:[]}})}}var Hy={PREFIX:"mdc",SEPARATOR:"-"},Gy={NAMESPACE:Hy},ac=Gy;var Yy=n=>[ac.NAMESPACE.PREFIX,n].join(ac.NAMESPACE.SEPARATOR),z={constructTagName:Yy};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 Gm=z.constructTagName("buttonsimple"),bo={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},ns={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ta={SIZE:bo[32],TYPE:ns.BUTTON,ROLE:J.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var si=z.constructTagName("button"),Ft={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},xa={40:40,32:32,28:28,24:24},dr={64:64,52:52,20:20,...xa},yo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},ls={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ve={VARIANT:Ft.PRIMARY,SIZE:xa[32],COLOR:yo.DEFAULT,TYPE_INTERNAL:ls.ICON,TYPE:ns.BUTTON,INVERTED:!1};var Zn=n=>{class o extends n{constructor(){super(...arguments);this.variant=Ve.VARIANT;this.color=Ve.COLOR;this.typeInternal=Ve.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(Ft).includes(s)?s:Ve.VARIANT)}setColor(s){!Object.values(yo).includes(s)||this.variant===Ft.TERTIARY?this.setAttribute("color",`${Ve.COLOR}`):this.setAttribute("color",s)}setSize(s){let m=this.typeInternal===ls.ICON?Object.values(dr).includes(s)&&!(s===dr[20]&&this.variant!==Ft.TERTIARY):Object.values(xa).includes(s);this.setAttribute("size",m?`${s}`:`${Ve.SIZE}`)}inferButtonType(){var N,B,K,Q,X,it;let s=(B=(N=this.shadowRoot)==null?void 0:N.querySelector("slot:not([name])"))==null?void 0:B.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,d=(Q=(K=this.shadowRoot)==null?void 0:K.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,b=(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,x=this.postfixIcon||b&&b>0;s&&(m||x)?(this.typeInternal=ls.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(m||x)?(this.typeInternal=ls.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=ls.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 Ym=U`
|
|
1
|
+
"use strict";(()=>{var wy=Object.create;var Xd=Object.defineProperty;var Em=Object.getOwnPropertyDescriptor;var ky=Object.getOwnPropertyNames;var Ny=Object.getPrototypeOf,Ly=Object.prototype.hasOwnProperty;var Oy=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var Ry=(n,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of ky(o))!Ly.call(n,s)&&s!==t&&Xd(n,s,{get:()=>o[s],enumerable:!(r=Em(o,s))||r.enumerable});return n};var My=(n,o,t)=>(t=n!=null?wy(Ny(n)):{},Ry(o||!n||!n.__esModule?Xd(t,"default",{value:n,enumerable:!0}):t,n));var p=(n,o,t,r)=>{for(var s=r>1?void 0:r?Em(o,t):o,d=n.length-1,m;d>=0;d--)(m=n[d])&&(s=(r?m(o,t,s):m(s))||s);return r&&s&&Xd(o,t,s),s};var xu=Oy((La,ul)=>{typeof navigator<"u"&&function(n,o){typeof La=="object"&&typeof ul<"u"?ul.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(La,function(){"use strict";var n="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 x(e){return document.createElement(e)}function L(e,i){var a,l=e.length,h;for(a=0;a<l;a+=1){h=e[a].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(i.prototype[c]=h[c])}}function B(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(a){this.audios.push(a)},pause:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].pause()},resume:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].resume()},setRate:function(a){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].setRate(a)},createAudio:function(a){return this.audioFactory?this.audioFactory(a):window.Howl?new window.Howl({src:[a]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(a){this.audioFactory=a},setVolume:function(a){this._volume=a,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(a,l){var h=0,c=[],g;switch(a){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(a,l){return a==="float32"?new Float32Array(l):a==="int16"?new Int16Array(l):a==="uint8c"?new Uint8ClampedArray(l):e(a,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(a){return typeof a}:dt=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},dt(e)}var lt=!0,bt=null,It=null,Ct="",Yt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Wt=Math.pow,Jt=Math.sqrt,ce=Math.floor,Er=Math.max,Pe=Math.min,or={};(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,a=e.length;for(i=0;i<a;i+=1)or[e[i]]=Math[e[i]]})();function Tr(){return{}}or.random=Math.random,or.abs=function(e){var i=dt(e);if(i==="object"&&e.length){var a=it(e.length),l,h=e.length;for(l=0;l<h;l+=1)a[l]=Math.abs(e[l]);return a}return Math.abs(e)};var xr=150,wt=Math.PI/180,fe=.5519;function sr(e){Vt=!!e}function ar(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 lr(e,i,a,l){this.type=e,this.currentTime=i,this.totalTime=a,this.direction=l<0?-1:1}function An(e,i){this.type=e,this.direction=i<0?-1:1}function Cp(e,i,a,l){this.type=e,this.currentLoop=a,this.totalLoops=i,this.direction=l<0?-1:1}function wp(e,i,a){this.type=e,this.firstFrame=i,this.totalFrames=a}function kp(e,i){this.type=e,this.target=i}function wb(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function kb(e){this.type="configError",this.nativeError=e}function n0(e,i){this.type=e,this.nativeError=i}var De=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function Fd(e,i,a){var l,h,c,g,A,b,w,O;switch(g=Math.floor(e*6),A=e*6-g,b=a*(1-i),w=a*(1-A*i),O=a*(1-(1-A)*i),g%6){case 0:l=a,h=O,c=b;break;case 1:l=w,h=a,c=b;break;case 2:l=b,h=a,c=O;break;case 3:l=b,h=w,c=a;break;case 4:l=O,h=b,c=a;break;case 5:l=a,h=b,c=w;break;default:break}return[l,h,c]}function $d(e,i,a){var l=Math.max(e,i,a),h=Math.min(e,i,a),c=l-h,g,A=l===0?0:c/l,b=l/255;switch(l){case h:g=0;break;case e:g=i-a+c*(i<a?6:0),g/=6*c;break;case i:g=a-e+c*2,g/=6*c;break;case a:g=e-i+c*4,g/=6*c;break;default:break}return[g,A,b]}function Np(e,i){var a=$d(e[0]*255,e[1]*255,e[2]*255);return a[1]+=i,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),Fd(a[0],a[1],a[2])}function Lp(e,i){var a=$d(e[0]*255,e[1]*255,e[2]*255);return a[2]+=i,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),Fd(a[0],a[1],a[2])}function Op(e,i){var a=$d(e[0]*255,e[1]*255,e[2]*255);return a[0]+=i/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),Fd(a[0],a[1],a[2])}var l0=function(){var e=[],i,a;for(i=0;i<256;i+=1)a=i.toString(16),e[i]=a.length===1?"0"+a:a;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),Nb=function(i){lt=!!i},Lb=function(){return lt},Ob=function(i){bt=i},Sn=function(){return bt},d0=function(i){It=i},Rp=function(){return It},In=function(i){xr=i},Qs=function(){return xr},Rb=function(i){Ct=i},c0=function(){return Ct};function xt(e){return document.createElementNS(n,e)}function _n(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_n=function(a){return typeof a}:_n=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_n(e)}var Js=function(){var e=1,i=[],a,l,h={onmessage:function(){},postMessage:function(R){a({data:R})}},c={postMessage:function(R){h.onmessage({data:R})}};function g(T){if(window.Worker&&window.Blob&&d()){var R=new Blob(["var _workerSelf = self; self.onmessage = ",T.toString()],{type:"text/javascript"}),D=URL.createObjectURL(R);return new Worker(D)}return a=T,h}function A(){l||(l=g(function(R){function D(){function V(et,I){var P,f,y=et.length,K,$,nt,vt;for(f=0;f<y;f+=1)if(P=et[f],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Tt=P.masksProperties;for($=Tt.length,K=0;K<$;K+=1)if(Tt[K].pt.k.i)k(Tt[K].pt.k);else for(vt=Tt[K].pt.k.length,nt=0;nt<vt;nt+=1)Tt[K].pt.k[nt].s&&k(Tt[K].pt.k[nt].s[0]),Tt[K].pt.k[nt].e&&k(Tt[K].pt.k[nt].e[0])}P.ty===0?(P.layers=E(P.refId,I),V(P.layers,I)):P.ty===4?S(P.shapes):P.ty===5&&At(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,K=f.length;for(y=0;y<K;y+=1)f[y].ty===5&&I(f[y])}return function(f){if(F(et,f.v)&&(P(f.layers),f.assets)){var y,K=f.assets.length;for(y=0;y<K;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),Y=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,K=f.length;for(y=0;y<K;y+=1)f[y].ty===5&&I(f[y])}return function(f){if(F(et,f.v)&&(P(f.layers),f.assets)){var y,K=f.assets.length;for(y=0;y<K;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),Et=function(){var et=[4,1,9];function I(f){var y,K=f.length,$,nt;for(y=0;y<K;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(nt=f[y].c.k.length,$=0;$<nt;$+=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,K=f.length;for(y=0;y<K;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,K=f.assets.length;for(y=0;y<K;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),pt=function(){var et=[4,4,18];function I(f){var y,K=f.length,$,nt;for(y=K-1;y>=0;y-=1)if(f[y].ty==="sh")if(f[y].ks.k.i)f[y].ks.k.c=f[y].closed;else for(nt=f[y].ks.k.length,$=0;$<nt;$+=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,K,$=f.length,nt,vt,Tt,Rt;for(K=0;K<$;K+=1){if(y=f[K],y.hasMask){var Mt=y.masksProperties;for(vt=Mt.length,nt=0;nt<vt;nt+=1)if(Mt[nt].pt.k.i)Mt[nt].pt.k.c=Mt[nt].cl;else for(Rt=Mt[nt].pt.k.length,Tt=0;Tt<Rt;Tt+=1)Mt[nt].pt.k[Tt].s&&(Mt[nt].pt.k[Tt].s[0].c=Mt[nt].cl),Mt[nt].pt.k[Tt].e&&(Mt[nt].pt.k[Tt].e[0].c=Mt[nt].cl)}y.ty===4&&I(y.shapes)}}return function(f){if(F(et,f.v)&&(P(f.layers),f.assets)){var y,K=f.assets.length;for(y=0;y<K;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}();function st(et){et.__complete||(Et(et),H(et),Y(et),rt(et),pt(et),V(et.layers,et.assets),N(et.chars,et.assets),et.__complete=!0)}function At(et){et.t.a.length===0&&"m"in et.t.p}var ct={};return ct.completeData=st,ct.checkColors=Et,ct.checkChars=Y,ct.checkPathProperties=rt,ct.checkShapes=pt,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&&_n(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(Y){k&&k(Y)}};try{H.open(["G","E","T"].join(""),C,!0)}catch{H.open(["G","E","T"].join(""),E+"/"+C,!0)}H.send()}return{load:N}}()),R.data.type==="loadAnimation")c.assetLoader.load(R.data.path,R.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:R.data.id,payload:V,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})});else if(R.data.type==="complete"){var M=R.data.animation;c.dataManager.completeData(M),c.postMessage({id:R.data.id,payload:M,status:"success"})}else R.data.type==="loadData"&&c.assetLoader.load(R.data.path,R.data.fullPath,function(V){c.postMessage({id:R.data.id,payload:V,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})})}),l.onmessage=function(T){var R=T.data,D=R.id,M=i[D];i[D]=null,R.status==="success"?M.onComplete(R.payload):M.onError&&M.onError()})}function b(T,R){e+=1;var D="processId_"+e;return i[D]={onComplete:T,onError:R},D}function w(T,R,D){A();var M=b(R,D);l.postMessage({type:"loadAnimation",path:T,fullPath:window.location.origin+window.location.pathname,id:M})}function O(T,R,D){A();var M=b(R,D);l.postMessage({type:"loadData",path:T,fullPath:window.location.origin+window.location.pathname,id:M})}function G(T,R,D){A();var M=b(R,D);l.postMessage({type:"complete",animation:T,id:M})}return{loadAnimation:w,loadData:O,completeAnimation:G}}(),Mb=function(){var e=function(){var N=x("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 a(){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=xt("image");Yt?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=x("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 Js.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 T(){this.imagesLoadedCb=null,this.images.length=0}function R(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function M(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=a.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:R,loadedFootages:D,destroy:T,getAsset:G,createImgData:g,createImageData:c,imageLoaded:i,footageLoaded:a,setCacheType:M},V}();function Mp(){}Mp.prototype={triggerEvent:function(i,a){if(this._cbs[i])for(var l=this._cbs[i],h=0;h<l.length;h+=1)l[h](a)},addEventListener:function(i,a){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(a),(function(){this.removeEventListener(i,a)}).bind(this)},removeEventListener:function(i,a){if(!a)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,h=this._cbs[i].length;l<h;)this._cbs[i][l]===a&&(this._cbs[i].splice(l,1),l-=1,h-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var Pb=function(){function e(i){for(var a=i.split(`\r
|
|
2
|
+
`),l={},h,c=0,g=0;g<a.length;g+=1)h=a[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 a=[],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}}}a.push(c)}return a}}(),Db=function(){function e(i){this.compositions.push(i)}return function(){function i(a){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===a)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}}(),ta={},Fb=function(i,a){ta[i]=a};function $b(e){return ta[e]}function zb(){if(ta.canvas)return"canvas";for(var e in ta)if(ta[e])return e;return""}function ea(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ea=function(a){return typeof a}:ea=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ea(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=De(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Lb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Db(),this.imagePreloader=new Mb,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 lr("drawnFrame",0,0,0),this.expressionsPlugin=Sn()};L([Mp],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 a=$b(i);this.renderer=new a(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")),Js.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){Js.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&ea(i)!=="object"&&(i=JSON.parse(i));var a={wrapper:e,animationData:i},l=e.attributes;a.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:"",a.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:zb()||"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"?a.loop=!1:h==="true"?a.loop=!0:h!==""&&(a.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;a.autoplay=c!=="false",a.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"&&(a.prerender=!1),a.path?this.setParams(a):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,a,l=i.length,h=e.layers,c,g=h.length;for(c=0;c<g;c+=1)for(a=0;a<l;){if(i[a].id===h[c].id){i[a]=h[c];break}a+=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,a=0;a<l;a+=1)this.animationData.assets.push(e.assets[a]);this.animationData.__complete=!1,Js.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Sn();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 a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Js.loadData(a,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=Pb(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=Sn();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 a=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(a,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,a=0;a<this.markers.length;a+=1)if(i=this.markers[a],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,a){if(!(a&&this.name!==a)){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,a){if(!(a&&this.name!==a)){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,a);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,a=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(a=!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):(a=!0,i=0)):this.setCurrentRawFrameValue(i),a&&(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 a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?a=e:this.currentRawFrame+this.firstFrame>i&&(a=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,a!==-1&&this.goToAndStop(a,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),ea(e[0])==="object"){var a,l=e.length;for(a=0;a<l;a+=1)this.segments.push(e[a])}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 a=e.p;a.indexOf("images/")!==-1&&(a=a.split("/")[1]),i=this.assetsPath+a}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,a=this.assets.length;i<a;){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,a){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,a)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new lr(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 Cp(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new An(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new wp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new kp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new lr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Cp(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new An(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new wp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new kp(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new wb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new kb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var te=function(){var e={},i=[],a=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 T(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,Et()}function G(){h-=1}function T(I,P){I.addEventListener("destroy",A),I.addEventListener("_active",O),I.addEventListener("_idle",G),i.push({elem:P,animation:I}),l+=1}function R(I){var P=new ft;return T(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 M(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-a,f;for(f=0;f<l;f+=1)i[f].animation.advanceTime(P);a=I,h&&!g?window.requestAnimationFrame(N):c=!0}function C(I){a=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 Y(I,P,f){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,$=y.length;for(K=0;K<$;K+=1)f&&y[K].setAttribute("data-bm-type",f),b(y[K],I);if(P&&$===0){f||(f="svg");var nt=document.getElementsByTagName("body")[0];nt.innerText="";var vt=x("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",f),nt.appendChild(vt),b(vt,I)}}function rt(){var I;for(I=0;I<l;I+=1)i[I].animation.resize()}function Et(){!g&&h&&c&&(window.requestAnimationFrame(C),c=!1)}function pt(){g=!0}function st(){g=!1,Et()}function At(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=R,e.setSpeed=D,e.setDirection=M,e.play=V,e.pause=E,e.stop=k,e.togglePause=F,e.searchAnimations=Y,e.resize=rt,e.goToAndStop=S,e.destroy=H,e.freeze=pt,e.unfreeze=st,e.setVolume=At,e.mute=ct,e.unmute=et,e.getRegisteredAnimations=w,e}(),ra=function(){var e={};e.getBezierEasing=a;var i={};function a(C,E,S,k,F){var H=F||("bez_"+C+"_"+E+"_"+S+"_"+k).replace(/\./g,"p");if(i[H])return i[H];var Y=new N([C,E,S,k]);return i[H]=Y,Y}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 T(C){return 3*C}function R(C,E,S){return((O(E,S)*C+G(E,S))*C+T(E))*C}function D(C,E,S){return 3*O(E,S)*C*C+2*G(E,S)*C+T(E)}function M(C,E,S,k,F){var H,Y,rt=0;do Y=E+(S-E)/2,H=R(Y,k,F)-C,H>0?S=Y:E=Y;while(Math.abs(H)>c&&++rt<g);return Y}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 Y=R(E,S,k)-C;E-=Y/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:R(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]=R(k*b,E,S)},_getTForX:function(E){for(var S=this._p[0],k=this._p[2],F=this._mSampleValues,H=0,Y=1,rt=A-1;Y!==rt&&F[Y]<=E;++Y)H+=b;--Y;var Et=(E-F[Y])/(F[Y+1]-F[Y]),pt=H+Et*b,st=D(pt,S,k);return st>=h?V(E,pt,S,k):st===0?pt:M(E,H,H+b,S,k)}},e}(),Pp=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),Cn=function(){return function(e,i,a){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=Pp.double(c),h*=2),a&&a(w),c[l]=w,l+=1}return g}}(),Dp=function(){function e(){return{addedLength:0,percents:X("float32",Qs()),lengths:X("float32",Qs())}}return Cn(8,e)}(),Fp=function(){function e(){return{lengths:[],totalLength:0}}function i(a){var l,h=a.lengths.length;for(l=0;l<h;l+=1)Dp.release(a.lengths[l]);a.lengths.length=0}return Cn(8,e,i)}();function Vb(){var e=Math;function i(T,R,D,M,V,N){var C=T*M+R*V+D*N-V*M-N*T-D*R;return C>-.001&&C<.001}function a(T,R,D,M,V,N,C,E,S){if(D===0&&N===0&&S===0)return i(T,R,M,V,C,E);var k=e.sqrt(e.pow(M-T,2)+e.pow(V-R,2)+e.pow(N-D,2)),F=e.sqrt(e.pow(C-T,2)+e.pow(E-R,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(C-M,2)+e.pow(E-V,2)+e.pow(S-N,2)),Y;return k>F?k>H?Y=k-F-H:Y=H-F-k:H>F?Y=H-F-k:Y=F-k-H,Y>-1e-4&&Y<1e-4}var l=function(){return function(T,R,D,M){var V=Qs(),N,C,E,S,k,F=0,H,Y=[],rt=[],Et=Dp.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)*T[C]+3*Wt(1-k,2)*k*D[C]+3*(1-k)*Wt(k,2)*M[C]+Wt(k,3)*R[C],Y[C]=S,rt[C]!==null&&(H+=Wt(Y[C]-rt[C],2)),rt[C]=Y[C];H&&(H=Jt(H),F+=H),Et.percents[N]=k,Et.lengths[N]=F}return Et.addedLength=F,Et}}();function h(T){var R=Fp.newElement(),D=T.c,M=T.v,V=T.o,N=T.i,C,E=T._length,S=R.lengths,k=0;for(C=0;C<E-1;C+=1)S[C]=l(M[C],M[C+1],V[C],N[C+1]),k+=S[C].addedLength;return D&&E&&(S[C]=l(M[C],M[0],V[C],N[0]),k+=S[C].addedLength),R.totalLength=k,R}function c(T){this.segmentLength=0,this.points=new Array(T)}function g(T,R){this.partialLength=T,this.point=R}var A=function(){var T={};return function(R,D,M,V){var N=(R[0]+"_"+R[1]+"_"+D[0]+"_"+D[1]+"_"+M[0]+"_"+M[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!T[N]){var C=Qs(),E,S,k,F,H,Y=0,rt,Et,pt=null;R.length===2&&(R[0]!==D[0]||R[1]!==D[1])&&i(R[0],R[1],D[0],D[1],R[0]+M[0],R[1]+M[1])&&i(R[0],R[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(C=2);var st=new c(C);for(k=M.length,E=0;E<C;E+=1){for(Et=it(k),H=E/(C-1),rt=0,S=0;S<k;S+=1)F=Wt(1-H,3)*R[S]+3*Wt(1-H,2)*H*(R[S]+M[S])+3*(1-H)*Wt(H,2)*(D[S]+V[S])+Wt(H,3)*D[S],Et[S]=F,pt!==null&&(rt+=Wt(Et[S]-pt[S],2));rt=Jt(rt),Y+=rt,st.points[E]=new g(rt,Et),pt=Et}st.segmentLength=Y,T[N]=st}return T[N]}}();function b(T,R){var D=R.percents,M=R.lengths,V=D.length,N=ce((V-1)*T),C=T*R.addedLength,E=0;if(N===V-1||N===0||C===M[N])return D[N];for(var S=M[N]>C?-1:1,k=!0;k;)if(M[N]<=C&&M[N+1]>C?(E=(C-M[N])/(M[N+1]-M[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(T,R,D,M,V,N){var C=b(V,N),E=1-C,S=e.round((E*E*E*T[0]+(C*E*E+E*C*E+E*E*C)*D[0]+(C*C*E+E*C*C+C*E*C)*M[0]+C*C*C*R[0])*1e3)/1e3,k=e.round((E*E*E*T[1]+(C*E*E+E*C*E+E*E*C)*D[1]+(C*C*E+E*C*C+C*E*C)*M[1]+C*C*C*R[1])*1e3)/1e3;return[S,k]}var O=X("float32",8);function G(T,R,D,M,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=T.length,H=1-E,Y=1-S,rt=H*H*H,Et=E*H*H*3,pt=E*E*H*3,st=E*E*E,At=H*H*Y,ct=E*H*Y+H*E*Y+H*H*S,et=E*E*Y+H*E*S+E*H*S,I=E*E*S,P=H*Y*Y,f=E*Y*Y+H*S*Y+H*Y*S,y=E*S*Y+H*S*S+E*Y*S,K=E*S*S,$=Y*Y*Y,nt=S*Y*Y+Y*S*Y+Y*Y*S,vt=S*S*Y+Y*S*S+S*Y*S,Tt=S*S*S;for(k=0;k<F;k+=1)O[k*4]=e.round((rt*T[k]+Et*D[k]+pt*M[k]+st*R[k])*1e3)/1e3,O[k*4+1]=e.round((At*T[k]+ct*D[k]+et*M[k]+I*R[k])*1e3)/1e3,O[k*4+2]=e.round((P*T[k]+f*D[k]+y*M[k]+K*R[k])*1e3)/1e3,O[k*4+3]=e.round(($*T[k]+nt*D[k]+vt*M[k]+Tt*R[k])*1e3)/1e3;return O}return{getSegmentsLength:h,getNewSegment:G,getPointInSegment:w,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:a}}var Mr=Vb(),lo=r,$p=Math.abs;function zp(e,i){var a=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-a){b.h&&(b=w),h=0;break}if(w.t-a>e){h=c;break}c<g-1?c+=1:(h=0,A=!1)}O=this.keyframesMetadata[c]||{};var G,T,R,D,M,V,N=w.t-a,C=b.t-a,E;if(b.to){O.bezierData||(O.bezierData=Mr.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(T=S.points[k].point.length,G=0;G<T;G+=1)l[G]=S.points[k].point[G]}else{O.__fnct?V=O.__fnct:(V=ra.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,O.__fnct=V),R=V((e-C)/(N-C));var F=S.segmentLength*R,H,Y=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastAddedLength:0;for(M=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastPoint:0,A=!0,D=S.points.length;A;){if(Y+=S.points[M].partialLength,F===0||R===0||M===S.points.length-1){for(T=S.points[M].point.length,G=0;G<T;G+=1)l[G]=S.points[M].point[G];break}else if(F>=Y&&F<Y+S.points[M+1].partialLength){for(H=(F-Y)/S.points[M+1].partialLength,T=S.points[M].point.length,G=0;G<T;G+=1)l[G]=S.points[M].point[G]+(S.points[M+1].point[G]-S.points[M].point[G])*H;break}M<D-1?M+=1:A=!1}i._lastPoint=M,i._lastAddedLength=Y-S.points[M].partialLength,i._lastKeyframeIndex=c}}else{var rt,Et,pt,st,At;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=Vp(b.s),et=Vp(E),I=(e-C)/(N-C);Ub(l,Bb(ct,et,I))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=N?R=1:e<C?R=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],Et=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],pt=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=ra.getBezierEasing(rt,Et,pt,st).get,O.__fnct[c]=V)):O.__fnct?V=O.__fnct:(rt=b.o.x,Et=b.o.y,pt=b.i.x,st=b.i.y,V=ra.getBezierEasing(rt,Et,pt,st).get,b.keyframeMetadata=V),R=V((e-C)/(N-C)))),E=w.s||b.e,At=b.h===1?b.s[c]:b.s[c]+(E[c]-b.s[c])*R,this.propType==="multidimensional"?l[c]=At:l=At}return i.lastIndex=h,l}function Bb(e,i,a){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],T,R,D,M,V;return R=h*b+c*w+g*O+A*G,R<0&&(R=-R,b=-b,w=-w,O=-O,G=-G),1-R>1e-6?(T=Math.acos(R),D=Math.sin(T),M=Math.sin((1-a)*T)/D,V=Math.sin(a*T)/D):(M=1-a,V=a),l[0]=M*h+V*b,l[1]=M*c+V*w,l[2]=M*g+V*O,l[3]=M*A+V*G,l}function Ub(e,i){var a=i[0],l=i[1],h=i[2],c=i[3],g=Math.atan2(2*l*c-2*a*h,1-2*l*l-2*h*h),A=Math.asin(2*a*l+2*h*c),b=Math.atan2(2*a*c-2*l*h,1-2*a*a-2*h*h);e[0]=g/wt,e[1]=A/wt,e[2]=b/wt}function Vp(e){var i=e[0]*wt,a=e[1]*wt,l=e[2]*wt,h=Math.cos(i/2),c=Math.cos(a/2),g=Math.cos(l/2),A=Math.sin(i/2),b=Math.sin(a/2),w=Math.sin(l/2),O=h*c*g-A*b*w,G=A*b*g+h*c*w,T=A*c*g+h*b*w,R=h*b*g-A*c*w;return[G,T,R,O]}function Bp(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==lo&&(this._caching.lastFrame>=a&&e>=a||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 wn(e){var i;if(this.propType==="unidimensional")i=e*this.mult,$p(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var a=0,l=this.v.length;a<l;)i=e[a]*this.mult,$p(this.v[a]-i)>1e-5&&(this.v[a]=i,this._mdf=!0),a+=1}function kn(){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,a=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)a=this.effectsSequence[e](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Nn(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function Hb(e,i,a,l){this.propType="unidimensional",this.mult=a||1,this.data=i,this.v=a?i.k*a: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=kn,this.setVValue=wn,this.addEffect=Nn}function Gb(e,i,a,l){this.propType="multidimensional",this.mult=a||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=kn,this.setVValue=wn,this.addEffect=Nn}function Kb(e,i,a,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:lo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=lo,this.pv=lo,this._isFirstFrame=!0,this.getValue=kn,this.setVValue=wn,this.interpolateValue=zp,this.effectsSequence=[Bp.bind(this)],this.addEffect=Nn}function Yb(e,i,a,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])&&Mr.pointOnLine2D(g[0],g[1],A[0],A[1],g[0]+b[0],g[1]+b[1])&&Mr.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])&&Mr.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])&&Mr.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=[Bp.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=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=kn,this.setVValue=wn,this.interpolateValue=zp,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]=lo,this.pv[h]=lo;this._caching={lastFrame:lo,lastIndex:0,value:X("float32",O)},this.addEffect=Nn}var at=function(){function e(a,l,h,c,g){l.sid&&(l=a.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new Hb(a,l,c,g);else if(typeof l.k[0]=="number")A=new Gb(a,l,c,g);else switch(h){case 0:A=new Kb(a,l,c,g);break;case 1:A=new Yb(a,l,c,g);break;default:break}return A.effectsSequence.length&&g.addDynamicProperty(A),A}var i={getProp:e};return i}();function he(){}he.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,a=this.dynamicProperties.length;for(i=0;i<a;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 co=function(){function e(){return X("float32",2)}return Cn(8,e)}();function Qr(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}Qr.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var a=0;a<i;)this.v[a]=co.newElement(),this.o[a]=co.newElement(),this.i[a]=co.newElement(),a+=1},Qr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Qr.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},Qr.prototype.setXYAt=function(e,i,a,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){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]=co.newElement()),c[l][0]=e,c[l][1]=i},Qr.prototype.setTripleAt=function(e,i,a,l,h,c,g,A){this.setXYAt(e,i,"v",g,A),this.setXYAt(a,l,"o",g,A),this.setXYAt(h,c,"i",g,A)},Qr.prototype.reverse=function(){var e=new Qr;e.setPathData(this.c,this._length);var i=this.v,a=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],a[0][0],a[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],a[c][0],a[c][1],A,!1),c-=1;return e},Qr.prototype.length=function(){return this._length};var ve=function(){function e(){return new Qr}function i(h){var c=h._length,g;for(g=0;g<c;g+=1)co.release(h.v[g]),co.release(h.i[g]),co.release(h.o[g]),h.v[g]=null,h.i[g]=null,h.o[g]=null;h._length=0,h.c=!1}function a(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=Cn(4,e,i);return l.clone=a,l}();function zd(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}zd.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},zd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ve.release(this.shapes[e]);this._length=0};var es=function(){var e={newShapeCollection:h,release:c},i=0,a=4,l=it(a);function h(){var g;return i?(i-=1,g=l[i]):g=new zd,g}function c(g){var A,b=g._length;for(A=0;A<b;A+=1)ve.release(g.shapes[A]);g._length=0,i===a&&(l=Pp.double(l),a*=2),l[i]=g,i+=1}return e}(),Ln=function(){var e=-999999;function i(N,C,E){var S=E.lastIndex,k,F,H,Y,rt,Et,pt,st,At,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,K;P&&(f=ct[et],y=ct[et+1],!(y.t-this.offsetTime>N));)et<I-1?et+=1:P=!1;if(K=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 $;K.__fnct?$=K.__fnct:($=ra.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,K.__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(Et=C._length,pt=k.i[0].length,E.lastIndex=S,Y=0;Y<Et;Y+=1)for(rt=0;rt<pt;rt+=1)At=H?k.i[Y][rt]:k.i[Y][rt]+(F.i[Y][rt]-k.i[Y][rt])*st,C.i[Y][rt]=At,At=H?k.o[Y][rt]:k.o[Y][rt]+(F.o[Y][rt]-k.o[Y][rt])*st,C.o[Y][rt]=At,At=H?k.v[Y][rt]:k.v[Y][rt]+(F.v[Y][rt]-k.v[Y][rt])*st,C.v[Y][rt]=At}function a(){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=ve.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=ve.clone(S),this.pv=ve.clone(this.v),this.localShapeCollection=es.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=ve.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=ve.clone(this.v),this.localShapeCollection=es.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[a.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=i,w.prototype.setVValue=c,w.prototype.addEffect=b;var O=function(){var N=fe;function C(E,S){this.v=ve.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=es.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=at.getProp(E,S.p,1,0,this),this.s=at.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,Y=this.d!==3,rt=this.v;rt.v[0][0]=S,rt.v[0][1]=k-H,rt.v[1][0]=Y?S+F:S-F,rt.v[1][1]=k,rt.v[2][0]=S,rt.v[2][1]=k+H,rt.v[3][0]=Y?S-F:S+F,rt.v[3][1]=k,rt.i[0][0]=Y?S-F*N:S+F*N,rt.i[0][1]=k-H,rt.i[1][0]=Y?S+F:S-F,rt.i[1][1]=k-H*N,rt.i[2][0]=Y?S+F*N:S-F*N,rt.i[2][1]=k+H,rt.i[3][0]=Y?S-F:S+F,rt.i[3][1]=k+H*N,rt.o[0][0]=Y?S+F*N:S-F*N,rt.o[0][1]=k-H,rt.o[1][0]=Y?S+F:S-F,rt.o[1][1]=k+H*N,rt.o[2][0]=Y?S-F*N:S+F*N,rt.o[2][1]=k+H,rt.o[3][0]=Y?S-F:S+F,rt.o[3][1]=k-H*N}},L([he],C),C}(),G=function(){function N(C,E){this.v=ve.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=at.getProp(C,E.ir,0,0,this),this.is=at.getProp(C,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(C,E.pt,0,0,this),this.p=at.getProp(C,E.p,1,0,this),this.r=at.getProp(C,E.r,0,wt,this),this.or=at.getProp(C,E.or,0,0,this),this.os=at.getProp(C,E.os,0,.01,this),this.localShapeCollection=es.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,Y=this.os.v,rt=this.is.v,Et=2*Math.PI*F/(E*2),pt=2*Math.PI*H/(E*2),st,At,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){At=k?F:H,ct=k?Y:rt,et=k?Et:pt;var f=At*Math.cos(I),y=At*Math.sin(I),K=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-K*et*ct*P,y-$*et*ct*P,f+K*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),Y,rt=-Math.PI*.5,Et=this.data.d===3?-1:1;for(rt+=this.r.v,this.v._length=0,Y=0;Y<E;Y+=1){var pt=k*Math.cos(rt),st=k*Math.sin(rt),At=pt===0&&st===0?0:st/Math.sqrt(pt*pt+st*st),ct=pt===0&&st===0?0:-pt/Math.sqrt(pt*pt+st*st);pt+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(pt,st,pt-At*H*F*Et,st-ct*H*F*Et,pt+At*H*F*Et,st+ct*H*F*Et,Y,!0),rt+=S*Et}this.paths.length=0,this.paths[0]=this.v}},L([he],N),N}(),T=function(){function N(C,E){this.v=ve.newElement(),this.v.c=!0,this.localShapeCollection=es.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=at.getProp(C,E.p,1,0,this),this.s=at.getProp(C,E.s,1,0,this),this.r=at.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=Pe(k,F,this.r.v),Y=H*(1-fe);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+Y,0,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-Y,E+k,S+F-H,1,!0),H!==0?(this.v.setTripleAt(E+k-H,S+F,E+k-H,S+F,E+k-Y,S+F,2,!0),this.v.setTripleAt(E-k+H,S+F,E-k+Y,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-Y,4,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+Y,E-k,S-F+H,5,!0),this.v.setTripleAt(E-k+H,S-F,E-k+H,S-F,E-k+Y,S-F,6,!0),this.v.setTripleAt(E+k-H,S-F,E+k-Y,S-F,E+k-H,S-F,7,!0)):(this.v.setTripleAt(E-k,S+F,E-k+Y,S+F,E-k,S+F,2),this.v.setTripleAt(E-k,S-F,E-k,S-F+Y,E-k,S-F,3))):(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+Y,E+k,S-F+H,0,!0),H!==0?(this.v.setTripleAt(E+k-H,S-F,E+k-H,S-F,E+k-Y,S-F,1,!0),this.v.setTripleAt(E-k+H,S-F,E-k+Y,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+Y,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-Y,E-k,S+F-H,4,!0),this.v.setTripleAt(E-k+H,S+F,E-k+H,S+F,E-k+Y,S+F,5,!0),this.v.setTripleAt(E+k-H,S+F,E+k-Y,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-Y,7,!0)):(this.v.setTripleAt(E-k,S-F,E-k+Y,S-F,E-k,S-F,1,!0),this.v.setTripleAt(E-k,S+F,E-k,S+F-Y,E-k,S+F,2,!0),this.v.setTripleAt(E+k,S+F,E+k-Y,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([he],N),N}();function R(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 T(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 M(){return w}var V={};return V.getShapeProp=R,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=M,V}();var ge=function(){var e=Math.cos,i=Math.sin,a=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),K=i(f);return this._t(y,-K,0,0,K,y,0,0,0,0,1,0,0,0,0,1)}function g(f){if(f===0)return this;var y=e(f),K=i(f);return this._t(1,0,0,0,0,y,-K,0,0,K,y,0,0,0,0,1)}function A(f){if(f===0)return this;var y=e(f),K=i(f);return this._t(y,0,K,0,0,1,0,0,-K,0,y,0,0,0,0,1)}function b(f){if(f===0)return this;var y=e(f),K=i(f);return this._t(y,-K,0,0,K,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(a(f),a(y))}function G(f,y){var K=e(y),$=i(y);return this._t(K,$,0,0,-$,K,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(f),1,0,0,0,0,1,0,0,0,0,1)._t(K,-$,0,0,$,K,0,0,0,0,1,0,0,0,0,1)}function T(f,y,K){return!K&&K!==0&&(K=1),f===1&&y===1&&K===1?this:this._t(f,0,0,0,0,y,0,0,0,0,K,0,0,0,0,1)}function R(f,y,K,$,nt,vt,Tt,Rt,Mt,ee,$e,Dr,ze,pe,Ze,Ft){return this.props[0]=f,this.props[1]=y,this.props[2]=K,this.props[3]=$,this.props[4]=nt,this.props[5]=vt,this.props[6]=Tt,this.props[7]=Rt,this.props[8]=Mt,this.props[9]=ee,this.props[10]=$e,this.props[11]=Dr,this.props[12]=ze,this.props[13]=pe,this.props[14]=Ze,this.props[15]=Ft,this}function D(f,y,K){return K=K||0,f!==0||y!==0||K!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,f,y,K,1):this}function M(f,y,K,$,nt,vt,Tt,Rt,Mt,ee,$e,Dr,ze,pe,Ze,Ft){var ht=this.props;if(f===1&&y===0&&K===0&&$===0&&nt===0&&vt===1&&Tt===0&&Rt===0&&Mt===0&&ee===0&&$e===1&&Dr===0)return ht[12]=ht[12]*f+ht[15]*ze,ht[13]=ht[13]*vt+ht[15]*pe,ht[14]=ht[14]*$e+ht[15]*Ze,ht[15]*=Ft,this._identityCalculated=!1,this;var ei=ht[0],Li=ht[1],ri=ht[2],Fr=ht[3],ii=ht[4],oi=ht[5],Ve=ht[6],Oi=ht[7],Ri=ht[8],Sr=ht[9],Mi=ht[10],Ir=ht[11],uo=ht[12],Vn=ht[13],Bn=ht[14],Un=ht[15];return ht[0]=ei*f+Li*nt+ri*Mt+Fr*ze,ht[1]=ei*y+Li*vt+ri*ee+Fr*pe,ht[2]=ei*K+Li*Tt+ri*$e+Fr*Ze,ht[3]=ei*$+Li*Rt+ri*Dr+Fr*Ft,ht[4]=ii*f+oi*nt+Ve*Mt+Oi*ze,ht[5]=ii*y+oi*vt+Ve*ee+Oi*pe,ht[6]=ii*K+oi*Tt+Ve*$e+Oi*Ze,ht[7]=ii*$+oi*Rt+Ve*Dr+Oi*Ft,ht[8]=Ri*f+Sr*nt+Mi*Mt+Ir*ze,ht[9]=Ri*y+Sr*vt+Mi*ee+Ir*pe,ht[10]=Ri*K+Sr*Tt+Mi*$e+Ir*Ze,ht[11]=Ri*$+Sr*Rt+Mi*Dr+Ir*Ft,ht[12]=uo*f+Vn*nt+Bn*Mt+Un*ze,ht[13]=uo*y+Vn*vt+Bn*ee+Un*pe,ht[14]=uo*K+Vn*Tt+Bn*$e+Un*Ze,ht[15]=uo*$+Vn*Rt+Bn*Dr+Un*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,K){return{x:f*this.props[0]+y*this.props[4]+K*this.props[8]+this.props[12],y:f*this.props[1]+y*this.props[5]+K*this.props[9]+this.props[13],z:f*this.props[2]+y*this.props[6]+K*this.props[10]+this.props[14]}}function F(f,y,K){return f*this.props[0]+y*this.props[4]+K*this.props[8]+this.props[12]}function H(f,y,K){return f*this.props[1]+y*this.props[5]+K*this.props[9]+this.props[13]}function Y(f,y,K){return f*this.props[2]+y*this.props[6]+K*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,K=-this.props[1]/f,$=-this.props[4]/f,nt=this.props[0]/f,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/f,Tt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/f,Rt=new ge;return Rt.props[0]=y,Rt.props[1]=K,Rt.props[4]=$,Rt.props[5]=nt,Rt.props[12]=vt,Rt.props[13]=Tt,Rt}function Et(f){var y=this.getInverseMatrix();return y.applyToPointArray(f[0],f[1],f[2]||0)}function pt(f){var y,K=f.length,$=[];for(y=0;y<K;y+=1)$[y]=Et(f[y]);return $}function st(f,y,K){var $=X("float32",6);if(this.isIdentity())$[0]=f[0],$[1]=f[1],$[2]=y[0],$[3]=y[1],$[4]=K[0],$[5]=K[1];else{var nt=this.props[0],vt=this.props[1],Tt=this.props[4],Rt=this.props[5],Mt=this.props[12],ee=this.props[13];$[0]=f[0]*nt+f[1]*Tt+Mt,$[1]=f[0]*vt+f[1]*Rt+ee,$[2]=y[0]*nt+y[1]*Tt+Mt,$[3]=y[0]*vt+y[1]*Rt+ee,$[4]=K[0]*nt+K[1]*Tt+Mt,$[5]=K[0]*vt+K[1]*Rt+ee}return $}function At(f,y,K){var $;return this.isIdentity()?$=[f,y,K]:$=[f*this.props[0]+y*this.props[4]+K*this.props[8]+this.props[12],f*this.props[1]+y*this.props[5]+K*this.props[9]+this.props[13],f*this.props[2]+y*this.props[6]+K*this.props[10]+this.props[14]],$}function ct(f,y){if(this.isIdentity())return f+","+y;var K=this.props;return Math.round((f*K[0]+y*K[4]+K[12])*100)/100+","+Math.round((f*K[1]+y*K[5]+K[13])*100)/100}function et(){for(var f=0,y=this.props,K="matrix3d(",$=1e4;f<16;)K+=l(y[f]*$)/$,K+=f===15?")":",",f+=1;return K}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]),K=I(f[1]),$=I(f[4]),nt=I(f[5]),vt=I(f[12]),Tt=I(f[13]);return"matrix("+y+","+K+","+$+","+nt+","+vt+","+Tt+")"}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=T,this.setTransform=R,this.translate=D,this.transform=M,this.multiply=V,this.applyToPoint=k,this.applyToX=F,this.applyToY=H,this.applyToZ=Y,this.applyToPointArray=At,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=et,this.to2dCSS=P,this.clone=E,this.cloneFromProps=S,this.equals=C,this.inversePoints=pt,this.inversePoint=Et,this.getInverseMatrix=rt,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function On(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?On=function(a){return typeof a}:On=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},On(e)}var Pt={},Rn="__[STANDALONE]__",Up="__[ANIMATIONDATA]__",Hp="";function Wb(e){m(e)}function Gp(){Rn===!0?te.searchAnimations(Up,Rn,Hp):te.searchAnimations()}function jb(e){Nb(e)}function qb(e){Rb(e)}function Xb(e){return Rn===!0&&(e.animationData=JSON.parse(Up)),te.loadAnimation(e)}function Zb(e){if(typeof e=="string")switch(e){case"high":In(200);break;default:case"medium":In(50);break;case"low":In(10);break}else!isNaN(e)&&e>1&&In(e);Qs()>=50?sr(!1):sr(!0)}function Qb(){return typeof navigator<"u"}function Jb(e,i){e==="expressions"&&Ob(i)}function ty(e){switch(e){case"propertyFactory":return at;case"shapePropertyFactory":return Ln;case"matrix":return ge;default:return null}}Pt.play=te.play,Pt.pause=te.pause,Pt.setLocationHref=Wb,Pt.togglePause=te.togglePause,Pt.setSpeed=te.setSpeed,Pt.setDirection=te.setDirection,Pt.stop=te.stop,Pt.searchAnimations=Gp,Pt.registerAnimation=te.registerAnimation,Pt.loadAnimation=Xb,Pt.setSubframeRendering=jb,Pt.resize=te.resize,Pt.goToAndStop=te.goToAndStop,Pt.destroy=te.destroy,Pt.setQuality=Zb,Pt.inBrowser=Qb,Pt.installPlugin=Jb,Pt.freeze=te.freeze,Pt.unfreeze=te.unfreeze,Pt.setVolume=te.setVolume,Pt.mute=te.mute,Pt.unmute=te.unmute,Pt.getRegisteredAnimations=te.getRegisteredAnimations,Pt.useWebWorker=s,Pt.setIDPrefix=qb,Pt.__getFactory=ty,Pt.version="5.12.2";function ey(){document.readyState==="complete"&&(clearInterval(oy),Gp())}function ry(e){for(var i=Kp.split("&"),a=0;a<i.length;a+=1){var l=i[a].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var Kp="";if(Rn){var Yp=document.getElementsByTagName("script"),iy=Yp.length-1,Wp=Yp[iy]||{src:""};Kp=Wp.src?Wp.src.replace(/^[^\?]+\??/,""):"",Hp=ry("renderer")}var oy=setInterval(ey,100);try{!((typeof La>"u"?"undefined":On(La))==="object"&&typeof ul<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Pt)}catch{}var Ii=function(){var e={},i={};e.registerModifier=a,e.getModifier=l;function a(h,c){i[h]||(i[h]=c)}function l(h,c,g){return new i[h](c,g)}return e}();function dr(){}dr.prototype.initModifierProperties=function(){},dr.prototype.addShapeToModifier=function(){},dr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:es.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},dr.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)},dr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([he],dr);function Ar(){}L([dr],Ar),Ar.prototype.initModifierProperties=function(e,i){this.s=at.getProp(e,i.s,0,.01,this),this.e=at.getProp(e,i.e,0,.01,this),this.o=at.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,a,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+a)){var O,G;w.s*h<=l?O=0:O=(w.s*h-l)/a,w.e*h>=l+a?G=1:G=(w.e*h-l)/a,g.push([O,G])}return g.length||g.push([0,0]),g},Ar.prototype.releasePathsData=function(e){var i,a=e.length;for(i=0;i<a;i+=1)Fp.release(e[i]);return e.length=0,e},Ar.prototype.processShapes=function(e){var i,a;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?a=1+l:this.e.v<0?a=0+l:a=this.e.v+l,i>a){var h=i;i=a,a=h}i=Math.round(i*1e4)*1e-4,a=Math.round(a*1e4)*1e-4,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var c,g,A=this.shapes.length,b,w,O,G,T,R=0;if(a===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(a===1&&i===0||a===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=[],M,V;for(g=0;g<A;g+=1)if(M=this.shapes[g],!M.shape._mdf&&!this._mdf&&!e&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,w=c._length,T=0,!M.shape._mdf&&M.pathsData.length)T=M.totalShapeLength;else{for(O=this.releasePathsData(M.pathsData),b=0;b<w;b+=1)G=Mr.getSegmentsLength(c.shapes[b]),O.push(G),T+=G.totalLength;M.totalShapeLength=T,M.pathsData=O}R+=T,M.shape._mdf=!0}var N=i,C=a,E=0,S;for(g=A-1;g>=0;g-=1)if(M=this.shapes[g],M.shape._mdf){for(V=M.localShapeCollection,V.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,a,M.totalShapeLength,E,R),E+=M.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:M.totalShapeLength*N,e:M.totalShapeLength*C}):N>=1?D.push({s:M.totalShapeLength*(N-1),e:M.totalShapeLength*(C-1)}):(D.push({s:M.totalShapeLength*N,e:M.totalShapeLength}),D.push({s:0,e:M.totalShapeLength*(C-1)}));var k=this.addShapes(M,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=M.shape.paths.shapes[M.shape.paths._length-1];if(F.c){var H=k.pop();this.addPaths(k,V),k=this.addShapes(M,D[1],H)}else this.addPaths(k,V),k=this.addShapes(M,D[1])}this.addPaths(k,V)}}M.shape.paths=V}}},Ar.prototype.addPaths=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)i.addShape(e[a])},Ar.prototype.addSegment=function(e,i,a,l,h,c,g){h.setXYAt(i[0],i[1],"o",c),h.setXYAt(a[0],a[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,a,l){i.setXYAt(e[1],e[5],"o",a),i.setXYAt(e[2],e[6],"i",a+1),l&&i.setXYAt(e[0],e[4],"v",a),i.setXYAt(e[3],e[7],"v",a+1)},Ar.prototype.addShapes=function(e,i,a){var l=e.pathsData,h=e.shape.paths.shapes,c,g=e.shape.paths._length,A,b,w=0,O,G,T,R,D=[],M,V=!0;for(a?(G=a._length,M=a._length):(a=ve.newElement(),G=0,M=0),D.push(a),c=0;c<g;c+=1){for(T=l[c].lengths,a.c=h[c].c,b=h[c].c?T.length:T.length+1,A=1;A<b;A+=1)if(O=T[A-1],w+O.addedLength<i.s)w+=O.addedLength,a.c=!1;else if(w>i.e){a.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],a,G,V),V=!1):(R=Mr.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,T[A-1]),this.addSegmentFromArray(R,a,G,V),V=!1,a.c=!1),w+=O.addedLength,G+=1;if(h[c].c&&T.length){if(O=T[A-1],w<=i.e){var N=T[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],a,G,V),V=!1):(R=Mr.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,T[A-1]),this.addSegmentFromArray(R,a,G,V),V=!1,a.c=!1)}else a.c=!1;w+=O.addedLength,G+=1}if(a._length&&(a.setXYAt(a.v[M][0],a.v[M][1],"i",M),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),w>i.e)break;c<g-1&&(a=ve.newElement(),V=!0,D.push(a),G=0)}return D};function ia(){}L([dr],ia),ia.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ia.prototype.processPath=function(e,i){var a=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=ve.newElement();g.c=e.c;var A,b,w,O,G,T;for(c=0;c<h;c+=1)A=e.v[c][0]+(l[0]-e.v[c][0])*a,b=e.v[c][1]+(l[1]-e.v[c][1])*a,w=e.o[c][0]+(l[0]-e.o[c][0])*-a,O=e.o[c][1]+(l[1]-e.o[c][1])*-a,G=e.i[c][0]+(l[0]-e.i[c][0])*-a,T=e.i[c][1]+(l[1]-e.i[c][1])*-a,g.setTripleAt(A,b,w,O,G,T,c);return g},ia.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,g=this.amount.v;if(g!==0){var A,b;for(a=0;a<l;a+=1){if(A=this.shapes[a],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 Vd=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 a(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 T=this.px,R=this.py;T._caching.lastFrame+T.offsetTime<=T.keyframes[0].t?(O[0]=T.getValueAtTime((T.keyframes[0].t+.01)/w,0),O[1]=R.getValueAtTime((R.keyframes[0].t+.01)/w,0),G[0]=T.getValueAtTime(T.keyframes[0].t/w,0),G[1]=R.getValueAtTime(R.keyframes[0].t/w,0)):T._caching.lastFrame+T.offsetTime>=T.keyframes[T.keyframes.length-1].t?(O[0]=T.getValueAtTime(T.keyframes[T.keyframes.length-1].t/w,0),O[1]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/w,0),G[0]=T.getValueAtTime((T.keyframes[T.keyframes.length-1].t-.01)/w,0),G[1]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/w,0)):(O=[T.pv,R.pv],G[0]=T.getValueAtTime((T._caching.lastFrame+T.offsetTime-.01)/w,T.offsetTime),G[1]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/w,R.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 ge,this.pre=new ge,this.appliedTransformations=0,this.initDynamicPropertyContainer(O||b),w.p&&w.p.s?(this.px=at.getProp(b,w.p.x,0,0,this),this.py=at.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=at.getProp(b,w.p.z,0,0,this))):this.p=at.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=at.getProp(b,w.rx,0,wt,this),this.ry=at.getProp(b,w.ry,0,wt,this),this.rz=at.getProp(b,w.rz,0,wt,this),w.or.k[0].ti){var G,T=w.or.k.length;for(G=0;G<T;G+=1)w.or.k[G].to=null,w.or.k[G].ti=null}this.or=at.getProp(b,w.or,1,wt,this),this.or.sh=!0}else this.r=at.getProp(b,w.r||{k:0},0,wt,this);w.sk&&(this.sk=at.getProp(b,w.sk,0,wt,this),this.sa=at.getProp(b,w.sa,0,wt,this)),this.a=at.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=at.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:a,precalculateMatrix:l,autoOrient:h},L([he],g),g.prototype.addDynamicProperty=c,g.prototype._addDynamicProperty=he.prototype.addDynamicProperty;function A(b,w,O){return new g(b,w,O)}return{getTransformProperty:A}}();function Pr(){}L([dr],Pr),Pr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=at.getProp(e,i.c,0,null,this),this.o=at.getProp(e,i.o,0,null,this),this.tr=Vd.getTransformProperty(e,i.tr,this),this.so=at.getProp(e,i.tr.so,0,.01,this),this.eo=at.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 ge,this.rMatrix=new ge,this.sMatrix=new ge,this.tMatrix=new ge,this.matrix=new ge},Pr.prototype.applyTransforms=function(e,i,a,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]),a.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),a.scale(c?1/A:A,c?1/b:b),a.translate(l.a.v[0],l.a.v[1],l.a.v[2])},Pr.prototype.init=function(e,i,a,l){for(this.elem=e,this.arr=i,this.pos=a,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[a]);a>0;)a-=1,this._elements.unshift(i[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Pr.prototype.resetElements=function(e){var i,a=e.length;for(i=0;i<a;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 a,l=e.length;for(a=0;a<l;a+=1)e[a]._render=i,e[a].ty==="gr"&&this.changeGroupRender(e[a].it,i)},Pr.prototype.processShapes=function(e){var i,a,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 T=this.o.v,R=T%1,D=T>0?Math.floor(T):Math.ceil(T),M=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(T>0){for(;C<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,R,!1),C+=R)}else if(T<0){for(;C>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-R,!0),C-=R)}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,a=i[i.length-1].transform.mProps.v.props,S=a.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(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),E=0;E<S;E+=1)a[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<S;E+=1)a[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,a=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 oa(){}L([dr],oa),oa.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=at.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},oa.prototype.processPath=function(e,i){var a=ve.newElement();a.c=e.c;var l,h=e._length,c,g,A,b,w,O,G=0,T,R,D,M,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?(a.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,T=V,N=c[1]-(c[1]-b[1])*O,R=N,D=T-(T-c[0])*fe,M=R-(R-c[1])*fe,a.setTripleAt(T,R,D,M,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,T=D,M=c[1]+(b[1]-c[1])*O,R=M,V=T-(T-c[0])*fe,N=R-(R-c[1])*fe,a.setTripleAt(T,R,D,M,V,N,G),G+=1):(a.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 a},oa.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,g=this.rd.v;if(g!==0){var A,b;for(a=0;a<l;a+=1){if(A=this.shapes[a],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 Mn(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function Bd(e){return Math.abs(e)<=1e-5}function jp(e,i,a){return e*(1-a)+i*a}function _i(e,i,a){return[jp(e[0],i[0],a),jp(e[1],i[1],a)]}function sy(e,i,a){if(e===0)return[];var l=i*i-4*e*a;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,a,l){return[-e+3*i-3*a+l,3*e-6*i+3*a,-3*e+3*i,e]}function Xp(e){return new jt(e,e,e,e,!1)}function jt(e,i,a,l,h){h&&is(e,i)&&(i=_i(e,l,1/3)),h&&is(a,l)&&(a=_i(e,l,2/3));var c=qp(e[0],i[0],a[0],l[0]),g=qp(e[1],i[1],a[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,a,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(Bd(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,a=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(a<0)return[];var l=Math.sqrt(a);return Bd(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[Xp(this.points[0]),this];if(e>=1)return[this,Xp(this.points[this.points.length-1])];var i=_i(this.points[0],this.points[1],e),a=_i(this.points[1],this.points[2],e),l=_i(this.points[2],this.points[3],e),h=_i(i,a,e),c=_i(a,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 Zp(e,i){var a=e.points[0][i],l=e.points[e.points.length-1][i];if(a>l){var h=l;l=a,a=h}for(var c=sy(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<a?a=A:A>l&&(l=A)}return{min:a,max:l}}jt.prototype.bounds=function(){return{x:Zp(this,0),y:Zp(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 Pn(e,i,a){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+a)/2,t1:i,t2:a}}function Qp(e){var i=e.bez.split(.5);return[Pn(i[0],e.t1,e.t),Pn(i[1],e.t,e.t2)]}function ay(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 sa(e,i,a,l,h,c){if(ay(e,i)){if(a>=c||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){h.push([e.t,i.t]);return}var g=Qp(e),A=Qp(i);sa(g[0],A[0],a+1,l,h,c),sa(g[0],A[1],a+1,l,h,c),sa(g[1],A[0],a+1,l,h,c),sa(g[1],A[1],a+1,l,h,c)}}jt.prototype.intersections=function(e,i,a){i===void 0&&(i=2),a===void 0&&(a=7);var l=[];return sa(Pn(this,0,1),Pn(e,0,1),0,i,l,a),l},jt.shapeSegment=function(e,i){var a=(i+1)%e.length();return new jt(e.v[i],e.o[i],e.i[a],e.v[a],!0)},jt.shapeSegmentInverted=function(e,i){var a=(i+1)%e.length();return new jt(e.v[a],e.i[a],e.o[i],e.v[i],!0)};function Ud(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 Dn(e,i,a,l){var h=[e[0],e[1],1],c=[i[0],i[1],1],g=[a[0],a[1],1],A=[l[0],l[1],1],b=Ud(Ud(h,c),Ud(g,A));return Bd(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function rs(e,i,a){return[e[0]+Math.cos(i)*a,e[1]-Math.sin(i)*a]}function Hd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function is(e,i){return Mn(e[0],i[0])&&Mn(e[1],i[1])}function aa(){}L([dr],aa),aa.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=at.getProp(e,i.s,0,null,this),this.frequency=at.getProp(e,i.r,0,null,this),this.pointsType=at.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 Jp(e,i,a,l,h,c,g){var A=a-Math.PI/2,b=a+Math.PI/2,w=i[0]+Math.cos(a)*l*h,O=i[1]-Math.sin(a)*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 ny(e,i){var a=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*a[0]-Math.sin(l)*a[1],Math.sin(l)*a[0]+Math.cos(l)*a[1]];return h}function ly(e,i){var a=i===0?e.length()-1:i-1,l=(i+1)%e.length(),h=e.v[a],c=e.v[l],g=ny(h,c);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function tm(e,i,a,l,h,c,g){var A=ly(i,a),b=i.v[a%i._length],w=i.v[a===0?i._length-1:a-1],O=i.v[(a+1)%i._length],G=c===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,T=c===2?Math.sqrt(Math.pow(b[0]-O[0],2)+Math.pow(b[1]-O[1],2)):0;Jp(e,i.v[a%i._length],A,g,l,T/((h+1)*2),G/((h+1)*2),c)}function dy(e,i,a,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);Jp(e,O,w,c,a,b/((l+1)*2),b/((l+1)*2),h),c=-c}return c}aa.prototype.processPath=function(e,i,a,l){var h=e._length,c=ve.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var g=-1,A=jt.shapeSegment(e,0);tm(c,e,0,i,a,l,g);for(var b=0;b<h;b+=1)g=dy(c,A,i,a,l,-g),b===h-1&&!e.c?A=null:A=jt.shapeSegment(e,(b+1)%h),tm(c,e,b+1,i,a,l,g);return c},aa.prototype.processShapes=function(e){var i,a,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(a=0;a<l;a+=1){if(w=this.shapes[a],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 Gd(e,i,a){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[rs(e,l,a),rs(i,l,a)]}function os(e,i){var a,l,h,c,g,A,b;b=Gd(e.points[0],e.points[1],i),a=b[0],l=b[1],b=Gd(e.points[1],e.points[2],i),h=b[0],c=b[1],b=Gd(e.points[2],e.points[3],i),g=b[0],A=b[1];var w=Dn(a,l,h,c);w===null&&(w=l);var O=Dn(g,A,h,c);return O===null&&(O=g),new jt(a,w,O,A)}function em(e,i,a,l,h){var c=i.points[3],g=a.points[0];if(l===3||is(c,g))return c;if(l===2){var A=-i.tangentAngle(1),b=-a.tangentAngle(0)+Math.PI,w=Dn(c,rs(c,A+Math.PI/2,100),g,rs(g,A+Math.PI/2,100)),O=w?Hd(w,c):Hd(c,g)/2,G=rs(c,A,2*O*fe);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=rs(g,b,2*O*fe),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var T=is(c,i.points[2])?i.points[0]:i.points[2],R=is(g,a.points[1])?a.points[3]:a.points[1],D=Dn(T,c,g,R);return D&&Hd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function rm(e,i){var a=e.intersections(i);return a.length&&Mn(a[0][0],1)&&a.shift(),a.length?a[0]:null}function im(e,i){var a=e.slice(),l=i.slice(),h=rm(e[e.length-1],i[0]);return h&&(a[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=rm(e[0],i[i.length-1]),h)?[[e[0].split(h[0])[0]],[i[i.length-1].split(h[1])[1]]]:[a,l]}function cy(e){for(var i,a=1;a<e.length;a+=1)i=im(e[a-1],e[a]),e[a-1]=i[0],e[a]=i[1];return e.length>1&&(i=im(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function om(e,i){var a=e.inflectionPoints(),l,h,c,g;if(a.length===0)return[os(e,i)];if(a.length===1||Mn(a[1],1))return c=e.split(a[0]),l=c[0],h=c[1],[os(l,i),os(h,i)];c=e.split(a[0]),l=c[0];var A=(a[1]-a[0])/(1-a[0]);return c=c[1].split(A),g=c[0],h=c[1],[os(l,i),os(g,i),os(h,i)]}function na(){}L([dr],na),na.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this.miterLimit=at.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},na.prototype.processPath=function(e,i,a,l){var h=ve.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(om(b,i));if(!e.c)for(g=c-1;g>=0;g-=1)b=jt.shapeSegmentInverted(e,g),w.push(om(b,i));w=cy(w);var O=null,G=null;for(g=0;g<w.length;g+=1){var T=w[g];for(G&&(O=em(h,G,T[0],a,l)),G=T[T.length-1],A=0;A<T.length;A+=1)b=T[A],O&&is(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&&em(h,G,w[0][0],a,l),h},na.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,g=this.amount.v,A=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,O;for(a=0;a<l;a+=1){if(w=this.shapes[a],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 sm(e){for(var i=e.fStyle?e.fStyle.split(" "):[],a="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":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:l,weight:e.fWeight||a}}var ho=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.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 T(I){var P=I.split(","),f,y=P.length,K=[];for(f=0;f<y;f+=1)P[f]!=="sans-serif"&&P[f]!=="monospace"&&K.push(P[f]);return K.join(",")}function R(I,P){var f=x("span");f.setAttribute("aria-hidden",!0),f.style.fontFamily=P;var y=x("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 K=y.offsetWidth;return y.style.fontFamily=T(I)+", "+P,{node:y,w:K,parent:f}}function D(){var I,P=this.fonts.length,f,y,K=P;for(I=0;I<P;I+=1)this.fonts[I].loaded?K-=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?(K-=1,this.fonts[I].loaded=!0):(f=this.fonts[I].sansCase.node,y=this.fonts[I].sansCase.w,f.offsetWidth!==y&&(K-=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)));K!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(I,P){var f=document.body&&P?"svg":"canvas",y,K=sm(I);if(f==="svg"){var $=xt("text");$.style.fontSize="100px",$.setAttribute("font-family",I.fFamily),$.setAttribute("font-style",K.style),$.setAttribute("font-weight",K.weight),$.textContent="1",I.fClass?($.style.fontFamily="inherit",$.setAttribute("class",I.fClass)):$.style.fontFamily=I.fFamily,P.appendChild($),y=$}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=K.style+" "+K.weight+" 100px "+I.fFamily,y=nt}function vt(Tt){return f==="svg"?(y.textContent=Tt,y.getComputedTextLength()):y.measureText(Tt).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($e){$e.helper=M($e),$e.cache={}}),this.fonts=I.list;return}var f=I.list,y,K=f.length,$=K;for(y=0;y<K;y+=1){var nt=!0,vt,Tt;if(f[y].loaded=!1,f[y].monoCase=R(f[y].fFamily,"monospace"),f[y].sansCase=R(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&&(nt=!1),nt){var Rt=x("style");Rt.setAttribute("f-forigin",f[y].fOrigin),Rt.setAttribute("f-origin",f[y].origin),Rt.setAttribute("f-family",f[y].fFamily),Rt.type="text/css",Rt.innerText="@font-face {font-family: "+f[y].fFamily+"; font-style: normal; src: url('"+f[y].fPath+"');}",P.appendChild(Rt)}}else if(f[y].fOrigin==="g"||f[y].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Tt=0;Tt<vt.length;Tt+=1)vt[Tt].href.indexOf(f[y].fPath)!==-1&&(nt=!1);if(nt){var Mt=x("link");Mt.setAttribute("f-forigin",f[y].fOrigin),Mt.setAttribute("f-origin",f[y].origin),Mt.type="text/css",Mt.rel="stylesheet",Mt.href=f[y].fPath,document.body.appendChild(Mt)}}else if(f[y].fOrigin==="t"||f[y].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Tt=0;Tt<vt.length;Tt+=1)f[y].fPath===vt[Tt].src&&(nt=!1);if(nt){var ee=x("link");ee.setAttribute("f-forigin",f[y].fOrigin),ee.setAttribute("f-origin",f[y].origin),ee.setAttribute("rel","stylesheet"),ee.setAttribute("href",f[y].fPath),P.appendChild(ee)}}f[y].helper=M(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,K=this.chars.length,$;for(P=0;P<f;P+=1){for(y=0,$=!1;y<K;)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]),K+=1)}}}function C(I,P,f){for(var y=0,K=this.chars.length;y<K;){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),K=I;if(!y.cache[K]){var $=y.helper;if(I===" "){var nt=$.measureText("|"+I+"|"),vt=$.measureText("||");y.cache[K]=(nt-vt)/100}else y.cache[K]=$.measureText(I)/100}return y.cache[K]*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 Y(I){return I===A}function rt(I){var P=k(I);return P>=w&&P<=O}function Et(I){return rt(I.substr(0,2))&&rt(I.substr(2,2))}function pt(I){return a.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 At(){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=Et,ct.isRegionalCode=rt,ct.isCombinedCharacter=pt,ct.isRegionalFlag=st,ct.isVariationSelector=Y,ct.BLACK_FLAG_CODE_POINT=l;var et={addChars:N,addFonts:V,getCharData:C,getFontByName:S,measureText:E,checkLoadedFonts:D,setIsLoaded:At};return ct.prototype=et,ct}();function am(e){this.animationData=e}am.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function hy(e){return new am(e)}function Fn(){}Fn.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,a=this.renderableComponents.length;for(i=0;i<a;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 Kd=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 py(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function my(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function uy(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function fy(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function vy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function gy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function by(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function yy(){this.p={}}function nm(e,i){var a=e.ef||[];this.effectElements=[];var l,h=a.length,c;for(l=0;l<h;l+=1)c=new la(a[l],i),this.effectElements.push(c)}function la(e,i){this.init(e,i)}L([he],la),la.prototype.getValue=la.prototype.iterateDynamicProperties,la.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,l=this.data.ef.length,h,c=this.data.ef;for(a=0;a<l;a+=1){switch(h=null,c[a].ty){case 0:h=new py(c[a],i,this);break;case 1:h=new my(c[a],i,this);break;case 2:h=new uy(c[a],i,this);break;case 3:h=new fy(c[a],i,this);break;case 4:case 7:h=new by(c[a],i,this);break;case 10:h=new vy(c[a],i,this);break;case 11:h=new gy(c[a],i,this);break;case 5:h=new nm(c[a],i,this);break;default:h=new yy(c[a],i,this);break}h&&this.effectElements.push(h)}};function Ci(){}Ci.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,a=this.data.masksProperties.length;i<a;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Rp();if(i){var a=i("layer"),l=i("effects"),h=i("shape"),c=i("text"),g=i("comp");this.layerInterface=a(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=Kd(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function(i,a,l){this.globalData=a,this.comp=l,this.data=i,this.layerId=De(),this.data.sr||(this.data.sr=1),this.effectsManager=new nm(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,a){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(a||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,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,a)}ki.prototype.prepareFrame=function(){},L([Fn,Ci,wi],ki),ki.prototype.getBaseElement=function(){return null},ki.prototype.renderFrame=function(){},ki.prototype.destroy=function(){},ki.prototype.initExpressions=function(){var e=Rp();if(e){var i=e("footage");this.layerInterface=i(this)}},ki.prototype.getFootageData=function(){return this.footageData};function Fe(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,a),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Fe.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 a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},L([Fn,Ci,wi],Fe),Fe.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))},Fe.prototype.show=function(){},Fe.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Fe.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Fe.prototype.resume=function(){this._canPlay=!0},Fe.prototype.setRate=function(e){this.audio.rate(e)},Fe.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Fe.prototype.getBaseElement=function(){return null},Fe.prototype.destroy=function(){},Fe.prototype.sourceRectAtTime=function(){},Fe.prototype.initExpressions=function(){};function be(){}be.prototype.checkLayers=function(e){var i,a=this.layers.length,l;for(this.completeLayers=!0,i=a-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()},be.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)}},be.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},be.prototype.createAudio=function(e){return new Fe(e,this.globalData,this)},be.prototype.createFootage=function(e){return new ki(e,this.globalData,this)},be.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},be.prototype.includeLayers=function(e){this.completeLayers=!1;var i,a=e.length,l,h=this.layers.length;for(i=0;i<a;i+=1)for(l=0;l<h;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},be.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},be.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},be.prototype.buildElementParenting=function(e,i,a){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)):(a.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,a):e.setHierarchy(a))),c+=1},be.prototype.addPendingElement=function(e){this.pendingElements.push(e)},be.prototype.searchExtraCompositions=function(e){var i,a=e.length;for(i=0;i<a;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},be.prototype.getElementById=function(e){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},be.prototype.getElementByPath=function(e){var i=e.shift(),a;if(typeof i=="number")a=this.elements[i];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===i){a=this.elements[l];break}}return e.length===0?a:a.getElementByPath(e)},be.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new ho,this.globalData.slotManager=hy(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 Ey={TRANSFORM_EFFECT:"transformEFfect"};function ss(){}ss.prototype={initTransform:function(){var i=new ge;this.finalTransform={mProp:this.data.ks?Vd.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,a=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,a.cloneFromProps(i),l=0;l<h;l+=1)a.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,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<a;)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<a;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<a;i+=1)c*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(Ey.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new ge;var a=0,l=i.length;for(a=0;a<l;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function(i){var a=[];a.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&a.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,g=a.length,A;for(c=0;c<g;c+=1)A=a[c].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new ge};function po(e,i,a){this.data=e,this.element=i,this.globalData=a,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,T=De(),R,D,M,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?(R=xt("rect"),R.setAttribute("fill","#ffffff"),R.setAttribute("width",this.element.comp.data.w||0),R.setAttribute("height",this.element.comp.data.h||0),w.push(R)):R=null,g=xt("path"),A[h].mode==="n")this.viewData[h]={op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:Ln.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=at.getProp(this.element,A[h].x,0,null,this.element),E=De(),D=xt("filter"),D.setAttribute("id",E),M=xt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),D.appendChild(M),l.appendChild(D),g.setAttribute("stroke",A[h].mode==="s"?"#000000":"#ffffff")):(M=null,V=null),this.storedData[h]={elem:g,x:V,expan:M,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},A[h].mode==="i"){G=w.length;var S=xt("g");for(O=0;O<G;O+=1)S.appendChild(w[O]);var k=xt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",T+"_"+b),k.appendChild(g),l.appendChild(k),S.setAttribute("mask","url("+v()+"#"+T+"_"+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:at.getProp(this.element,A[h].o,0,.01,this.element),prop:Ln.getShapeProp(this.element,A[h],3),invRect:R},this.viewData[h].prop.k||this.drawPath(A[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=xt(N),c=w.length,h=0;h<c;h+=1)this.maskElement.appendChild(w[h]);b>0&&(this.maskElement.setAttribute("id",T),this.element.maskedElement.setAttribute(C,"url("+v()+"#"+T+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}po.prototype.getMaskProperty=function(e){return this.viewData[e].prop},po.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,a,l=this.masksProperties.length;for(a=0;a<l;a+=1)if((this.viewData[a].prop._mdf||e)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||e)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),this.masksProperties[a].mode!=="n"&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||e))){var h=this.storedData[a].expan;this.storedData[a].x.v<0?(this.storedData[a].lastOperator!=="erode"&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+v()+"#"+this.storedData[a].filterId+")")),h.setAttribute("radius",-this.storedData[a].x.v)):(this.storedData[a].lastOperator!=="dilate"&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2))}},po.prototype.getMaskelement=function(){return this.maskElement},po.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},po.prototype.drawPath=function(e,i,a){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]),a.lastPath!==l){var g="";a.elem&&(i.c&&(g=e.inv?this.solidPath+l:l),a.elem.setAttribute("d",g)),a.lastPath=l}},po.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var da=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=a;function i(l,h){var c=xt("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 a(){var l=xt("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}(),lm=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}(),$n={},dm="filter_result_";function Yd(e){var i,a="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=De(),c=da.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($n[b]){var w=$n[b].effect;A=new w(c,e.effectsManager.effectElements[i],e,dm+g,a),a=dm+g,$n[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)}Yd.prototype.renderFrame=function(e){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(e)},Yd.prototype.getEffects=function(e){var i,a=this.filters.length,l=[];for(i=0;i<a;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function h0(e,i,a){$n[e]={effect:i,countsAsEffect:a}}function ca(){}ca.prototype={initRendererElement:function(){this.layerElement=xt("g")},createContainerElements:function(){this.matteElement=xt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=xt("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}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=xt("clipPath"),h=xt("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=De();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var g=xt("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 po(this.data,this,this.globalData),this.renderableEffectsManager=new Yd(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var a=this.layerId+"_"+i,l,h,c,g;if(i===1||i===3){var A=xt("mask");A.setAttribute("id",a),A.setAttribute("mask-type",i===3?"luminance":"alpha"),c=xt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(c),this.globalData.defs.appendChild(A),!lm.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=De(),h=da.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(da.createAlphaToLuminanceFilter()),g=xt("g"),g.appendChild(c),A.appendChild(g),g.setAttribute("filter","url("+v()+"#"+l+")"))}else if(i===2){var b=xt("mask");b.setAttribute("id",a),b.setAttribute("mask-type","alpha");var w=xt("g");b.appendChild(w),l=De(),h=da.createFilter(l);var O=xt("feComponentTransfer");O.setAttribute("in","SourceGraphic"),h.appendChild(O);var G=xt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),O.appendChild(G),this.globalData.defs.appendChild(h);var T=xt("rect");T.setAttribute("width",this.comp.data.w),T.setAttribute("height",this.comp.data.h),T.setAttribute("x","0"),T.setAttribute("y","0"),T.setAttribute("fill","#ffffff"),T.setAttribute("opacity","0"),w.setAttribute("filter","url("+v()+"#"+l+")"),w.appendChild(T),c=xt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(c),lm.maskType||(b.setAttribute("mask-type","luminance"),h.appendChild(da.createAlphaToLuminanceFilter()),g=xt("g"),w.appendChild(T),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+v()+"#"+i+")")}};function as(){}as.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 ha(){}(function(){var e={initElement:function(a,l,h){this.initFrame(),this.initBaseData(a,l,h),this.initTransform(a,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 a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.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(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};L([Fn,q(e)],ha)})();function pa(e,i,a){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ci,ss,ca,as,wi,ha],pa),pa.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=xt("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)},pa.prototype.sourceRectAtTime=function(){return this.sourceRect};function Ty(e,i){this.elem=e,this.pos=i}function cm(){}cm.prototype={addShapeToModifiers:function(i){var a,l=this.shapeModifiers.length;for(a=0;a<l;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var a=0,l=this.shapeModifiers.length;a<l;)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var l;for(i=a-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var a=this.processedElements,l=0,h=a.length;l<h;){if(a[l].elem===i)return a[l].pos;l+=1}return 0},addProcessedElement:function(i,a){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===i){l[h].pos=a;return}l.push(new Ty(i,a))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var hm={1:"butt",2:"round",3:"square"},pm={1:"miter",2:"round",3:"bevel"};function mm(e,i,a){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}mm.prototype.setAsAnimated=function(){this._isAnimated=!0};function um(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=xt("path"),this.msElem=null}um.prototype.reset=function(){this.d="",this._mdf=!1};function zn(e,i,a,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=a,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=at.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}zn.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,a=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<a;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([he],zn);function fm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.w=at.getProp(e,i.w,0,null,this),this.d=new zn(e,i.d||{},"svg",this),this.c=at.getProp(e,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}L([he],fm);function vm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.c=at.getProp(e,i.c,1,255,this),this.style=a}L([he],vm);function gm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=a}L([he],gm);function ma(e,i,a){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(a),this.prop=at.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ma.prototype.comparePoints=function(e,i){for(var a=0,l=this.o.length/2,h;a<l;){if(h=Math.abs(e[a*4]-e[i*4+a*2]),h>.01)return!1;a+=1}return!0},ma.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},ma.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,a=this.data.p*4,l,h;for(i=0;i<a;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(a=this.prop.v.length,i=this.data.p*4;i<a;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([he],ma);function ns(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,a)}ns.prototype.initGradientData=function(e,i,a){this.o=at.getProp(e,i.o,0,.01,this),this.s=at.getProp(e,i.s,1,null,this),this.e=at.getProp(e,i.e,1,null,this),this.h=at.getProp(e,i.h||{k:0},0,.01,this),this.a=at.getProp(e,i.a||{k:0},0,wt,this),this.g=new ma(e,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},ns.prototype.setGradientData=function(e,i){var a=De(),l=xt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",a),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=xt("stop"),l.appendChild(c),h.push(c);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+v()+"#"+a+")"),this.gf=l,this.cst=h},ns.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,l,h,c=xt("mask"),g=xt("path");c.appendChild(g);var A=De(),b=De();c.setAttribute("id",b);var w=xt(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)a=xt("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(a),O.push(a);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+v()+"#"+A+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",hm[e.lc||2]),g.setAttribute("stroke-linejoin",pm[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([he],ns);function bm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(e,i.w,0,null,this),this.d=new zn(e,i.d||{},"svg",this),this.initGradientData(e,i,a),this._isAnimated=!!this._isAnimated}L([ns,he],bm);function xy(){this.it=[],this.prevViewData=[],this.gr=xt("g")}function Ay(e,i,a){this.transform={mProps:e,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var ym=function(i,a,l,h){if(a===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<a;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&&a&&(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},Sy=function(){var e=new ge,i=new ge,a={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,T,R){(R||T.transform.op._mdf)&&T.transform.container.setAttribute("opacity",T.transform.op.v),(R||T.transform.mProps._mdf)&&T.transform.container.setAttribute("transform",T.transform.mProps.v.to2dCSS())}function c(){}function g(G,T,R){var D,M,V,N,C,E,S=T.styles.length,k=T.lvl,F,H,Y,rt;for(E=0;E<S;E+=1){if(N=T.sh._mdf||R,T.styles[E].lvl<k){for(H=i.reset(),Y=k-T.styles[E].lvl,rt=T.transformers.length-1;!N&&Y>0;)N=T.transformers[rt].mProps._mdf||N,Y-=1,rt-=1;if(N)for(Y=k-T.styles[E].lvl,rt=T.transformers.length-1;Y>0;)H.multiply(T.transformers[rt].mProps.v),Y-=1,rt-=1}else H=e;if(F=T.sh.paths,M=F._length,N){for(V="",D=0;D<M;D+=1)C=F.shapes[D],C&&C._length&&(V+=ym(C,C._length,C.c,H));T.caches[E]=V}else V=T.caches[E];T.styles[E].d+=G.hd===!0?"":V,T.styles[E]._mdf=N||T.styles[E]._mdf}}function A(G,T,R){var D=T.style;(T.c._mdf||R)&&D.pElem.setAttribute("fill","rgb("+ce(T.c.v[0])+","+ce(T.c.v[1])+","+ce(T.c.v[2])+")"),(T.o._mdf||R)&&D.pElem.setAttribute("fill-opacity",T.o.v)}function b(G,T,R){w(G,T,R),O(G,T,R)}function w(G,T,R){var D=T.gf,M=T.g._hasOpacity,V=T.s.v,N=T.e.v;if(T.o._mdf||R){var C=G.ty==="gf"?"fill-opacity":"stroke-opacity";T.style.pElem.setAttribute(C,T.o.v)}if(T.s._mdf||R){var E=G.t===1?"x1":"cx",S=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(S,V[1]),M&&!T.g._collapsable&&(T.of.setAttribute(E,V[0]),T.of.setAttribute(S,V[1]))}var k,F,H,Y;if(T.g._cmdf||R){k=T.cst;var rt=T.g.c;for(H=k.length,F=0;F<H;F+=1)Y=k[F],Y.setAttribute("offset",rt[F*4]+"%"),Y.setAttribute("stop-color","rgb("+rt[F*4+1]+","+rt[F*4+2]+","+rt[F*4+3]+")")}if(M&&(T.g._omdf||R)){var Et=T.g.o;for(T.g._collapsable?k=T.cst:k=T.ost,H=k.length,F=0;F<H;F+=1)Y=k[F],T.g._collapsable||Y.setAttribute("offset",Et[F*2]+"%"),Y.setAttribute("stop-opacity",Et[F*2+1])}if(G.t===1)(T.e._mdf||R)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),M&&!T.g._collapsable&&(T.of.setAttribute("x2",N[0]),T.of.setAttribute("y2",N[1])));else{var pt;if((T.s._mdf||T.e._mdf||R)&&(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",pt),M&&!T.g._collapsable&&T.of.setAttribute("r",pt)),T.e._mdf||T.h._mdf||T.a._mdf||R){pt||(pt=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]),At=T.h.v;At>=1?At=.99:At<=-1&&(At=-.99);var ct=pt*At,et=Math.cos(st+T.a.v)*ct+V[0],I=Math.sin(st+T.a.v)*ct+V[1];D.setAttribute("fx",et),D.setAttribute("fy",I),M&&!T.g._collapsable&&(T.of.setAttribute("fx",et),T.of.setAttribute("fy",I))}}}function O(G,T,R){var D=T.style,M=T.d;M&&(M._mdf||R)&&M.dashStr&&(D.pElem.setAttribute("stroke-dasharray",M.dashStr),D.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),T.c&&(T.c._mdf||R)&&D.pElem.setAttribute("stroke","rgb("+ce(T.c.v[0])+","+ce(T.c.v[1])+","+ce(T.c.v[2])+")"),(T.o._mdf||R)&&D.pElem.setAttribute("stroke-opacity",T.o.v),(T.w._mdf||R)&&(D.pElem.setAttribute("stroke-width",T.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",T.w.v))}return a}();function Xt(e,i,a){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,a),this.prevViewData=[]}L([Ci,ss,ca,cm,as,wi,ha],Xt),Xt.prototype.initSecondaryElement=function(){},Xt.prototype.identityMatrix=new ge,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,a,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)a=this.shapes[e],a.styles.indexOf(c)!==-1&&(g.push(a),A=a._isAnimated||A);g.length>1&&A&&this.setShapesAsAnimated(g)}},Xt.prototype.setShapesAsAnimated=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i].setAsAnimated()},Xt.prototype.createStyleElement=function(e,i){var a,l=new um(e,i),h=l.pElem;if(e.ty==="st")a=new fm(this,e,l);else if(e.ty==="fl")a=new vm(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?ns:bm;a=new c(this,e,l),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),h.setAttribute("mask","url("+v()+"#"+a.maskId+")"))}else e.ty==="no"&&(a=new gm(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",hm[e.lc||2]),h.setAttribute("stroke-linejoin",pm[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"]=Kd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,a),a},Xt.prototype.createGroupElement=function(e){var i=new xy;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"]=Kd(e.bm)),i},Xt.prototype.createTransformElement=function(e,i){var a=Vd.getTransformProperty(this,e,this),l=new Ay(a,a.o,i);return this.addToAnimatedContents(e,l),l},Xt.prototype.createShapeElement=function(e,i,a){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=Ln.getShapeProp(this,e,l,this),c=new mm(i,a,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Xt.prototype.addToAnimatedContents=function(e,i){for(var a=0,l=this.animatedContents.length;a<l;){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:Sy.createRenderFunction(e),element:i,data:e})},Xt.prototype.setElementStyles=function(e){var i=e.styles,a,l=this.stylesList.length;for(a=0;a<l;a+=1)this.stylesList[a].closed||i.push(this.stylesList[a])},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,a,l,h,c,g){var A=[].concat(c),b,w=e.length-1,O,G,T=[],R=[],D,M,V;for(b=w;b>=0;b-=1){if(V=this.searchProcessedElement(e[b]),V?i[b]=a[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),T.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?(M=i[b],M.closed=!1):(M=Ii.getModifier(e[b].ty),M.init(this,e[b]),i[b]=M,this.shapeModifiers.push(M)),R.push(M)):e[b].ty==="rp"&&(V?(M=i[b],M.closed=!0):(M=Ii.getModifier(e[b].ty),i[b]=M,M.init(this,e,b,i),this.shapeModifiers.push(M),g=!1),R.push(M));this.addProcessedElement(e[b],b+1)}for(w=T.length,b=0;b<w;b+=1)T[b].closed=!0;for(w=R.length,b=0;b<w;b+=1)R[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,a;for(e=0;e<i;e+=1)a=this.animatedContents[e],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0&&a.fn(a.data,a.element,this._isFirstFrame)},Xt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Wd(e,i,a,l,h,c){this.o=e,this.sw=i,this.sc=a,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!l,m:!0,p:!0}}Wd.prototype.update=function(e,i,a,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!==a&&(this.sc=a,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 a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);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,a=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)a!==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,a=0,l=e.length;a<=l-1&&!(a===l-1||e[a+1].t>i);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},we.prototype.buildFinalText=function(e){for(var i=[],a=0,l=e.length,h,c,g=!1,A=!1,b="";a<l;)g=A,A=!1,h=e.charCodeAt(a),b=e.charAt(a),ho.isCombinedCharacter(h)?g=!0:h>=55296&&h<=56319?ho.isRegionalFlag(e,a)?b=e.substr(a,14):(c=e.charCodeAt(a+1),c>=56320&&c<=57343&&(ho.isModifier(h,c)?(b=e.substr(a,2),g=!0):ho.isFlagEmoji(e.substr(a,4))?b=e.substr(a,4):b=e.substr(a,2))):h>56319?(c=e.charCodeAt(a+1),ho.isVariationSelector(h)&&(g=!0)):ho.isZeroWidthJoiner(h)&&(g=!0,A=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),a+=b.length;return i},we.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,l=[],h,c,g,A=0,b,w=a.m.g,O=0,G=0,T=0,R=[],D=0,M=0,V,N,C=i.getFontByName(e.f),E,S=0,k=sm(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 Y=!0,rt=e.sz[0],Et=e.sz[1],pt,st;Y;){st=this.buildFinalText(e.t),pt=0,D=0,c=st.length,F=e.tr/1e3*e.finalSize;var At=-1;for(h=0;h<c;h+=1)H=st[h].charCodeAt(0),g=!1,st[h]===" "?At=h:(H===13||H===3)&&(D=0,g=!0,pt+=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]!==" "?(At===-1?c+=1:h=At,pt+=e.finalLineHeight||e.finalSize*1.2,st.splice(h,At===h?1:0,"\r"),At=-1,D=0):(D+=S,D+=F);pt+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&Et<pt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,c=e.finalText.length,Y=!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,R.push(D),M=D>M?D:M,D=-2*F,b="",g=!0,T+=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:T,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,M=D>M?D:M,R.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=M,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=R;var I=a.a,P,f;N=I.length;var y,K,$=[];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),K=0,y=P.s.b,h=0;h<c;h+=1)f=l[h],f.anIndexes[V]=K,(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(K),K+=1);a.a[V].s.totalChars=K;var nt=-1,vt;if(P.s.rn===1)for(h=0;h<c;h+=1)f=l[h],nt!=f.anIndexes[V]&&(nt=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 a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,e),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),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 Iy=function(){var e=Math.max,i=Math.min,a=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=at.getProp(c,g.s||{k:0},0,0,this),"e"in g?this.e=at.getProp(c,g.e,0,0,this):this.e={v:100},this.o=at.getProp(c,g.o||{k:0},0,0,this),this.xe=at.getProp(c,g.xe||{k:0},0,0,this),this.ne=at.getProp(c,g.ne||{k:0},0,0,this),this.sm=at.getProp(c,g.sm||{k:100},0,0,this),this.a=at.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=ra.getBezierEasing(A,b,w,O).get,T=0,R=this.finalS,D=this.finalE,M=this.data.sh;if(M===2)D===R?T=g>=D?1:0:T=e(0,i(.5/(D-R)+(g-R)/(D-R),1)),T=G(T);else if(M===3)D===R?T=g>=D?0:1:T=1-e(0,i(.5/(D-R)+(g-R)/(D-R),1)),T=G(T);else if(M===4)D===R?T=0:(T=e(0,i(.5/(D-R)+(g-R)/(D-R),1)),T<.5?T*=2:T=1-2*(T-.5)),T=G(T);else if(M===5){if(D===R)T=0;else{var V=D-R;g=i(e(0,g+.5-R),D-R);var N=-V/2+g,C=V/2;T=Math.sqrt(1-N*N/(C*C))}T=G(T)}else M===6?(D===R?T=0:(g=i(e(0,g+.5-R),D-R),T=(1+Math.cos(Math.PI+Math.PI*2*g/(D-R)))/2),T=G(T)):(g>=a(R)&&(g-R<0?T=e(0,i(i(D,1)-(R-g),1)):T=e(0,i(D-g,1))),T=G(T));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var S=.5-E*.5;T<S?T=0:(T=(T-S)/E,T>1&&(T=1))}return T*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([he],l);function h(c,g,A){return new l(c,g,A)}return{getTextSelectorProp:h}}();function _y(e,i,a){var l={propType:!1},h=at.getProp,c=i.a;this.a={r:c.r?h(e,c.r,0,wt,a):l,rx:c.rx?h(e,c.rx,0,wt,a):l,ry:c.ry?h(e,c.ry,0,wt,a):l,sk:c.sk?h(e,c.sk,0,wt,a):l,sa:c.sa?h(e,c.sa,0,wt,a):l,s:c.s?h(e,c.s,1,.01,a):l,a:c.a?h(e,c.a,1,0,a):l,o:c.o?h(e,c.o,0,.01,a):l,p:c.p?h(e,c.p,1,0,a):l,sw:c.sw?h(e,c.sw,0,0,a):l,sc:c.sc?h(e,c.sc,1,0,a):l,fc:c.fc?h(e,c.fc,1,0,a):l,fh:c.fh?h(e,c.fh,0,0,a):l,fs:c.fs?h(e,c.fs,0,.01,a):l,fb:c.fb?h(e,c.fb,0,.01,a):l,t:c.t?h(e,c.t,0,0,a):l},this.s=Iy.getTextSelectorProp(e,i.s,a),this.s.t=i.s.t}function mo(e,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=a,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}mo.prototype.searchProperties=function(){var e,i=this._textData.a.length,a,l=at.getProp;for(e=0;e<i;e+=1)a=this._textData.a[e],this._animatorsData[e]=new _y(this._elem,a,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)},mo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,g=this._renderType,A=this.renderedLetters.length,b,w,O,G,T=e.l,R,D,M,V,N,C,E,S,k,F,H,Y,rt,Et,pt;if(this._hasMaskedPath){if(pt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=pt.v;this._pathData.r.v&&(st=st.reverse()),R={tLength:0,segments:[]},G=st._length-1;var At;for(Y=0,O=0;O<G;O+=1)At=Mr.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]]),R.tLength+=At.segmentLength,R.segments.push(At),Y+=At.segmentLength;O=G,pt.v.c&&(At=Mr.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]]),R.tLength+=At.segmentLength,R.segments.push(At),Y+=At.segmentLength),this._pathData.pi=R}if(R=this._pathData.pi,D=this._pathData.f.v,E=0,C=1,V=0,N=!0,F=R.segments,D<0&&pt.v.c)for(R.tLength<Math.abs(D)&&(D=-Math.abs(D)%R.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],M=k[C],H=M.partialLength}G=T.length,b=0,w=0;var ct=e.finalSize*1.2*.714,et=!0,I,P,f,y,K;y=l.length;var $,nt=-1,vt,Tt,Rt,Mt=D,ee=E,$e=C,Dr=-1,ze,pe,Ze,Ft,ht,ei,Li,ri,Fr="",ii=this.defaultPropsArray,oi;if(e.j===2||e.j===1){var Ve=0,Oi=0,Ri=e.j===2?-.5:-1,Sr=0,Mi=!0;for(O=0;O<G;O+=1)if(T[O].n){for(Ve&&(Ve+=Oi);Sr<O;)T[Sr].animatorJustifyOffset=Ve,Sr+=1;Ve=0,Mi=!0}else{for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(Mi&&e.j===2&&(Oi+=I.t.v*Ri),P=l[f].s,$=P.getMult(T[O].anIndexes[f],h.a[f].s.totalChars),$.length?Ve+=I.t.v*$[0]*Ri:Ve+=I.t.v*$*Ri);Mi=!1}for(Ve&&(Ve+=Oi);Sr<O;)T[Sr].animatorJustifyOffset=Ve,Sr+=1}for(O=0;O<G;O+=1){if(c.reset(),ze=1,T[O].n)b=0,w+=e.yOffset,w+=et?1:0,D=Mt,et=!1,this._hasMaskedPath&&(E=ee,C=$e,k=F[E].points,S=k[C-1],M=k[C],H=M.partialLength,V=0),Fr="",ri="",ei="",oi="",ii=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Dr!==T[O].line){switch(e.j){case 1:D+=Y-e.lineWidths[T[O].line];break;case 2:D+=(Y-e.lineWidths[T[O].line])/2;break;default:break}Dr=T[O].line}nt!==T[O].ind&&(T[nt]&&(D+=T[nt].extra),D+=T[O].an/2,nt=T[O].ind),D+=a[0]*T[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(T[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(T[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=T[0].an*.5+(Y-this._pathData.f.v-T[0].an*.5-T[T.length-1].an*.5)*nt/(G-1),D+=this._pathData.f.v);N;)V+H>=D+Ir||!k?(rt=(D+Ir-V)/M.partialLength,Tt=S.point[0]+(M.point[0]-S.point[0])*rt,Rt=S.point[1]+(M.point[1]-S.point[1])*rt,c.translate(-a[0]*T[O].an*.005,-(a[1]*ct)*.01),N=!1):k&&(V+=M.partialLength,C+=1,C>=k.length&&(C=0,E+=1,F[E]?k=F[E].points:pt.v.c?(C=0,E=0,k=F[E].points):(V-=M.partialLength,k=null)),k&&(S=M,M=k[C],H=M.partialLength));vt=T[O].an/2-T[O].add,c.translate(-vt,0,0)}else vt=T[O].an/2-T[O].add,c.translate(-vt,0,0),c.translate(-a[0]*T[O].an*.005,-a[1]*ct*.01,0);for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(P=l[f].s,$=P.getMult(T[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?pe=[e.sc[0],e.sc[1],e.sc[2]]:pe=[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(T[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(T[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(T[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?ze+=(I.o.v*$[0]-ze)*$[0]:ze+=(I.o.v*$-ze)*$),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?pe[ht]+=(I.sc.v[ht]-pe[ht])*$[0]:pe[ht]+=(I.sc.v[ht]-pe[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=Op(Ft,I.fh.v*$[0]):Ft=Op(Ft,I.fh.v*$)),I.fs.propType&&($.length?Ft=Np(Ft,I.fs.v*$[0]):Ft=Np(Ft,I.fs.v*$)),I.fb.propType&&($.length?Ft=Lp(Ft,I.fb.v*$[0]):Ft=Lp(Ft,I.fb.v*$))}}for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(T[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&&(ei=Ze<0?0:Ze),e.strokeColorAnim&&(Li="rgb("+Math.round(pe[0]*255)+","+Math.round(pe[1]*255)+","+Math.round(pe[2]*255)+")"),e.fillColorAnim&&e.fc&&(ri="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,a[1]*ct*.01+w,0),this._pathData.p.v){Et=(M.point[1]-S.point[1])/(M.point[0]-S.point[0]);var uo=Math.atan(Et)*180/Math.PI;M.point[0]<S.point[0]&&(uo+=180),c.rotate(-uo*Math.PI/180)}c.translate(Tt,Rt,0),D-=a[0]*T[O].an*.005,T[O+1]&&nt!==T[O+1].ind&&(D+=T[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(T[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[O].line]),0,0);break;case 2:c.translate(T[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[O].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(vt,0,0),c.translate(a[0]*T[O].an*.005,a[1]*ct*.01,0),b+=T[O].l+e.tr*.001*e.finalSize}g==="html"?Fr=c.toCSS():g==="svg"?Fr=c.to2dCSS():ii=[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]],oi=ze}A<=O?(K=new Wd(oi,ei,Li,ri,Fr,ii),this.renderedLetters.push(K),A+=1,this.lettersChangedFlag=!0):(K=this.renderedLetters[O],this.lettersChangedFlag=K.update(oi,ei,Li,ri,Fr,ii)||this.lettersChangedFlag)}}},mo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},mo.prototype.mHelper=new ge,mo.prototype.defaultPropsArray=[],L([he],mo);function cr(){}cr.prototype.initElement=function(e,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,a),this.textProperty=new we(this,e.t,this.dynamicProperties),this.textAnimator=new mo(e.t,this.renderType,this),this.initTransform(e,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},cr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},cr.prototype.createPathShape=function(e,i){var a,l=i.length,h,c="";for(a=0;a<l;a+=1)i[a].ty==="sh"&&(h=i[a].ks.k,c+=ym(h,h.i.length,!0,e));return c},cr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},cr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},cr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},cr.prototype.applyTextPropertiesToMatrix=function(e,i,a,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[a]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a])/2,0,0);break;default:break}i.translate(l,h,0)},cr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},cr.prototype.emptyProp=new Wd,cr.prototype.destroy=function(){},cr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Cy={shapes:[]};function Jr(e,i,a){this.textSpans=[],this.renderType="svg",this.initElement(e,i,a)}L([Ci,ss,ca,as,wi,ha,cr],Jr),Jr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=xt("text"))},Jr.prototype.buildTextContents=function(e){for(var i=0,a=e.length,l=[],h="";i<a;)e[i]==="\r"||e[i]===""?(l.push(h),h=""):h+=e[i],i+=1;return l.push(h),l},Jr.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var a=e.shapes[0];if(a.it){var l=a.it[a.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},Jr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,a=this.textProperty.currentData;this.renderedLetters=it(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var l=this.globalData.fontManager.getFontByName(a.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=a.fWeight,c=a.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",a.t);var g=a.l||[],A=!!this.globalData.fontManager.chars;i=g.length;var b,w=this.mHelper,O="",G=this.data.singleShape,T=0,R=0,D=!0,M=a.tr*.001*a.finalSize;if(G&&!A&&!a.sz){var V=this.textContainer,N="start";switch(a.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",M);var C=this.buildTextContents(a.finalText);for(i=C.length,R=a.ps?a.ps[1]+a.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||xt("tspan"),b.textContent=C[e],b.setAttribute("x",0),b.setAttribute("y",R),b.style.display="inherit",V.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,R+=a.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:xt(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=xt("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&&(T=-M,R+=a.yOffset,R+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(a,w,g[e].line,T,R),T+=g[e].l||0,T+=M),A){S=this.globalData.fontManager.getCharData(a.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var F;if(S.t===1)F=new ua(S.data,this.globalData,this);else{var H=Cy;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,a.finalSize)),F=new Xt(H,this.globalData,this)}if(this.textSpans[e].glyph){var Y=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(Y.layerElement),Y.destroy()}this.textSpans[e].glyph=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("+a.finalSize/100+","+a.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},Jr.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},Jr.prototype.getValue=function(){var e,i=this.textSpans.length,a;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)a=this.textSpans[e].glyph,a&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},Jr.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,a=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=a[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 jd(e,i,a){this.initElement(e,i,a)}L([pa],jd),jd.prototype.createContent=function(){var e=xt("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,a){this.initFrame(),this.initBaseData(e,i,a),this.initFrame(),this.initTransform(e,i,a),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,ss,as,wi],Ni);function se(){}L([be],se),se.prototype.createNull=function(e){return new Ni(e,this.globalData,this)},se.prototype.createShape=function(e){return new Xt(e,this.globalData,this)},se.prototype.createText=function(e){return new Jr(e,this.globalData,this)},se.prototype.createImage=function(e){return new pa(e,this.globalData,this)},se.prototype.createSolid=function(e){return new jd(e,this.globalData,this)},se.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 a=xt("clipPath"),l=xt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=De();a.setAttribute("id",h),a.appendChild(l),this.layerElement.setAttribute("clip-path","url("+v()+"#"+h+")"),i.appendChild(a),this.layers=e.layers,this.elements=it(e.layers.length)},se.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},se.prototype.updateContainerSize=function(){},se.prototype.findIndexByInd=function(e){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===e)return i;return-1},se.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var a=this.createItem(this.layers[e]);if(i[e]=a,Sn()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,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(a);else{var h=i[l],c=h.getMatte(this.layers[e].tt);a.setMatte(c)}}}},se.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,a=this.elements.length;i<a;){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}}},se.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,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-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<a;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},se.prototype.appendElementInPos=function(e,i){var a=e.getBaseElement();if(a){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(a,h):this.layerElement.appendChild(a)}},se.prototype.hide=function(){this.layerElement.style.display="none"},se.prototype.show=function(){this.layerElement.style.display="block"};function ti(){}L([Ci,ss,as,wi,ha],ti),ti.prototype.initElement=function(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initTransform(e,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},ti.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 a,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=l-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},ti.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()},ti.prototype.setElements=function(e){this.elements=e},ti.prototype.getElements=function(){return this.elements},ti.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},ti.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function ua(e,i,a){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,a),this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}L([se,ti,ca],ua),ua.prototype.createComp=function(e){return new ua(e,this.globalData,this)};function qd(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=xt("svg");var a="";if(i&&i.title){var l=xt("title"),h=De();l.setAttribute("id",h),l.textContent=i.title,this.svgElement.appendChild(l),a+=h}if(i&&i.description){var c=xt("desc"),g=De();c.setAttribute("id",g),c.textContent=i.description,this.svgElement.appendChild(c),a+=" "+g}a&&this.svgElement.setAttribute("aria-labelledby",a);var A=xt("defs");this.svgElement.appendChild(A);var b=xt("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([se],qd),qd.prototype.createComp=function(e){return new ua(e,this.globalData,this)},Fb("svg",qd),Ii.registerModifier("tm",Ar),Ii.registerModifier("pb",ia),Ii.registerModifier("rp",Pr),Ii.registerModifier("rd",oa),Ii.registerModifier("zz",aa),Ii.registerModifier("op",na),Pt})});var Hn=globalThis,Gn=Hn.ShadowRoot&&(Hn.ShadyCSS===void 0||Hn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zd=Symbol(),Tm=new WeakMap,fa=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==Zd)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(Gn&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Tm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Tm.set(t,o))}return o}toString(){return this.cssText}},xm=n=>new fa(typeof n=="string"?n:n+"",void 0,Zd),U=(n,...o)=>{let t=n.length===1?n[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)+n[d+1],n[0]);return new fa(t,n,Zd)},Qd=(n,o)=>{if(Gn)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Hn.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,n.appendChild(r)}},Kn=Gn?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return xm(t)})(n):n;var{is:Py,defineProperty:Dy,getOwnPropertyDescriptor:Fy,getOwnPropertyNames:$y,getOwnPropertySymbols:zy,getPrototypeOf:Vy}=Object,Pi=globalThis,Am=Pi.trustedTypes,By=Am?Am.emptyScript:"",Jd=Pi.reactiveElementPolyfillSupport,va=(n,o)=>n,ga={toAttribute(n,o){switch(o){case Boolean:n=n?By:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Yn=(n,o)=>!Py(n,o),Sm={attribute:!0,type:String,converter:ga,reflect:!1,hasChanged:Yn},Im,_m;(Im=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(_m=Pi.litPropertyMetadata)!=null||(Pi.litPropertyMetadata=new WeakMap);var si=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=Sm){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&&Dy(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var m;let{get:s,set:d}=(m=Fy(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 x=s==null?void 0:s.call(this);d.call(this,v),this.requestUpdate(o,x,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Sm}static _$Ei(){if(this.hasOwnProperty(va("elementProperties")))return;let o=Vy(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(va("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(va("properties"))){let t=this.properties,r=[...$y(t),...zy(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(Kn(s))}else o!==void 0&&t.push(Kn(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 Qd(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:ga).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:ga;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:Yn)(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){}},Cm;si.elementStyles=[],si.shadowRootOptions={mode:"open"},si[va("elementProperties")]=new Map,si[va("finalized")]=new Map,Jd==null||Jd({ReactiveElement:si}),((Cm=Pi.reactiveElementVersions)!=null?Cm:Pi.reactiveElementVersions=[]).push("2.0.4");var ya=globalThis,Wn=ya.trustedTypes,wm=Wn?Wn.createPolicy("lit-html",{createHTML:n=>n}):void 0,rc="$lit$",ai=`lit$${Math.random().toFixed(9).slice(2)}$`,ic="?"+ai,Uy=`<${ic}>`,go=document,Ea=()=>go.createComment(""),Ta=n=>n===null||typeof n!="object"&&typeof n!="function",oc=Array.isArray,Pm=n=>oc(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",tc=`[
|
|
3
|
+
\f\r]`,ba=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,km=/-->/g,Nm=/>/g,fo=RegExp(`>|${tc}(?:([^\\s"'>=/]+)(${tc}*=${tc}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Lm=/'/g,Om=/"/g,Dm=/^(?:script|style|textarea|title)$/i,sc=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),_=sc(1),g0=sc(2),b0=sc(3),ye=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Rm=new WeakMap,vo=go.createTreeWalker(go,129);function Fm(n,o){if(!oc(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return wm!==void 0?wm.createHTML(o):o}var $m=(n,o)=>{let t=n.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",m=ba;for(let v=0;v<t;v++){let x=n[v],L,B,q=-1,Q=0;for(;Q<x.length&&(m.lastIndex=Q,B=m.exec(x),B!==null);)Q=m.lastIndex,m===ba?B[1]==="!--"?m=km:B[1]!==void 0?m=Nm:B[2]!==void 0?(Dm.test(B[2])&&(s=RegExp("</"+B[2],"g")),m=fo):B[3]!==void 0&&(m=fo):m===fo?B[0]===">"?(m=s!=null?s:ba,q=-1):B[1]===void 0?q=-2:(q=m.lastIndex-B[2].length,L=B[1],m=B[3]===void 0?fo:B[3]==='"'?Om:Lm):m===Om||m===Lm?m=fo:m===km||m===Nm?m=ba:(m=fo,s=void 0);let X=m===fo&&n[v+1].startsWith("/>")?" ":"";d+=m===ba?x+Uy:q>=0?(r.push(L),x.slice(0,q)+rc+x.slice(q)+ai+X):x+ai+(q===-2?v:X)}return[Fm(n,d+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},xa=class n{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,m=0,v=o.length-1,x=this.parts,[L,B]=$m(o,t);if(this.el=n.createElement(L,r),vo.currentNode=this.el.content,t===2||t===3){let q=this.el.content.firstChild;q.replaceWith(...q.childNodes)}for(;(s=vo.nextNode())!==null&&x.length<v;){if(s.nodeType===1){if(s.hasAttributes())for(let q of s.getAttributeNames())if(q.endsWith(rc)){let Q=B[m++],X=s.getAttribute(q).split(ai),it=/([.?@])?(.*)/.exec(Q);x.push({type:1,index:d,name:it[2],strings:X,ctor:it[1]==="."?qn:it[1]==="?"?Xn:it[1]==="@"?Zn:yo}),s.removeAttribute(q)}else q.startsWith(ai)&&(x.push({type:6,index:d}),s.removeAttribute(q));if(Dm.test(s.tagName)){let q=s.textContent.split(ai),Q=q.length-1;if(Q>0){s.textContent=Wn?Wn.emptyScript:"";for(let X=0;X<Q;X++)s.append(q[X],Ea()),vo.nextNode(),x.push({type:2,index:++d});s.append(q[Q],Ea())}}}else if(s.nodeType===8)if(s.data===ic)x.push({type:2,index:d});else{let q=-1;for(;(q=s.data.indexOf(ai,q+1))!==-1;)x.push({type:7,index:d}),q+=ai.length-1}d++}}static createElement(o,t){let r=go.createElement("template");return r.innerHTML=o,r}};function bo(n,o,t=n,r){var m,v,x;if(o===ye)return o;let s=r!==void 0?(m=t.o)==null?void 0:m[r]:t.l,d=Ta(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(n),s._$AT(n,t,r)),r!==void 0?((x=t.o)!=null?x:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=bo(n,s._$AS(n,o.values),s,r)),o}var jn=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:go).importNode(t,!0);vo.currentNode=s;let d=vo.nextNode(),m=0,v=0,x=r[0];for(;x!==void 0;){if(m===x.index){let B;x.type===2?B=new ls(d,d.nextSibling,this,o):x.type===1?B=new x.ctor(d,x.name,x.strings,this,o):x.type===6&&(B=new Qn(d,this,o)),this._$AV.push(B),x=r[++v]}m!==(x==null?void 0:x.index)&&(d=vo.nextNode(),m++)}return vo.currentNode=go,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++}},ls=class n{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=bo(this,o,t),Ta(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==ye&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Pm(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&&Ta(this._$AH)?this._$AA.nextSibling.data=o:this.T(go.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=xa.createElement(Fm(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 jn(s,this),v=m.u(this.options);m.p(t),this.T(v),this._$AH=m}}_$AC(o){let t=Rm.get(o.strings);return t===void 0&&Rm.set(o.strings,t=new xa(o)),t}k(o){oc(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 n(this.O(Ea()),this.O(Ea()),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))}},yo=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=bo(this,o,t,0),m=!Ta(o)||o!==this._$AH&&o!==ye,m&&(this._$AH=o);else{let v=o,x,L;for(o=d[0],x=0;x<d.length-1;x++)L=bo(this,v[r+x],t,x),L===ye&&(L=this._$AH[x]),m||(m=!Ta(L)||L!==this._$AH[x]),L===W?o=W:o!==W&&(o+=(L!=null?L:"")+d[x+1]),this._$AH[x]=L}m&&!s&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},qn=class extends yo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Xn=class extends yo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Zn=class extends yo{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var m;if((o=(m=bo(this,o,t,0))!=null?m:W)===ye)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)}},Qn=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){bo(this,o)}},zm={M:rc,P:ai,A:ic,C:1,L:$m,R:jn,D:Pm,V:bo,I:ls,H:yo,N:Xn,U:Zn,B:qn,F:Qn},ec=ya.litHtmlPolyfillSupport,Mm;ec==null||ec(xa,ls),((Mm=ya.litHtmlVersions)!=null?Mm:ya.litHtmlVersions=[]).push("3.2.0");var Vm=(n,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 ls(o.insertBefore(Ea(),v),v,void 0,t!=null?t:{})}return s._$AI(n),s};var Di=class extends si{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=Vm(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 ye}},Bm;Di._$litElement$=!0,Di.finalized=!0,(Bm=globalThis.litElementHydrateSupport)==null||Bm.call(globalThis,{LitElement:Di});var ac=globalThis.litElementPolyfillSupport;ac==null||ac({LitElement:Di});var Um;((Um=globalThis.litElementVersions)!=null?Um:globalThis.litElementVersions=[]).push("4.1.0");var Hy={attribute:!0,type:String,converter:ga,reflect:!1,hasChanged:Yn},Gy=(n=Hy,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,n),r==="accessor"){let{name:m}=t;return{set(v){let x=o.get.call(this);o.set.call(this,v),this.requestUpdate(m,x,n)},init(v){return v!==void 0&&this.P(m,void 0,n),v}}}if(r==="setter"){let{name:m}=t;return function(v){let x=this[m];o.call(this,v),this.requestUpdate(m,x,n)}}throw Error("Unsupported decorator location: "+r)};function u(n){return(o,t)=>typeof t=="object"?Gy(n,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})(n,o,t)}function ut(n){return u({...n,state:!0,attribute:!1})}function Hm(n){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,n)}}var $r=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function Ee(n,o){return(t,r,s)=>{let d=m=>{var v,x;return(x=(v=m.renderRoot)==null?void 0:v.querySelector(n))!=null?x:null};if(o){let{get:m,set:v}=typeof r=="object"?t:s!=null?s:(()=>{let x=Symbol();return{get(){return this[x]},set(L){this[x]=L}}})();return $r(t,r,{get(){let x=m.call(this);return x===void 0&&(x=d(this),(x!==null||this.hasUpdated)&&v.call(this,x)),x}})}return $r(t,r,{get(){return d(this)}})}}var nc;function Gm(n){return(o,t)=>$r(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:nc!=null?nc:nc=document.createDocumentFragment()).querySelectorAll(n)}})}function Dt(n){return(o,t)=>{let{slot:r,selector:s}=n!=null?n:{},d="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var x,L;let m=(x=this.renderRoot)==null?void 0:x.querySelector(d),v=(L=m==null?void 0:m.assignedElements(n))!=null?L:[];return s===void 0?v:v.filter(B=>B.matches(s))}})}}function Km(n){return(o,t)=>{let{slot:r}=n!=null?n:{},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(n))!=null?v:[]}})}}var Ky={PREFIX:"mdc",SEPARATOR:"-"},Yy={NAMESPACE:Ky},lc=Yy;var Wy=n=>[lc.NAMESPACE.PREFIX,n].join(lc.NAMESPACE.SEPARATOR),z={constructTagName:Wy};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 Ym=z.constructTagName("buttonsimple"),Eo={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},ds={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Aa={SIZE:Eo[32],TYPE:ds.BUTTON,ROLE:J.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var ni=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Sa={40:40,32:32,28:28,24:24},hr={64:64,52:52,20:20,...Sa},To={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},cs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Be={VARIANT:$t.PRIMARY,SIZE:Sa[32],COLOR:To.DEFAULT,TYPE_INTERNAL:cs.ICON,TYPE:ds.BUTTON,INVERTED:!1};var Jn=n=>{class o extends n{constructor(){super(...arguments);this.variant=Be.VARIANT;this.color=Be.COLOR;this.typeInternal=Be.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values($t).includes(s)?s:Be.VARIANT)}setColor(s){!Object.values(To).includes(s)||this.variant===$t.TERTIARY?this.setAttribute("color",`${Be.COLOR}`):this.setAttribute("color",s)}setSize(s){let m=this.typeInternal===cs.ICON?Object.values(hr).includes(s)&&!(s===hr[20]&&this.variant!==$t.TERTIARY):Object.values(Sa).includes(s);this.setAttribute("size",m?`${s}`:`${Be.SIZE}`)}inferButtonType(){var L,B,q,Q,X,it;let s=(B=(L=this.shadowRoot)==null?void 0:L.querySelector("slot:not([name])"))==null?void 0:B.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,x=this.postfixIcon||v&&v>0;s&&(m||x)?(this.typeInternal=cs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(m||x)?(this.typeInternal=cs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=cs.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 Wm=U`
|
|
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
|
|
14
|
+
`;var tl=class extends Di{static register(o){customElements.get(o)||customElements.define(o,this)}};tl.styles=[Wm];var jm=tl;var j=jm;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 hs=class{constructor(o,t,r,s){var d;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(m,v)=>{this.unsubscribe&&(this.unsubscribe!==v&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=m,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(m,v)),this.unsubscribe=v},this.host=o,t.context!==void 0){let m=t;this.context=m.context,this.callback=m.callback,this.subscribe=(d=m.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 el=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 dc=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},ps=class extends el{constructor(o,t,r){var s,d;super(t.context!==void 0?t.initialValue:r),this.onContextRequest=m=>{let v=m.composedPath()[0];m.context===this.context&&v!==this.host&&(m.stopPropagation(),this.addCallback(m.callback,v,m.subscribe))},this.onProviderRequest=m=>{let v=m.composedPath()[0];if(m.context!==this.context||v===this.host)return;let x=new Set;for(let[L,{consumerHost:B}]of this.subscriptions)x.has(L)||(x.add(L),B.dispatchEvent(new Fi(this.context,L,!0)));m.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 dc(this.context))}};var jy=U`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`,qm=jy;var rl=class extends j{constructor({context:o,initialValue:t}){super(),this.context=new ps(this,{context:o,initialValue:t})}render(){return this.updateContext(),_`<slot></slot>`}};rl.styles=[...j.styles,qm];var Xm=rl;var Te=Xm;var xe=n=>{class o extends n{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 p([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Ut=n=>{class o extends n{}return p([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var zr=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return p([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"},qy={[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=n=>{class o extends n{getActionForKeyEvent(r,s=!1){let m=qy[r.key];if(s){if(!(window.getComputedStyle(this).direction==="rtl"))return m;if(m===Z.LEFT)return Z.RIGHT;if(m===Z.RIGHT)return Z.LEFT}return m}}return o};var yt=U`
|
|
19
19
|
:host {
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
justify-content: center;
|
|
24
24
|
width: fit-content;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
`,$i=U`
|
|
27
27
|
:host {
|
|
28
28
|
--mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
|
|
29
29
|
--mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
|
37
37
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,zi=U`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
|
-
`,St=(n=!1)=>n?[
|
|
42
|
+
`,St=(n=!1)=>n?[$i,U`
|
|
43
43
|
.mdc-focus-ring:focus-visible {
|
|
44
44
|
outline: none;
|
|
45
45
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
/* Add focus ring to parent when child is focused. The parent element must have class name mdc-focus-ring */
|
|
50
50
|
.mdc-focus-ring:focus-within {
|
|
51
51
|
position: relative;
|
|
52
|
-
box-shadow: ${
|
|
52
|
+
box-shadow: ${zi};
|
|
53
53
|
}
|
|
54
54
|
/* Remove focus ring from parent when children has its own focus ring.
|
|
55
55
|
The child element must have class name own-focus-ring */
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
`]:[
|
|
66
|
+
`]:[$i,U`
|
|
67
67
|
:host([disabled]:focus) {
|
|
68
68
|
box-shadow: none;
|
|
69
69
|
}
|
|
70
70
|
:host(:focus-visible) {
|
|
71
71
|
outline: none;
|
|
72
72
|
position: relative;
|
|
73
|
-
box-shadow: ${
|
|
73
|
+
box-shadow: ${zi};
|
|
74
74
|
}
|
|
75
75
|
/* High Contrast Mode */
|
|
76
76
|
@media (forced-colors: active) {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`];var
|
|
81
|
+
`];var Xy=[yt,U`
|
|
82
82
|
:host {
|
|
83
83
|
--mdc-button-height: unset;
|
|
84
84
|
--mdc-button-background: transparent;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
:host([size='20']) {
|
|
132
132
|
--mdc-button-height: 1.25rem;
|
|
133
133
|
}
|
|
134
|
-
`,...St()],
|
|
134
|
+
`,...St()],Zm=Xy;var Je=class extends kt(xe(zr(Ut(j)))){constructor(){super();this.size=Aa.SIZE;this.role=Aa.ROLE;this.type=Aa.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||Aa.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===ds.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===ds.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,...Zm],p([u({type:Boolean,reflect:!0})],Je.prototype,"active",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Je.prototype,"softDisabled",2),p([u({type:Number,reflect:!0})],Je.prototype,"size",2),p([u({type:String,reflect:!0})],Je.prototype,"role",2),p([u({type:String,reflect:!0})],Je.prototype,"ariaStateKey",2),p([u({reflect:!0})],Je.prototype,"type",2),p([u({type:String,reflect:!0})],Je.prototype,"name",2),p([u({type:String,reflect:!0})],Je.prototype,"value",2);var ae=Je;var Zy=U`
|
|
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
|
-
`,
|
|
419
|
+
`,Qm=[Zy];var Ao=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var li=class extends Jn(ae){constructor(){super(...arguments);this.size=Be.SIZE;this.inverted=Be.INVERTED;this.role=J.BUTTON}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Ao(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Ao(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
|
-
`}};
|
|
435
|
+
`}};li.styles=[...ae.styles,...Qm],p([u({type:Number})],li.prototype,"size",2),p([u({type:Boolean,reflect:!0})],li.prototype,"inverted",2),p([u({type:String,reflect:!0})],li.prototype,"role",2),p([ut()],li.prototype,"prefixFilledIconName",2),p([ut()],li.prototype,"postfixFilledIconName",2);var So=li;var Qy=n=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:d}=n,m=(s||d)&&(v=>{d&&d.forEach(x=>{o.requestUpdate(x)}),s==null||s(v)});return new hs(o,{context:t,callback:m,subscribe:r!=null?r:!0})},Jy={consume:Qy},Ae=Jy;var il=z.constructTagName("iconprovider"),Jm=["svg"],tu=["em","rem","px","%"],tE={px:16,em:1,rem:1,"%":100},di={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:tE.em,ICON_SET:"momentum-icons"};var ol=class{};ol.context=il;var sl=ol;var Vr=class extends Te{constructor(){super({context:sl.context,initialValue:new sl});this.iconSet=di.ICON_SET;this.fileExtension=di.FILE_EXTENSION;this.lengthUnit=di.LENGTH_UNIT;this.size=di.SIZE}static get Context(){return sl.context}updateValuesInContext(){this.fileExtension&&Jm.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&&tu.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())}};p([u({type:String,attribute:"icon-set",reflect:!0})],Vr.prototype,"iconSet",2),p([u({type:String})],Vr.prototype,"url",2),p([u({type:String,attribute:"file-extension",reflect:!0})],Vr.prototype,"fileExtension",2),p([u({type:String,attribute:"length-unit",reflect:!0})],Vr.prototype,"lengthUnit",2),p([u({type:Number,reflect:!0})],Vr.prototype,"size",2),p([u({type:String,attribute:"cache-strategy"})],Vr.prototype,"cacheStrategy",2),p([u({type:String,attribute:"cache-name"})],Vr.prototype,"cacheName",2);var Ia=Vr;var eE=[yt,U`
|
|
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
|
-
`,...St()],
|
|
450
|
+
`,...St()],eu=eE;var _a={},ru=async n=>(_a[n]===void 0&&(_a[n]=new Map),{async set(o,t){_a[n].set(o.url,await t.text())},async get(o){return _a[n].get(o.url)},async delete(o){_a[n].delete(o.url)}}),iu=async n=>{let o=await caches.open(n);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)}}},al=async(n,o)=>o==="in-memory-cache"?ru(n):iu(n);var ou=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),su=async({url:n,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let m=d(),v=new Request(`${n}/${o}.${t}`,{signal:m});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?ou(v).then(x=>x.text()):al(s,r).then(x=>x.get(v).then(L=>L||ou(v.clone()).then(B=>{var q;return B.status<400&&B.headers.has("content-type")?(q=x.set)==null?void 0:q.call(x,v,B.clone()).then(()=>B.text()):B.text()})).catch(L=>{throw new Error(`Error in caching the Icon ${o}, ${L}`)}))};var au=z.constructTagName("icon"),cc={NAME:void 0,SIZE:1};var tr=class extends j{constructor(){super();this.name=cc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ae.consume({host:this,context:Ia.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:m,cacheStrategy:v}=this.iconProviderContext.value;if(m==="custom-icons"&&s&&r&&this.name){let x=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return su({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:v,renewSignal:x}).then(L=>{let B=this.prepareIconElement(L);this.handleIconLoadedSuccess(B)}).catch(L=>{this.handleIconLoadedFailure(L)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(x=>{this.handleIconLoadedSuccess(x.default())}).catch(x=>{this.handleIconLoadedFailure(x)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:cc.SIZE}updated(t){var r,s,d,m;super.updated(t),t.has("name")&&this.getIconData().catch(v=>{v.name!=="AbortError"&&this.onerror&&this.onerror(v)}),(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=(m=this.iconProviderContext.value)==null?void 0:m.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.iconData} `}};tr.styles=[...j.styles,...eu],p([ut()],tr.prototype,"iconData",2),p([ut()],tr.prototype,"lengthUnitFromContext",2),p([ut()],tr.prototype,"sizeFromContext",2),p([u({type:String,reflect:!0})],tr.prototype,"name",2),p([u({type:Number})],tr.prototype,"size",2),p([u({type:String,attribute:"length-unit"})],tr.prototype,"lengthUnit",2),p([u({type:String,attribute:"aria-label"})],tr.prototype,"ariaLabel",2),p([u({type:String,attribute:"aria-labelledby"})],tr.prototype,"ariaLabelledby",2),p([ut()],tr.prototype,"abortController",2);var hc=tr;hc.register(au);var rE=hc;So.register(ni);var iE=So;var nu=U`
|
|
451
451
|
:host::part(text) {
|
|
452
452
|
font-size: unset;
|
|
453
453
|
font-weight: unset;
|
|
@@ -690,14 +690,14 @@
|
|
|
690
690
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
|
691
691
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
|
692
692
|
}
|
|
693
|
-
`;var
|
|
693
|
+
`;var oE=[U`
|
|
694
694
|
:host {
|
|
695
695
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
|
696
696
|
|
|
697
697
|
display: block;
|
|
698
698
|
font-family: var(--mdc-text-font-family);
|
|
699
699
|
}
|
|
700
|
-
`,
|
|
700
|
+
`,nu],lu=oE;var Ca=z.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},mt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Se={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:mt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var ms=class extends j{constructor(){super(...arguments);this.type=Se.TYPE;this.tagname=Se.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case mt.H1:return _`<h1 part=${Se.CSS_PART_TEXT}><slot></slot></h1>`;case mt.H2:return _`<h2 part=${Se.CSS_PART_TEXT}><slot></slot></h2>`;case mt.H3:return _`<h3 part=${Se.CSS_PART_TEXT}><slot></slot></h3>`;case mt.H4:return _`<h4 part=${Se.CSS_PART_TEXT}><slot></slot></h4>`;case mt.H5:return _`<h5 part=${Se.CSS_PART_TEXT}><slot></slot></h5>`;case mt.H6:return _`<h6 part=${Se.CSS_PART_TEXT}><slot></slot></h6>`;case mt.DIV:return _`<div part=${Se.CSS_PART_TEXT}><slot></slot></div>`;case mt.SPAN:return _`<span part=${Se.CSS_PART_TEXT}><slot></slot></span>`;case mt.SMALL:return _`<small part=${Se.CSS_PART_TEXT}><slot></slot></small>`;case mt.P:default:return _`<p part=${Se.CSS_PART_TEXT}><slot></slot></p>`}}};ms.styles=[...j.styles,...lu],p([u({attribute:"type",reflect:!0,type:String})],ms.prototype,"type",2),p([u({attribute:"tagname",reflect:!0,type:String})],ms.prototype,"tagname",2);var pc=ms;pc.register(Ca);var sE=pc;var tt=n=>n!=null?n:W;var me=[];for(let n=0;n<256;++n)me.push((n+256).toString(16).slice(1));function du(n,o=0){return(me[n[o+0]]+me[n[o+1]]+me[n[o+2]]+me[n[o+3]]+"-"+me[n[o+4]]+me[n[o+5]]+"-"+me[n[o+6]]+me[n[o+7]]+"-"+me[n[o+8]]+me[n[o+9]]+"-"+me[n[o+10]]+me[n[o+11]]+me[n[o+12]]+me[n[o+13]]+me[n[o+14]]+me[n[o+15]]).toLowerCase()}var mc,aE=new Uint8Array(16);function uc(){if(!mc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mc=crypto.getRandomValues.bind(crypto)}return mc(aE)}var nE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),fc={randomUUID:nE};function lE(n,o,t){var s,d,m;if(fc.randomUUID&&!o&&!n)return fc.randomUUID();n=n||{};let r=(m=(d=n.random)!=null?d:(s=n.rng)==null?void 0:s.call(n))!=null?m:uc();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 v=0;v<16;++v)o[t+v]=r[v];return o}return du(r)}var Ie=lE;var cu=z.constructTagName("accordiongroup"),vc={SMALL:"small",LARGE:"large"},dE={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},wa={SIZE:vc.SMALL,VARIANT:dE.STACKED};var nl=z.constructTagName("accordionbutton"),ka={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},cE={DEFAULT:"default",BORDERLESS:"borderless"},Vi={EXPANDED:!1,SIZE:vc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:cE.DEFAULT,ICON_NAME:ka.ARROW_UP};var hE=U`
|
|
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,13 +814,13 @@
|
|
|
814
814
|
:host([variant='default']:not([expanded]))::part(header-section) {
|
|
815
815
|
border-bottom: none;
|
|
816
816
|
}
|
|
817
|
-
`,
|
|
817
|
+
`,hu=[hE,...St(!0)];var Br=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=${mt.SPAN}
|
|
821
821
|
part="leading-header-text"
|
|
822
822
|
>${this.headerText}</mdc-text
|
|
823
|
-
>`:
|
|
823
|
+
>`:W}renderHeader(){return _`
|
|
824
824
|
<div
|
|
825
825
|
part="header-section"
|
|
826
826
|
class="mdc-focus-ring"
|
|
@@ -842,14 +842,14 @@
|
|
|
842
842
|
</div>
|
|
843
843
|
</div>
|
|
844
844
|
</div>
|
|
845
|
-
`}getArrowIconName(){return this.disabled?
|
|
845
|
+
`}getArrowIconName(){return this.disabled?ka.ARROW_DOWN:this.expanded?ka.ARROW_UP:ka.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>`:
|
|
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()} `}};Br.styles=[...j.styles,...hu],p([u({type:String,reflect:!0})],Br.prototype,"size",2),p([u({type:String,reflect:!0})],Br.prototype,"variant",2),p([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Br.prototype,"dataAriaLevel",2),p([u({type:Boolean,reflect:!0})],Br.prototype,"expanded",2),p([u({type:String,reflect:!0,attribute:"header-text"})],Br.prototype,"headerText",2),p([u({type:String,attribute:"prefix-icon"})],Br.prototype,"prefixIcon",2);var us=Br;var pE=U`
|
|
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
|
-
`,
|
|
866
|
+
`,pu=[pE];var Bi=class extends us{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">
|
|
868
868
|
<div part="leading-header">
|
|
869
869
|
${this.renderIcon(this.prefixIcon)}
|
|
@@ -880,12 +880,12 @@
|
|
|
880
880
|
aria-expanded="${this.expanded}"
|
|
881
881
|
aria-label="${tt(this.expanded?this.closeButtonAriaLabel:this.openButtonAriaLabel)}"
|
|
882
882
|
prefix-icon="${this.getArrowIconName()}"
|
|
883
|
-
variant="${
|
|
884
|
-
size="${
|
|
883
|
+
variant="${$t.TERTIARY}"
|
|
884
|
+
size="${hr[20]}"
|
|
885
885
|
></mdc-button>
|
|
886
886
|
</div>
|
|
887
887
|
</div>
|
|
888
|
-
`}};
|
|
888
|
+
`}};Bi.styles=[...us.styles,...pu],p([Dt({slot:"leading-controls"})],Bi.prototype,"leadingControlsSlot",2),p([Dt({slot:"trailing-controls"})],Bi.prototype,"trailingControlsSlot",2),p([u({type:String,attribute:"open-button-aria-label",reflect:!0})],Bi.prototype,"openButtonAriaLabel",2),p([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Bi.prototype,"closeButtonAriaLabel",2);var gc=Bi;var ll=z.constructTagName("accordion");gc.register(ll);var mE=gc;var uE=U`
|
|
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
|
-
`,
|
|
932
|
+
`,mu=[uE,...St()];var ci=class extends j{constructor(){super();this.size=wa.SIZE;this.variant=wa.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=wa.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=wa.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return _` <slot></slot> `}};ci.styles=[...j.styles,...mu],p([u({type:String,reflect:!0})],ci.prototype,"size",2),p([u({type:String,reflect:!0})],ci.prototype,"variant",2),p([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],ci.prototype,"allowMultiple",2),p([Dt({selector:ll})],ci.prototype,"accordionItems",2),p([Dt({selector:nl})],ci.prototype,"accordionButtonItems",2);var bc=ci;bc.register(cu);var fE=bc;us.register(nl);var vE=us;var Zt=n=>{class o extends n{}return p([u({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var gE=U`
|
|
933
933
|
:host {
|
|
934
934
|
height: 1.5rem;
|
|
935
935
|
gap: 0.25rem;
|
|
@@ -1042,28 +1042,28 @@
|
|
|
1042
1042
|
--mdc-chip-icon-color: ButtonText;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
`,
|
|
1046
|
-
<mdc-icon part="icon" name="${this.iconName||
|
|
1047
|
-
${this.label?_`<mdc-text part="label" type="${
|
|
1045
|
+
`,uu=[yt,gE,...St()];var fu=z.constructTagName("alertchip"),Io={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},fs={VARIANT:Io.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Eo[24],ROLE:J.BUTTON};var vu=n=>({[Io.ERROR]:"error-legacy-badge-filled",[Io.INFORMATIONAL]:"info-badge-filled",[Io.NEUTRAL]:"dnd-presence-badge-filled",[Io.SUCCESS]:"check-circle-badge-filled",[Io.WARNING]:"warning-badge-filled"})[n];var vs=class extends Zt(ae){constructor(){super(...arguments);this.variant=fs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=fs.SIZE,this.role=fs.ROLE}render(){return _`
|
|
1046
|
+
<mdc-icon part="icon" name="${this.iconName||vu(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
|
1047
|
+
${this.label?_`<mdc-text part="label" type="${fs.TEXT_TYPE}" tagname="${fs.TAG_NAME}"
|
|
1048
1048
|
>${this.label}</mdc-text
|
|
1049
|
-
>`:
|
|
1050
|
-
`}};
|
|
1049
|
+
>`:W}
|
|
1050
|
+
`}};vs.styles=[...j.styles,...uu],p([u({type:String,reflect:!0})],vs.prototype,"variant",2),p([u({type:String})],vs.prototype,"label",2);var yc=vs;yc.register(fu);var bE=yc;var{I:yE}=zm;var dl=n=>n.strings===void 0,gu=()=>document.createComment(""),gs=(n,o,t)=>{var d;let r=n._$AA.parentNode,s=o===void 0?n._$AB:o._$AA;if(t===void 0){let m=r.insertBefore(gu(),s),v=r.insertBefore(gu(),s);t=new yE(m,v,n,n.options)}else{let m=t._$AB.nextSibling,v=t._$AM,x=v!==n;if(x){let L;(d=t._$AQ)==null||d.call(t,n),t._$AM=n,t._$AP!==void 0&&(L=n._$AU)!==v._$AU&&t._$AP(L)}if(m!==s||x){let L=t._$AA;for(;L!==m;){let B=L.nextSibling;r.insertBefore(L,s),L=B}}}return t},Ui=(n,o,t=n)=>(n._$AI(o,t),n),EE={},cl=(n,o=EE)=>n._$AH=o,bu=n=>n._$AH,hl=n=>{var r;(r=n._$AP)==null||r.call(n,!1,!0);let o=n._$AA,t=n._$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=n=>(...o)=>({_$litDirective$:n,values:o}),Ur=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 Na=(n,o)=>{var r;let t=n._$AN;if(t===void 0)return!1;for(let s of t)(r=s._$AO)==null||r.call(s,o,!1),Na(s,o);return!0},pl=n=>{let o,t;do{if((o=n._$AM)===void 0)break;t=o._$AN,t.delete(n),n=o}while((t==null?void 0:t.size)===0)},yu=n=>{for(let o;o=n._$AM;n=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(n))break;t.add(n),AE(o)}};function TE(n){this._$AN!==void 0?(pl(this),this._$AM=n,yu(this)):this._$AM=n}function xE(n,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++)Na(r[d],!1),pl(r[d]);else r!=null&&(Na(r,!1),pl(r));else Na(this,n)}var AE=n=>{var o,t;n.type==er.CHILD&&((o=n._$AP)!=null||(n._$AP=xE),(t=n._$AQ)!=null||(n._$AQ=TE))},ml=class extends Ur{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),yu(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&&(Na(this,o),pl(this))}setValue(o){if(dl(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 Eu=()=>new Tc,Tc=class{},Ec=new WeakMap,Tu=hi(class extends ml{render(n){return W}update(n,[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=n.options)==null?void 0:r.host,this.rt(this.ct=n.element)),W}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,r=Ec.get(t);r===void 0&&(r=new WeakMap,Ec.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=Ec.get((n=this.ht)!=null?n: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 Iu=My(xu());var xc={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 SE=[yt,U`
|
|
1051
1051
|
:host svg {
|
|
1052
1052
|
display: block;
|
|
1053
1053
|
}
|
|
1054
|
-
`],
|
|
1054
|
+
`],Au=SE;var Su=z.constructTagName("animation"),Ac={AUTO_PLAY:!0,LOOP:"true"};var pi=class extends j{constructor(){super(...arguments);this.loop=Ac.LOOP;this.autoplay=Ac.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Eu();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=Iu.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&&xc[this.name]?import(`@momentum-design/animations/dist/lottie${xc[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" ${Tu(this.containerRef)}></div>`}};pi.styles=[...j.styles,...Au],p([u({type:String,reflect:!0})],pi.prototype,"name",2),p([u({type:String,reflect:!0})],pi.prototype,"loop",2),p([u({type:Boolean,reflect:!0})],pi.prototype,"autoplay",2),p([u({type:String,attribute:"aria-label"})],pi.prototype,"ariaLabel",2),p([u({type:String,attribute:"aria-labelledby"})],pi.prototype,"ariaLabelledby",2);var Sc=pi;Sc.register(Su);var IE=Sc;var bs=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};bs.stack=new Set,bs.currentKeydownListener=null;var fl=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),bs.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),bs.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(s){return s.getClientRects().length===0}hasZeroDimensions(s){let{width:d,height:m}=s.getBoundingClientRect(),{offsetWidth:v,offsetHeight:x}=s;return v+x+m+d===0}isNotVisible(s){return this.hasZeroDimensions(s)||this.hasNoClientRects(s)}hasHiddenStyle(s){let{display:d,opacity:m,visibility:v}=s.style;return d==="none"||m==="0"||v==="hidden"||v==="collapse"}hasComputedHidden(s){let d=getComputedStyle(s);return d.visibility==="hidden"||d.height==="0"||d.display==="none"}isHidden(s){return s.hasAttribute("hidden")||s.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(s)||this.isNotVisible(s)||this.hasComputedHidden(s)}isDisabled(s){return s.disabled}isNotTabbable(s){return s.getAttribute("tabindex")==="-1"}isInteractiveElement(s){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(s.tagName)||s instanceof HTMLAnchorElement&&s.hasAttribute("href")||s instanceof HTMLInputElement&&s.type!=="hidden"||(s instanceof HTMLAudioElement||s instanceof HTMLVideoElement)&&s.hasAttribute("controls")||(s instanceof HTMLImageElement||s instanceof HTMLObjectElement)&&s.hasAttribute("usemap")||s.hasAttribute("tabindex")&&s.tabIndex>-1)}isFocusable(s){return this.isHidden(s)||this.isNotTabbable(s)||this.isDisabled(s)?!1:this.isInteractiveElement(s)}findFocusable(s,d=new Set){s instanceof HTMLElement&&this.isFocusable(s)&&d.add(s);let m=[];return s.children.length?m=Array.from(s.children):s instanceof HTMLElement&&s.shadowRoot&&(m=Array.from(s.shadowRoot.children)),m.forEach(v=>{let x=v;this.isFocusable(x)&&d.add(x),x.shadowRoot?this.findFocusable(x.shadowRoot,d):x.tagName==="SLOT"?x.assignedElements({flatten:!0}).forEach(B=>{B instanceof HTMLElement&&this.findFocusable(B,d)}):this.findFocusable(x,d)}),[...d]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}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:m}=this.focusableElements;if(s===-1)return d>0?0:m-1;let v=s+d;return this.shouldFocusTrapWrap?(v<0&&(v=m-1),v>=m&&(v=0)):(v<0&&(v=0),v>=m&&(v=m-1)),v}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(),m=this.findElement(d);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let x=this.focusableElements[this.focusTrapIndex];x.tagName!=="IFRAME"&&x&&(s.preventDefault(),x.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return p([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var vl=n=>{class o extends n{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var gl=z.constructTagName("link"),bl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},yl={LARGE:1,MIDSIZE:.875,SMALL:.75},_u={LINK_SIZE:bl.LARGE};var Cu=z.constructTagName("card"),Ic={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},_E={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ne={VARIANT:Ic.BORDER,ORIENTATION:_E.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:gl,BUTTON:ni};var ys=n=>{class o extends n{updateFooterButtonColors(r){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(d=>{r===Ic.PROMOTIONAL?d.setAttribute("color",To.PROMOTIONAL):d.setAttribute("color",To.DEFAULT)})}handleFooterSlot(r,s){var m,v,x;let d=[];r===ne.LINK&&((m=this.footerLink)!=null&&m.length)?d=this.footerLink:r===ne.BUTTON&&s===$t.PRIMARY&&((v=this.footerButtonPrimary)!=null&&v.length)?d=this.footerButtonPrimary:r===ne.BUTTON&&s===$t.SECONDARY&&((x=this.footerButtonSecondary)!=null&&x.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
|
-
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(
|
|
1056
|
+
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(ne.LINK)}></slot>
|
|
1057
1057
|
<slot
|
|
1058
1058
|
name="footer-button-secondary"
|
|
1059
|
-
@slotchange=${()=>this.handleFooterSlot(
|
|
1059
|
+
@slotchange=${()=>this.handleFooterSlot(ne.BUTTON,$t.SECONDARY)}
|
|
1060
1060
|
></slot>
|
|
1061
1061
|
<slot
|
|
1062
1062
|
name="footer-button-primary"
|
|
1063
|
-
@slotchange=${()=>this.handleFooterSlot(
|
|
1063
|
+
@slotchange=${()=>this.handleFooterSlot(ne.BUTTON,$t.PRIMARY)}
|
|
1064
1064
|
></slot>
|
|
1065
1065
|
</div>
|
|
1066
|
-
</slot>`}}return p([
|
|
1066
|
+
</slot>`}}return p([Dt({slot:"footer-link"})],o.prototype,"footerLink",2),p([Dt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),p([Dt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var El=n=>{class o extends n{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null}createBackdrop(s){let d=document.createElement("div");d.classList.add(`${s}-backdrop`);let m=document.createElement("style");m.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-2};
|
|
1075
1075
|
}
|
|
1076
|
-
`,d.appendChild(m);let x=document.getElementById(this.backdropAppendTo)||this.parentElement;x==null||x.appendChild(d),this.backdropElement=d}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex-1}`,["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)}}return o};var
|
|
1076
|
+
`,d.appendChild(m);let x=document.getElementById(this.backdropAppendTo)||this.parentElement;x==null||x.appendChild(d),this.backdropElement=d}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex-1}`,["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)}}return o};var Tl=z.constructTagName("responsivesettingsprovider"),_r={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},wu=["float","dialog"],ku=["unknown","mobile","desktop","tablet"];var xl=class{constructor(o={}){this.media=_r.MEDIA;this.forceFullscreenDialog=_r.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=_r.POPOVER_POSITIONING;Object.assign(this,o)}};xl.context=Tl;var Al=xl;var Es=class extends Te{constructor(){super({context:Al.context,initialValue:new Al({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 Al.context}set popoverPositioning(t){wu.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){ku.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())}};p([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Es.prototype,"forceFullscreenDialog",2),p([u({type:String,attribute:"popover-positioning",reflect:!0})],Es.prototype,"popoverPositioning",1),p([u({type:String,attribute:"media",reflect:!0})],Es.prototype,"media",1);var _c=Es;_c.register(Tl);var Cc=_c;var Nu=z.constructTagName("dialog"),wc={DEFAULT:"default",PROMOTIONAL:"promotional"},rr={VISIBLE:!1,Z_INDEX:1e3,ROLE:J.DIALOG,SIZE:"small",HEADER_TAG_NAME:mt.H2,DESCRIPTION_TAG_NAME:mt.P,CANCEL_ICON:"cancel-bold",VARIANT:wc.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var uN=[J.DIALOG,J.ALERTDIALOG];var Hi=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 CE=U`
|
|
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
|
-
`,
|
|
1227
|
+
`,Lu=[CE];var Gt=class extends El(vl(fl(ys(j)))){constructor(){super(...arguments);this.responsiveSettingsContext=Ae.consume({host:this,context:Cc.Context,subscribe:!0,syncProperties:["size"]});this.id="";this.visible=rr.VISIBLE;this.zIndex=rr.Z_INDEX;this.internalSize=rr.SIZE;this.variant=rr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=rr.HEADER_TAG_NAME;this.descriptionTagName=rr.DESCRIPTION_TAG_NAME;this.role=rr.ROLE;this.disableAriaHasPopup=rr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=rr.FOCUS_TRAP;this.hideBackdrop=rr.HIDE_BACKDROP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(t.preventDefault(),t.stopPropagation(),this.closeDialog())}}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(),Hi.onDestroyedDialog(this)}applyZIndex(){var t;this.style.setProperty("z-index",`${this.zIndex}`),(t=this.backdropElement)==null||t.style.setProperty("z-index",`${this.zIndex-1}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Hi.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=rr.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(){Hi.onCloseDialog(this,!1)}async isOpenUpdated(t,r){var s,d,m,v,x;t!==r&&(r&&!t?(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),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),Hi.onShowDialog(this)):!r&&t&&(this.removeBackdrop(),(v=this.triggerElement)==null||v.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(x=this.deactivateFocusTrap)==null||x.call(this),this.focusBackToTrigger(),Hi.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
|
|
@@ -1241,21 +1241,21 @@
|
|
|
1241
1241
|
type="${ot.BODY_MIDSIZE_REGULAR}"
|
|
1242
1242
|
>
|
|
1243
1243
|
${this.descriptionText}
|
|
1244
|
-
</mdc-text>`:
|
|
1245
|
-
</div>`:
|
|
1244
|
+
</mdc-text>`:W}
|
|
1245
|
+
</div>`:W}renderBody(){return _` <div part="body">
|
|
1246
1246
|
<slot name="dialog-body"></slot>
|
|
1247
1247
|
</div>`}render(){return _`
|
|
1248
1248
|
${this.renderHeader()}
|
|
1249
1249
|
<mdc-button
|
|
1250
1250
|
part="dialog-close-btn"
|
|
1251
|
-
prefix-icon="${
|
|
1252
|
-
variant="${
|
|
1253
|
-
size="${
|
|
1251
|
+
prefix-icon="${rr.CANCEL_ICON}"
|
|
1252
|
+
variant="${$t.TERTIARY}"
|
|
1253
|
+
size="${hr[20]}"
|
|
1254
1254
|
aria-label="${tt(this.closeButtonAriaLabel)||""}"
|
|
1255
1255
|
@click="${this.closeDialog}"
|
|
1256
1256
|
></mdc-button>
|
|
1257
1257
|
${this.renderBody()} ${this.renderFooter()}
|
|
1258
|
-
`}};
|
|
1258
|
+
`}};Gt.styles=[...j.styles,...Lu],p([u({type:String,reflect:!0})],Gt.prototype,"id",2),p([u({type:String,reflect:!0})],Gt.prototype,"triggerID",2),p([u({type:Boolean,reflect:!0})],Gt.prototype,"visible",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],Gt.prototype,"zIndex",2),p([u({type:String,reflect:!0})],Gt.prototype,"size",1),p([u({type:String,reflect:!0})],Gt.prototype,"variant",2),p([u({type:String,attribute:"close-button-aria-label"})],Gt.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-label"})],Gt.prototype,"ariaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Gt.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],Gt.prototype,"ariaDescribedby",2),p([u({type:String,reflect:!0,attribute:"aria-description"})],Gt.prototype,"ariaDescription",2),p([u({type:String,reflect:!0,attribute:"header-text"})],Gt.prototype,"headerText",2),p([u({type:String,reflect:!0,attribute:"description-text"})],Gt.prototype,"descriptionText",2),p([u({type:String,reflect:!0,attribute:"header-tag-name"})],Gt.prototype,"headerTagName",2),p([u({type:String,reflect:!0,attribute:"description-tag-name"})],Gt.prototype,"descriptionTagName",2),p([u({type:String,reflect:!0})],Gt.prototype,"role",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Gt.prototype,"disableAriaHasPopup",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Gt.prototype,"focusTrap",2),p([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],Gt.prototype,"hideBackdrop",2);var Ts=Gt;var wE=U`
|
|
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
|
-
`,
|
|
1307
|
+
`,Ou=[wE];var Ru=z.constructTagName("announcementdialog");var Mu={SIZE:"medium"};var xs=class extends Ts{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=Mu.SIZE}connectedCallback(){super.connectedCallback(),this.variant=wc.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
|
+
`}};xs.styles=[...Ts.styles,...Ou],p([u({type:String,reflect:!0})],xs.prototype,"illustration",2),p([u({type:String,reflect:!0})],xs.prototype,"size",1);var kc=xs;var Sl=z.constructTagName("illustrationprovider"),Pu=["svg"],Oa={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Il=class{};Il.context=Sl;var _l=Il;var Gi=class extends Te{constructor(){super({context:_l.context,initialValue:new _l});this.illustrationSet=Oa.ILLUSTRATION_SET;this.fileExtension=Oa.FILE_EXTENSION}static get Context(){return _l.context}updateValuesInContext(){this.fileExtension&&Pu.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Oa.FILE_EXTENSION,this.context.value.fileExtension=Oa.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())}};p([u({type:String,attribute:"illustration-set",reflect:!0})],Gi.prototype,"illustrationSet",2),p([u({type:String})],Gi.prototype,"url",2),p([u({type:String,attribute:"file-extension",reflect:!0})],Gi.prototype,"fileExtension",2),p([u({type:String,attribute:"cache-strategy"})],Gi.prototype,"cacheStrategy",2),p([u({type:String,attribute:"cache-name"})],Gi.prototype,"cacheName",2);var Ra=Gi;var kE=[yt,U`
|
|
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
|
-
`],
|
|
1335
|
+
`],Du=kE;var Fu=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),$u=async({url:n,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let m=d(),v=new Request(`${n}/${o}.${t}`,{signal:m});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?Fu(v).then(x=>x.text()):al(s,r).then(x=>x.get(v).then(L=>L||Fu(v.clone()).then(B=>{var q;return B.status<400&&B.headers.has("content-type")?(q=x.set)==null?void 0:q.call(x,v,B.clone()).then(()=>B.text()):B.text()})).catch(L=>{throw new Error(`Error in caching the Illustration ${o}, ${L}`)}))};var zu=z.constructTagName("illustration"),Vu={NAME:void 0};var mi=class extends j{constructor(){super();this.name=Vu.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ae.consume({host:this,context:Ra.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:m,cacheStrategy:v}=this.illustrationProviderContext.value;if(m==="custom-illustrations"&&s&&r&&this.name){let x=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return $u({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:v,renewSignal:x}).then(L=>{let B=this.prepareIllustrationElement(L);this.handleIllustrationLoadedSuccess(B)}).catch(L=>{this.handleIllustrationLoadedFailure(L)})}if(m==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(x=>{this.handleIllustrationLoadedSuccess(x.default())}).catch(x=>{this.handleIllustrationLoadedFailure(x)})}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,...Du],p([ut()],mi.prototype,"illustrationData",2),p([u({type:String,reflect:!0})],mi.prototype,"name",2),p([u({type:String,attribute:"aria-label"})],mi.prototype,"ariaLabel",2),p([u({type:String,attribute:"aria-labelledby"})],mi.prototype,"ariaLabelledby",2),p([ut()],mi.prototype,"abortController",2);var Nc=mi;Nc.register(zu);var NE=Nc;kc.register(Ru);var LE=kc;var OE=U`
|
|
1336
1336
|
:host {
|
|
1337
1337
|
--mdc-appheader-height: 4rem;
|
|
1338
1338
|
}
|
|
@@ -1366,7 +1366,7 @@
|
|
|
1366
1366
|
justify-content: flex-end;
|
|
1367
1367
|
flex: 1;
|
|
1368
1368
|
}
|
|
1369
|
-
`,
|
|
1369
|
+
`,Bu=[OE];var Cl=class extends j{render(){return _`
|
|
1370
1370
|
<header part="container">
|
|
1371
1371
|
<div part="leading-section">
|
|
1372
1372
|
<slot name="leading"></slot>
|
|
@@ -1376,7 +1376,7 @@
|
|
|
1376
1376
|
<slot name="trailing"></slot>
|
|
1377
1377
|
</div>
|
|
1378
1378
|
</header>
|
|
1379
|
-
`}};
|
|
1379
|
+
`}};Cl.styles=[...j.styles,...Bu];var Lc=Cl;var Uu=z.constructTagName("appheader");Lc.register(Uu);var RE=Lc;var Hu=z.constructTagName("avatar"),ke={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Oc=99,ME="user-regular",Bt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},As={TYPE:ke.PHOTO,SIZE:Bt[32],ICON_NAME:ME};var wl=n=>{class o extends n{constructor(){super(...arguments);this.size=As.SIZE;this.isTyping=!1}}return p([u({type:String})],o.prototype,"src",2),p([u({type:String})],o.prototype,"initials",2),p([u({type:String})],o.prototype,"presence",2),p([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),p([u({type:Number})],o.prototype,"counter",2),p([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var PE=[yt,U`
|
|
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,9 +1532,9 @@
|
|
|
1532
1532
|
outline: 0.125rem solid;
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
`],
|
|
1536
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
|
1537
|
-
`:
|
|
1535
|
+
`],Gu=PE;var Ku=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"},Qt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ss={TYPE:_e.ACTIVE,SIZE:Qt[32]};var Yu=n=>({[Bt[124]]:Qt[124],[Bt[88]]:Qt[88],[Bt[72]]:Qt[72],[Bt[64]]:Qt[64],[Bt[48]]:Qt[48],[Bt[32]]:Qt[32],[Bt[24]]:Qt[24]})[n]||Qt[32],Wu=n=>({[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})[n]||1.25,ju=n=>({[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})[n]||ot.BODY_MIDSIZE_MEDIUM;var Ma=class extends wl(Zt(j)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===ke.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?_`
|
|
1536
|
+
<mdc-presence part="presence" type="${this.presence}" size="${Yu(this.size)}"></mdc-presence>
|
|
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
|
|
1539
1539
|
part="photo"
|
|
1540
1540
|
src="${tt(this.src)}"
|
|
@@ -1543,12 +1543,12 @@
|
|
|
1543
1543
|
@load="${this.handleOnLoad}"
|
|
1544
1544
|
@error="${this.handleOnError}"
|
|
1545
1545
|
/>
|
|
1546
|
-
`}iconTemplate(){let t=this.iconName||
|
|
1547
|
-
<mdc-icon name="${tt(t)}" length-unit="rem" size="${
|
|
1548
|
-
`}textTemplate(t){return _` <mdc-text type="${
|
|
1546
|
+
`}iconTemplate(){let t=this.iconName||As.ICON_NAME;return _`
|
|
1547
|
+
<mdc-icon name="${tt(t)}" length-unit="rem" size="${Wu(this.size)}"></mdc-icon>
|
|
1548
|
+
`}textTemplate(t){return _` <mdc-text type="${ju(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Oc?`${Oc}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let r="";return t===ke.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),t===ke.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?ke.PHOTO:this.iconName?ke.ICON:this.initials?ke.TEXT:this.counter||this.counter===0?ke.COUNTER:ke.ICON}getTemplateBasedOnType(t){switch(t){case ke.PHOTO:return this.photoTemplate();case ke.TEXT:case ke.COUNTER:return this.generateTextContent(t);case ke.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===ke.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
|
+
`}};Ma.styles=[...j.styles,...Gu],p([ut()],Ma.prototype,"isPhotoLoaded",2);var Rc=Ma;var DE=[yt,U`
|
|
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,17 +1642,17 @@
|
|
|
1642
1642
|
:host::part(mdc-presence-icon__scheduled) {
|
|
1643
1643
|
color: var(--mdc-presence-scheduled-background-color);
|
|
1644
1644
|
}
|
|
1645
|
-
`],
|
|
1645
|
+
`],qu=DE;var Xu=n=>{switch(n){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"}},Zu=n=>({[Qt[124]]:2.25,[Qt[88]]:1.625,[Qt[72]]:1.3125,[Qt[64]]:1.1875,[Qt[48]]:.875,[Qt[32]]:.875,[Qt[24]]:.875})[n]||.875;var _o=class extends j{constructor(){super(...arguments);this.type=Ss.TYPE;this.size=Ss.SIZE;this.currentIconType=Ss.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Qt).includes(t)?`${t}`:Ss.SIZE.toString())}get icon(){let t=Xu(this.type);return t==="active-presence-small-filled"&&(this.type=Ss.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}"
|
|
1649
1649
|
name="${this.icon}"
|
|
1650
|
-
size="${
|
|
1650
|
+
size="${Zu(this.size)}"
|
|
1651
1651
|
@load="${this.handleOnLoad}"
|
|
1652
1652
|
@error="${this.handleOnError}"
|
|
1653
1653
|
></mdc-icon>
|
|
1654
1654
|
</div>
|
|
1655
|
-
`}};
|
|
1655
|
+
`}};_o.styles=[...j.styles,...qu],p([u({type:String,reflect:!0})],_o.prototype,"type",2),p([u({type:Number,reflect:!0})],_o.prototype,"size",2),p([ut()],_o.prototype,"currentIconType",2);var Mc=_o;Mc.register(Ku);var FE=Mc;Rc.register(Hu);var $E=Rc;var zE=[yt,U`
|
|
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
|
-
`,...St()],
|
|
1684
|
+
`,...St()],Qu=zE;var Pa=class extends wl(Zt(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=Be.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Bt).includes(t)?`${t}`:As.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
|
+
`}};Pa.styles=[...Qu],p([u({type:String,attribute:"aria-label"})],Pa.prototype,"ariaLabel",2);var Pc=Pa;var Ju=z.constructTagName("avatarbutton");Pc.register(Ju);var VE=Pc;var tf=z.constructTagName("badge"),pr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},kl={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Dc={PRIMARY:"primary",SECONDARY:"secondary"},ui={TYPE:pr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Dc.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var BE=[yt,U`
|
|
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);
|
|
@@ -1772,11 +1772,11 @@
|
|
|
1772
1772
|
outline: none;
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
|
-
`],
|
|
1775
|
+
`],ef=BE;var Hr=class extends Zt(j){constructor(){super(...arguments);this.variant=ui.VARIANT;this.maxCounter=ui.MAX_COUNTER;this.overlay=ui.OVERLAY;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>ui.MAX_COUNTER_LIMIT||r>ui.MAX_COUNTER_LIMIT?`${ui.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t){return _`
|
|
1776
1776
|
<mdc-icon
|
|
1777
1777
|
part="badge-icon ${this.overlay?"badge-overlay":""}"
|
|
1778
1778
|
name="${tt(t)}"
|
|
1779
|
-
size="${
|
|
1779
|
+
size="${ui.ICON_SIZE}"
|
|
1780
1780
|
></mdc-icon>
|
|
1781
1781
|
`}getBadgeDot(){return _`<div part="badge-dot ${this.overlay?"badge-overlay":""}"></div>`}getBadgeCounterText(){return _`
|
|
1782
1782
|
<mdc-text
|
|
@@ -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(
|
|
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(Dc).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(kl.SUCCESS_ICON_NAME);case pr.WARNING:return this.getBadgeIcon(kl.WARNING_ICON_NAME);case pr.ERROR:return this.getBadgeIcon(kl.ERROR_ICON_NAME);case pr.DOT:default:return this.type=pr.DOT,this.getBadgeDot()}}};Hr.styles=[...j.styles,...ef],p([u({type:String,reflect:!0})],Hr.prototype,"type",2),p([u({type:String,reflect:!0})],Hr.prototype,"variant",2),p([u({type:Number})],Hr.prototype,"counter",2),p([u({type:Number,attribute:"max-counter",reflect:!0})],Hr.prototype,"maxCounter",2),p([u({type:Boolean})],Hr.prototype,"overlay",2),p([u({type:String,attribute:"aria-label"})],Hr.prototype,"ariaLabel",2);var Fc=Hr;Fc.register(tf);var UE=Fc;var HE=U`
|
|
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
|
-
`,
|
|
1803
|
+
`,rf=[HE];var Co=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 m=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return m&&Object.entries(r).forEach(([v,x])=>{m.setAttribute(v,x)}),m||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} `}};Co.styles=[...j.styles,...rf],p([ut()],Co.prototype,"brandVisualData",2),p([u({type:String,reflect:!0})],Co.prototype,"name",2),p([u({type:String,reflect:!0,attribute:"alt-text"})],Co.prototype,"altText",2);var $c=Co;var of=z.constructTagName("brandvisual");$c.register(of);var GE=$c;var KE=U`
|
|
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
|
-
`,
|
|
1823
|
+
`,sf=[KE];var af=z.constructTagName("bullet"),nf={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Da=class extends j{constructor(){super(...arguments);this.size=nf.SMALL}};Da.styles=[...j.styles,...sf],p([u({type:String,reflect:!0})],Da.prototype,"size",2);var zc=Da;zc.register(af);var YE=zc;var lf=z.constructTagName("buttongroup"),WE={40:40,32:32,28:28,24:24},jE={HORIZONTAL:"horizontal",VERTICAL:"vertical"},qE={PRIMARY:"primary",SECONDARY:"secondary"},Nl={SIZE:WE[28],VARIANT:qE.PRIMARY,ORIENTATION:jE.HORIZONTAL};var XE=U`
|
|
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
|
-
`,
|
|
1923
|
+
`,df=[yt,XE];var fi=class extends j{constructor(){super(...arguments);this.orientation=Nl.ORIENTATION;this.variant=Nl.VARIANT;this.size=Nl.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,...df],p([u({type:String,reflect:!0})],fi.prototype,"orientation",2),p([u({type:String,reflect:!0})],fi.prototype,"variant",2),p([u({type:Number,reflect:!0})],fi.prototype,"size",2),p([u({type:Boolean,reflect:!0})],fi.prototype,"compact",2),p([Dt({selector:"mdc-button"})],fi.prototype,"buttons",2);var Vc=fi;Vc.register(lf);var ZE=Vc;var Ht=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return p([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var cf=z.constructTagName("linksimple"),Is={INLINE:!1,INVERTED:!1};var QE=[yt,U`
|
|
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
|
-
`,...St(!0)],
|
|
2002
|
+
`,...St(!0)],hf=QE;var Ne=class extends Ht(Ut(j)){constructor(){super(...arguments);this.inline=Is.INLINE;this.inverted=Is.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
|
-
`}};
|
|
2019
|
+
`}};Ne.styles=[...j.styles,...hf],Ne.shadowRootOptions={...j.shadowRootOptions,delegatesFocus:!0},p([u({type:Boolean,reflect:!0})],Ne.prototype,"inline",2),p([u({type:Boolean,reflect:!0})],Ne.prototype,"inverted",2),p([u({type:String,reflect:!0})],Ne.prototype,"href",2),p([u({type:String,reflect:!0})],Ne.prototype,"target",2),p([u({type:String,reflect:!0})],Ne.prototype,"rel",2),p([u({type:String,reflect:!0})],Ne.prototype,"download",2),p([u({type:String,reflect:!0})],Ne.prototype,"ping",2),p([u({type:String,reflect:!0})],Ne.prototype,"hreflang",2),p([u({type:String,reflect:!0})],Ne.prototype,"type",2),p([u({type:String,reflect:!0})],Ne.prototype,"referrerpolicy",2);var Gr=Ne;var JE=U`
|
|
2020
2020
|
:host {
|
|
2021
2021
|
border: unset;
|
|
2022
2022
|
}
|
|
@@ -2070,23 +2070,23 @@
|
|
|
2070
2070
|
:host([variant='secondary'][soft-disabled])::part(anchor) {
|
|
2071
2071
|
border-color: var(--mdc-button-border-color);
|
|
2072
2072
|
}
|
|
2073
|
-
`,
|
|
2073
|
+
`,pf=[JE,...St(!0)];var _s=class extends Jn(Gr){constructor(){super(...arguments);this.size=Be.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
|
+
`}};_s.styles=[...So.styles,...pf],p([u({type:Number,reflect:!0})],_s.prototype,"size",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],_s.prototype,"softDisabled",2);var Bc=_s;var mf=z.constructTagName("buttonlink");Bc.register(mf);var tT=Bc;var Ll=n=>{class o extends n{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=ne.VARIANT;this.orientation=ne.ORIENTATION;this.titleTagName=ne.TAGNAME;this.subtitleTagName=ne.TAGNAME}renderImage(){return this.imageSrc?_`<div part="image-wrapper">
|
|
2078
2078
|
<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
|
|
2079
|
-
</div>`:
|
|
2079
|
+
</div>`:W}renderIcon(){return this.iconName?_`<mdc-icon
|
|
2080
2080
|
part="icon"
|
|
2081
|
-
size="${
|
|
2082
|
-
length-unit="${
|
|
2081
|
+
size="${ne.ICON_SIZE}"
|
|
2082
|
+
length-unit="${ne.ICON_LENGTH_UNIT}"
|
|
2083
2083
|
name="${this.iconName}"
|
|
2084
|
-
></mdc-icon>`:
|
|
2085
|
-
<mdc-text part="title" type="${
|
|
2086
|
-
${this.subtitle?_`<mdc-text part="subtitle" type="${
|
|
2084
|
+
></mdc-icon>`:W}renderTitle(){return _`<div part="title-container">
|
|
2085
|
+
<mdc-text part="title" type="${ne.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
|
|
2086
|
+
${this.subtitle?_`<mdc-text part="subtitle" type="${ne.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
|
2087
2087
|
>${this.subtitle}</mdc-text
|
|
2088
|
-
>`:
|
|
2089
|
-
</div>`}}return p([u({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),p([u({type:String,reflect:!0})],o.prototype,"subtitle",2),p([u({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),p([u({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),p([u({type:String,reflect:!0})],o.prototype,"variant",2),p([u({type:String,reflect:!0})],o.prototype,"orientation",2),p([u({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),p([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),p([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var
|
|
2088
|
+
>`:W}
|
|
2089
|
+
</div>`}}return p([u({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),p([u({type:String,reflect:!0})],o.prototype,"subtitle",2),p([u({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),p([u({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),p([u({type:String,reflect:!0})],o.prototype,"variant",2),p([u({type:String,reflect:!0})],o.prototype,"orientation",2),p([u({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),p([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),p([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var eT=U`
|
|
2090
2090
|
:host {
|
|
2091
2091
|
--mdc-card-width: 20rem;
|
|
2092
2092
|
align-items: stretch;
|
|
@@ -2195,10 +2195,10 @@
|
|
|
2195
2195
|
mdc-text::part(text) {
|
|
2196
2196
|
margin: 0;
|
|
2197
2197
|
}
|
|
2198
|
-
`,
|
|
2198
|
+
`,uf=[yt,eT];var Fa=class extends Ll(ys(j)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(ne.BUTTON)&&(r.setAttribute("variant",$t.TERTIARY),r.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?_`<div part="header">
|
|
2199
2199
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2200
2200
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
|
2201
|
-
</div>`:
|
|
2201
|
+
</div>`:W}render(){return _`
|
|
2202
2202
|
<slot name="image"> ${this.renderImage()} </slot>
|
|
2203
2203
|
<div part="body">
|
|
2204
2204
|
${this.renderHeader()}
|
|
@@ -2209,7 +2209,7 @@
|
|
|
2209
2209
|
</div>
|
|
2210
2210
|
${this.renderFooter()}
|
|
2211
2211
|
</div>
|
|
2212
|
-
`}};
|
|
2212
|
+
`}};Fa.styles=[...j.styles,...uf],p([Dt({slot:"icon-button"})],Fa.prototype,"iconButtons",2);var Cr=Fa;Cr.register(Cu);var rT=Cr;var iT=U`
|
|
2213
2213
|
:host {
|
|
2214
2214
|
cursor: pointer;
|
|
2215
2215
|
user-select: none;
|
|
@@ -2231,7 +2231,7 @@
|
|
|
2231
2231
|
:host([disabled])::part(image) {
|
|
2232
2232
|
opacity: 0.5;
|
|
2233
2233
|
}
|
|
2234
|
-
`,
|
|
2234
|
+
`,ff=[iT,...St()];var Ol=class extends Ll(ae){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?_`<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>`:W}render(){return _`
|
|
2235
2235
|
<slot name="image"> ${this.renderImage()} </slot>
|
|
2236
2236
|
<div part="body">
|
|
2237
2237
|
${this.renderHeader()}
|
|
@@ -2239,7 +2239,7 @@
|
|
|
2239
2239
|
<slot name="body"></slot>
|
|
2240
2240
|
<slot name="after-body"></slot>
|
|
2241
2241
|
</div>
|
|
2242
|
-
`}};
|
|
2242
|
+
`}};Ol.styles=[...Cr.styles,...ff];var Uc=Ol;var vf=z.constructTagName("cardbutton");Uc.register(vf);var oT=Uc;var gf=z.constructTagName("cardcheckbox"),Hc={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Rl={CHECK:"check",CHECKBOX:"checkbox"},Ml={SELECTION_TYPE:Rl.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var sT=U`
|
|
2243
2243
|
:host {
|
|
2244
2244
|
cursor: pointer;
|
|
2245
2245
|
user-select: none;
|
|
@@ -2296,16 +2296,16 @@
|
|
|
2296
2296
|
:host([disabled])::part(check-icon) {
|
|
2297
2297
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
2298
2298
|
}
|
|
2299
|
-
`,
|
|
2299
|
+
`,bf=[sT,...St()];var Cs=class extends kt(Ut(zr(Cr))){constructor(){super();this.checked=!1;this.selectionType=Ml.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?Hc.CHECKED:Hc.DEFAULT;switch(this.selectionType){case Rl.CHECK:return _`<mdc-icon
|
|
2300
2300
|
part="check check-icon"
|
|
2301
|
-
size="${
|
|
2302
|
-
length-unit="${
|
|
2301
|
+
size="${Ml.ICON_SIZE}"
|
|
2302
|
+
length-unit="${Ml.ICON_LENGTH_UNIT}"
|
|
2303
2303
|
name="${t}"
|
|
2304
|
-
></mdc-icon>`;case
|
|
2304
|
+
></mdc-icon>`;case Rl.CHECKBOX:return _`<mdc-staticcheckbox
|
|
2305
2305
|
part="check"
|
|
2306
2306
|
?checked="${this.checked}"
|
|
2307
2307
|
?disabled="${this.disabled}"
|
|
2308
|
-
></mdc-staticcheckbox>`;default:return
|
|
2308
|
+
></mdc-staticcheckbox>`;default:return W}}renderHeader(){return this.cardTitle?_`<div part="header">${this.renderIcon()} ${this.renderTitle()} ${this.renderSelection()}</div>`:W}render(){return _`
|
|
2309
2309
|
${this.renderImage()}
|
|
2310
2310
|
<div part="body">
|
|
2311
2311
|
${this.renderHeader()}
|
|
@@ -2313,7 +2313,7 @@
|
|
|
2313
2313
|
<slot name="body"></slot>
|
|
2314
2314
|
<slot name="after-body"></slot>
|
|
2315
2315
|
</div>
|
|
2316
|
-
`}};
|
|
2316
|
+
`}};Cs.styles=[...Cr.styles,...bf],p([u({type:Boolean,reflect:!0})],Cs.prototype,"checked",2),p([u({type:String,attribute:"selection-type",reflect:!0})],Cs.prototype,"selectionType",2);var Gc=Cs;var aT=[U`
|
|
2317
2317
|
:host {
|
|
2318
2318
|
--mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2319
2319
|
--mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
|
|
@@ -2391,15 +2391,15 @@
|
|
|
2391
2391
|
--mdc-staticcheckbox-icon-color: GrayText;
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
|
-
`],
|
|
2394
|
+
`],yf=aT;var Ef=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"},Ue={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},wo={TONAL:"tonal",CONTRAST:"contrast"},Kc={ABSOLUTE:"absolute",FIXED:"fixed"},nT={VIEWPORT:"viewport",DOCUMENT:"document"},gt={PLACEMENT:Nt.BOTTOM,TRIGGER:Ue.CLICK,COLOR:wo.TONAL,STRATEGY:Kc.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:nT.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 Tf=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:Kc.ABSOLUTE},$a={TAGNAME:mt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var xf=z.constructTagName("checkbox"),Pl={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Af={ERROR:zt.ERROR,DEFAULT:zt.DEFAULT};var Sf=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?_`
|
|
2395
2395
|
<mdc-icon
|
|
2396
2396
|
part="checkbox-icon"
|
|
2397
|
-
name="${this.indeterminate?
|
|
2397
|
+
name="${this.indeterminate?Pl.INDETERMINATE:Pl.CHECKED}"
|
|
2398
2398
|
size="1"
|
|
2399
2399
|
length-unit="rem"
|
|
2400
2400
|
></mdc-icon>
|
|
2401
|
-
`:
|
|
2402
|
-
<div part="icon-container">${t}</div>`}};
|
|
2401
|
+
`:W;return _`<slot></slot>
|
|
2402
|
+
<div part="icon-container">${t}</div>`}};Ki.styles=[...j.styles,...yf],p([u({type:Boolean,reflect:!0})],Ki.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],Ki.prototype,"indeterminate",2),p([u({type:Boolean,reflect:!0})],Ki.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ki.prototype,"softDisabled",2);var Yc=Ki;Yc.register(Sf);var lT=Yc;Gc.register(gf);var dT=Gc;var cT=U`
|
|
2403
2403
|
:host {
|
|
2404
2404
|
cursor: pointer;
|
|
2405
2405
|
user-select: none;
|
|
@@ -2452,10 +2452,10 @@
|
|
|
2452
2452
|
:host([disabled])::part(image) {
|
|
2453
2453
|
opacity: 0.5;
|
|
2454
2454
|
}
|
|
2455
|
-
`,
|
|
2455
|
+
`,If=[cT,...St()];var ws=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(v=>!v.disabled),m=d.indexOf(this);if(r===Z.DOWN||Z.RIGHT===r){let v=(m+1)%d.length;this.updateCardRadio(d,v)}else if(r===Z.UP||Z.LEFT===r){let v=(m-1+d.length)%d.length;this.updateCardRadio(d,v)}r===Z.ENTER&&this.toggleChecked()}toggleOnSpace(t){this.getActionForKeyEvent(t)===Z.SPACE&&this.toggleChecked()}renderHeader(){return this.cardTitle?_`<div part="header">
|
|
2456
2456
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2457
2457
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
|
2458
|
-
</div>`:
|
|
2458
|
+
</div>`:W}render(){return _`
|
|
2459
2459
|
${this.renderImage()}
|
|
2460
2460
|
<div part="body">
|
|
2461
2461
|
${this.renderHeader()}
|
|
@@ -2463,7 +2463,7 @@
|
|
|
2463
2463
|
<slot name="body"></slot>
|
|
2464
2464
|
<slot name="after-body"></slot>
|
|
2465
2465
|
</div>
|
|
2466
|
-
`}};
|
|
2466
|
+
`}};ws.styles=[...Cr.styles,...If],p([u({type:Boolean,reflect:!0})],ws.prototype,"checked",2),p([u({type:String})],ws.prototype,"name",2);var Wc=ws;var Dl=z.constructTagName("cardradio");var hT=[U`
|
|
2467
2467
|
:host {
|
|
2468
2468
|
--mdc-staticradio-inner-circle-size: 0.375rem;
|
|
2469
2469
|
--mdc-staticradio-outer-circle-size: 1rem;
|
|
@@ -2560,8 +2560,8 @@
|
|
|
2560
2560
|
--mdc-staticradio-outer-circle-background-color: GrayText;
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
|
-
`],
|
|
2564
|
-
<span part="radio-icon" class="radio-icon"></span>`}};Co.styles=[...q.styles,...Sf],p([u({type:Boolean,reflect:!0})],Co.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],Co.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Co.prototype,"softDisabled",2);var Wc=Co;var If=z.constructTagName("staticradio");Wc.register(If);var lT=Wc;Yc.register(Ml);var dT=Yc;var Gr=Math.min,Ne=Math.max,$a=Math.round,za=Math.floor,_r=n=>({x:n,y:n}),cT={left:"right",right:"left",bottom:"top",top:"bottom"},hT={start:"end",end:"start"};function Dl(n,o,t){return Ne(n,Gr(o,t))}function wo(n,o){return typeof n=="function"?n(o):n}function ui(n){return n.split("-")[0]}function ko(n){return n.split("-")[1]}function jc(n){return n==="x"?"y":"x"}function Fl(n){return n==="y"?"height":"width"}var pT=new Set(["top","bottom"]);function Yr(n){return pT.has(ui(n))?"y":"x"}function $l(n){return jc(Yr(n))}function wf(n,o,t){t===void 0&&(t=!1);let r=ko(n),s=$l(n),d=Fl(s),m=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Fa(m)),[m,Fa(m)]}function kf(n){let o=Fa(n);return[Pl(n),o,Pl(o)]}function Pl(n){return n.replace(/start|end/g,o=>hT[o])}var _f=["left","right"],Cf=["right","left"],mT=["top","bottom"],uT=["bottom","top"];function fT(n,o,t){switch(n){case"top":case"bottom":return t?o?Cf:_f:o?_f:Cf;case"left":case"right":return o?mT:uT;default:return[]}}function Nf(n,o,t,r){let s=ko(n),d=fT(ui(n),t==="start",r);return s&&(d=d.map(m=>m+"-"+s),o&&(d=d.concat(d.map(Pl)))),d}function Fa(n){return n.replace(/left|right|bottom|top/g,o=>cT[o])}function vT(n){return{top:0,right:0,bottom:0,left:0,...n}}function Kc(n){return typeof n!="number"?vT(n):{top:n,right:n,bottom:n,left:n}}function No(n){let{x:o,y:t,width:r,height:s}=n;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function Lf(n,o,t){let{reference:r,floating:s}=n,d=Yr(o),m=$l(o),b=Fl(m),x=ui(o),N=d==="y",B=r.x+r.width/2-s.width/2,K=r.y+r.height/2-s.height/2,Q=r[b]/2-s[b]/2,X;switch(x){case"top":X={x:B,y:r.y-s.height};break;case"bottom":X={x:B,y:r.y+r.height};break;case"right":X={x:r.x+r.width,y:K};break;case"left":X={x:r.x-s.width,y:K};break;default:X={x:r.x,y:r.y}}switch(ko(o)){case"start":X[m]-=Q*(t&&N?-1:1);break;case"end":X[m]+=Q*(t&&N?-1:1);break}return X}var Of=async(n,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:m}=t,b=d.filter(Boolean),x=await(m.isRTL==null?void 0:m.isRTL(o)),N=await m.getElementRects({reference:n,floating:o,strategy:s}),{x:B,y:K}=Lf(N,r,x),Q=r,X={},it=0;for(let dt=0;dt<b.length;dt++){let{name:lt,fn:bt}=b[dt],{x:It,y:Ct,data:Yt,reset:zt}=await bt({x:B,y:K,initialPlacement:r,placement:Q,strategy:s,middlewareData:X,rects:N,platform:m,elements:{reference:n,floating:o}});B=It!=null?It:B,K=Ct!=null?Ct:K,X={...X,[lt]:{...X[lt],...Yt}},zt&&it<=50&&(it++,typeof zt=="object"&&(zt.placement&&(Q=zt.placement),zt.rects&&(N=zt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:s}):zt.rects),{x:B,y:K}=Lf(N,Q,x)),dt=-1)}return{x:B,y:K,placement:Q,strategy:s,middlewareData:X}};async function zl(n,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:m,elements:b,strategy:x}=n,{boundary:N="clippingAncestors",rootBoundary:B="viewport",elementContext:K="floating",altBoundary:Q=!1,padding:X=0}=wo(o,n),it=Kc(X),lt=b[Q?K==="floating"?"reference":"floating":K],bt=No(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(b.floating)),boundary:N,rootBoundary:B,strategy:x})),It=K==="floating"?{x:r,y:s,width:m.floating.width,height:m.floating.height}:m.reference,Ct=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),Yt=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},zt=No(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:It,offsetParent:Ct,strategy:x}):It);return{top:(bt.top-zt.top+it.top)/Yt.y,bottom:(zt.bottom-bt.bottom+it.bottom)/Yt.y,left:(bt.left-zt.left+it.left)/Yt.x,right:(zt.right-bt.right+it.right)/Yt.x}}var Rf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:m,elements:b,middlewareData:x}=o,{element:N,padding:B=0}=wo(n,o)||{};if(N==null)return{};let K=Kc(B),Q={x:t,y:r},X=$l(s),it=Fl(X),dt=await m.getDimensions(N),lt=X==="y",bt=lt?"top":"left",It=lt?"bottom":"right",Ct=lt?"clientHeight":"clientWidth",Yt=d.reference[it]+d.reference[X]-Q[X]-d.floating[it],zt=Q[X]-d.reference[X],Wt=await(m.getOffsetParent==null?void 0:m.getOffsetParent(N)),Qt=Wt?Wt[Ct]:0;(!Qt||!await(m.isElement==null?void 0:m.isElement(Wt)))&&(Qt=b.floating[Ct]||d.floating[it]);let de=Yt/2-zt/2,br=Qt/2-dt[it]/2-1,Me=Gr(K[bt],br),rr=Gr(K[It],br),yr=Me,Er=Qt-dt[it]-rr,wt=Qt/2-dt[it]/2+de,ue=Dl(yr,wt,Er),ir=!x.arrow&&ko(s)!=null&&wt!==ue&&d.reference[it]/2-(wt<yr?Me:rr)-dt[it]/2<0,or=ir?wt<yr?wt-yr:wt-Er:0;return{[X]:Q[X]+or,data:{[X]:ue,centerOffset:wt-ue-or,...ir&&{alignmentOffset:or}},reset:ir}}});var Mf=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:m,initialPlacement:b,platform:x,elements:N}=o,{mainAxis:B=!0,crossAxis:K=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:dt=!0,...lt}=wo(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let bt=ui(s),It=Yr(b),Ct=ui(b)===b,Yt=await(x.isRTL==null?void 0:x.isRTL(N.floating)),zt=Q||(Ct||!dt?[Fa(b)]:kf(b)),Wt=it!=="none";!Q&&Wt&&zt.push(...Nf(b,dt,it,Yt));let Qt=[b,...zt],de=await zl(o,lt),br=[],Me=((r=d.flip)==null?void 0:r.overflows)||[];if(B&&br.push(de[bt]),K){let wt=wf(s,m,Yt);br.push(de[wt[0]],de[wt[1]])}if(Me=[...Me,{placement:s,overflows:br}],!br.every(wt=>wt<=0)){var rr,yr;let wt=(((rr=d.flip)==null?void 0:rr.index)||0)+1,ue=Qt[wt];if(ue&&(!(K==="alignment"?It!==Yr(ue):!1)||Me.every(sr=>sr.overflows[0]>0&&Yr(sr.placement)===It)))return{data:{index:wt,overflows:Me},reset:{placement:ue}};let ir=(yr=Me.filter(or=>or.overflows[0]<=0).sort((or,sr)=>or.overflows[1]-sr.overflows[1])[0])==null?void 0:yr.placement;if(!ir)switch(X){case"bestFit":{var Er;let or=(Er=Me.filter(sr=>{if(Wt){let ar=Yr(sr.placement);return ar===It||ar==="y"}return!0}).map(sr=>[sr.placement,sr.overflows.filter(ar=>ar>0).reduce((ar,Tn)=>ar+Tn,0)]).sort((sr,ar)=>sr[1]-ar[1])[0])==null?void 0:Er[0];or&&(ir=or);break}case"initialPlacement":ir=b;break}if(s!==ir)return{reset:{placement:ir}}}return{}}}};var gT=new Set(["left","top"]);async function bT(n,o){let{placement:t,platform:r,elements:s}=n,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),m=ui(t),b=ko(t),x=Yr(t)==="y",N=gT.has(m)?-1:1,B=d&&x?-1:1,K=wo(o,n),{mainAxis:Q,crossAxis:X,alignmentAxis:it}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return b&&typeof it=="number"&&(X=b==="end"?it*-1:it),x?{x:X*B,y:Q*N}:{x:Q*N,y:X*B}}var Pf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,r;let{x:s,y:d,placement:m,middlewareData:b}=o,x=await bT(o,n);return m===((t=b.offset)==null?void 0:t.placement)&&(r=b.arrow)!=null&&r.alignmentOffset?{}:{x:s+x.x,y:d+x.y,data:{...x,placement:m}}}}},Df=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:b={fn:lt=>{let{x:bt,y:It}=lt;return{x:bt,y:It}}},...x}=wo(n,o),N={x:t,y:r},B=await zl(o,x),K=Yr(ui(s)),Q=jc(K),X=N[Q],it=N[K];if(d){let lt=Q==="y"?"top":"left",bt=Q==="y"?"bottom":"right",It=X+B[lt],Ct=X-B[bt];X=Dl(It,X,Ct)}if(m){let lt=K==="y"?"top":"left",bt=K==="y"?"bottom":"right",It=it+B[lt],Ct=it-B[bt];it=Dl(It,it,Ct)}let dt=b.fn({...o,[Q]:X,[K]:it});return{...dt,data:{x:dt.x-t,y:dt.y-r,enabled:{[Q]:d,[K]:m}}}}}};var Ff=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,r;let{placement:s,rects:d,platform:m,elements:b}=o,{apply:x=()=>{},...N}=wo(n,o),B=await zl(o,N),K=ui(s),Q=ko(s),X=Yr(s)==="y",{width:it,height:dt}=d.floating,lt,bt;K==="top"||K==="bottom"?(lt=K,bt=Q===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(bt=K,lt=Q==="end"?"top":"bottom");let It=dt-B.top-B.bottom,Ct=it-B.left-B.right,Yt=Gr(dt-B[lt],It),zt=Gr(it-B[bt],Ct),Wt=!o.middlewareData.shift,Qt=Yt,de=zt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(de=Ct),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(Qt=It),Wt&&!Q){let Me=Ne(B.left,0),rr=Ne(B.right,0),yr=Ne(B.top,0),Er=Ne(B.bottom,0);X?de=it-2*(Me!==0||rr!==0?Me+rr:Ne(B.left,B.right)):Qt=dt-2*(yr!==0||Er!==0?yr+Er:Ne(B.top,B.bottom))}await x({...o,availableWidth:de,availableHeight:Qt});let br=await m.getDimensions(b.floating);return it!==br.width||dt!==br.height?{reset:{rects:!0}}:{}}}};function Vl(){return typeof window<"u"}function Lo(n){return zf(n)?(n.nodeName||"").toLowerCase():"#document"}function Ue(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Cr(n){var o;return(o=(zf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function zf(n){return Vl()?n instanceof Node||n instanceof Ue(n).Node:!1}function hr(n){return Vl()?n instanceof Element||n instanceof Ue(n).Element:!1}function wr(n){return Vl()?n instanceof HTMLElement||n instanceof Ue(n).HTMLElement:!1}function $f(n){return!Vl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Ue(n).ShadowRoot}var yT=new Set(["inline","contents"]);function ws(n){let{overflow:o,overflowX:t,overflowY:r,display:s}=pr(n);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!yT.has(s)}var ET=new Set(["table","td","th"]);function Vf(n){return ET.has(Lo(n))}var TT=[":popover-open",":modal"];function Va(n){return TT.some(o=>{try{return n.matches(o)}catch{return!1}})}var xT=["transform","translate","scale","rotate","perspective"],AT=["transform","translate","scale","rotate","perspective","filter"],ST=["paint","layout","strict","content"];function Bl(n){let o=Ul(),t=hr(n)?pr(n):n;return xT.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)||AT.some(r=>(t.willChange||"").includes(r))||ST.some(r=>(t.contain||"").includes(r))}function Bf(n){let o=fi(n);for(;wr(o)&&!Oo(o);){if(Bl(o))return o;if(Va(o))return null;o=fi(o)}return null}function Ul(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var IT=new Set(["html","body","#document"]);function Oo(n){return IT.has(Lo(n))}function pr(n){return Ue(n).getComputedStyle(n)}function Ba(n){return hr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function fi(n){if(Lo(n)==="html")return n;let o=n.assignedSlot||n.parentNode||$f(n)&&n.host||Cr(n);return $f(o)?o.host:o}function Uf(n){let o=fi(n);return Oo(o)?n.ownerDocument?n.ownerDocument.body:n.body:wr(o)&&ws(o)?o:Uf(o)}function Cs(n,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=Uf(n),d=s===((r=n.ownerDocument)==null?void 0:r.body),m=Ue(s);if(d){let b=Hl(m);return o.concat(m,m.visualViewport||[],ws(s)?s:[],b&&t?Cs(b):[])}return o.concat(s,Cs(s,[],t))}function Hl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Yf(n){let o=pr(n),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=wr(n),d=s?n.offsetWidth:t,m=s?n.offsetHeight:r,b=$a(t)!==d||$a(r)!==m;return b&&(t=d,r=m),{width:t,height:r,$:b}}function Xc(n){return hr(n)?n:n.contextElement}function ks(n){let o=Xc(n);if(!wr(o))return _r(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=Yf(o),m=(d?$a(t.width):t.width)/r,b=(d?$a(t.height):t.height)/s;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var _T=_r(0);function Wf(n){let o=Ue(n);return!Ul()||!o.visualViewport?_T:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function CT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Ue(n)?!1:o}function Ro(n,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=n.getBoundingClientRect(),d=Xc(n),m=_r(1);o&&(r?hr(r)&&(m=ks(r)):m=ks(n));let b=CT(d,t,r)?Wf(d):_r(0),x=(s.left+b.x)/m.x,N=(s.top+b.y)/m.y,B=s.width/m.x,K=s.height/m.y;if(d){let Q=Ue(d),X=r&&hr(r)?Ue(r):r,it=Q,dt=Hl(it);for(;dt&&r&&X!==it;){let lt=ks(dt),bt=dt.getBoundingClientRect(),It=pr(dt),Ct=bt.left+(dt.clientLeft+parseFloat(It.paddingLeft))*lt.x,Yt=bt.top+(dt.clientTop+parseFloat(It.paddingTop))*lt.y;x*=lt.x,N*=lt.y,B*=lt.x,K*=lt.y,x+=Ct,N+=Yt,it=Ue(dt),dt=Hl(it)}}return No({width:B,height:K,x,y:N})}function Zc(n,o){let t=Ba(n).scrollLeft;return o?o.left+t:Ro(Cr(n)).left+t}function jf(n,o,t){t===void 0&&(t=!1);let r=n.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:Zc(n,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function wT(n){let{elements:o,rect:t,offsetParent:r,strategy:s}=n,d=s==="fixed",m=Cr(r),b=o?Va(o.floating):!1;if(r===m||b&&d)return t;let x={scrollLeft:0,scrollTop:0},N=_r(1),B=_r(0),K=wr(r);if((K||!K&&!d)&&((Lo(r)!=="body"||ws(m))&&(x=Ba(r)),wr(r))){let X=Ro(r);N=ks(r),B.x=X.x+r.clientLeft,B.y=X.y+r.clientTop}let Q=m&&!K&&!d?jf(m,x,!0):_r(0);return{width:t.width*N.x,height:t.height*N.y,x:t.x*N.x-x.scrollLeft*N.x+B.x+Q.x,y:t.y*N.y-x.scrollTop*N.y+B.y+Q.y}}function kT(n){return Array.from(n.getClientRects())}function NT(n){let o=Cr(n),t=Ba(n),r=n.ownerDocument.body,s=Ne(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=Ne(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),m=-t.scrollLeft+Zc(n),b=-t.scrollTop;return pr(r).direction==="rtl"&&(m+=Ne(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:m,y:b}}function LT(n,o){let t=Ue(n),r=Cr(n),s=t.visualViewport,d=r.clientWidth,m=r.clientHeight,b=0,x=0;if(s){d=s.width,m=s.height;let N=Ul();(!N||N&&o==="fixed")&&(b=s.offsetLeft,x=s.offsetTop)}return{width:d,height:m,x:b,y:x}}var OT=new Set(["absolute","fixed"]);function RT(n,o){let t=Ro(n,!0,o==="fixed"),r=t.top+n.clientTop,s=t.left+n.clientLeft,d=wr(n)?ks(n):_r(1),m=n.clientWidth*d.x,b=n.clientHeight*d.y,x=s*d.x,N=r*d.y;return{width:m,height:b,x,y:N}}function Hf(n,o,t){let r;if(o==="viewport")r=LT(n,t);else if(o==="document")r=NT(Cr(n));else if(hr(o))r=RT(o,t);else{let s=Wf(n);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return No(r)}function Kf(n,o){let t=fi(n);return t===o||!hr(t)||Oo(t)?!1:pr(t).position==="fixed"||Kf(t,o)}function MT(n,o){let t=o.get(n);if(t)return t;let r=Cs(n,[],!1).filter(b=>hr(b)&&Lo(b)!=="body"),s=null,d=pr(n).position==="fixed",m=d?fi(n):n;for(;hr(m)&&!Oo(m);){let b=pr(m),x=Bl(m);!x&&b.position==="fixed"&&(s=null),(d?!x&&!s:!x&&b.position==="static"&&!!s&&OT.has(s.position)||ws(m)&&!x&&Kf(n,m))?r=r.filter(B=>B!==m):s=b,m=fi(m)}return o.set(n,r),r}function PT(n){let{element:o,boundary:t,rootBoundary:r,strategy:s}=n,m=[...t==="clippingAncestors"?Va(o)?[]:MT(o,this._c):[].concat(t),r],b=m[0],x=m.reduce((N,B)=>{let K=Hf(o,B,s);return N.top=Ne(K.top,N.top),N.right=Gr(K.right,N.right),N.bottom=Gr(K.bottom,N.bottom),N.left=Ne(K.left,N.left),N},Hf(o,b,s));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function DT(n){let{width:o,height:t}=Yf(n);return{width:o,height:t}}function FT(n,o,t){let r=wr(o),s=Cr(o),d=t==="fixed",m=Ro(n,!0,d,o),b={scrollLeft:0,scrollTop:0},x=_r(0);function N(){x.x=Zc(s)}if(r||!r&&!d)if((Lo(o)!=="body"||ws(s))&&(b=Ba(o)),r){let X=Ro(o,!0,d,o);x.x=X.x+o.clientLeft,x.y=X.y+o.clientTop}else s&&N();d&&!r&&s&&N();let B=s&&!r&&!d?jf(s,b):_r(0),K=m.left+b.scrollLeft-x.x-B.x,Q=m.top+b.scrollTop-x.y-B.y;return{x:K,y:Q,width:m.width,height:m.height}}function qc(n){return pr(n).position==="static"}function Gf(n,o){if(!wr(n)||pr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Cr(n)===t&&(t=t.ownerDocument.body),t}function qf(n,o){let t=Ue(n);if(Va(n))return t;if(!wr(n)){let s=fi(n);for(;s&&!Oo(s);){if(hr(s)&&!qc(s))return s;s=fi(s)}return t}let r=Gf(n,o);for(;r&&Vf(r)&&qc(r);)r=Gf(r,o);return r&&Oo(r)&&qc(r)&&!Bl(r)?t:r||Bf(n)||t}var $T=async function(n){let o=this.getOffsetParent||qf,t=this.getDimensions,r=await t(n.floating);return{reference:FT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zT(n){return pr(n).direction==="rtl"}var VT={convertOffsetParentRelativeRectToViewportRelativeRect:wT,getDocumentElement:Cr,getClippingRect:PT,getOffsetParent:qf,getElementRects:$T,getClientRects:kT,getDimensions:DT,getScale:ks,isElement:hr,isRTL:zT};function Xf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function BT(n,o){let t=null,r,s=Cr(n);function d(){var b;clearTimeout(r),(b=t)==null||b.disconnect(),t=null}function m(b,x){b===void 0&&(b=!1),x===void 0&&(x=1),d();let N=n.getBoundingClientRect(),{left:B,top:K,width:Q,height:X}=N;if(b||o(),!Q||!X)return;let it=za(K),dt=za(s.clientWidth-(B+Q)),lt=za(s.clientHeight-(K+X)),bt=za(B),Ct={rootMargin:-it+"px "+-dt+"px "+-lt+"px "+-bt+"px",threshold:Ne(0,Gr(1,x))||1},Yt=!0;function zt(Wt){let Qt=Wt[0].intersectionRatio;if(Qt!==x){if(!Yt)return m();Qt?m(!1,Qt):r=setTimeout(()=>{m(!1,1e-7)},1e3)}Qt===1&&!Xf(N,n.getBoundingClientRect())&&m(),Yt=!1}try{t=new IntersectionObserver(zt,{...Ct,root:s.ownerDocument})}catch{t=new IntersectionObserver(zt,Ct)}t.observe(n)}return m(!0),d}function Zf(n,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:x=!1}=r,N=Xc(n),B=s||d?[...N?Cs(N):[],...Cs(o)]:[];B.forEach(bt=>{s&&bt.addEventListener("scroll",t,{passive:!0}),d&&bt.addEventListener("resize",t)});let K=N&&b?BT(N,t):null,Q=-1,X=null;m&&(X=new ResizeObserver(bt=>{let[It]=bt;It&&It.target===N&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),N&&!x&&X.observe(N),X.observe(o));let it,dt=x?Ro(n):null;x&<();function lt(){let bt=Ro(n);dt&&!Xf(dt,bt)&&t(),dt=bt,it=requestAnimationFrame(lt)}return t(),()=>{var bt;B.forEach(It=>{s&&It.removeEventListener("scroll",t),d&&It.removeEventListener("resize",t)}),K==null||K(),(bt=X)==null||bt.disconnect(),X=null,x&&cancelAnimationFrame(it)}}var Qf=Pf;var Jf=Df,tv=Mf,ev=Ff;var rv=Rf;var iv=(n,o,t)=>{let r=new Map,s={platform:VT,...t},d={...s.platform,_c:r};return Of(n,o,{...s,platform:d})};var Gl=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 vi=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 Qc=class{constructor(){this.stack=[]}push(o){return this.stack.push(o),this.stack.length}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Le=new Qc;var UT=U`
|
|
2563
|
+
`],_f=hT;var ko=class extends Ut(j){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return _` <slot></slot>
|
|
2564
|
+
<span part="radio-icon" class="radio-icon"></span>`}};ko.styles=[...j.styles,..._f],p([u({type:Boolean,reflect:!0})],ko.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],ko.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ko.prototype,"softDisabled",2);var jc=ko;var Cf=z.constructTagName("staticradio");jc.register(Cf);var pT=jc;Wc.register(Dl);var mT=Wc;var Yr=Math.min,Le=Math.max,Va=Math.round,Ba=Math.floor,wr=n=>({x:n,y:n}),uT={left:"right",right:"left",bottom:"top",top:"bottom"},fT={start:"end",end:"start"};function $l(n,o,t){return Le(n,Yr(o,t))}function No(n,o){return typeof n=="function"?n(o):n}function vi(n){return n.split("-")[0]}function Lo(n){return n.split("-")[1]}function qc(n){return n==="x"?"y":"x"}function zl(n){return n==="y"?"height":"width"}var vT=new Set(["top","bottom"]);function Wr(n){return vT.has(vi(n))?"y":"x"}function Vl(n){return qc(Wr(n))}function Nf(n,o,t){t===void 0&&(t=!1);let r=Lo(n),s=Vl(n),d=zl(s),m=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=za(m)),[m,za(m)]}function Lf(n){let o=za(n);return[Fl(n),o,Fl(o)]}function Fl(n){return n.replace(/start|end/g,o=>fT[o])}var wf=["left","right"],kf=["right","left"],gT=["top","bottom"],bT=["bottom","top"];function yT(n,o,t){switch(n){case"top":case"bottom":return t?o?kf:wf:o?wf:kf;case"left":case"right":return o?gT:bT;default:return[]}}function Of(n,o,t,r){let s=Lo(n),d=yT(vi(n),t==="start",r);return s&&(d=d.map(m=>m+"-"+s),o&&(d=d.concat(d.map(Fl)))),d}function za(n){return n.replace(/left|right|bottom|top/g,o=>uT[o])}function ET(n){return{top:0,right:0,bottom:0,left:0,...n}}function Xc(n){return typeof n!="number"?ET(n):{top:n,right:n,bottom:n,left:n}}function Oo(n){let{x:o,y:t,width:r,height:s}=n;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function Rf(n,o,t){let{reference:r,floating:s}=n,d=Wr(o),m=Vl(o),v=zl(m),x=vi(o),L=d==="y",B=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(x){case"top":X={x:B,y:r.y-s.height};break;case"bottom":X={x:B,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(Lo(o)){case"start":X[m]-=Q*(t&&L?-1:1);break;case"end":X[m]+=Q*(t&&L?-1:1);break}return X}var Mf=async(n,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:m}=t,v=d.filter(Boolean),x=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:s}),{x:B,y:q}=Rf(L,r,x),Q=r,X={},it=0;for(let dt=0;dt<v.length;dt++){let{name:lt,fn:bt}=v[dt],{x:It,y:Ct,data:Yt,reset:Vt}=await bt({x:B,y:q,initialPlacement:r,placement:Q,strategy:s,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});B=It!=null?It:B,q=Ct!=null?Ct:q,X={...X,[lt]:{...X[lt],...Yt}},Vt&&it<=50&&(it++,typeof Vt=="object"&&(Vt.placement&&(Q=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:s}):Vt.rects),{x:B,y:q}=Rf(L,Q,x)),dt=-1)}return{x:B,y:q,placement:Q,strategy:s,middlewareData:X}};async function Bl(n,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:m,elements:v,strategy:x}=n,{boundary:L="clippingAncestors",rootBoundary:B="viewport",elementContext:q="floating",altBoundary:Q=!1,padding:X=0}=No(o,n),it=Xc(X),lt=v[Q?q==="floating"?"reference":"floating":q],bt=Oo(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:B,strategy:x})),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)),Yt=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=Oo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:It,offsetParent:Ct,strategy:x}):It);return{top:(bt.top-Vt.top+it.top)/Yt.y,bottom:(Vt.bottom-bt.bottom+it.bottom)/Yt.y,left:(bt.left-Vt.left+it.left)/Yt.x,right:(Vt.right-bt.right+it.right)/Yt.x}}var Pf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:m,elements:v,middlewareData:x}=o,{element:L,padding:B=0}=No(n,o)||{};if(L==null)return{};let q=Xc(B),Q={x:t,y:r},X=Vl(s),it=zl(X),dt=await m.getDimensions(L),lt=X==="y",bt=lt?"top":"left",It=lt?"bottom":"right",Ct=lt?"clientHeight":"clientWidth",Yt=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)),Jt=Wt?Wt[Ct]:0;(!Jt||!await(m.isElement==null?void 0:m.isElement(Wt)))&&(Jt=v.floating[Ct]||d.floating[it]);let ce=Yt/2-Vt/2,Er=Jt/2-dt[it]/2-1,Pe=Yr(q[bt],Er),or=Yr(q[It],Er),Tr=Pe,xr=Jt-dt[it]-or,wt=Jt/2-dt[it]/2+ce,fe=$l(Tr,wt,xr),sr=!x.arrow&&Lo(s)!=null&&wt!==fe&&d.reference[it]/2-(wt<Tr?Pe:or)-dt[it]/2<0,ar=sr?wt<Tr?wt-Tr:wt-xr:0;return{[X]:Q[X]+ar,data:{[X]:fe,centerOffset:wt-fe-ar,...sr&&{alignmentOffset:ar}},reset:sr}}});var Df=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:m,initialPlacement:v,platform:x,elements:L}=o,{mainAxis:B=!0,crossAxis:q=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:dt=!0,...lt}=No(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let bt=vi(s),It=Wr(v),Ct=vi(v)===v,Yt=await(x.isRTL==null?void 0:x.isRTL(L.floating)),Vt=Q||(Ct||!dt?[za(v)]:Lf(v)),Wt=it!=="none";!Q&&Wt&&Vt.push(...Of(v,dt,it,Yt));let Jt=[v,...Vt],ce=await Bl(o,lt),Er=[],Pe=((r=d.flip)==null?void 0:r.overflows)||[];if(B&&Er.push(ce[bt]),q){let wt=Nf(s,m,Yt);Er.push(ce[wt[0]],ce[wt[1]])}if(Pe=[...Pe,{placement:s,overflows:Er}],!Er.every(wt=>wt<=0)){var or,Tr;let wt=(((or=d.flip)==null?void 0:or.index)||0)+1,fe=Jt[wt];if(fe&&(!(q==="alignment"?It!==Wr(fe):!1)||Pe.every(nr=>nr.overflows[0]>0&&Wr(nr.placement)===It)))return{data:{index:wt,overflows:Pe},reset:{placement:fe}};let sr=(Tr=Pe.filter(ar=>ar.overflows[0]<=0).sort((ar,nr)=>ar.overflows[1]-nr.overflows[1])[0])==null?void 0:Tr.placement;if(!sr)switch(X){case"bestFit":{var xr;let ar=(xr=Pe.filter(nr=>{if(Wt){let lr=Wr(nr.placement);return lr===It||lr==="y"}return!0}).map(nr=>[nr.placement,nr.overflows.filter(lr=>lr>0).reduce((lr,An)=>lr+An,0)]).sort((nr,lr)=>nr[1]-lr[1])[0])==null?void 0:xr[0];ar&&(sr=ar);break}case"initialPlacement":sr=v;break}if(s!==sr)return{reset:{placement:sr}}}return{}}}};var TT=new Set(["left","top"]);async function xT(n,o){let{placement:t,platform:r,elements:s}=n,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),m=vi(t),v=Lo(t),x=Wr(t)==="y",L=TT.has(m)?-1:1,B=d&&x?-1:1,q=No(o,n),{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),x?{x:X*B,y:Q*L}:{x:Q*L,y:X*B}}var Ff=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,r;let{x:s,y:d,placement:m,middlewareData:v}=o,x=await xT(o,n);return m===((t=v.offset)==null?void 0:t.placement)&&(r=v.arrow)!=null&&r.alignmentOffset?{}:{x:s+x.x,y:d+x.y,data:{...x,placement:m}}}}},$f=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:v={fn:lt=>{let{x:bt,y:It}=lt;return{x:bt,y:It}}},...x}=No(n,o),L={x:t,y:r},B=await Bl(o,x),q=Wr(vi(s)),Q=qc(q),X=L[Q],it=L[q];if(d){let lt=Q==="y"?"top":"left",bt=Q==="y"?"bottom":"right",It=X+B[lt],Ct=X-B[bt];X=$l(It,X,Ct)}if(m){let lt=q==="y"?"top":"left",bt=q==="y"?"bottom":"right",It=it+B[lt],Ct=it-B[bt];it=$l(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 zf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,r;let{placement:s,rects:d,platform:m,elements:v}=o,{apply:x=()=>{},...L}=No(n,o),B=await Bl(o,L),q=vi(s),Q=Lo(s),X=Wr(s)==="y",{width:it,height:dt}=d.floating,lt,bt;q==="top"||q==="bottom"?(lt=q,bt=Q===(await(m.isRTL==null?void 0:m.isRTL(v.floating))?"start":"end")?"left":"right"):(bt=q,lt=Q==="end"?"top":"bottom");let It=dt-B.top-B.bottom,Ct=it-B.left-B.right,Yt=Yr(dt-B[lt],It),Vt=Yr(it-B[bt],Ct),Wt=!o.middlewareData.shift,Jt=Yt,ce=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ce=Ct),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(Jt=It),Wt&&!Q){let Pe=Le(B.left,0),or=Le(B.right,0),Tr=Le(B.top,0),xr=Le(B.bottom,0);X?ce=it-2*(Pe!==0||or!==0?Pe+or:Le(B.left,B.right)):Jt=dt-2*(Tr!==0||xr!==0?Tr+xr:Le(B.top,B.bottom))}await x({...o,availableWidth:ce,availableHeight:Jt});let Er=await m.getDimensions(v.floating);return it!==Er.width||dt!==Er.height?{reset:{rects:!0}}:{}}}};function Ul(){return typeof window<"u"}function Ro(n){return Bf(n)?(n.nodeName||"").toLowerCase():"#document"}function He(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function kr(n){var o;return(o=(Bf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Bf(n){return Ul()?n instanceof Node||n instanceof He(n).Node:!1}function mr(n){return Ul()?n instanceof Element||n instanceof He(n).Element:!1}function Nr(n){return Ul()?n instanceof HTMLElement||n instanceof He(n).HTMLElement:!1}function Vf(n){return!Ul()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof He(n).ShadowRoot}var AT=new Set(["inline","contents"]);function Ns(n){let{overflow:o,overflowX:t,overflowY:r,display:s}=ur(n);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!AT.has(s)}var ST=new Set(["table","td","th"]);function Uf(n){return ST.has(Ro(n))}var IT=[":popover-open",":modal"];function Ua(n){return IT.some(o=>{try{return n.matches(o)}catch{return!1}})}var _T=["transform","translate","scale","rotate","perspective"],CT=["transform","translate","scale","rotate","perspective","filter"],wT=["paint","layout","strict","content"];function Hl(n){let o=Gl(),t=mr(n)?ur(n):n;return _T.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)||CT.some(r=>(t.willChange||"").includes(r))||wT.some(r=>(t.contain||"").includes(r))}function Hf(n){let o=gi(n);for(;Nr(o)&&!Mo(o);){if(Hl(o))return o;if(Ua(o))return null;o=gi(o)}return null}function Gl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var kT=new Set(["html","body","#document"]);function Mo(n){return kT.has(Ro(n))}function ur(n){return He(n).getComputedStyle(n)}function Ha(n){return mr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function gi(n){if(Ro(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Vf(n)&&n.host||kr(n);return Vf(o)?o.host:o}function Gf(n){let o=gi(n);return Mo(o)?n.ownerDocument?n.ownerDocument.body:n.body:Nr(o)&&Ns(o)?o:Gf(o)}function ks(n,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=Gf(n),d=s===((r=n.ownerDocument)==null?void 0:r.body),m=He(s);if(d){let v=Kl(m);return o.concat(m,m.visualViewport||[],Ns(s)?s:[],v&&t?ks(v):[])}return o.concat(s,ks(s,[],t))}function Kl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Wf(n){let o=ur(n),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Nr(n),d=s?n.offsetWidth:t,m=s?n.offsetHeight:r,v=Va(t)!==d||Va(r)!==m;return v&&(t=d,r=m),{width:t,height:r,$:v}}function Qc(n){return mr(n)?n:n.contextElement}function Ls(n){let o=Qc(n);if(!Nr(o))return wr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=Wf(o),m=(d?Va(t.width):t.width)/r,v=(d?Va(t.height):t.height)/s;return(!m||!Number.isFinite(m))&&(m=1),(!v||!Number.isFinite(v))&&(v=1),{x:m,y:v}}var NT=wr(0);function jf(n){let o=He(n);return!Gl()||!o.visualViewport?NT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function LT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==He(n)?!1:o}function Po(n,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=n.getBoundingClientRect(),d=Qc(n),m=wr(1);o&&(r?mr(r)&&(m=Ls(r)):m=Ls(n));let v=LT(d,t,r)?jf(d):wr(0),x=(s.left+v.x)/m.x,L=(s.top+v.y)/m.y,B=s.width/m.x,q=s.height/m.y;if(d){let Q=He(d),X=r&&mr(r)?He(r):r,it=Q,dt=Kl(it);for(;dt&&r&&X!==it;){let lt=Ls(dt),bt=dt.getBoundingClientRect(),It=ur(dt),Ct=bt.left+(dt.clientLeft+parseFloat(It.paddingLeft))*lt.x,Yt=bt.top+(dt.clientTop+parseFloat(It.paddingTop))*lt.y;x*=lt.x,L*=lt.y,B*=lt.x,q*=lt.y,x+=Ct,L+=Yt,it=He(dt),dt=Kl(it)}}return Oo({width:B,height:q,x,y:L})}function Jc(n,o){let t=Ha(n).scrollLeft;return o?o.left+t:Po(kr(n)).left+t}function qf(n,o,t){t===void 0&&(t=!1);let r=n.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:Jc(n,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function OT(n){let{elements:o,rect:t,offsetParent:r,strategy:s}=n,d=s==="fixed",m=kr(r),v=o?Ua(o.floating):!1;if(r===m||v&&d)return t;let x={scrollLeft:0,scrollTop:0},L=wr(1),B=wr(0),q=Nr(r);if((q||!q&&!d)&&((Ro(r)!=="body"||Ns(m))&&(x=Ha(r)),Nr(r))){let X=Po(r);L=Ls(r),B.x=X.x+r.clientLeft,B.y=X.y+r.clientTop}let Q=m&&!q&&!d?qf(m,x,!0):wr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-x.scrollLeft*L.x+B.x+Q.x,y:t.y*L.y-x.scrollTop*L.y+B.y+Q.y}}function RT(n){return Array.from(n.getClientRects())}function MT(n){let o=kr(n),t=Ha(n),r=n.ownerDocument.body,s=Le(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=Le(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),m=-t.scrollLeft+Jc(n),v=-t.scrollTop;return ur(r).direction==="rtl"&&(m+=Le(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:m,y:v}}function PT(n,o){let t=He(n),r=kr(n),s=t.visualViewport,d=r.clientWidth,m=r.clientHeight,v=0,x=0;if(s){d=s.width,m=s.height;let L=Gl();(!L||L&&o==="fixed")&&(v=s.offsetLeft,x=s.offsetTop)}return{width:d,height:m,x:v,y:x}}var DT=new Set(["absolute","fixed"]);function FT(n,o){let t=Po(n,!0,o==="fixed"),r=t.top+n.clientTop,s=t.left+n.clientLeft,d=Nr(n)?Ls(n):wr(1),m=n.clientWidth*d.x,v=n.clientHeight*d.y,x=s*d.x,L=r*d.y;return{width:m,height:v,x,y:L}}function Kf(n,o,t){let r;if(o==="viewport")r=PT(n,t);else if(o==="document")r=MT(kr(n));else if(mr(o))r=FT(o,t);else{let s=jf(n);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return Oo(r)}function Xf(n,o){let t=gi(n);return t===o||!mr(t)||Mo(t)?!1:ur(t).position==="fixed"||Xf(t,o)}function $T(n,o){let t=o.get(n);if(t)return t;let r=ks(n,[],!1).filter(v=>mr(v)&&Ro(v)!=="body"),s=null,d=ur(n).position==="fixed",m=d?gi(n):n;for(;mr(m)&&!Mo(m);){let v=ur(m),x=Hl(m);!x&&v.position==="fixed"&&(s=null),(d?!x&&!s:!x&&v.position==="static"&&!!s&&DT.has(s.position)||Ns(m)&&!x&&Xf(n,m))?r=r.filter(B=>B!==m):s=v,m=gi(m)}return o.set(n,r),r}function zT(n){let{element:o,boundary:t,rootBoundary:r,strategy:s}=n,m=[...t==="clippingAncestors"?Ua(o)?[]:$T(o,this._c):[].concat(t),r],v=m[0],x=m.reduce((L,B)=>{let q=Kf(o,B,s);return L.top=Le(q.top,L.top),L.right=Yr(q.right,L.right),L.bottom=Yr(q.bottom,L.bottom),L.left=Le(q.left,L.left),L},Kf(o,v,s));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function VT(n){let{width:o,height:t}=Wf(n);return{width:o,height:t}}function BT(n,o,t){let r=Nr(o),s=kr(o),d=t==="fixed",m=Po(n,!0,d,o),v={scrollLeft:0,scrollTop:0},x=wr(0);function L(){x.x=Jc(s)}if(r||!r&&!d)if((Ro(o)!=="body"||Ns(s))&&(v=Ha(o)),r){let X=Po(o,!0,d,o);x.x=X.x+o.clientLeft,x.y=X.y+o.clientTop}else s&&L();d&&!r&&s&&L();let B=s&&!r&&!d?qf(s,v):wr(0),q=m.left+v.scrollLeft-x.x-B.x,Q=m.top+v.scrollTop-x.y-B.y;return{x:q,y:Q,width:m.width,height:m.height}}function Zc(n){return ur(n).position==="static"}function Yf(n,o){if(!Nr(n)||ur(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return kr(n)===t&&(t=t.ownerDocument.body),t}function Zf(n,o){let t=He(n);if(Ua(n))return t;if(!Nr(n)){let s=gi(n);for(;s&&!Mo(s);){if(mr(s)&&!Zc(s))return s;s=gi(s)}return t}let r=Yf(n,o);for(;r&&Uf(r)&&Zc(r);)r=Yf(r,o);return r&&Mo(r)&&Zc(r)&&!Hl(r)?t:r||Hf(n)||t}var UT=async function(n){let o=this.getOffsetParent||Zf,t=this.getDimensions,r=await t(n.floating);return{reference:BT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HT(n){return ur(n).direction==="rtl"}var GT={convertOffsetParentRelativeRectToViewportRelativeRect:OT,getDocumentElement:kr,getClippingRect:zT,getOffsetParent:Zf,getElementRects:UT,getClientRects:RT,getDimensions:VT,getScale:Ls,isElement:mr,isRTL:HT};function Qf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function KT(n,o){let t=null,r,s=kr(n);function d(){var v;clearTimeout(r),(v=t)==null||v.disconnect(),t=null}function m(v,x){v===void 0&&(v=!1),x===void 0&&(x=1),d();let L=n.getBoundingClientRect(),{left:B,top:q,width:Q,height:X}=L;if(v||o(),!Q||!X)return;let it=Ba(q),dt=Ba(s.clientWidth-(B+Q)),lt=Ba(s.clientHeight-(q+X)),bt=Ba(B),Ct={rootMargin:-it+"px "+-dt+"px "+-lt+"px "+-bt+"px",threshold:Le(0,Yr(1,x))||1},Yt=!0;function Vt(Wt){let Jt=Wt[0].intersectionRatio;if(Jt!==x){if(!Yt)return m();Jt?m(!1,Jt):r=setTimeout(()=>{m(!1,1e-7)},1e3)}Jt===1&&!Qf(L,n.getBoundingClientRect())&&m(),Yt=!1}try{t=new IntersectionObserver(Vt,{...Ct,root:s.ownerDocument})}catch{t=new IntersectionObserver(Vt,Ct)}t.observe(n)}return m(!0),d}function Jf(n,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:x=!1}=r,L=Qc(n),B=s||d?[...L?ks(L):[],...ks(o)]:[];B.forEach(bt=>{s&&bt.addEventListener("scroll",t,{passive:!0}),d&&bt.addEventListener("resize",t)});let q=L&&v?KT(L,t):null,Q=-1,X=null;m&&(X=new ResizeObserver(bt=>{let[It]=bt;It&&It.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),L&&!x&&X.observe(L),X.observe(o));let it,dt=x?Po(n):null;x&<();function lt(){let bt=Po(n);dt&&!Qf(dt,bt)&&t(),dt=bt,it=requestAnimationFrame(lt)}return t(),()=>{var bt;B.forEach(It=>{s&&It.removeEventListener("scroll",t),d&&It.removeEventListener("resize",t)}),q==null||q(),(bt=X)==null||bt.disconnect(),X=null,x&&cancelAnimationFrame(it)}}var tv=Ff;var ev=$f,rv=Df,iv=zf;var ov=Pf;var sv=(n,o,t)=>{let r=new Map,s={platform:GT,...t},d={...s.platform,_c:r};return Mf(n,o,{...s,platform:d})};var Yl=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 th=class{constructor(){this.stack=[]}push(o){return this.stack.push(o),this.stack.length}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Oe=new th;var YT=U`
|
|
2565
2565
|
:host {
|
|
2566
2566
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2567
2567
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2683,7 +2683,7 @@
|
|
|
2683
2683
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2684
2684
|
border-bottom-left-radius: 100%;
|
|
2685
2685
|
}
|
|
2686
|
-
`,ov=[UT];var Wl=z.constructTagName("popoverportal"),Yl=class extends q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var jl=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(Wl),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 B;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,b=this.popover.arrowElement.getBoundingClientRect(),x=(B=this.popover.arrowElement.offsetParent)==null?void 0:B.getBoundingClientRect();if(!this.arrowPixelChange){let K=x!=null&&x[s]?12-Math.abs(b[s]-x[s]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let N=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-N}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends bl(ul(ml(q))){constructor(){super();this.id="";this.triggerID="";this.trigger=gt.TRIGGER;this.placement=gt.PLACEMENT;this.color=gt.COLOR;this.visible=gt.VISIBLE;this.offset=gt.OFFSET;this.boundary=gt.BOUNDARY;this.boundaryRoot=gt.BOUNDARY_ROOT;this.focusTrap=gt.FOCUS_TRAP;this.preventScroll=gt.PREVENT_SCROLL;this.showArrow=gt.ARROW;this.closeButton=gt.CLOSE_BUTTON;this.interactive=gt.INTERACTIVE;this.delay=gt.DELAY;this.hideOnEscape=gt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=gt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=gt.HIDE_ON_BLUR;this.hideOnOutsideClick=gt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=gt.FOCUS_BACK;this.backdrop=gt.BACKDROP;this.isBackdropInvisible=gt.IS_BACKDROP_INVISIBLE;this.disableFlip=gt.DISABLE_FLIP;this.size=gt.SIZE;this.closeButtonAriaLabel=null;this.strategy=gt.STRATEGY;this.role=gt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=gt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=gt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=gt.ANIMATION_FRAME;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.popoverDepth=0;this.timers=new Gl(this);this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(Be).includes(m)).length>0?this.trigger:gt.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,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Le.peek()!==this)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(),vi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),vi.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(Hr.OPEN)};this.startCloseDelay=()=>{if(this.cancelOpenDelay(),!this.interactive)this.hide();else{let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Hr.HOVER,t,this.closeDelay):(this.timers.clearTimeout(Hr.HOVER),t())}};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Hr.HOVER),this.timers.clearTimeout(Hr.CLOSE)};this.show=()=>{if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Hr.OPEN,t,this.openDelay):(this.timers.clearTimeout(Hr.OPEN),t())};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Hr.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Hr.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=[Jf({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],m=this.offset;if(this.disableFlip||d.push(tv({boundary:r,rootBoundary:s})),this.size){let b=N=>{this.style.setProperty("--mdc-popover-internal-available-height",`${N}px`)},x=this.renderRoot.querySelector('[part="popover-content"]');d.push(ev({boundary:r,rootBoundary:s,apply({availableHeight:N}){x&&(Object.assign(x.style,{maxHeight:`${N}px`,overflowY:"auto"}),b(N))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let b=this.arrowElement.offsetHeight,x=Math.sqrt(2*b**2)/2;m+=x,d.push(rv({element:this.arrowElement,padding:12}))}d.push(Qf(m)),this.floatingUICleanupFunction=Zf(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let x=this.adjustPlacementForRtl(this.placement),{x:N,y:B,middlewareData:K,placement:Q}=await iv(b,this,{placement:x,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(N,B),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.utils=new jl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return this.internalZIndex===void 0||!Number.isInteger(this.internalZIndex)?gt.Z_INDEX+this.popoverDepth*3:this.internalZIndex}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),vi.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(),vi.onDestroyedPopover(this),Le.remove(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(kt).includes(this.placement)?this.placement:gt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(_o).includes(this.color)?this.color:gt.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())}async isOpenUpdated(t,r){var d,m;let{triggerElement:s}=this;t===r||!s||(r&&!this.shouldSuppressOpening?(Le.peek()!==this&&(this.popoverDepth=Le.push(this),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 b,x;this.interactive&&this.focusTrap&&((b=this.activateFocusTrap)==null||b.call(this),(x=this.setInitialFocus)==null||x.call(this))},0),vi.onShowPopover(this)):(Le.peek()===this&&Le.pop(),(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),vi.onHidePopover(this)))}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 kt.LEFT:return kt.RIGHT;case kt.LEFT_START:return kt.RIGHT_START;case kt.LEFT_END:return kt.RIGHT_END;case kt.RIGHT:return kt.LEFT;case kt.RIGHT_START:return kt.LEFT_START;case kt.RIGHT_END:return kt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,_`
|
|
2686
|
+
`,av=[YT];var jl=z.constructTagName("popoverportal"),Wl=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 ql=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(jl),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 B;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(),x=(B=this.popover.arrowElement.offsetParent)==null?void 0:B.getBoundingClientRect();if(!this.arrowPixelChange){let q=x!=null&&x[s]?12-Math.abs(v[s]-x[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(El(vl(fl(j)))){constructor(){super();this.id="";this.triggerID="";this.trigger=gt.TRIGGER;this.placement=gt.PLACEMENT;this.color=gt.COLOR;this.visible=gt.VISIBLE;this.offset=gt.OFFSET;this.boundary=gt.BOUNDARY;this.boundaryRoot=gt.BOUNDARY_ROOT;this.focusTrap=gt.FOCUS_TRAP;this.preventScroll=gt.PREVENT_SCROLL;this.showArrow=gt.ARROW;this.closeButton=gt.CLOSE_BUTTON;this.interactive=gt.INTERACTIVE;this.delay=gt.DELAY;this.hideOnEscape=gt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=gt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=gt.HIDE_ON_BLUR;this.hideOnOutsideClick=gt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=gt.FOCUS_BACK;this.backdrop=gt.BACKDROP;this.isBackdropInvisible=gt.IS_BACKDROP_INVISIBLE;this.disableFlip=gt.DISABLE_FLIP;this.size=gt.SIZE;this.closeButtonAriaLabel=null;this.strategy=gt.STRATEGY;this.role=gt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=gt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=gt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=gt.ANIMATION_FRAME;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.popoverDepth=0;this.timers=new Yl(this);this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(Ue).includes(m)).length>0?this.trigger:gt.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,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Oe.peek()!==this)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.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.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())};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=[ev({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],m=this.offset;if(this.disableFlip||d.push(rv({boundary:r,rootBoundary:s})),this.size){let v=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},x=this.renderRoot.querySelector('[part="popover-content"]');d.push(iv({boundary:r,rootBoundary:s,apply({availableHeight:L}){x&&(Object.assign(x.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,x=Math.sqrt(2*v**2)/2;m+=x,d.push(ov({element:this.arrowElement,padding:12}))}d.push(tv(m)),this.floatingUICleanupFunction=Jf(t,this,async()=>{let{triggerElement:v}=this;if(!v)return;let x=this.adjustPlacementForRtl(this.placement),{x:L,y:B,middlewareData:q,placement:Q}=await sv(v,this,{placement:x,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,B),q.arrow&&this.arrowElement&&this.utils.updateArrowStyle(q.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.utils=new ql(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return this.internalZIndex===void 0||!Number.isInteger(this.internalZIndex)?gt.Z_INDEX+this.popoverDepth*3:this.internalZIndex}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),Oe.remove(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:gt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(wo).includes(this.color)?this.color:gt.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())}async isOpenUpdated(t,r){var d,m;let{triggerElement:s}=this;t===r||!s||(r&&!this.shouldSuppressOpening?(Oe.peek()!==this&&(this.popoverDepth=Oe.push(this),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,x;this.interactive&&this.focusTrap&&((v=this.activateFocusTrap)==null||v.call(this),(x=this.setInitialFocus)==null||x.call(this))},0),bi.onShowPopover(this)):(Oe.peek()===this&&Oe.pop(),(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)))}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}`,_`
|
|
2687
2687
|
<div part="popover-hover-bridge"></div>
|
|
2688
2688
|
${this.closeButton?_` <mdc-button
|
|
2689
2689
|
part="popover-close"
|
|
@@ -2692,12 +2692,12 @@
|
|
|
2692
2692
|
size="20"
|
|
2693
2693
|
aria-label=${tt(this.closeButtonAriaLabel)||""}
|
|
2694
2694
|
@click="${this.hide}"
|
|
2695
|
-
></mdc-button>`:
|
|
2696
|
-
${this.showArrow?_`<div class="popover-arrow" part="popover-arrow"></div>`:
|
|
2695
|
+
></mdc-button>`:W}
|
|
2696
|
+
${this.showArrow?_`<div class="popover-arrow" part="popover-arrow"></div>`:W}
|
|
2697
2697
|
<div part="popover-content">
|
|
2698
2698
|
<slot></slot>
|
|
2699
2699
|
</div>
|
|
2700
|
-
`}};_t.styles=[...
|
|
2700
|
+
`}};_t.styles=[...j.styles,...av],p([u({type:String,reflect:!0})],_t.prototype,"id",2),p([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),p([u({type:String,reflect:!0})],_t.prototype,"trigger",2),p([u({type:String,reflect:!0})],_t.prototype,"placement",2),p([u({type:String,reflect:!0})],_t.prototype,"color",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),p([u({type:Number,reflect:!0})],_t.prototype,"offset",2),p([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),p([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),p([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),p([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),p([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),p([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),p([u({type:String,reflect:!0})],_t.prototype,"delay",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),p([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),p([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),p([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),p([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),p([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0})],_t.prototype,"strategy",2),p([u({type:String,reflect:!0})],_t.prototype,"role",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),p([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),p([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2);var Ge=_t;var nv=z.constructTagName("toggletip"),Do={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Nt.TOP,CLICK:Ue.CLICK,SHOW_ARROW:!0};var WT=U`
|
|
2701
2701
|
:host {
|
|
2702
2702
|
--mdc-toggletip-max-width: 400px;
|
|
2703
2703
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -2727,7 +2727,7 @@
|
|
|
2727
2727
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
|
2728
2728
|
margin-left: 2rem;
|
|
2729
2729
|
}
|
|
2730
|
-
`,
|
|
2730
|
+
`,lv=[WT];var Yi=class extends Ge{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=Do.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:Do.CLOSE_BUTTON,this.closeButtonAriaLabel=Do.CLOSE_BUTTON_ARIA_LABEL,this.trigger=Do.CLICK,this.showArrow=Do.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=Do.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return _`
|
|
2731
2731
|
${super.render()}
|
|
2732
2732
|
<mdc-screenreaderannouncer
|
|
2733
2733
|
identity="${tt(this.screenreaderAnnouncerIdentity)}"
|
|
@@ -2735,12 +2735,12 @@
|
|
|
2735
2735
|
delay="300"
|
|
2736
2736
|
>
|
|
2737
2737
|
</mdc-screenreaderannouncer>
|
|
2738
|
-
`}};
|
|
2738
|
+
`}};Yi.styles=[...Ge.styles,...lv],p([Km()],Yi.prototype,"defaultSlotNodes",2),p([ut()],Yi.prototype,"currentAnnouncement",2),p([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Yi.prototype,"screenreaderAnnouncerIdentity",2),p([u({type:String,reflect:!0})],Yi.prototype,"placement",2);var eh=Yi;function Xl(n,o=500){let t,r=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,n(...s)},o)};return r.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},r}var dv=z.constructTagName("screenreaderannouncer"),jT={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Fo={ARIA_LIVE:jT.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var qT=[U`
|
|
2739
2739
|
:host {
|
|
2740
2740
|
display: none;
|
|
2741
2741
|
visibility: hidden;
|
|
2742
2742
|
}
|
|
2743
|
-
`],
|
|
2743
|
+
`],cv=qT;var jr=class extends j{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Fo.ARIA_LIVE;this.delay=Fo.DELAY;this.timeout=Fo.TIMEOUT;this.debounceTime=Fo.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(t,r,s,d){var m;if(t.length>0){let v=`mdc-screenreaderannouncer-announcement-${Ie()}`,x=document.createElement("div");x.setAttribute("id",v),x.setAttribute("aria-live",d),(m=this.getElementByIdAcrossShadowRoot(this.identity))==null||m.appendChild(x);let L=window.setTimeout(()=>{let B=document.createElement("p");B.textContent=t,x.appendChild(B),this.ariaLiveAnnouncementIds.push(v);let q=window.setTimeout(()=>{x.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=`
|
|
2744
2744
|
.mdc-screenreaderannouncer__visually-hidden {
|
|
2745
2745
|
clip: rect(0 0 0 0);
|
|
2746
2746
|
clip-path: inset(50%);
|
|
@@ -2750,7 +2750,7 @@
|
|
|
2750
2750
|
white-space: nowrap;
|
|
2751
2751
|
width: 1px;
|
|
2752
2752
|
}
|
|
2753
|
-
`,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=
|
|
2753
|
+
`,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=Xl(()=>{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=Fo.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=Fo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};jr.styles=[...j.styles,...cv],p([u({type:String,reflect:!0})],jr.prototype,"announcement",2),p([u({type:String,reflect:!0})],jr.prototype,"identity",2),p([u({type:String,reflect:!0,attribute:"data-aria-live"})],jr.prototype,"dataAriaLive",2),p([u({type:Number,reflect:!0})],jr.prototype,"delay",2),p([u({type:Number,reflect:!0})],jr.prototype,"timeout",2),p([u({type:Number,reflect:!0,attribute:"debounce-time"})],jr.prototype,"debounceTime",2);var rh=jr;rh.register(dv);var XT=rh;eh.register(nv);var ZT=eh;var Ce=n=>{class o extends n{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,p([u({reflect:!0,type:String})],o.prototype,"name",2),p([u({reflect:!0,type:String})],o.prototype,"value",2),p([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),p([Ee("input")],o.prototype,"inputElement",2),o};var QT=U`
|
|
2754
2754
|
:host {
|
|
2755
2755
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
|
2756
2756
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
|
@@ -2828,30 +2828,30 @@
|
|
|
2828
2828
|
pointer-events: none;
|
|
2829
2829
|
cursor: default;
|
|
2830
2830
|
}
|
|
2831
|
-
`,
|
|
2832
|
-
id="${
|
|
2833
|
-
tagname="${
|
|
2834
|
-
type="${
|
|
2831
|
+
`,hv=[yt,QT];var pv=n=>({[zt.ERROR]:"error-legacy-badge-filled",[zt.WARNING]:"warning-badge-filled",[zt.SUCCESS]:"check-circle-badge-filled",[zt.PRIORITY]:"priority-badge-filled",[zt.DEFAULT]:""})[n]||"";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
|
|
2832
|
+
id="${Ot.HEADING_ID}"
|
|
2833
|
+
tagname="${$a.TAGNAME}"
|
|
2834
|
+
type="${$a.HEADER_TYPE}"
|
|
2835
2835
|
part="label"
|
|
2836
2836
|
>${this.label}</mdc-text
|
|
2837
|
-
>`:
|
|
2837
|
+
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=pv(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?_`
|
|
2838
2838
|
<mdc-text
|
|
2839
|
-
id="${
|
|
2839
|
+
id="${Ot.HELPER_TEXT_ID}"
|
|
2840
2840
|
part="help-text"
|
|
2841
|
-
tagname=${
|
|
2842
|
-
type=${
|
|
2841
|
+
tagname=${$a.TAGNAME}
|
|
2842
|
+
type=${$a.TYPE}
|
|
2843
2843
|
>
|
|
2844
2844
|
${this.helpText}
|
|
2845
2845
|
</mdc-text>
|
|
2846
|
-
`:
|
|
2846
|
+
`:W}renderLabel(){if(!this.label)return W;let t=`toggletip-trigger-${Ie()}`,r=this.disabled||this.softDisabled;return _`<div part="label-text">
|
|
2847
2847
|
<slot name="label">${this.renderLabelElement()}</slot>
|
|
2848
|
-
${this.required?_`<span part="required-indicator">*</span>`:
|
|
2848
|
+
${this.required?_`<span part="required-indicator">*</span>`:W}
|
|
2849
2849
|
<slot name="toggletip">
|
|
2850
2850
|
${this.toggletipText?_` <mdc-button
|
|
2851
2851
|
part="info-icon-btn"
|
|
2852
|
-
prefix-icon="${
|
|
2853
|
-
size="${
|
|
2854
|
-
variant="${
|
|
2852
|
+
prefix-icon="${Ot.INFO_ICON}"
|
|
2853
|
+
size="${Ot.ICON_SIZE}"
|
|
2854
|
+
variant="${$t.TERTIARY}"
|
|
2855
2855
|
aria-label="${tt(this.infoIconAriaLabel)}"
|
|
2856
2856
|
?disabled="${r}"
|
|
2857
2857
|
?soft-disabled="${this.softDisabled}"
|
|
@@ -2865,12 +2865,12 @@
|
|
|
2865
2865
|
strategy="${this.toggletipStrategy}"
|
|
2866
2866
|
show-arrow
|
|
2867
2867
|
>${this.toggletipText}</mdc-toggletip
|
|
2868
|
-
>`:
|
|
2868
|
+
>`:W}
|
|
2869
2869
|
</slot>
|
|
2870
2870
|
</div>`}renderHelperText(){return this.helpText?_`<div part="help-text-container">
|
|
2871
2871
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
|
2872
2872
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
|
2873
|
-
</div>`:
|
|
2873
|
+
</div>`:W}};Ke.styles=[...j.styles,...hv],p([u({reflect:!0,type:String})],Ke.prototype,"label",2),p([u({type:Boolean,reflect:!0,attribute:"required"})],Ke.prototype,"required",2),p([u({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),p([u({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2),p([u({type:String,reflect:!0,attribute:"toggletip-text"})],Ke.prototype,"toggletipText",2),p([u({type:String,reflect:!0,attribute:"toggletip-placement"})],Ke.prototype,"toggletipPlacement",2),p([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],Ke.prototype,"toggletipStrategy",2),p([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Ke.prototype,"infoIconAriaLabel",2),p([u({type:Boolean,reflect:!0})],Ke.prototype,"readonly",2),p([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ke.prototype,"softDisabled",2);var le=Ke;var JT=[U`
|
|
2874
2874
|
:host {
|
|
2875
2875
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
2876
2876
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -2940,7 +2940,7 @@
|
|
|
2940
2940
|
:host([soft-disabled]) {
|
|
2941
2941
|
pointer-events: none;
|
|
2942
2942
|
}
|
|
2943
|
-
`,...St(!0)],
|
|
2943
|
+
`,...St(!0)],mv=JT;var Wi=class extends kt(kt(xe(Ce(Ht(le))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.helpTextType=Af.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 _`
|
|
2944
2944
|
<mdc-staticcheckbox
|
|
2945
2945
|
part="static-checkbox"
|
|
2946
2946
|
class="mdc-focus-ring"
|
|
@@ -2964,13 +2964,13 @@
|
|
|
2964
2964
|
?readonly="${this.readonly}"
|
|
2965
2965
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
2966
2966
|
tabindex="${this.disabled?-1:0}"
|
|
2967
|
-
aria-describedby="${tt(this.helpText?
|
|
2967
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:"")}"
|
|
2968
2968
|
@change=${this.handleChange}
|
|
2969
2969
|
@keydown=${this.handleKeyDown}
|
|
2970
2970
|
/>
|
|
2971
2971
|
</mdc-staticcheckbox>
|
|
2972
2972
|
${this.renderLabelAndHelperText()}
|
|
2973
|
-
`}};
|
|
2973
|
+
`}};Wi.styles=[...le.styles,...mv],p([u({type:Boolean,reflect:!0})],Wi.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],Wi.prototype,"indeterminate",2),p([u({type:Boolean,reflect:!0})],Wi.prototype,"autofocus",2),p([u({type:String,reflect:!0,attribute:"help-text-type"})],Wi.prototype,"helpTextType",2);var ih=Wi;ih.register(xf);var tx=ih;var uv=z.constructTagName("staticchip"),oh={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Zl={COLOR:oh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN};var ex=U`
|
|
2974
2974
|
:host {
|
|
2975
2975
|
height: 1.5rem;
|
|
2976
2976
|
gap: 0.25rem;
|
|
@@ -3042,12 +3042,12 @@
|
|
|
3042
3042
|
--mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
|
|
3043
3043
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
|
|
3044
3044
|
}
|
|
3045
|
-
`,
|
|
3045
|
+
`,fv=[yt,ex];var Os=class extends Zt(j){constructor(){super(...arguments);this.color=Zl.COLOR}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return _`
|
|
3046
3046
|
${this.renderIcon()}
|
|
3047
|
-
${this.label?_`<mdc-text part="label" type="${
|
|
3047
|
+
${this.label?_`<mdc-text part="label" type="${Zl.TEXT_TYPE}" tagname="${Zl.TAG_NAME}"
|
|
3048
3048
|
>${this.label}</mdc-text
|
|
3049
|
-
>`:
|
|
3050
|
-
`}};
|
|
3049
|
+
>`:W}
|
|
3050
|
+
`}};Os.styles=[...j.styles,...fv],p([u({type:String,reflect:!0})],Os.prototype,"color",2),p([u({type:String})],Os.prototype,"label",2);var Ga=Os;var vv=z.constructTagName("chip"),Rs={COLOR:oh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Eo[24],ROLE:J.BUTTON};var rx=U`
|
|
3051
3051
|
:host {
|
|
3052
3052
|
cursor: pointer;
|
|
3053
3053
|
height: 1.5rem;
|
|
@@ -3141,12 +3141,12 @@
|
|
|
3141
3141
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3142
3142
|
cursor: auto;
|
|
3143
3143
|
}
|
|
3144
|
-
`,
|
|
3144
|
+
`,gv=[yt,rx,...St()];var Ms=class extends Zt(ae){constructor(){super(...arguments);this.color=Rs.COLOR}connectedCallback(){super.connectedCallback(),this.role=Rs.ROLE,this.size=Rs.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 _`
|
|
3145
3145
|
${this.renderIcon()}
|
|
3146
|
-
${this.label?_`<mdc-text part="label" type="${
|
|
3146
|
+
${this.label?_`<mdc-text part="label" type="${Rs.TEXT_TYPE}" tagname="${Rs.TAG_NAME}"
|
|
3147
3147
|
>${this.label}</mdc-text
|
|
3148
|
-
>`:
|
|
3149
|
-
`}};
|
|
3148
|
+
>`:W}
|
|
3149
|
+
`}};Ms.styles=[...Ga.styles,...gv],p([u({type:String,reflect:!0})],Ms.prototype,"color",2),p([u({type:String})],Ms.prototype,"label",2);var Ps=Ms;Ps.register(vv);var ix=Ps;var bv=z.constructTagName("coachmark"),$o={COLOR:wo.CONTRAST,TRIGGER:Ue.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var zo=class extends Ge{constructor(){super(...arguments);this.trigger=$o.TRIGGER;this.showArrow=$o.ARROW;this.closeButton=$o.CLOSE_BUTTON;this.disableAriaExpanded=$o.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=$o.COLOR,this.showArrow=$o.ARROW}};p([u({type:String,reflect:!0})],zo.prototype,"trigger",2),p([u({type:Boolean,attribute:"show-arrow"})],zo.prototype,"showArrow",2),p([u({type:Boolean,reflect:!0,attribute:"close-button"})],zo.prototype,"closeButton",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],zo.prototype,"disableAriaExpanded",2);var sh=zo;sh.register(bv);var ox=sh;var Ql=z.constructTagName("controltypeprovider"),Jl={CONTROL_TYPE:"uncontrolled"},td=["controlled","uncontrolled"];var sx=Ql,ah=sx;var ed=class extends Te{constructor(){super({context:ah});this.innerControlType=Jl.CONTROL_TYPE}static get Context(){return ah}set controlType(t){td.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};p([u({type:String,attribute:"control-type",reflect:!0})],ed.prototype,"controlType",1);var nh=ed;nh.register(Ql);var lh=nh;Ts.register(Nu);var ax=Ts;var Ka=z.constructTagName("divider"),Vo={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ya={SOLID:"solid",GRADIENT:"gradient"},fr={POSITIVE:"positive",NEGATIVE:"negative"},Wa={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Bo={ORIENTATION:Vo.HORIZONTAL,VARIANT:Ya.SOLID,ARROW_DIRECTION:fr.NEGATIVE,BUTTON_DIRECTION:fr.NEGATIVE};var nx=[yt,U`
|
|
3150
3150
|
:host {
|
|
3151
3151
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
3152
3152
|
--mdc-divider-width: 0.0625rem;
|
|
@@ -3347,11 +3347,11 @@
|
|
|
3347
3347
|
:host([data-hidden]) {
|
|
3348
3348
|
display: none;
|
|
3349
3349
|
}
|
|
3350
|
-
`],
|
|
3350
|
+
`],yv=nx;var ji=class extends j{constructor(){super(...arguments);this.orientation=Bo.ORIENTATION;this.variant=Bo.VARIANT;this.arrowDirection=Bo.ARROW_DIRECTION;this.buttonPosition=Bo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Ya).includes(t)?t:Bo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(Vo).includes(t)?t:Bo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===Vo.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===Vo.HORIZONTAL,r=this.arrowDirection===fr.POSITIVE;return t?r?Wa.UP:Wa.DOWN:r?Wa.RIGHT:Wa.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 m;let t=(m=this.shadowRoot)==null?void 0:m.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let s=r.some(v=>v.tagName===Ca.toUpperCase()),d=r.some(v=>v.tagName===ni.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 _`
|
|
3351
3351
|
<div></div>
|
|
3352
3352
|
<slot @slotchange=${this.inferDividerType}></slot>
|
|
3353
3353
|
<div></div>
|
|
3354
|
-
`}};
|
|
3354
|
+
`}};ji.styles=[...j.styles,...yv],p([u({type:String,reflect:!0})],ji.prototype,"orientation",2),p([u({type:String,reflect:!0})],ji.prototype,"variant",2),p([u({type:String,attribute:"arrow-direction",reflect:!0})],ji.prototype,"arrowDirection",2),p([u({type:String,attribute:"button-position",reflect:!0})],ji.prototype,"buttonPosition",2);var dh=ji;dh.register(Ka);var lx=dh;var dx=U`
|
|
3355
3355
|
:host([selected]) {
|
|
3356
3356
|
border: 2px solid;
|
|
3357
3357
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
|
@@ -3373,7 +3373,7 @@
|
|
|
3373
3373
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3374
3374
|
cursor: auto;
|
|
3375
3375
|
}
|
|
3376
|
-
`,
|
|
3376
|
+
`,Ev=[dx];var Tv=z.constructTagName("filterchip"),ch={ICON_NAME:"check-bold",COLOR:"default"};var ja=class extends Ps{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=ch.COLOR}setSelected(t){t?(this.iconName=ch.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)}};ja.styles=[...Ps.styles,...Ev],p([u({type:Boolean,reflect:!0})],ja.prototype,"selected",2);var hh=ja;hh.register(Tv);var cx=hh;var hx=U`
|
|
3377
3377
|
:host::part(container) {
|
|
3378
3378
|
display: flex;
|
|
3379
3379
|
flex-direction: column;
|
|
@@ -3385,18 +3385,18 @@
|
|
|
3385
3385
|
flex-direction: column;
|
|
3386
3386
|
gap: 0.25rem;
|
|
3387
3387
|
}
|
|
3388
|
-
`,
|
|
3388
|
+
`,xv=[hx];var rd=class extends Ht(le){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0}render(){var t;return _`
|
|
3389
3389
|
<div
|
|
3390
3390
|
part="container"
|
|
3391
3391
|
role="${this.isRadio?J.RADIOGROUP:J.GROUP}"
|
|
3392
|
-
aria-labelledby="${
|
|
3393
|
-
aria-describedby="${tt(this.helpText?
|
|
3392
|
+
aria-labelledby="${Ot.HEADING_ID}"
|
|
3393
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:"")}"
|
|
3394
3394
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
3395
3395
|
>
|
|
3396
3396
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
|
3397
3397
|
<slot></slot>
|
|
3398
3398
|
</div>
|
|
3399
|
-
`}};
|
|
3399
|
+
`}};rd.styles=[...le.styles,...xv];var ph=rd;var Av=z.constructTagName("formfieldgroup");ph.register(Av);var id=ph;Ia.register(il);var px=Ia;Ra.register(Sl);var mx=Ra;var Uo=hi(class extends Ur{constructor(n){if(super(n),n.type!==er.PROPERTY&&n.type!==er.ATTRIBUTE&&n.type!==er.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dl(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===ye||o===W)return o;let t=n.element,r=n.name;if(n.type===er.PROPERTY){if(o===t[r])return ye}else if(n.type===er.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return ye}else if(n.type===er.ATTRIBUTE&&t.getAttribute(r)===o+"")return ye;return cl(n),o}});le.register(Tf);var ir=le;var Sv=z.constructTagName("input"),od={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Ds={OFF:"off",ON:"on"},qi={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Iv={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:hr[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:Ds.OFF,INPUT_TYPE:qi.TEXT};var ux=[U`
|
|
3400
3400
|
:host {
|
|
3401
3401
|
--mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
|
|
3402
3402
|
--mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -3516,45 +3516,45 @@
|
|
|
3516
3516
|
opacity: 0;
|
|
3517
3517
|
pointer-events: none;
|
|
3518
3518
|
}
|
|
3519
|
-
`,...St(!0)],
|
|
3519
|
+
`,...St(!0)],_v=ux;var de=class extends kt(xe(Ce(Ht(ir)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=od.OFF;this.autocomplete=Ds.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?_`
|
|
3520
3520
|
<mdc-icon
|
|
3521
3521
|
part="leading-icon"
|
|
3522
3522
|
name=${this.leadingIcon}
|
|
3523
|
-
size="${
|
|
3524
|
-
length-unit="${
|
|
3523
|
+
size="${yi.ICON_SIZE_VALUE}"
|
|
3524
|
+
length-unit="${yi.ICON_SIZE_UNIT}"
|
|
3525
3525
|
>
|
|
3526
3526
|
</mdc-icon>
|
|
3527
|
-
`:
|
|
3527
|
+
`:W}renderPrefixText(){return this.prefixText?_`
|
|
3528
3528
|
<mdc-text
|
|
3529
3529
|
part="prefix-text"
|
|
3530
|
-
tagname="${
|
|
3531
|
-
type="${
|
|
3530
|
+
tagname="${yi.PREFIX_TEXT_TAG}"
|
|
3531
|
+
type="${yi.PREFIX_TEXT_TYPE}"
|
|
3532
3532
|
aria-hidden="true"
|
|
3533
3533
|
>
|
|
3534
|
-
${this.prefixText.slice(0,
|
|
3534
|
+
${this.prefixText.slice(0,Iv.MAX_LENGTH)}
|
|
3535
3535
|
</mdc-text>
|
|
3536
|
-
`:
|
|
3536
|
+
`:W}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0}))}renderTrailingButton(t=!1){let r=t||this.value&&this.trailingButton;return r?_`
|
|
3537
3537
|
<mdc-button
|
|
3538
3538
|
part="trailing-button"
|
|
3539
3539
|
class="own-focus-ring ${r?"":"hidden"}"
|
|
3540
|
-
prefix-icon="${
|
|
3541
|
-
variant="${
|
|
3542
|
-
size="${
|
|
3540
|
+
prefix-icon="${yi.CLEAR_BUTTON_ICON}"
|
|
3541
|
+
variant="${yi.CLEAR_BUTTON_VARIANT}"
|
|
3542
|
+
size="${yi.CLEAR_BUTTON_SIZE}"
|
|
3543
3543
|
aria-label="${this.clearAriaLabel}"
|
|
3544
3544
|
@click=${this.clearInputText}
|
|
3545
3545
|
?disabled=${this.disabled||this.readonly||!r}
|
|
3546
3546
|
></mdc-button>
|
|
3547
|
-
`:
|
|
3547
|
+
`:W}renderInputElement(t,r=!1){var d,m;let s=r?"":this.placeholder;return _`<input
|
|
3548
3548
|
aria-label="${(d=this.dataAriaLabel)!=null?d:""}"
|
|
3549
3549
|
part="input-text"
|
|
3550
3550
|
id="${this.inputId}"
|
|
3551
3551
|
name="${this.name}"
|
|
3552
|
-
.value="${
|
|
3552
|
+
.value="${Uo(this.value)}"
|
|
3553
3553
|
?disabled="${this.disabled}"
|
|
3554
3554
|
?readonly="${this.readonly}"
|
|
3555
3555
|
?required="${this.required}"
|
|
3556
3556
|
type="${t}"
|
|
3557
|
-
aria-describedby="${tt(this.helpText?
|
|
3557
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:(m=this.dataAriaDescribedby)!=null?m:"")}"
|
|
3558
3558
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
|
3559
3559
|
placeholder=${tt(s)}
|
|
3560
3560
|
minlength=${tt(this.minlength)}
|
|
@@ -3574,12 +3574,12 @@
|
|
|
3574
3574
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
|
3575
3575
|
<div part="input-section">
|
|
3576
3576
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
|
3577
|
-
<slot name="input">${this.renderInputElement(
|
|
3577
|
+
<slot name="input">${this.renderInputElement(yi.INPUT_TYPE)}</slot>
|
|
3578
3578
|
</div>
|
|
3579
3579
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
|
3580
3580
|
</div>
|
|
3581
|
-
${this.helpText?this.renderHelperText():
|
|
3582
|
-
`}};
|
|
3581
|
+
${this.helpText?this.renderHelperText():W}
|
|
3582
|
+
`}};de.styles=[...ir.styles,..._v],p([u({type:String})],de.prototype,"placeholder",2),p([u({type:String,attribute:"prefix-text"})],de.prototype,"prefixText",2),p([u({type:String,attribute:"leading-icon"})],de.prototype,"leadingIcon",2),p([u({type:Boolean,attribute:"trailing-button"})],de.prototype,"trailingButton",2),p([u({type:Number})],de.prototype,"maxlength",2),p([u({type:Number})],de.prototype,"minlength",2),p([u({type:String})],de.prototype,"autocapitalize",2),p([u({type:String})],de.prototype,"autocomplete",2),p([u({type:String})],de.prototype,"dirname",2),p([u({type:String})],de.prototype,"pattern",2),p([u({type:String})],de.prototype,"list",2),p([u({type:Number})],de.prototype,"size",2),p([u({type:String,attribute:"clear-aria-label"})],de.prototype,"clearAriaLabel",2),p([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],de.prototype,"dataAriaDescribedby",2);var Lr=de;Lr.register(Sv);var fx=Lr;var vx=U`
|
|
3583
3583
|
:host {
|
|
3584
3584
|
height: 1.5rem;
|
|
3585
3585
|
gap: 0.25rem;
|
|
@@ -3615,25 +3615,25 @@
|
|
|
3615
3615
|
width: 1.25rem;
|
|
3616
3616
|
height: 1.25rem;
|
|
3617
3617
|
}
|
|
3618
|
-
`,
|
|
3618
|
+
`,Cv=[yt,vx];var sd=z.constructTagName("inputchip"),ad={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var Ho=class extends Zt(Ut(j)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return _`
|
|
3619
3619
|
<slot name="prefix">
|
|
3620
|
-
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:
|
|
3620
|
+
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:W}
|
|
3621
3621
|
</slot>
|
|
3622
3622
|
`}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return _`
|
|
3623
3623
|
${this.renderPrefix()}
|
|
3624
|
-
${this.label?_`<mdc-text part="label" type="${
|
|
3624
|
+
${this.label?_`<mdc-text part="label" type="${ad.TEXT_TYPE}" tagname="${ad.TAG_NAME}"
|
|
3625
3625
|
>${this.label}</mdc-text
|
|
3626
|
-
>`:
|
|
3626
|
+
>`:W}
|
|
3627
3627
|
<mdc-button
|
|
3628
3628
|
?disabled="${this.disabled}"
|
|
3629
3629
|
variant="tertiary"
|
|
3630
3630
|
part="close-icon"
|
|
3631
3631
|
aria-label="${this.clearAriaLabel}"
|
|
3632
|
-
prefix-icon="${
|
|
3632
|
+
prefix-icon="${ad.CLOSE_ICON}"
|
|
3633
3633
|
size="20"
|
|
3634
3634
|
@click="${this.handleClose}"
|
|
3635
3635
|
></mdc-button>
|
|
3636
|
-
`}};
|
|
3636
|
+
`}};Ho.styles=[...j.styles,...Cv],p([u({type:String})],Ho.prototype,"label",2),p([u({type:Boolean})],Ho.prototype,"error",2),p([u({type:String,attribute:"clear-aria-label"})],Ho.prototype,"clearAriaLabel",2);var mh=Ho;mh.register(sd);var gx=mh;var bx=U`
|
|
3637
3637
|
:host::part(anchor) {
|
|
3638
3638
|
display: flex;
|
|
3639
3639
|
align-items: center;
|
|
@@ -3693,8 +3693,8 @@
|
|
|
3693
3693
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
|
3694
3694
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
|
3695
3695
|
}
|
|
3696
|
-
`,
|
|
3697
|
-
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:
|
|
3696
|
+
`,wv=[bx];var qa=class extends Zt(Gr){constructor(){super(...arguments);this.size=_u.LINK_SIZE}getIconSize(){switch(this.size){case bl.SMALL:return yl.SMALL;case bl.MIDSIZE:return yl.MIDSIZE;default:return yl.LARGE}}renderAnchorContent(){return _` <slot></slot>
|
|
3697
|
+
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:W}`}};qa.styles=[...Gr.styles,...wv],p([u({type:String,reflect:!0})],qa.prototype,"size",2);var uh=qa;uh.register(gl);var yx=uh;var kv=z.constructTagName("linkbutton"),Fs={12:12,14:14,16:16},$s={SIZE:Fs[16],ROLE:J.BUTTON,INLINE:Is.INLINE,INVERTED:Is.INVERTED};var Nv=n=>{switch(n){case Fs[12]:return .75;case Fs[14]:return .875;default:return 1}};var Ex=U`
|
|
3698
3698
|
:host {
|
|
3699
3699
|
gap: 0.25rem;
|
|
3700
3700
|
cursor: pointer;
|
|
@@ -3793,10 +3793,10 @@
|
|
|
3793
3793
|
color: var(--mdc-link-color-disabled);
|
|
3794
3794
|
pointer-events: none;
|
|
3795
3795
|
}
|
|
3796
|
-
`,
|
|
3796
|
+
`,Lv=[Ex,...St()];var Go=class extends Zt(ae){constructor(){super(...arguments);this.size=$s.SIZE;this.inline=$s.INLINE;this.inverted=$s.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=$s.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Fs).includes(t)?`${t}`:$s.SIZE.toString())}render(){return _`
|
|
3797
3797
|
<slot></slot>
|
|
3798
|
-
${this.iconName?_` <mdc-icon name=${this.iconName} size=${
|
|
3799
|
-
`}};
|
|
3798
|
+
${this.iconName?_` <mdc-icon name=${this.iconName} size=${Nv(this.size)} length-unit="rem"></mdc-icon> `:W}
|
|
3799
|
+
`}};Go.styles=[...Gr.styles,...Lv],p([u({type:Number,reflect:!0})],Go.prototype,"size",2),p([u({type:Boolean,reflect:!0})],Go.prototype,"inline",2),p([u({type:Boolean,reflect:!0})],Go.prototype,"inverted",2);var fh=Go;fh.register(kv);var Tx=fh;Gr.register(cf);var xx=Gr;var zs=n=>{class o extends kt(n){constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.handleNavigationClick=s=>{let d=s.target,m=this.getCurrentIndex(d);if(m!==-1){let v=!(this.navItems.at(m)!==d&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(m,void 0,v,!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),m=new Set([Z.DOWN,Z.UP,Z.HOME,Z.END]);if(!d||!m.has(d))return;let v=s.target,x=this.getCurrentIndex(v);if(x!==-1){switch(this.resetTabIndexes(x),d){case Z.HOME:{this.resetTabIndexAndSetFocus(0,x);break}case Z.END:{this.resetTabIndexAndSetFocus(this.navItems.length-1,x);break}case Z.DOWN:{let L=this.shouldLoop()?0:x,B=x+1===this.navItems.length?L:x+1;this.resetTabIndexAndSetFocus(B,x);break}case Z.UP:{let L=this.shouldLoop()?this.navItems.length-1:x,B=x-1===-1?L:x-1;this.resetTabIndexAndSetFocus(B,x);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 m;if(this.navItems.length>0){this.navItems.forEach(L=>L.setAttribute("tabindex","-1"));let v=this.navItems.at(s)?s:0,x=(m=this.navItems.at(v))!=null?m:this.navItems.find(Boolean);x&&(x.setAttribute("tabindex","0"),d&&x.focus())}}resetTabIndexAndSetFocus(s,d,m=!0,v=!0){var B;let{navItems:x}=this;if(x.length===0)return;let L=(B=x.at(s))!=null?B:x.find(Boolean);s===d&&L&&L.getAttribute("tabindex")==="0"||(d===void 0?x.forEach(q=>q.setAttribute("tabindex","-1")):x.at(d)&&x.at(d).setAttribute("tabindex","-1"),L.setAttribute("tabindex","0"),m&&(L.focus({preventScroll:!0}),v&&L.scrollIntoView({block:"nearest"})))}shouldLoop(){return this.loop!=="false"}}return o};var nd=z.constructTagName("listitem"),Xa={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ov={VARIANT:Xa.FULL_WIDTH};var Kt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Rv=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Mv=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING);var Ax=n=>!!n,qr=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)||Ax,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Kt.CREATED,this.itemCreationHandler),this.host.addEventListener(Kt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Kt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Kt.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||!Rv(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);Mv(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 Xi=n=>{class o extends n{constructor(...s){super(...s);this.handleItemCreation=s=>{let d=s.target;d&&d.addEventListener(Kt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Kt.DESTROYED&&(s.target.removeEventListener(Kt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Kt.CREATED,this.handleItemCreation)}}return o};var Sx=U`
|
|
3800
3800
|
:host {
|
|
3801
3801
|
display: flex;
|
|
3802
3802
|
flex-direction: column;
|
|
@@ -3811,11 +3811,11 @@
|
|
|
3811
3811
|
scroll-padding-top: 0.25rem;
|
|
3812
3812
|
scroll-padding-bottom: 0.25rem;
|
|
3813
3813
|
}
|
|
3814
|
-
`,
|
|
3814
|
+
`,Pv=[Sx];var Dv=z.constructTagName("list");var vh={LOOP:"true",INITIAL_FOCUS:0};var Vs=class extends zs(Xi(j)){constructor(){super();this.loop=vh.LOOP;this.initialFocus=vh.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(Kt.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new qr(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(`${nd}:not([disabled])`)}render(){return _`
|
|
3815
3815
|
<slot name="list-header"></slot>
|
|
3816
3816
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
3817
3817
|
<slot part="container" role="presentation"></slot>
|
|
3818
|
-
`}}
|
|
3818
|
+
`}};Vs.styles=[...j.styles,...Pv],p([u({type:String,reflect:!0})],Vs.prototype,"loop",2),p([u({type:Number,reflect:!0,attribute:"initial-focus"})],Vs.prototype,"initialFocus",2);var Bs=Vs;Bs.register(Dv);var gh=Bs;var Ix=U`
|
|
3819
3819
|
:host {
|
|
3820
3820
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
|
3821
3821
|
--mdc-listheader-gap: 0.5rem;
|
|
@@ -3842,17 +3842,17 @@
|
|
|
3842
3842
|
:host::part(postfix-icon) {
|
|
3843
3843
|
flex-shrink: 0;
|
|
3844
3844
|
}
|
|
3845
|
-
`,
|
|
3845
|
+
`,Fv=[Ix];var Zi=class extends j{constructor(){super(...arguments);this.disabled=!1}render(){return _`
|
|
3846
3846
|
${this.prefixIcon?_`<mdc-icon
|
|
3847
3847
|
part="prefix-icon"
|
|
3848
3848
|
name="${this.prefixIcon}"
|
|
3849
3849
|
aria-hidden="true"
|
|
3850
3850
|
size="1"
|
|
3851
3851
|
length-unit="rem"
|
|
3852
|
-
></mdc-icon>`:
|
|
3852
|
+
></mdc-icon>`:W}
|
|
3853
3853
|
${this.headerText?_`<mdc-text part="header-text" type="body-midsize-bold" tagname="span" aria-hidden="true"
|
|
3854
3854
|
>${this.headerText}</mdc-text
|
|
3855
|
-
>`:
|
|
3855
|
+
>`:W}
|
|
3856
3856
|
<slot></slot>
|
|
3857
3857
|
${this.postfixIcon?_`<mdc-icon
|
|
3858
3858
|
part="postfix-icon"
|
|
@@ -3860,8 +3860,8 @@
|
|
|
3860
3860
|
aria-hidden="true"
|
|
3861
3861
|
size="1"
|
|
3862
3862
|
length-unit="rem"
|
|
3863
|
-
></mdc-icon>`:
|
|
3864
|
-
`}};
|
|
3863
|
+
></mdc-icon>`:W}
|
|
3864
|
+
`}};Zi.styles=[...j.styles,...Fv],p([u({type:String,attribute:"prefix-icon"})],Zi.prototype,"prefixIcon",2),p([u({type:String,attribute:"postfix-icon"})],Zi.prototype,"postfixIcon",2),p([u({type:String,attribute:"header-text"})],Zi.prototype,"headerText",2),p([u({type:Boolean,reflect:!0})],Zi.prototype,"disabled",2);var bh=Zi;var $v=z.constructTagName("listheader");bh.register($v);var _x=bh;var zv=n=>{class o extends n{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new Event(Kt.CREATED,{bubbles:!0,composed:!0})),this.updateComplete.then(()=>{this.dispatchEvent(new Event(Kt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new Event(Kt.DESTROYED,{bubbles:!0,composed:!0}))}dispatchModifiedEvent(r){this.dispatchEvent(new CustomEvent(Kt.MODIFIED,{detail:{change:r},bubbles:!0,composed:!0}))}}return o};var Za=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 Cx=U`
|
|
3865
3865
|
:host {
|
|
3866
3866
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
3867
3867
|
--mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
|
|
@@ -3974,11 +3974,11 @@
|
|
|
3974
3974
|
flex-direction: row;
|
|
3975
3975
|
flex-shrink: 0;
|
|
3976
3976
|
}
|
|
3977
|
-
|
|
3977
|
+
`,Vv=[Cx,...St()];var Re=class extends kt(Ut(zr(zv(j)))){constructor(){super();this.variant=Ov.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 _`
|
|
3978
3978
|
<slot name="${t}">
|
|
3979
|
-
${s?_`<mdc-text part="${t}" type="${r}" tagname="${mt.SPAN}">${s}</mdc-text>`:
|
|
3979
|
+
${s?_`<mdc-text part="${t}" type="${r}" tagname="${mt.SPAN}">${s}</mdc-text>`:W}
|
|
3980
3980
|
</slot>
|
|
3981
|
-
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{t?(r.setAttribute("disabled",""),
|
|
3981
|
+
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{t?(r.setAttribute("disabled",""),Za.onDisableListItem(this)):(r.removeAttribute("disabled"),Za.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
|
|
3982
3982
|
name="trailing-controls"
|
|
3983
3983
|
@click=${this.stopEventPropagation}
|
|
3984
3984
|
@keyup=${this.stopEventPropagation}
|
|
@@ -3988,7 +3988,7 @@
|
|
|
3988
3988
|
@click=${this.stopEventPropagation}
|
|
3989
3989
|
@keyup=${this.stopEventPropagation}
|
|
3990
3990
|
@keydown=${this.stopEventPropagation}
|
|
3991
|
-
></slot>`}stopEventPropagation(t){(t instanceof KeyboardEvent
|
|
3991
|
+
></slot>`}stopEventPropagation(t){if(t instanceof KeyboardEvent){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&t.stopPropagation()}else t instanceof MouseEvent&&t.stopPropagation()}render(){return _`
|
|
3992
3992
|
<slot name="content">
|
|
3993
3993
|
<div part="leading">
|
|
3994
3994
|
${this.renderLeadingControls()}
|
|
@@ -4006,7 +4006,7 @@
|
|
|
4006
4006
|
${this.renderTrailingControls()}
|
|
4007
4007
|
</div>
|
|
4008
4008
|
</slot>
|
|
4009
|
-
`}};
|
|
4009
|
+
`}};Re.styles=[...j.styles,...Vv],p([Dt({slot:"leading-controls"})],Re.prototype,"leadingControlsSlot",2),p([Dt({slot:"trailing-controls"})],Re.prototype,"trailingControlsSlot",2),p([u({type:String,reflect:!0})],Re.prototype,"variant",2),p([u({type:String,reflect:!0})],Re.prototype,"label",2),p([u({type:String,reflect:!0,attribute:"secondary-label"})],Re.prototype,"secondaryLabel",2),p([u({type:String,reflect:!0,attribute:"tertiary-label"})],Re.prototype,"tertiaryLabel",2),p([u({type:String,reflect:!0,attribute:"side-header-text"})],Re.prototype,"sideHeaderText",2),p([u({type:String,reflect:!0,attribute:"subline-text"})],Re.prototype,"sublineText",2),p([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Re.prototype,"softDisabled",2),p([u({type:Number,reflect:!0,attribute:"data-index"})],Re.prototype,"dataIndex",2),p([u({type:Boolean,reflect:!0,attribute:"active"})],Re.prototype,"active",2);var Ei=Re;Ei.register(nd);var wx=Ei;var kx=U`
|
|
4010
4010
|
:host {
|
|
4011
4011
|
--mdc-marker-width: 0.25rem;
|
|
4012
4012
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -4031,7 +4031,7 @@
|
|
|
4031
4031
|
var(--mdc-marker-striped-background-color) 0.375rem
|
|
4032
4032
|
);
|
|
4033
4033
|
}
|
|
4034
|
-
`,
|
|
4034
|
+
`,Bv=[kx];var Uv=z.constructTagName("marker"),Hv={SOLID:"solid",STRIPED:"striped"};var Qa=class extends j{constructor(){super(...arguments);this.variant=Hv.SOLID}};Qa.styles=[...j.styles,...Bv],p([u({type:String,reflect:!0})],Qa.prototype,"variant",2);var yh=Qa;yh.register(Uv);var Nx=yh;var re=z.constructTagName("menupopover"),Eh={PLACEMENT:Nt.BOTTOM_START,ORIENTATION:"vertical"};var Ti=z.constructTagName("menusection"),Gv={DIVIDER_VARIANT:"solid"};var Qi=z.constructTagName("sidenavigation"),Ye={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},ld={VARIANT:Ye.FLEXIBLE};var Ja=z.constructTagName("menubar"),Kv={ORIENTATION:"vertical"};var Lx=U`
|
|
4035
4035
|
:host {
|
|
4036
4036
|
display: flex;
|
|
4037
4037
|
}
|
|
@@ -4043,7 +4043,7 @@
|
|
|
4043
4043
|
:host([aria-orientation='vertical']) {
|
|
4044
4044
|
flex-direction: column;
|
|
4045
4045
|
}
|
|
4046
|
-
`,
|
|
4046
|
+
`,Yv=[Lx];var tn=class extends kt(j){constructor(){super(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var o;super.connectedCallback(),this.role=J.MENUBAR,this.ariaOrientation=Kv.ORIENTATION,await this.updateComplete,(o=this.menusections)==null||o.forEach(t=>{t.setAttribute("divider-variant","gradient")})}get menuItems(){var d,m;let o=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),t=(m=o==null?void 0:o.assignedElements({flatten:!0}))!=null?m:[],r=[],s=v=>{v.role===J.MENUITEM&&!v.hasAttribute("disabled")?r.push(v):v.tagName.toLowerCase()===Ti&&Array.from(v.children).forEach(s)};return t.forEach(s),r}getVisibleSubMenusOfItems(o){let t=[];return!o||o.length===0||o.forEach(r=>{var m;let s=r.getAttribute("id");if(!s)return;let d=(m=document.querySelector)==null?void 0:m.call(document,`${re}[triggerid="${s}"]`);d&&d.visible&&t.push(d)}),t}getAllPopovers(){var s,d;if(!this.menuItems.length)return[];let o=(d=(s=this.menuItems[0])==null?void 0:s.closest(Qi))!=null?d:this;if(!o)return[];let t=[],r=m=>{m.querySelectorAll(`${re}`).forEach(v=>{t.push(v)}),m.querySelectorAll("slot").forEach(v=>{v.assignedElements({flatten:!0}).forEach(r)})};return r(o),t}update(o){super.update(o)}firstUpdated(o){super.firstUpdated(o),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}handleClick(o){let t=o.target;if(!t||!this.isTopLevelMenuItem(t))return;let r=this.menuItems.filter(d=>d!==t);this.getVisibleSubMenusOfItems(r).forEach(d=>{d.hide()})}resetTabIndexAndSetActiveTabIndex(o){o.forEach((t,r)=>{let s=r===0?"0":"-1";t==null||t.setAttribute("tabindex",s)})}getCurrentIndex(o){return this.menuItems.findIndex(t=>t===o||t===o.parentElement)}getSubmenu(o){if(o)return this.getAllPopovers().find(t=>t.getAttribute("triggerid")===o)}showSubmenu(o){if(!o||!this.menuItems.find(s=>s.getAttribute("id")===o))return;let r=this.getSubmenu(o);r&&r.show()}updatePopoverPlacement(){let o=Nt.RIGHT_START;this.getAllPopovers().forEach(t=>{t.setAttribute("placement",o)})}updateTabIndexAndFocus(o,t,r){var s,d,m;r<0||t<0||(t!==r&&((s=o[t])==null||s.setAttribute("tabindex","-1"),(d=o[r])==null||d.setAttribute("tabindex","0")),(m=o[r])==null||m.focus())}navigateToMenuItem(o,t,r=!1){var m;let{length:s}=this.menuItems;if(s===0)return;let d=o;if(d=t==="prev"?(o-1+s)%s:(o+1)%s,this.updateTabIndexAndFocus(this.menuItems,o,d),r){let v=(m=this.menuItems[d])==null?void 0:m.getAttribute("id");this.getSubmenu(v)&&!this.menuItems[d].hasAttribute("soft-disabled")&&this.showSubmenu(v)}}isTopLevelMenuItem(o){var d;let t=o.parentElement;if(!t||o.role!==J.MENUITEM)return!1;let r=t.tagName.toLowerCase(),s=(d=t.parentElement)==null?void 0:d.tagName.toLowerCase();return r===Ja||r===Qi||r===Ti&&(s===Ja||s===Qi)}isNestedMenuItem(o){return!!o.closest(re)&&o.role===J.MENUITEM}async closeAllMenuPopovers(){let o=[];for(;Oe.peek();){let t=Oe.pop();t&&(t.hide(),o.push(t))}await Promise.all(o.map(t=>t.updateComplete))}async crossMenubarNavigationOnLeft(o){if(o.role===J.MENUITEM){let r=o.closest(re),s=r==null?void 0:r.getAttribute("triggerid"),d=this.menuItems.find(m=>m.getAttribute("id")===s);if(d){this.isTopLevelMenuItem(d)&&(r==null||r.hide()),await(r==null?void 0:r.updateComplete);let m=this.getCurrentIndex(d);this.navigateToMenuItem(m,"prev",!0)}}}async crossMenubarNavigationOnRight(o){if(this.isTopLevelMenuItem(o)&&this.getSubmenu(o.id)&&!o.hasAttribute("soft-disabled"))this.showSubmenu(o.id);else if(this.isNestedMenuItem(o)&&!this.getSubmenu(o.id)){await this.closeAllMenuPopovers();let t=this.getParentMenuItemIndex(o);t>=0&&this.navigateToMenuItem(t,"next",!0)}}getParentMenuItemIndex(o){let t=o.parentElement;for(;t;){if(t.tagName.toLowerCase()===re){let r=t.getAttribute("triggerid"),s=this.menuItems.find(d=>d.getAttribute("id")===r);if(s)return this.isTopLevelMenuItem(s)?this.menuItems.findIndex(d=>d===s):this.getParentMenuItemIndex(s)}t=t.parentElement}return-1}async handleKeyDown(o){let t=this.getCurrentIndex(o.target);switch(this.getActionForKeyEvent(o,!0)){case Z.HOME:this.updateTabIndexAndFocus(this.menuItems,t,0);break;case Z.END:this.updateTabIndexAndFocus(this.menuItems,t,this.menuItems.length-1);break;case Z.LEFT:{let s=t>=0?this.menuItems[t]:o.target;await this.crossMenubarNavigationOnLeft(s);break}case Z.RIGHT:{let s=t>=0?this.menuItems[t]:o.target;await this.crossMenubarNavigationOnRight(s);break}case Z.UP:{this.navigateToMenuItem(t,"prev"),o.preventDefault();break}case Z.DOWN:{this.navigateToMenuItem(t,"next"),o.preventDefault();break}default:break}}render(){return _`<slot></slot>`}};tn.styles=[...j.styles,...Yv],p([Dt({selector:"mdc-menusection",flatten:!0})],tn.prototype,"menusections",2);var Th=tn;Th.register(Ja);var Ox=Th;var en=z.constructTagName("menuitem"),rn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},xh={POSITIVE:"positive",NEGATIVE:"negative"},Ah={LEADING:"leading",TRAILING:"trailing"};var Rx=U`
|
|
4047
4047
|
:host(:dir(rtl))::part(trailing-arrow),
|
|
4048
4048
|
:host(:dir(rtl))::part(leading-arrow) {
|
|
4049
4049
|
transform: rotate(180deg);
|
|
@@ -4052,23 +4052,23 @@
|
|
|
4052
4052
|
:host::part(leading-arrow) {
|
|
4053
4053
|
--mdc-icon-size: 1rem;
|
|
4054
4054
|
}
|
|
4055
|
-
`,
|
|
4055
|
+
`,Wv=[Rx];var Ji=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=Xa.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===xh.NEGATIVE?rn.LEFT:rn.RIGHT;return _`
|
|
4056
4056
|
<slot
|
|
4057
4057
|
name="trailing-controls"
|
|
4058
4058
|
@click=${this.stopEventPropagation}
|
|
4059
4059
|
@keyup=${this.stopEventPropagation}
|
|
4060
4060
|
@keydown=${this.stopEventPropagation}
|
|
4061
4061
|
></slot>
|
|
4062
|
-
${this.arrowPosition===
|
|
4063
|
-
`}renderLeadingControls(){let o=this.arrowDirection===
|
|
4062
|
+
${this.arrowPosition===Ah.TRAILING?_`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
|
|
4063
|
+
`}renderLeadingControls(){let o=this.arrowDirection===xh.POSITIVE?rn.RIGHT:rn.LEFT;return _`
|
|
4064
4064
|
<slot
|
|
4065
4065
|
name="leading-controls"
|
|
4066
4066
|
@click=${this.stopEventPropagation}
|
|
4067
4067
|
@keyup=${this.stopEventPropagation}
|
|
4068
4068
|
@keydown=${this.stopEventPropagation}
|
|
4069
4069
|
></slot>
|
|
4070
|
-
${this.arrowPosition===
|
|
4071
|
-
`}};
|
|
4070
|
+
${this.arrowPosition===Ah.LEADING?_`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
|
|
4071
|
+
`}};Ji.styles=[...Ei.styles,...Wv],p([u({type:String,reflect:!0,attribute:"arrow-position"})],Ji.prototype,"arrowPosition",2),p([u({type:String,reflect:!0,attribute:"arrow-direction"})],Ji.prototype,"arrowDirection",2),p([u({type:String,reflect:!0})],Ji.prototype,"name",2),p([u({type:String,reflect:!0})],Ji.prototype,"value",2);var vr=Ji;vr.register(en);var Mx=vr;var jv=z.constructTagName("statictoggle"),Px={DEFAULT:"default",COMPACT:"compact"},Sh={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},qv={compact:.75,default:1.25},Xv={SIZE:Px.DEFAULT};var Dx=[U`
|
|
4072
4072
|
:host {
|
|
4073
4073
|
--mdc-statictoggle-width: 3rem;
|
|
4074
4074
|
--mdc-statictoggle-height: 1.5rem;
|
|
@@ -4163,17 +4163,17 @@
|
|
|
4163
4163
|
border: 1px solid GrayText;
|
|
4164
4164
|
}
|
|
4165
4165
|
}
|
|
4166
|
-
`],
|
|
4166
|
+
`],Zv=Dx;var to=class extends Ut(j){constructor(){super(...arguments);this.checked=!1;this.size=Xv.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return _`
|
|
4167
4167
|
<slot></slot>
|
|
4168
4168
|
<div part="slider">
|
|
4169
4169
|
<mdc-icon
|
|
4170
|
-
name="${this.checked?
|
|
4170
|
+
name="${this.checked?Sh.CHECKED:Sh.UNCHECKED}"
|
|
4171
4171
|
part="toggle-icon"
|
|
4172
4172
|
length-unit="rem"
|
|
4173
|
-
size="${
|
|
4173
|
+
size="${qv[this.size]}"
|
|
4174
4174
|
></mdc-icon>
|
|
4175
4175
|
</div>
|
|
4176
|
-
`}};
|
|
4176
|
+
`}};to.styles=[...j.styles,...Zv],p([u({type:Boolean,reflect:!0})],to.prototype,"checked",2),p([u({type:String,reflect:!0})],to.prototype,"size",2),p([u({type:Boolean,reflect:!0})],to.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],to.prototype,"softDisabled",2);var Ih=to;Ih.register(jv);var Fx=Ih;var on=z.constructTagName("tooltip"),gr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},We={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${Ue.MOUSEENTER} ${Ue.FOCUSIN}`,OFFSET:4,PLACEMENT:Nt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:gr.DESCRIPTION};var $x=U`
|
|
4177
4177
|
:host {
|
|
4178
4178
|
--mdc-tooltip-max-width: 400px;
|
|
4179
4179
|
--mdc-tooltip-padding: 0.75rem;
|
|
@@ -4197,36 +4197,36 @@
|
|
|
4197
4197
|
:host([color='contrast'])::part(popover-content) {
|
|
4198
4198
|
color: var(--mdc-tooltip-text-color-contrast);
|
|
4199
4199
|
}
|
|
4200
|
-
`,
|
|
4200
|
+
`,Qv=[$x];var sn=class extends Ge{constructor(){super(...arguments);this.tooltipType=We.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.role=J.TOOLTIP,this.ariaHidden=We.ARIA_HIDDEN,this.backdrop=We.BACKDROP,this.delay=this.delay||We.DELAY,this.disableAriaExpanded=We.DISABLE_ARIA_EXPANDED,this.hideOnBlur=We.HIDE_ON_BLUR,this.hideOnEscape=We.HIDE_ON_ESCAPE,this.offset=this.offset||We.OFFSET,this.placement=this.placement||We.PLACEMENT,this.trigger=We.TRIGGER,this.closeButton=gt.CLOSE_BUTTON,this.disableFlip=gt.DISABLE_FLIP,this.focusBackToTrigger=gt.FOCUS_BACK,this.focusTrap=gt.FOCUS_TRAP,this.hideOnOutsideClick=gt.HIDE_ON_CLICK_OUTSIDE,this.interactive=gt.INTERACTIVE,this.preventScroll=gt.PREVENT_SCROLL,this.size=gt.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(gr).includes(t)?t:We.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=We.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(gr).includes(this.tooltipType)||this.setTooltipType(We.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 update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}};sn.styles=[...Ge.styles,...Qv],p([u({type:String,attribute:"tooltip-type",reflect:!0})],sn.prototype,"tooltipType",2);var _h=sn;_h.register(on);var zx=_h;var eo=hi(class extends Ur{constructor(n){var o;if(super(n),n.type!==er.ATTRIBUTE||n.name!=="class"||((o=n.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var r,s;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(let d in o)o[d]&&!((r=this.nt)!=null&&r.has(d))&&this.st.add(d);return this.render(o)}let t=n.element.classList;for(let d of this.st)d in o||(t.remove(d),this.st.delete(d));for(let d in o){let m=!!o[d];m===this.st.has(d)||(s=this.nt)!=null&&s.has(d)||(m?(t.add(d),this.st.add(d)):(t.remove(d),this.st.delete(d)))}return ye}});var Jv=z.constructTagName("toggle"),an={DEFAULT:"default",COMPACT:"compact"};var Ch={SIZE:an.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Us=n=>{class o extends n{constructor(){super(...arguments);this.controlTypeProviderContext=Ae.consume({host:this,context:lh.Context})}willUpdate(){this.controlType&&td.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Jl.CONTROL_TYPE)}}return p([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var dd=z.constructTagName("menuitemcheckbox"),nn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},tg={INDICATOR:nn.CHECKBOX};var Vx=U`
|
|
4201
4201
|
:host::part(checkmark-icon) {
|
|
4202
4202
|
--mdc-icon-fill-color: currentColor;
|
|
4203
4203
|
}
|
|
4204
4204
|
:host .hidden-checkmark {
|
|
4205
4205
|
visibility: hidden;
|
|
4206
4206
|
}
|
|
4207
|
-
`,
|
|
4207
|
+
`,eg=[Vx];var Hs=class extends Us(vr){constructor(){super();this.checked=!1;this.indicator=tg.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===nn.CHECKBOX?_`
|
|
4208
4208
|
<mdc-staticcheckbox
|
|
4209
4209
|
slot="leading-controls"
|
|
4210
4210
|
?checked="${this.checked}"
|
|
4211
4211
|
?disabled="${this.disabled}"
|
|
4212
4212
|
?soft-disabled="${this.softDisabled}"
|
|
4213
4213
|
></mdc-staticcheckbox>
|
|
4214
|
-
`:
|
|
4214
|
+
`:W}staticToggle(){return this.indicator===nn.TOGGLE?_`
|
|
4215
4215
|
<mdc-statictoggle
|
|
4216
4216
|
slot="trailing-controls"
|
|
4217
4217
|
?checked="${this.checked}"
|
|
4218
4218
|
?disabled="${this.disabled}"
|
|
4219
4219
|
?soft-disabled="${this.softDisabled}"
|
|
4220
|
-
size="${
|
|
4220
|
+
size="${an.COMPACT}"
|
|
4221
4221
|
></mdc-statictoggle>
|
|
4222
|
-
`:
|
|
4222
|
+
`:W}getCheckmarkIcon(){return this.indicator===nn.CHECKMARK?_`
|
|
4223
4223
|
<mdc-icon
|
|
4224
4224
|
slot="trailing-controls"
|
|
4225
4225
|
name="check-bold"
|
|
4226
4226
|
part="checkmark-icon"
|
|
4227
|
-
class=${
|
|
4227
|
+
class=${eo({"hidden-checkmark":!this.checked})}
|
|
4228
4228
|
></mdc-icon>
|
|
4229
|
-
`:
|
|
4229
|
+
`:W}render(){return _`
|
|
4230
4230
|
<slot name="content">
|
|
4231
4231
|
<div part="leading">
|
|
4232
4232
|
${this.staticCheckbox()}
|
|
@@ -4246,28 +4246,28 @@
|
|
|
4246
4246
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
|
4247
4247
|
</div>
|
|
4248
4248
|
</slot>
|
|
4249
|
-
`}};
|
|
4249
|
+
`}};Hs.styles=[...vr.styles,...eg],p([u({type:Boolean,reflect:!0})],Hs.prototype,"checked",2),p([u({type:String,reflect:!0})],Hs.prototype,"indicator",2);var wh=Hs;wh.register(dd);var Bx=wh;var cd=z.constructTagName("menuitemradio"),hd={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},rg={INDICATOR:hd.RADIO};var Ux=U`
|
|
4250
4250
|
:host::part(checkmark-icon) {
|
|
4251
4251
|
--mdc-icon-fill-color: currentColor;
|
|
4252
4252
|
}
|
|
4253
4253
|
:host .hidden-checkmark {
|
|
4254
4254
|
visibility: hidden;
|
|
4255
4255
|
}
|
|
4256
|
-
`,
|
|
4256
|
+
`,ig=[Ux];var Gs=class extends Us(vr){constructor(){super();this.checked=!1;this.indicator=rg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Ti}, ${re}`);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===hd.RADIO?_`
|
|
4257
4257
|
<mdc-staticradio
|
|
4258
4258
|
slot="leading-controls"
|
|
4259
4259
|
?checked="${this.checked}"
|
|
4260
4260
|
?disabled="${this.disabled}"
|
|
4261
4261
|
?soft-disabled="${this.softDisabled}"
|
|
4262
4262
|
></mdc-staticradio>
|
|
4263
|
-
`:
|
|
4263
|
+
`:W}renderCheckmarkIcon(){return this.indicator===hd.CHECKMARK?_`
|
|
4264
4264
|
<mdc-icon
|
|
4265
4265
|
slot="trailing-controls"
|
|
4266
4266
|
name="check-bold"
|
|
4267
4267
|
part="checkmark-icon"
|
|
4268
|
-
class=${
|
|
4268
|
+
class=${eo({"hidden-checkmark":!this.checked})}
|
|
4269
4269
|
></mdc-icon>
|
|
4270
|
-
`:
|
|
4270
|
+
`:W}render(){return _`
|
|
4271
4271
|
<slot name="content">
|
|
4272
4272
|
<div part="leading">
|
|
4273
4273
|
${this.renderStaticRadio()}
|
|
@@ -4287,7 +4287,7 @@
|
|
|
4287
4287
|
${this.renderCheckmarkIcon()}
|
|
4288
4288
|
</div>
|
|
4289
4289
|
</slot>
|
|
4290
|
-
`}};
|
|
4290
|
+
`}};Gs.styles=[...vr.styles,...ig],p([u({type:Boolean,reflect:!0})],Gs.prototype,"checked",2),p([u({type:String,reflect:!0})],Gs.prototype,"indicator",2);var kh=Gs;kh.register(cd);var Hx=kh;var ro=z.constructTagName("navmenuitem"),og={DOT:pr.DOT,COUNTER:pr.COUNTER},sg={RIGHT_ARROW:"arrow-right-bold"},Nh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Eo[24],VARIANT:Ye.FLEXIBLE,CANNOT_ACTIVATE:!1};var Gx=U`
|
|
4291
4291
|
:host::part(popover-content) {
|
|
4292
4292
|
padding: 0.75rem 0.5rem;
|
|
4293
4293
|
}
|
|
@@ -4295,7 +4295,7 @@
|
|
|
4295
4295
|
::slotted(mdc-divider) {
|
|
4296
4296
|
margin-block: 0.25rem;
|
|
4297
4297
|
}
|
|
4298
|
-
`,
|
|
4298
|
+
`,ag=[Gx];var ln=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===J.MENUITEM||o===J.MENUITEMCHECKBOX||o===J.MENUITEMRADIO},Lh=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===re};var dn=class extends Ge{constructor(){super();this.placement=Eh.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(Oe.peek()!==this)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")||!this.isEventFromTrigger(t)||(this.visible?this.hide():this.show())};this.handleItemCreation=t=>{let r=t.target;ln(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 v=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(v,d),r=!0;break}case Z.UP:{let v=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(v,d),r=!0;break}case Z.RIGHT:{let v=this.getSubMenuPopoverOfTarget(s);v&&(v.show(),r=!0);break}case Z.LEFT:{Lh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Z.ESCAPE:{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(`${cd}, ${dd}`)&&!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("click",this.handleMouseClick),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,`${re}[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(m=>ln(m)):ln(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=Eh.ORIENTATION,this.backdrop=!1,this.color=wo.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=![en,ro].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){for(;Oe.peek()!==t&&Lh(Oe.peek());){let r=Oe.pop();if(r)r.hide();else break}}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(r).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(en)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(t.stopPropagation(),!(!ln(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}};dn.styles=[...Ge.styles,...ag],p([u({type:String,reflect:!0})],dn.prototype,"placement",2);var Oh=dn;Oh.register(re);var Kx=Oh;var pd=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(m=>m!==o&&m.tagName.toLowerCase()===re&&m.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(re);if(!s)break;let d=s.getAttribute("triggerid");if(!d)break;let m=document.getElementById(d);if(m&&m.tagName.toLowerCase()===ro)t.push(m),r=m;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),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(v=>{v.hasActiveChild=!1,v.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(m=>{m.hasActiveChild=!0,m.setAttribute("active","")})}};pd.context=Qi;var md=pd;var Yx=U`
|
|
4299
4299
|
:host {
|
|
4300
4300
|
--mdc-sidenavigation-expanded-width: 14.5rem;
|
|
4301
4301
|
--mdc-sidenavigation-expanded-left-padding: 1rem;
|
|
@@ -4433,7 +4433,7 @@
|
|
|
4433
4433
|
:host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
|
|
4434
4434
|
opacity: 1;
|
|
4435
4435
|
}
|
|
4436
|
-
`,
|
|
4436
|
+
`,ng=[Yx];var xi=class extends Te{constructor(){super({context:md.context,initialValue:new md(ld.VARIANT,!0)});this.variant=ld.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===Ye.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 md.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case Ye.FIXED_EXPANDED:this.expanded=!0;break;case Ye.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===Ye.FLEXIBLE||this.variant===Ye.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(`${ro}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(Ye).includes(t)?t:ld.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===Ye.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===Ye.HIDDEN?_``:_`
|
|
4437
4437
|
<div part="side-navigation-container" id="side-nav-container">
|
|
4438
4438
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
|
4439
4439
|
<slot name="scrollable-section">
|
|
@@ -4442,7 +4442,7 @@
|
|
|
4442
4442
|
</mdc-menubar>
|
|
4443
4443
|
</slot>
|
|
4444
4444
|
</div>
|
|
4445
|
-
${this.hideFixedSectionDivider?
|
|
4445
|
+
${this.hideFixedSectionDivider?W:_`<mdc-divider variant="gradient" part="separator"></mdc-divider>`}
|
|
4446
4446
|
<div part="fixed-section">
|
|
4447
4447
|
<slot name="fixed-section">
|
|
4448
4448
|
<mdc-menubar part="fixed-menubar">
|
|
@@ -4457,17 +4457,17 @@
|
|
|
4457
4457
|
tagname=${mt.SPAN}
|
|
4458
4458
|
part="footer-text"
|
|
4459
4459
|
>${this.footerText}</mdc-text
|
|
4460
|
-
>`:
|
|
4460
|
+
>`:W}
|
|
4461
4461
|
</div>
|
|
4462
|
-
`:
|
|
4462
|
+
`:W}
|
|
4463
4463
|
</div>
|
|
4464
4464
|
</div>
|
|
4465
4465
|
${this.variant===Ye.FLEXIBLE||this.variant===Ye.FLEXIBLE_ON_HOVER?_`<mdc-divider
|
|
4466
4466
|
part="vertical-divider"
|
|
4467
|
-
orientation=${
|
|
4468
|
-
variant=${
|
|
4469
|
-
arrow-direction=${this.expanded?
|
|
4470
|
-
button-position=${
|
|
4467
|
+
orientation=${Vo.VERTICAL}
|
|
4468
|
+
variant=${Ya.GRADIENT}
|
|
4469
|
+
arrow-direction=${this.expanded?fr.NEGATIVE:fr.POSITIVE}
|
|
4470
|
+
button-position=${fr.POSITIVE}
|
|
4471
4471
|
>
|
|
4472
4472
|
<mdc-button
|
|
4473
4473
|
part="vertical-divider-button"
|
|
@@ -4476,8 +4476,8 @@
|
|
|
4476
4476
|
aria-expanded="${!!this.expanded}"
|
|
4477
4477
|
aria-controls="side-nav-container"
|
|
4478
4478
|
></mdc-button>
|
|
4479
|
-
</mdc-divider>`:
|
|
4480
|
-
`}};
|
|
4479
|
+
</mdc-divider>`:W}
|
|
4480
|
+
`}};xi.styles=[...j.styles,...ng],p([u({type:String,reflect:!0})],xi.prototype,"variant",2),p([u({type:String,reflect:!0,attribute:"footer-text"})],xi.prototype,"footerText",2),p([u({type:Boolean,reflect:!0,attribute:"expanded"})],xi.prototype,"expanded",2),p([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],xi.prototype,"grabberBtnAriaLabel",2),p([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],xi.prototype,"hideFixedSectionDivider",2);var Ko=xi;var Wx=U`
|
|
4481
4481
|
:host {
|
|
4482
4482
|
--mdc-menusection-divider-margin-block: 0.25rem;
|
|
4483
4483
|
--mdc-menusection-gap: 0rem;
|
|
@@ -4498,7 +4498,7 @@
|
|
|
4498
4498
|
:host::part(align-header) {
|
|
4499
4499
|
--mdc-listheader-padding: var(--mdc-menusection-header-padding);
|
|
4500
4500
|
}
|
|
4501
|
-
`,
|
|
4501
|
+
`,lg=[Wx];var Xr=class extends j{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Gv.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ae.consume({host:this,context:Ko.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
|
|
4502
4502
|
part="header ${(r=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&r.expanded?"align-header":""}"
|
|
4503
4503
|
header-text="${this.headerText}"
|
|
4504
4504
|
prefix-icon="${tt(this.prefixIcon)}"
|
|
@@ -4507,7 +4507,7 @@
|
|
|
4507
4507
|
${this.hideHeaderText?null:this.renderHeader()}
|
|
4508
4508
|
<slot part="container"></slot>
|
|
4509
4509
|
${this.showDivider?_`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
|
4510
|
-
`}};
|
|
4510
|
+
`}};Xr.styles=[...j.styles,...lg],p([u({type:String,reflect:!0,attribute:"aria-label"})],Xr.prototype,"ariaLabel",2),p([u({type:String,reflect:!0,attribute:"header-text"})],Xr.prototype,"headerText",2),p([u({type:String,attribute:"prefix-icon"})],Xr.prototype,"prefixIcon",2),p([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Xr.prototype,"showDivider",2),p([u({type:String,reflect:!0,attribute:"divider-variant"})],Xr.prototype,"dividerVariant",2),p([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Xr.prototype,"hideHeaderText",2);var Rh=Xr;Rh.register(Ti);var jx=Rh;var qx=[yt,U`
|
|
4511
4511
|
:host {
|
|
4512
4512
|
--mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
|
|
4513
4513
|
--mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
|
|
@@ -4698,7 +4698,7 @@
|
|
|
4698
4698
|
background-color: ButtonText;
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
|
-
`,...St()],
|
|
4701
|
+
`,...St()],dg=qx;var qt=class extends vr{constructor(){super();this.cannotActivate=Nh.CANNOT_ACTIVATE;this.maxCounter=Nh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=Ae.consume({host:this,context:Ko.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(on);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(`${on}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===re)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:`${Ao(this.iconName)}-filled`}renderBadge(t){return Object.values(og).includes(this.badgeType)?_`
|
|
4702
4702
|
<mdc-badge
|
|
4703
4703
|
part="${t?"":"badge"}"
|
|
4704
4704
|
type="${tt(this.badgeType)}"
|
|
@@ -4707,16 +4707,16 @@
|
|
|
4707
4707
|
aria-hidden="true"
|
|
4708
4708
|
>
|
|
4709
4709
|
</mdc-badge>
|
|
4710
|
-
`:
|
|
4710
|
+
`:W}render(){var r;let t=(r=this.sideNavigationContext)==null?void 0:r.value;return _`
|
|
4711
4711
|
<div part="icon-container">
|
|
4712
4712
|
<mdc-icon name="${this.iconName}" size="1.5" length-unit="rem" part="regular-icon"></mdc-icon>
|
|
4713
|
-
${this.cannotActivate?
|
|
4713
|
+
${this.cannotActivate?W:_`<mdc-icon
|
|
4714
4714
|
name="${this.getFilledIconName()}"
|
|
4715
4715
|
size="1.5"
|
|
4716
4716
|
length-unit="rem"
|
|
4717
4717
|
part="filled-icon"
|
|
4718
4718
|
></mdc-icon>`}
|
|
4719
|
-
${this.showLabel?
|
|
4719
|
+
${this.showLabel?W:this.renderBadge(this.showLabel)}
|
|
4720
4720
|
</div>
|
|
4721
4721
|
${this.showLabel?_`
|
|
4722
4722
|
<mdc-text
|
|
@@ -4727,9 +4727,9 @@
|
|
|
4727
4727
|
${this.label}
|
|
4728
4728
|
</mdc-text>
|
|
4729
4729
|
${this.renderBadge(this.showLabel)}
|
|
4730
|
-
`:
|
|
4731
|
-
${t!=null&&t.hasSiblingWithTriggerId(this)?_` <mdc-icon name=${
|
|
4732
|
-
`}};
|
|
4730
|
+
`:W}
|
|
4731
|
+
${t!=null&&t.hasSiblingWithTriggerId(this)?_` <mdc-icon name=${sg.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:W}
|
|
4732
|
+
`}};qt.styles=[...vr.styles,...dg],p([u({type:Boolean,reflect:!0})],qt.prototype,"active",2),p([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],qt.prototype,"cannotActivate",2),p([u({type:String,attribute:"icon-name",reflect:!0})],qt.prototype,"iconName",2),p([u({type:String,reflect:!0,attribute:"badge-type"})],qt.prototype,"badgeType",2),p([u({type:Number,reflect:!0})],qt.prototype,"counter",2),p([u({type:Number,attribute:"max-counter",reflect:!0})],qt.prototype,"maxCounter",2),p([u({type:String,reflect:!0,attribute:"nav-id"})],qt.prototype,"navId",2),p([u({type:Boolean,reflect:!0,attribute:"show-label"})],qt.prototype,"showLabel",2),p([u({type:String,attribute:"aria-label"})],qt.prototype,"ariaLabel",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],qt.prototype,"disableAriaCurrent",2),p([u({type:String,reflect:!0,attribute:"tooltip-text"})],qt.prototype,"tooltipText",2),p([u({type:String,reflect:!0,attribute:"tooltip-placement"})],qt.prototype,"tooltipPlacement",2),p([u({type:String,reflect:!0,attribute:"tooltip-type"})],qt.prototype,"tooltipType",2),p([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],qt.prototype,"tooltipAppearance",2),p([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],qt.prototype,"tooltipBoundaryPadding",2),p([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],qt.prototype,"isActiveParentTooltipText",2),p([ut()],qt.prototype,"hasActiveChild",2);var Mh=qt;Mh.register(ro);var Xx=Mh;var cg="check-bold",br=z.constructTagName("option");var cn=z.constructTagName("optgroup"),Ph="header-id";var Zx=U`
|
|
4733
4733
|
:host {
|
|
4734
4734
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
|
4735
4735
|
}
|
|
@@ -4745,24 +4745,24 @@
|
|
|
4745
4745
|
:host([data-hidden]) {
|
|
4746
4746
|
display: none;
|
|
4747
4747
|
}
|
|
4748
|
-
`,
|
|
4748
|
+
`,hg=[Zx];var Ks=class extends Ht(Ut(j)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let o=this.label?_`
|
|
4749
4749
|
<mdc-text
|
|
4750
|
-
id="${
|
|
4750
|
+
id="${Ph}"
|
|
4751
4751
|
part="header-text"
|
|
4752
4752
|
type="${ot.BODY_MIDSIZE_BOLD}"
|
|
4753
4753
|
tagname="${mt.SPAN}"
|
|
4754
4754
|
>${this.label}</mdc-text
|
|
4755
4755
|
>
|
|
4756
|
-
`:
|
|
4756
|
+
`:W;return _`
|
|
4757
4757
|
<div
|
|
4758
4758
|
role="${J.GROUP}"
|
|
4759
|
-
aria-labelledby="${this.label?
|
|
4759
|
+
aria-labelledby="${this.label?Ph:""}"
|
|
4760
4760
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
4761
4761
|
>
|
|
4762
4762
|
${o}
|
|
4763
4763
|
<slot role="${J.PRESENTATION}"></slot>
|
|
4764
4764
|
</div>
|
|
4765
|
-
`}};
|
|
4765
|
+
`}};Ks.styles=[...j.styles,...hg],p([u({type:String,reflect:!0})],Ks.prototype,"label",2),p([Dt({selector:br})],Ks.prototype,"options",2);var Dh=Ks;Dh.register(cn);var Qx=Dh;var Jx=[$i,U`
|
|
4766
4766
|
:host {
|
|
4767
4767
|
--mdc-listitem-column-gap: 0.75rem;
|
|
4768
4768
|
--mdc-option-icon-width: 1rem;
|
|
@@ -4786,15 +4786,15 @@
|
|
|
4786
4786
|
:host([data-focused]) {
|
|
4787
4787
|
outline: none;
|
|
4788
4788
|
position: relative;
|
|
4789
|
-
box-shadow: ${
|
|
4789
|
+
box-shadow: ${zi};
|
|
4790
4790
|
}
|
|
4791
4791
|
:host([data-hidden]) {
|
|
4792
4792
|
display: none;
|
|
4793
4793
|
}
|
|
4794
|
-
`],
|
|
4794
|
+
`],pg=Jx;var Yo=class extends Ce(Ei){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=J.OPTION,this.variant=Xa.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",cg):W;return _`
|
|
4795
4795
|
<div part="leading">
|
|
4796
4796
|
<slot name="leading-controls">
|
|
4797
|
-
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):
|
|
4797
|
+
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):W}
|
|
4798
4798
|
</slot>
|
|
4799
4799
|
<div part="leading-text">
|
|
4800
4800
|
${this.getText("leading-text-primary-label",ot.BODY_MIDSIZE_REGULAR,this.label)}
|
|
@@ -4802,18 +4802,18 @@
|
|
|
4802
4802
|
</div>
|
|
4803
4803
|
</div>
|
|
4804
4804
|
<div part="trailing">${t}</div>
|
|
4805
|
-
`}};
|
|
4805
|
+
`}};Yo.styles=[...Ei.styles,...pg],p([u({type:Boolean,reflect:!0})],Yo.prototype,"selected",2),p([u({type:String,reflect:!0,attribute:"prefix-icon"})],Yo.prototype,"prefixIcon",2),p([u({type:String,reflect:!0,attribute:"aria-label"})],Yo.prototype,"ariaLabel",2);var Fh=Yo;Fh.register(br);var tA=Fh;var $h={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},mg=z.constructTagName("password");var io=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?_`
|
|
4806
4806
|
<mdc-button
|
|
4807
4807
|
part="trailing-button"
|
|
4808
4808
|
class="own-focus-ring ${r?"":"hidden"}"
|
|
4809
|
-
variant=${
|
|
4809
|
+
variant=${$t.TERTIARY}
|
|
4810
4810
|
?disabled=${this.disabled||this.readonly||!r}
|
|
4811
|
-
size="${
|
|
4811
|
+
size="${Ot.ICON_SIZE}"
|
|
4812
4812
|
@click=${this.toggleShowPassword}
|
|
4813
4813
|
aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
|
|
4814
|
-
prefix-icon=${this.showPassword
|
|
4814
|
+
prefix-icon=${this.showPassword?$h.HIDE_BOLD:$h.SHOW_BOLD}
|
|
4815
4815
|
></mdc-button>
|
|
4816
|
-
`:
|
|
4816
|
+
`:W}renderInputElement(t,r){let s=this.showPassword?qi.TEXT:qi.PASSWORD;return super.renderInputElement(s,r)}};io.styles=[...Lr.styles],p([u({type:String,attribute:"show-button-aria-label",reflect:!0})],io.prototype,"showButtonAriaLabel",2),p([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],io.prototype,"hideButtonAriaLabel",2),p([u({type:String,attribute:"help-text-type"})],io.prototype,"helpTextType",2),p([ut()],io.prototype,"showPassword",2);var zh=io;zh.register(mg);var eA=zh;Ge.register(Ef);Wl.register(jl);var rA=Ge;var ud=z.constructTagName("progressbar"),fd={DEFAULT:"default",INLINE:"inline"},ug={VARIANT:fd.DEFAULT,VALIDATION:zt.DEFAULT};var iA=[yt,U`
|
|
4817
4817
|
:host {
|
|
4818
4818
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
4819
4819
|
--mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
|
|
@@ -4886,7 +4886,7 @@
|
|
|
4886
4886
|
border: var(--mdc-progressbar-border);
|
|
4887
4887
|
}
|
|
4888
4888
|
}
|
|
4889
|
-
`],
|
|
4889
|
+
`],fg=iA;var Wo=class extends Ht(ir){constructor(){super(...arguments);this.variant=ug.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 _`
|
|
4890
4890
|
<div
|
|
4891
4891
|
part="progress-container ${r?"gap":""}"
|
|
4892
4892
|
role="${J.PROGRESSBAR}"
|
|
@@ -4898,15 +4898,15 @@
|
|
|
4898
4898
|
<div part="progress-bar ${t}" style="width: ${s}%"></div>
|
|
4899
4899
|
<div part="remaining"></div>
|
|
4900
4900
|
</div>
|
|
4901
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`${
|
|
4901
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`${ud}-${Ie()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=zt.ERROR:this.clampedValue===100?this.helpTextType=zt.SUCCESS:this.helpTextType=zt.DEFAULT,this.helpTextType}render(){let t=this.variant===fd.INLINE;return _`
|
|
4902
4902
|
${t?_`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:_`
|
|
4903
4903
|
<div part="label-container">
|
|
4904
4904
|
${this.renderLabelElement()}
|
|
4905
|
-
${this.variant===
|
|
4905
|
+
${this.variant===fd.DEFAULT&&this.label?_`<span part="percentage">${this.clampedValue}%</span>`:""}
|
|
4906
4906
|
</div>
|
|
4907
4907
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
|
4908
4908
|
`}
|
|
4909
|
-
`}};
|
|
4909
|
+
`}};Wo.styles=[...ir.styles,...fg],p([u({type:String,reflect:!0})],Wo.prototype,"variant",2),p([u({type:String,reflect:!0})],Wo.prototype,"value",2),p([u({type:Boolean,attribute:"error"})],Wo.prototype,"error",2);var hn=Wo;hn.register(ud);var oA=hn;var vg=z.constructTagName("progressspinner"),ie={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"},Vh={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Bh=n=>{if(n===0)return 0;let o=n/100*ie.CIRCUMFERENCE-ie.GAP_SIZE;return Math.max(o,.1*n)},gg=n=>{let o=ie.CIRCUMFERENCE-Bh(n)-2*ie.GAP_SIZE;return n===0?ie.CIRCUMFERENCE:o<0?0:o},bg=n=>n===0?0:ie.GAP_SIZE*.5,yg=(n,o)=>{let t=o+ie.GAP_SIZE*1.5;return n===0?0:t};var sA=U`
|
|
4910
4910
|
:host {
|
|
4911
4911
|
--mdc-spinner-size: 3rem;
|
|
4912
4912
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
@@ -4953,7 +4953,7 @@
|
|
|
4953
4953
|
color: var(--mdc-progress-error-color);
|
|
4954
4954
|
margin: calc(1 / 6 * var(--mdc-spinner-size));
|
|
4955
4955
|
}
|
|
4956
|
-
`,
|
|
4956
|
+
`,Eg=[sA];var vd=class extends hn{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=Bh(this.clampedValue),t=gg(this.clampedValue),r=bg(this.clampedValue),s=yg(this.clampedValue,o);return _`
|
|
4957
4957
|
<div
|
|
4958
4958
|
part="spinner-container ${this.variant}"
|
|
4959
4959
|
role="${J.PROGRESSBAR}"
|
|
@@ -4967,18 +4967,18 @@
|
|
|
4967
4967
|
part="spinner-track"
|
|
4968
4968
|
cx="24"
|
|
4969
4969
|
cy="24"
|
|
4970
|
-
r="${
|
|
4971
|
-
stroke-width="${t===0?0:
|
|
4972
|
-
stroke-dasharray="${t} ${
|
|
4970
|
+
r="${ie.RADIUS}"
|
|
4971
|
+
stroke-width="${t===0?0:ie.STROKE_WIDTH}"
|
|
4972
|
+
stroke-dasharray="${t} ${ie.CIRCUMFERENCE}"
|
|
4973
4973
|
stroke-dashoffset="-${s}"
|
|
4974
4974
|
/>
|
|
4975
4975
|
<circle
|
|
4976
4976
|
part="spinner-progress"
|
|
4977
4977
|
cx="24"
|
|
4978
4978
|
cy="24"
|
|
4979
|
-
r="${
|
|
4980
|
-
stroke-width="${o===0?0:
|
|
4981
|
-
stroke-dasharray="${o} ${
|
|
4979
|
+
r="${ie.RADIUS}"
|
|
4980
|
+
stroke-width="${o===0?0:ie.STROKE_WIDTH}"
|
|
4981
|
+
stroke-dasharray="${o} ${ie.CIRCUMFERENCE}"
|
|
4982
4982
|
stroke-dashoffset="-${r}"
|
|
4983
4983
|
/>
|
|
4984
4984
|
</svg>
|
|
@@ -4987,19 +4987,19 @@
|
|
|
4987
4987
|
<mdc-icon
|
|
4988
4988
|
part="error-icon"
|
|
4989
4989
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
|
4990
|
-
name="${
|
|
4991
|
-
size="${
|
|
4992
|
-
length-unit="${
|
|
4990
|
+
name="${Vh.ERROR_LEGACY_FILLED}"
|
|
4991
|
+
size="${ie.ERROR_ICON_SIZE}"
|
|
4992
|
+
length-unit="${ie.ICON_LENGTH_UNIT}"
|
|
4993
4993
|
></mdc-icon>
|
|
4994
4994
|
`}renderSuccessState(){var o;return _`
|
|
4995
4995
|
<mdc-icon
|
|
4996
4996
|
part="success-icon"
|
|
4997
4997
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
|
4998
|
-
name="${
|
|
4999
|
-
size="${
|
|
5000
|
-
length-unit="${
|
|
4998
|
+
name="${Vh.CHECK_CIRCLE_BOLD}"
|
|
4999
|
+
size="${ie.SUCCESS_ICON_SIZE}"
|
|
5000
|
+
length-unit="${ie.ICON_LENGTH_UNIT}"
|
|
5001
5001
|
></mdc-icon>
|
|
5002
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():_` ${this.renderProgressSpinner()}`}};
|
|
5002
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():_` ${this.renderProgressSpinner()}`}};vd.styles=[...j.styles,...Eg];var Uh=vd;Uh.register(vg);var aA=Uh;var nA=[yt,U`
|
|
5003
5003
|
:host {
|
|
5004
5004
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
5005
5005
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -5057,7 +5057,7 @@
|
|
|
5057
5057
|
:host([soft-disabled]) {
|
|
5058
5058
|
pointer-events: none;
|
|
5059
5059
|
}
|
|
5060
|
-
`,...St(!0)],
|
|
5060
|
+
`,...St(!0)],Tg=nA;var pn=class extends kt(xe(Ce(Ht(le)))){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(v=>v.required),d=!!r.find(v=>v.checked),m=s&&!d;this.setGroupValidity(r,!m)}this.internals.setFormValue(t)}handleChange(){var s;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(d=>{var v;let m=(v=d.shadowRoot)==null?void 0:v.querySelector("input");m&&(d.checked=!1,m.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 v;if(this.disabled)return;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault();let d=this.getAllRadiosWithinSameGroup().filter(x=>!x.disabled),m=d.indexOf(this);if(r===Z.DOWN||r===Z.RIGHT){let x=(m+1)%d.length;this.updateRadio(d,x)}else if(r===Z.UP||r===Z.LEFT){let x=(m-1+d.length)%d.length;this.updateRadio(d,x)}else r===Z.SPACE&&this.updateRadio(d,m);this.updateTabIndex(),r===Z.ENTER&&((v=this.form)==null||v.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),r=t.find(d=>d.checked),s=t.find(d=>!d.disabled);t.forEach(d=>{var v;let m=(v=d.shadowRoot)==null?void 0:v.querySelector("input");m&&(m.tabIndex=-1,(d===r||!r&&d===s)&&(m.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return _`
|
|
5061
5061
|
<mdc-staticradio
|
|
5062
5062
|
class="mdc-focus-ring"
|
|
5063
5063
|
?checked="${this.checked}"
|
|
@@ -5081,12 +5081,12 @@
|
|
|
5081
5081
|
?readonly=${this.readonly}
|
|
5082
5082
|
?disabled=${this.disabled}
|
|
5083
5083
|
aria-checked="${this.checked}"
|
|
5084
|
-
aria-describedby="${tt(this.helpText?
|
|
5084
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:"")}"
|
|
5085
5085
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
5086
5086
|
/>
|
|
5087
5087
|
</mdc-staticradio>
|
|
5088
5088
|
${this.renderLabelAndHelperText()}
|
|
5089
|
-
`}};
|
|
5089
|
+
`}};pn.styles=[...le.styles,...Tg],p([u({type:Boolean,reflect:!0})],pn.prototype,"checked",2);var Hh=pn;var gd=z.constructTagName("radio");Hh.register(gd);var lA=Hh;var mn=class extends id{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,r,s,d,m;(m=(d=(s=(r=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(v=>v.assignedElements({flatten:!0})))==null?void 0:s.filter(v=>v.tagName.toLowerCase()===gd||v.tagName.toLowerCase()===Dl))==null?void 0:d.filter(v=>!v.hasAttribute("name")))==null||m.forEach(v=>{v.setAttribute("name",this.name),this.required&&v.setAttribute("required",this.required.toString())})}};mn.styles=[...id.styles],p([u({type:String})],mn.prototype,"name",2);var Gh=mn;var xg=z.constructTagName("radiogroup");Gh.register(xg);var dA=Gh;var cA=U`
|
|
5090
5090
|
:host::part(filters-container) {
|
|
5091
5091
|
display: flex;
|
|
5092
5092
|
gap: 0.25rem;
|
|
@@ -5116,27 +5116,27 @@
|
|
|
5116
5116
|
position: relative;
|
|
5117
5117
|
scrollbar-width: none;
|
|
5118
5118
|
}
|
|
5119
|
-
`,
|
|
5119
|
+
`,Ag=[cA];var Sg=z.constructTagName("searchfield"),un={TYPE:qi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:sd};var jo=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=un.ICON,this.trailingButton=un.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(un.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 _`
|
|
5120
5120
|
${this.renderLabelElement()}
|
|
5121
5121
|
<div
|
|
5122
|
-
class="${
|
|
5122
|
+
class="${eo({"mdc-focus-ring":this.isInputFocused})}"
|
|
5123
5123
|
part="input-container"
|
|
5124
5124
|
>
|
|
5125
5125
|
${this.renderLeadingIcon()}
|
|
5126
5126
|
<div part="scrollable-container" tabindex="-1">
|
|
5127
5127
|
<div
|
|
5128
5128
|
part="filters-container"
|
|
5129
|
-
@click=${
|
|
5130
|
-
@keydown=${
|
|
5131
|
-
@keyup=${
|
|
5129
|
+
@click=${this.handleFilterContainerClick}
|
|
5130
|
+
@keydown=${this.handleFilterContainerKeyDown}
|
|
5131
|
+
@keyup=${this.handleFilterContainerKeyUp}
|
|
5132
5132
|
>
|
|
5133
5133
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot>
|
|
5134
5134
|
</div>
|
|
5135
|
-
${this.renderInputElement(
|
|
5135
|
+
${this.renderInputElement(un.TYPE,this.hasInputChips)}
|
|
5136
5136
|
</div>
|
|
5137
5137
|
${this.renderTrailingButton(this.hasInputChips)}
|
|
5138
5138
|
</div>
|
|
5139
|
-
`}};
|
|
5139
|
+
`}};jo.styles=[...Lr.styles,...Ag],p([Dt({slot:"filters"})],jo.prototype,"inputChips",2),p([ut()],jo.prototype,"isInputFocused",2),p([ut()],jo.prototype,"hasInputChips",2);var Ys=jo;Ys.register(Sg);var hA=Ys;var pA=U`
|
|
5140
5140
|
:host {
|
|
5141
5141
|
--mdc-searchpopover-width: 100%;
|
|
5142
5142
|
--mdc-searchpopover-popover-width: var(--mdc-searchpopover-width);
|
|
@@ -5156,21 +5156,21 @@
|
|
|
5156
5156
|
min-width: auto;
|
|
5157
5157
|
padding: 0.75rem 0.5rem;
|
|
5158
5158
|
}
|
|
5159
|
-
`,
|
|
5159
|
+
`,Ig=[pA];var _g=z.constructTagName("searchpopover"),Kh={TYPE:qi.TEXT,DISPLAY_POPOVER:!1},Yh="searchpopover-container-triggerid",bd="searchpopover-popoverid";var oo=class extends Ys{constructor(){super(...arguments);this.displayPopover=Kh.DISPLAY_POPOVER;this.placement=Nt.BOTTOM_START;this.popoverZIndex=gt.Z_INDEX}renderInputElement(){var r,s;let t=this.hasInputChips?"":this.placeholder;return _`<input
|
|
5160
5160
|
aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
|
|
5161
5161
|
part="input-text"
|
|
5162
5162
|
id="${this.inputId}"
|
|
5163
5163
|
name="${this.name}"
|
|
5164
|
-
.value="${
|
|
5164
|
+
.value="${Uo(this.value)}"
|
|
5165
5165
|
?disabled="${this.disabled}"
|
|
5166
5166
|
?readonly="${this.readonly}"
|
|
5167
5167
|
?required="${this.required}"
|
|
5168
|
-
type="${
|
|
5168
|
+
type="${Kh.TYPE}"
|
|
5169
5169
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
|
5170
|
-
aria-controls="${
|
|
5171
|
-
aria-owns="${
|
|
5170
|
+
aria-controls="${bd}"
|
|
5171
|
+
aria-owns="${bd}"
|
|
5172
5172
|
aria-haspopup="${J.DIALOG}"
|
|
5173
|
-
aria-describedby="${tt(this.helpText?
|
|
5173
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:(s=this.dataAriaDescribedby)!=null?s:"")}"
|
|
5174
5174
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
|
5175
5175
|
placeholder=${tt(t)}
|
|
5176
5176
|
minlength=${tt(this.minlength)}
|
|
@@ -5188,17 +5188,17 @@
|
|
|
5188
5188
|
/>`}render(){return _`
|
|
5189
5189
|
${this.renderLabelElement()}
|
|
5190
5190
|
<div
|
|
5191
|
-
class="${
|
|
5191
|
+
class="${eo({"mdc-focus-ring":this.isInputFocused})}"
|
|
5192
5192
|
part="input-container"
|
|
5193
|
-
id="${
|
|
5193
|
+
id="${Yh}"
|
|
5194
5194
|
>
|
|
5195
5195
|
${this.renderLeadingIcon()}
|
|
5196
5196
|
<div part="scrollable-container" tabindex="-1">
|
|
5197
5197
|
<div
|
|
5198
5198
|
part="filters-container"
|
|
5199
|
-
@click=${
|
|
5200
|
-
@keydown=${
|
|
5201
|
-
@keyup=${
|
|
5199
|
+
@click=${this.handleFilterContainerClick}
|
|
5200
|
+
@keydown=${this.handleFilterContainerKeyDown}
|
|
5201
|
+
@keyup=${this.handleFilterContainerKeyUp}
|
|
5202
5202
|
>
|
|
5203
5203
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot>
|
|
5204
5204
|
</div>
|
|
@@ -5207,8 +5207,8 @@
|
|
|
5207
5207
|
${this.renderTrailingButton(this.hasInputChips)}
|
|
5208
5208
|
</div>
|
|
5209
5209
|
<mdc-popover
|
|
5210
|
-
triggerID="${
|
|
5211
|
-
id="${
|
|
5210
|
+
triggerID="${Yh}"
|
|
5211
|
+
id="${bd}"
|
|
5212
5212
|
trigger="manual"
|
|
5213
5213
|
interactive
|
|
5214
5214
|
?visible=${this.displayPopover}
|
|
@@ -5224,7 +5224,7 @@
|
|
|
5224
5224
|
>
|
|
5225
5225
|
<slot></slot>
|
|
5226
5226
|
</mdc-popover>
|
|
5227
|
-
`}};
|
|
5227
|
+
`}};oo.styles=[...Ys.styles,...Ig],p([u({type:Boolean,reflect:!0,attribute:"display-popover"})],oo.prototype,"displayPopover",2),p([u({type:String,reflect:!0})],oo.prototype,"placement",2),p([u({type:Number,reflect:!0,attribute:"popover-z-index"})],oo.prototype,"popoverZIndex",2),p([u({type:String,reflect:!0,attribute:"popover-aria-label"})],oo.prototype,"popoverAriaLabel",2);var Wh=oo;Wh.register(_g);var mA=Wh;var Cg=z.constructTagName("select"),jh={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},yd="select-base-triggerid",wg="select-listbox",kg={DISABLE_FLIP:!1};var uA=U`
|
|
5228
5228
|
:host {
|
|
5229
5229
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
5230
5230
|
--mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
|
|
@@ -5333,24 +5333,24 @@
|
|
|
5333
5333
|
:host([soft-disabled])::part(base-text) {
|
|
5334
5334
|
--mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
5335
5335
|
}
|
|
5336
|
-
`,
|
|
5336
|
+
`,Ng=[uA,...St(!0)];var je=class extends zs(Xi(xe(Ce(Ht(le))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=gt.BOUNDARY;this.strategy=gt.STRATEGY;this.popoverZIndex=gt.Z_INDEX;this.disableFlip=kg.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 m=s+1;if(m>=d.length&&(m=s-1),m===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(m),t.hasAttribute("selected")){let v=null;this.placeholder||(v=s===0?d[m]:d[0]),this.setSelectedOption(v)}break}default:break}};this.isValidItem=t=>t.matches(`${br}:not([disabled])`);this.addEventListener(Kt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new qr(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 m=this.getFirstSelectedOption(),v=this.getFirstOption(),x=this.navItems.find(B=>B.value===s),L=null;if(x)L=x;else if(this.placeholder)L=null;else if(v)L=v;else if(m)L=m;else return;this.updateComplete.then(()=>{this.setSelectedOption(L)}).catch(B=>{this.onerror&&this.onerror(B)})}}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=Xl(()=>{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(v=>v.tabIndex===0)+1,s=[...this.navItems.slice(r),...this.navItems.slice(0,r)],d=this.filterOptionsBySearchKey(s,t),m=null;if(d.length)[m]=d;else if(t.split("").every(v=>v===t[0])){let v=this.navItems[r],x=this.filterOptionsBySearchKey(s,t[0]),L=x.filter(B=>B===v);m=L.length?L[0]:x[0]}this.navItems.indexOf(m)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(m))}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,m,v;return _`
|
|
5337
5337
|
${this.renderLabel()}
|
|
5338
5338
|
<div part="container">
|
|
5339
5339
|
<div
|
|
5340
|
-
id="${
|
|
5340
|
+
id="${yd}"
|
|
5341
5341
|
part="base-container"
|
|
5342
5342
|
@click="${this.handleClickCombobox}"
|
|
5343
5343
|
@keydown="${this.handleKeydownCombobox}"
|
|
5344
5344
|
tabindex="${this.disabled?"-1":"0"}"
|
|
5345
5345
|
class="${this.disabled?"":"mdc-focus-ring"}"
|
|
5346
5346
|
role="${J.COMBOBOX}"
|
|
5347
|
-
aria-controls="${
|
|
5347
|
+
aria-controls="${wg}"
|
|
5348
5348
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
5349
|
-
aria-labelledby="${this.label?
|
|
5349
|
+
aria-labelledby="${this.label?Ot.HEADING_ID:""}"
|
|
5350
5350
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
|
5351
5351
|
aria-haspopup="${J.LISTBOX}"
|
|
5352
5352
|
aria-required="${this.required?"true":"false"}"
|
|
5353
|
-
aria-invalid="${this.helpTextType
|
|
5353
|
+
aria-invalid="${this.helpTextType===zt.ERROR?"true":"false"}"
|
|
5354
5354
|
aria-disabled="${tt(this.disabled||this.softDisabled)}"
|
|
5355
5355
|
aria-readonly="${tt(this.readonly)}"
|
|
5356
5356
|
>
|
|
@@ -5359,19 +5359,19 @@
|
|
|
5359
5359
|
size="1"
|
|
5360
5360
|
name="${(s=this.selectedOption)==null?void 0:s.prefixIcon}"
|
|
5361
5361
|
part="selected-icon"
|
|
5362
|
-
></mdc-icon>`:
|
|
5362
|
+
></mdc-icon>`:W}
|
|
5363
5363
|
<mdc-text
|
|
5364
5364
|
part="base-text ${(d=this.selectedOption)!=null&&d.label?"selected":""}"
|
|
5365
5365
|
type="${ot.BODY_MIDSIZE_REGULAR}"
|
|
5366
5366
|
tagname="${mt.SPAN}"
|
|
5367
5367
|
>
|
|
5368
|
-
${(
|
|
5368
|
+
${(v=(m=this.selectedOption)==null?void 0:m.label)!=null?v:this.placeholder}
|
|
5369
5369
|
</mdc-text>
|
|
5370
5370
|
<div part="icon-container">
|
|
5371
5371
|
<mdc-icon
|
|
5372
5372
|
size="1"
|
|
5373
5373
|
length-unit="rem"
|
|
5374
|
-
name="${this.displayPopover?
|
|
5374
|
+
name="${this.displayPopover?jh.ARROW_UP:jh.ARROW_DOWN}"
|
|
5375
5375
|
></mdc-icon>
|
|
5376
5376
|
</div>
|
|
5377
5377
|
</div>
|
|
@@ -5390,8 +5390,8 @@
|
|
|
5390
5390
|
aria-disabled="${tt(this.disabled||this.softDisabled)}"
|
|
5391
5391
|
/>
|
|
5392
5392
|
<mdc-popover
|
|
5393
|
-
trigger="${
|
|
5394
|
-
triggerid="${
|
|
5393
|
+
trigger="${Ue.MANUAL}"
|
|
5394
|
+
triggerid="${yd}"
|
|
5395
5395
|
interactive
|
|
5396
5396
|
?visible="${this.displayPopover}"
|
|
5397
5397
|
role=""
|
|
@@ -5416,7 +5416,7 @@
|
|
|
5416
5416
|
</mdc-popover>
|
|
5417
5417
|
</div>
|
|
5418
5418
|
${this.renderHelperText()}
|
|
5419
|
-
`}};je.styles=[...
|
|
5419
|
+
`}};je.styles=[...le.styles,...Ng],p([u({type:String})],je.prototype,"placeholder",2),p([u({type:String,reflect:!0})],je.prototype,"placement",2),p([u({type:String,reflect:!0,attribute:"boundary"})],je.prototype,"boundary",2),p([u({type:String,reflect:!0,attribute:"strategy"})],je.prototype,"strategy",2),p([u({type:Number,reflect:!0,attribute:"popover-z-index"})],je.prototype,"popoverZIndex",2),p([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],je.prototype,"disableFlip",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],je.prototype,"backdropAppendTo",2),p([Ee(`[id="${yd}"]`)],je.prototype,"visualCombobox",2),p([ut()],je.prototype,"selectedOption",2),p([ut()],je.prototype,"displayPopover",2);var qh=je;qh.register(Cg);var fA=qh;var Xh=class extends j{connectedCallback(){super.connectedCallback(),this.role=J.LISTBOX}createRenderRoot(){return this}},Zh=Xh;var Ed=z.constructTagName("selectlistbox");Zh.register(Ed);var vA=Zh;Ko.register(Qi);var gA=Ko;var Lg=z.constructTagName("skeleton"),Og={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Rg={VARIANT:Og.RECTANGULAR};var bA=U`
|
|
5420
5420
|
:host {
|
|
5421
5421
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
5422
5422
|
--mdc-skeleton-height: 100%;
|
|
@@ -5453,7 +5453,7 @@
|
|
|
5453
5453
|
::slotted(*) {
|
|
5454
5454
|
visibility: hidden;
|
|
5455
5455
|
}
|
|
5456
|
-
`,
|
|
5456
|
+
`,Mg=bA;var fn=class extends j{constructor(){super(...arguments);this.variant=Rg.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>`}};fn.styles=[...j.styles,Mg],p([u({type:String,reflect:!0})],fn.prototype,"variant",2);var Qh=fn;Qh.register(Lg);var yA=Qh;var EA=[yt,U`
|
|
5457
5457
|
:host {
|
|
5458
5458
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
|
5459
5459
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
|
@@ -5517,11 +5517,11 @@
|
|
|
5517
5517
|
stroke-dashoffset: -292;
|
|
5518
5518
|
}
|
|
5519
5519
|
}
|
|
5520
|
-
`],
|
|
5520
|
+
`],Pg=EA;var Dg=z.constructTagName("spinner"),TA={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},xA={STANDALONE:"standalone",BUTTON:"button"},Td={VARIANT:xA.STANDALONE,SIZE:TA.MIDSIZE,INVERTED:!1};var so=class extends j{constructor(){super(...arguments);this.inverted=Td.INVERTED;this.size=Td.SIZE;this.ariaLabel=null;this.variant=Td.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?J.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return _`
|
|
5521
5521
|
<svg part="container" viewBox="0 0 100 100">
|
|
5522
5522
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
|
5523
5523
|
</svg>
|
|
5524
|
-
`}};
|
|
5524
|
+
`}};so.styles=[...j.styles,...Pg],p([u({type:Boolean,reflect:!0})],so.prototype,"inverted",2),p([u({type:String,reflect:!0})],so.prototype,"size",2),p([u({type:String,attribute:"aria-label"})],so.prototype,"ariaLabel",2),p([u({type:String,reflect:!0})],so.prototype,"variant",2);var Jh=so;Jh.register(Dg);var AA=Jh;Ga.register(uv);var SA=Ga;var IA={COMPLETE:"complete",INCOMPLETE:"incomplete"},tp={VERTICAL:"vertical",HORIZONTAL:"horizontal"},ep={STATUS:IA.INCOMPLETE,ORIENTATION:tp.HORIZONTAL},Fg=z.constructTagName("stepperconnector");var $g=z.constructTagName("stepperitem"),rp={INLINE:"inline",STACKED:"stacked"},Ai={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},xd={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},ip={VARIANT:rp.INLINE,STATUS:Ai.NOT_STARTED};var Ad=z.constructTagName("stepper"),vn={ORIENTATION:tp.HORIZONTAL,VARIANT:rp.INLINE};var Sd=class{constructor(o,t){this.orientation=o,this.variant=t}};Sd.context=Ad;var Id=Sd;var _A=U`
|
|
5525
5525
|
:host {
|
|
5526
5526
|
gap: 0.5rem;
|
|
5527
5527
|
}
|
|
@@ -5558,7 +5558,7 @@
|
|
|
5558
5558
|
padding-top: 0.9375rem;
|
|
5559
5559
|
margin: 0 -3rem;
|
|
5560
5560
|
}
|
|
5561
|
-
`,
|
|
5561
|
+
`,zg=[yt,_A];var Ws=class extends Te{constructor(){super({context:Id.context,initialValue:new Id(vn.ORIENTATION,vn.VARIANT)});this.orientation=vn.ORIENTATION;this.variant=vn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=J.LIST}static get Context(){return Id.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> `}};Ws.styles=[...j.styles,...zg],p([u({type:String,reflect:!0})],Ws.prototype,"orientation",2),p([u({type:String,reflect:!0})],Ws.prototype,"variant",2);var qo=Ws;qo.register(Ad);var CA=qo;var wA=U`
|
|
5562
5562
|
:host {
|
|
5563
5563
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
|
5564
5564
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -5593,7 +5593,7 @@
|
|
|
5593
5593
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
|
5594
5594
|
}
|
|
5595
5595
|
}
|
|
5596
|
-
|
|
5596
|
+
`,Vg=[wA];var js=class extends j{constructor(){super(...arguments);this.status=ep.STATUS;this.orientation=ep.ORIENTATION;this.stepperContext=Ae.consume({host:this,context:qo.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> `}};js.styles=[...j.styles,...Vg],p([u({type:String,reflect:!0})],js.prototype,"status",2),p([u({type:String,reflect:!0})],js.prototype,"orientation",2);var op=js;op.register(Fg);var kA=op;var NA=U`
|
|
5597
5597
|
:host {
|
|
5598
5598
|
gap: 0.5rem;
|
|
5599
5599
|
border-radius: 0.25rem;
|
|
@@ -5749,23 +5749,23 @@
|
|
|
5749
5749
|
:host([status='error-incomplete']:active) {
|
|
5750
5750
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
|
5751
5751
|
}
|
|
5752
|
-
`,
|
|
5752
|
+
`,Bg=[yt,NA,...St()];var Si=class extends kt(zr(j)){constructor(){super();this.variant=ip.VARIANT;this.status=ip.STATUS;this.label="";this.stepperContext=Ae.consume({host:this,context:qo.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=${xd.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Ai.ERROR_CURRENT||this.status===Ai.CURRENT?_`<mdc-icon part="status-icon" name=${xd.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=${mt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
|
5753
5753
|
>${this.stepNumber}</mdc-text
|
|
5754
|
-
>`:
|
|
5754
|
+
>`:W}renderHelpText(){if(!this.helpText)return W;let t=_`<mdc-text
|
|
5755
5755
|
part="help-text"
|
|
5756
5756
|
tagname=${mt.SPAN}
|
|
5757
5757
|
type=${ot.BODY_MIDSIZE_REGULAR}
|
|
5758
5758
|
>${this.helpText}</mdc-text
|
|
5759
|
-
>`;return this.status===
|
|
5760
|
-
<mdc-icon part="help-icon" name=${
|
|
5759
|
+
>`;return this.status===Ai.ERROR_INCOMPLETE||this.status===Ai.ERROR_CURRENT?_`<div part="help-text-container">
|
|
5760
|
+
<mdc-icon part="help-icon" name=${xd.ERROR} length-unit="rem" size="1"></mdc-icon>
|
|
5761
5761
|
${t}
|
|
5762
5762
|
</div>`:t}render(){return _` <div part="status-container">${this.renderStatusIcon()}</div>
|
|
5763
5763
|
<div part="label-container">
|
|
5764
5764
|
${this.label?_`<mdc-text part="label" tagname=${mt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
|
5765
5765
|
>${this.label}</mdc-text
|
|
5766
|
-
>`:
|
|
5766
|
+
>`:W}
|
|
5767
5767
|
${this.renderHelpText()}
|
|
5768
|
-
</div>`}};
|
|
5768
|
+
</div>`}};Si.styles=[...j.styles,...Bg],p([u({type:String,reflect:!0})],Si.prototype,"variant",2),p([u({type:String,reflect:!0})],Si.prototype,"status",2),p([u({type:String,reflect:!0})],Si.prototype,"label",2),p([u({type:String,reflect:!0,attribute:"help-text"})],Si.prototype,"helpText",2),p([u({type:Number,reflect:!0,attribute:"step-number"})],Si.prototype,"stepNumber",2);var sp=Si;sp.register($g);var LA=sp;var Ug=z.constructTagName("tab"),ap={GLASS:"glass",LINE:"line",PILL:"pill"},_d={VARIANT:ap.PILL,ACTIVE:!1};var OA=[yt,U`
|
|
5769
5769
|
:host {
|
|
5770
5770
|
--mdc-tab-content-gap: 0.5rem;
|
|
5771
5771
|
--mdc-tab-height: 2rem;
|
|
@@ -5967,10 +5967,10 @@
|
|
|
5967
5967
|
--mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
|
5968
5968
|
--mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
|
|
5969
5969
|
}
|
|
5970
|
-
`,...St()],
|
|
5970
|
+
`,...St()],Hg=OA;var ao=class extends Zt(ae){constructor(){super(...arguments);this.active=_d.ACTIVE;this.variant=_d.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=`${Ao(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(ap).includes(t)?t:_d.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 _`
|
|
5971
5971
|
<div part="container">
|
|
5972
5972
|
<slot name="prefix">
|
|
5973
|
-
${this.iconName?_` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:
|
|
5973
|
+
${this.iconName?_` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:W}
|
|
5974
5974
|
</slot>
|
|
5975
5975
|
${this.text?_` <mdc-text
|
|
5976
5976
|
type=${this.active?ot.BODY_MIDSIZE_BOLD:ot.BODY_MIDSIZE_MEDIUM}
|
|
@@ -5978,12 +5978,12 @@
|
|
|
5978
5978
|
data-text=${this.text}
|
|
5979
5979
|
part="text"
|
|
5980
5980
|
>${this.text}</mdc-text
|
|
5981
|
-
>`:
|
|
5981
|
+
>`:W}
|
|
5982
5982
|
<slot name="badge"></slot>
|
|
5983
5983
|
<slot name="chip"></slot>
|
|
5984
5984
|
</div>
|
|
5985
5985
|
<div part="indicator"></div>
|
|
5986
|
-
`}};
|
|
5986
|
+
`}};ao.styles=[...ae.styles,...Hg],p([u({type:Boolean,reflect:!0})],ao.prototype,"active",2),p([u({type:String,reflect:!0})],ao.prototype,"text",2),p([u({type:String,reflect:!0})],ao.prototype,"variant",2),p([u({type:String,reflect:!0,attribute:"tab-id"})],ao.prototype,"tabId",2);var yr=ao;yr.register(Ug);var RA=yr;var MA=[$i,U`
|
|
5987
5987
|
:host {
|
|
5988
5988
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
|
5989
5989
|
--mdc-tablist-gap: 0.5rem;
|
|
@@ -6013,16 +6013,16 @@
|
|
|
6013
6013
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
|
6014
6014
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
|
6015
6015
|
}
|
|
6016
|
-
`],
|
|
6016
|
+
`],Gg=[...MA];var Kg=z.constructTagName("tablist"),gn={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},qs={FORWARD:"forward",BACKWARD:"backward"};var Cd=n=>n[0],np=n=>n[n.length-1],Yg=(n,o)=>{let t=n.findIndex(r=>o===r)-1;return n[(t+n.length)%n.length]},Wg=(n,o)=>{let t=n.findIndex(r=>o===r)+1;return n[t%n.length]},jg=(n,o)=>n.find(t=>t.tabId===o),lp=n=>n.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,m;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(v=>v.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=Cd(this.tabs))==null?void 0:s.tabId),(d=this.tabsContainer)==null||d.addEventListener("focusin",this.handleFocus.bind(this)),(m=this.tabsContainer)==null||m.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=jg(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=lp(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=Yg(this.tabs,r),d=Wg(this.tabs,r),m=Cd(this.tabs),v=np(this.tabs);switch(t.code){case gn.LEFT:t.preventDefault(),await this.focusTab(this.isRtl()?d:s);break;case gn.RIGHT:t.preventDefault(),await this.focusTab(this.isRtl()?s:d);break;case gn.HOME:await this.focusTab(m);break;case gn.END:await this.focusTab(v);break;default:}}shouldShowArrowButton(t){return t===qs.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=lp(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 So&&(t=!0);let r=Cd(this.tabs),s=np(this.tabs),d=r.getBoundingClientRect().left,m=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,v=s.getBoundingClientRect().right,x=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,L=r.getBoundingClientRect().right,B=s.getBoundingClientRect().left;if(!this.isRtl()){d<=m?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,v>x?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}L>x?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,B<m?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===qs.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
|
|
6017
6017
|
variant="tertiary"
|
|
6018
|
-
prefix-icon="arrow-${d===
|
|
6019
|
-
aria-label="Scroll tabs ${d===
|
|
6018
|
+
prefix-icon="arrow-${d===qs.FORWARD?t:r}-regular"
|
|
6019
|
+
aria-label="Scroll tabs ${d===qs.FORWARD?t:r}"
|
|
6020
6020
|
@click="${()=>this.scrollTabs(d)}"
|
|
6021
|
-
></mdc-button>`:
|
|
6021
|
+
></mdc-button>`:W}`;return _` ${s("backward")}
|
|
6022
6022
|
<div part="container" role="${J.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
|
|
6023
6023
|
<slot></slot>
|
|
6024
6024
|
</div>
|
|
6025
|
-
${s(
|
|
6025
|
+
${s(qs.FORWARD)}`}};Or.styles=[...j.styles,...Gg],p([u({type:String,attribute:"active-tab-id",reflect:!0})],Or.prototype,"activeTabId",2),p([u({type:String,attribute:"data-aria-label"})],Or.prototype,"dataAriaLabel",2),p([Ee('[part="container"]')],Or.prototype,"tabsContainer",2),p([Ee("mdc-button:not(:focus-visible)")],Or.prototype,"notFocusedArrowButton",2),p([Dt({selector:"mdc-tab"})],Or.prototype,"tabs",2),p([ut()],Or.prototype,"showForwardArrowButton",2),p([ut()],Or.prototype,"showBackwardArrowButton",2);var dp=Or;dp.register(Kg);var PA=dp;var qg=z.constructTagName("textarea"),cp={HARD:"hard",SOFT:"soft"},Xg={OFF:"off",ON:"on"},bn={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:cp.SOFT};var DA=[U`
|
|
6026
6026
|
:host {
|
|
6027
6027
|
--mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
|
|
6028
6028
|
--mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -6147,11 +6147,11 @@
|
|
|
6147
6147
|
:host([disabled])::part(resize-button) {
|
|
6148
6148
|
cursor: default;
|
|
6149
6149
|
}
|
|
6150
|
-
`,...St(!0)],
|
|
6151
|
-
<mdc-text part="character-counter" tagname="span" type=${
|
|
6150
|
+
`,...St(!0)],Zg=DA;var oe=class extends kt(xe(Ce(Ht(ir)))){constructor(){super(...arguments);this.rows=bn.ROWS;this.wrap=cp.SOFT;this.autocapitalize=od.OFF;this.autocomplete=Xg.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||bn.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?_`
|
|
6151
|
+
<mdc-text part="character-counter" tagname="span" type=${bn.CHARACTER_COUNTER_TYPE}>
|
|
6152
6152
|
${this.value.length}/${this.maxCharacterLimit}
|
|
6153
6153
|
</mdc-text>
|
|
6154
|
-
`:
|
|
6154
|
+
`: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||bn.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 _`
|
|
6155
6155
|
${this.renderLabel()}
|
|
6156
6156
|
<div class="mdc-focus-ring" part="textarea-container">
|
|
6157
6157
|
<textarea
|
|
@@ -6174,7 +6174,7 @@
|
|
|
6174
6174
|
dirname=${tt(this.dirname)}
|
|
6175
6175
|
@input=${this.updateValue}
|
|
6176
6176
|
@change=${this.onChange}
|
|
6177
|
-
aria-describedby="${tt(this.helpText?
|
|
6177
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:"")}"
|
|
6178
6178
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
|
6179
6179
|
></textarea>
|
|
6180
6180
|
<mdc-screenreaderannouncer
|
|
@@ -6195,10 +6195,10 @@
|
|
|
6195
6195
|
@keydown=${this.handleResizeKeyDown}
|
|
6196
6196
|
@pointerdown=${this.handlePointerDown}
|
|
6197
6197
|
></mdc-button>
|
|
6198
|
-
`:
|
|
6198
|
+
`:W}
|
|
6199
6199
|
</div>
|
|
6200
6200
|
${this.renderTextareaFooter()}
|
|
6201
|
-
`}};
|
|
6201
|
+
`}};oe.styles=[...ir.styles,...Zg],p([u({type:String})],oe.prototype,"placeholder",2),p([u({type:Number,reflect:!0})],oe.prototype,"rows",2),p([u({type:Number})],oe.prototype,"cols",2),p([u({type:String})],oe.prototype,"wrap",2),p([u({type:String})],oe.prototype,"autocapitalize",2),p([u({type:String})],oe.prototype,"autocomplete",2),p([u({type:String})],oe.prototype,"dirname",2),p([u({type:Number})],oe.prototype,"maxlength",2),p([u({type:Number})],oe.prototype,"minlength",2),p([u({type:Number,attribute:"max-character-limit"})],oe.prototype,"maxCharacterLimit",2),p([u({type:String,attribute:"character-limit-announcement"})],oe.prototype,"characterLimitAnnouncement",2),p([u({type:Boolean,reflect:!0})],oe.prototype,"resizable",2),p([u({type:String,attribute:"resize-button-aria-label"})],oe.prototype,"resizeButtonAriaLabel",2),p([Ee("textarea")],oe.prototype,"inputElement",2),p([ut()],oe.prototype,"ariaLiveAnnouncer",2);var hp=oe;hp.register(qg);var FA=hp;var $A=[U`
|
|
6202
6202
|
:host {
|
|
6203
6203
|
display: block;
|
|
6204
6204
|
position: relative;
|
|
@@ -6212,18 +6212,18 @@
|
|
|
6212
6212
|
:host::part(typewriter-hidden) {
|
|
6213
6213
|
display: none;
|
|
6214
6214
|
}
|
|
6215
|
-
`],
|
|
6216
|
-
<div part="${
|
|
6215
|
+
`],Qg=$A;var Jg=z.constructTagName("typewriter"),Xo={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},Zr={TYPE:Se.TYPE,TEXT_ELEMENT_TAGNAME:Se.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 Rr=class extends j{constructor(){super(...arguments);this.type=Zr.TYPE;this.tagname=Zr.TEXT_ELEMENT_TAGNAME;this.speed=Zr.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(Zr.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(Zr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return Xo.SLOW;case"fast":return Xo.FAST;case"very-slow":return Xo.VERY_SLOW;case"very-fast":return Xo.VERY_FAST;case"normal":return Xo.NORMAL;default:{let r=parseInt(t,10);return Number.isNaN(r)?Xo.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(Zr.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 _`
|
|
6216
|
+
<div part="${Zr.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
|
|
6217
6217
|
<mdc-text
|
|
6218
|
-
part="${
|
|
6218
|
+
part="${Zr.CSS_PART_TEXT}"
|
|
6219
6219
|
type="${this.type}"
|
|
6220
6220
|
tagname="${tt(this.tagname)}"
|
|
6221
6221
|
aria-label="${this.originalText}"
|
|
6222
6222
|
>${this.displayedText}</mdc-text
|
|
6223
6223
|
>
|
|
6224
|
-
<slot @slotchange=${this.handleSlotChange} part="${
|
|
6224
|
+
<slot @slotchange=${this.handleSlotChange} part="${Zr.CSS_PART_HIDDEN}"></slot>
|
|
6225
6225
|
</div>
|
|
6226
|
-
`}};
|
|
6226
|
+
`}};Rr.styles=[...j.styles,...Qg],p([u({attribute:"type",reflect:!0,type:String})],Rr.prototype,"type",2),p([u({attribute:"tagname",reflect:!0,type:String})],Rr.prototype,"tagname",2),p([u({attribute:"speed",reflect:!0})],Rr.prototype,"speed",2),p([u({attribute:"max-queue-size",type:Number,reflect:!0})],Rr.prototype,"maxQueueSize",2),p([ut()],Rr.prototype,"displayedText",2),p([ut()],Rr.prototype,"originalText",2),p([ut()],Rr.prototype,"typingComplete",2);var pp=Rr;pp.register(Jg);var zA=pp;var wd=z.constructTagName("themeprovider"),mp={THEMECLASS:"mds-theme-stable-darkWebex"};var kd=class{constructor(o){this.themeclass=o}};kd.context=wd;var Nd=kd;var VA=U`
|
|
6227
6227
|
:host {
|
|
6228
6228
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
|
6229
6229
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
|
@@ -6250,7 +6250,7 @@
|
|
|
6250
6250
|
* {
|
|
6251
6251
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
|
6252
6252
|
}
|
|
6253
|
-
`,
|
|
6253
|
+
`,tb=[VA];var Xs=class extends Te{constructor(){super({context:Nd.context,initialValue:new Nd(mp.THEMECLASS)});this.themeclass=mp.THEMECLASS}static get Context(){return Nd.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(" "))}};Xs.styles=[...Te.styles,...tb],p([ut()],Xs.prototype,"currentThemeClass",2),p([u({type:String})],Xs.prototype,"themeclass",2);var up=Xs;up.register(wd);var BA=up;var eb=z.constructTagName("toast"),yn={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ld={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:hr[20],BUTTON:ni,PRIMARY_BUTTON:$t.PRIMARY,SECONDARY_BUTTON:$t.SECONDARY,TERTIARY_BUTTON:$t.TERTIARY,VARIANT:yn.CUSTOM};var rb=n=>{switch(n){case yn.SUCCESS:return Ld.SUCCESS_ICON_NAME;case yn.WARNING:return Ld.WARNING_ICON_NAME;case yn.ERROR:return Ld.ERROR_ICON_NAME;default:return null}};var UA=U`
|
|
6254
6254
|
:host {
|
|
6255
6255
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
6256
6256
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -6335,36 +6335,36 @@
|
|
|
6335
6335
|
mdc-text::part(text) {
|
|
6336
6336
|
margin: 0;
|
|
6337
6337
|
}
|
|
6338
|
-
`,
|
|
6339
|
-
<mdc-icon name="${t}" size="${
|
|
6340
|
-
`:
|
|
6338
|
+
`,ib=[UA];var Me=class extends ys(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?_`
|
|
6339
|
+
<mdc-icon name="${t}" size="${qe.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
|
|
6340
|
+
`:W}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?_`
|
|
6341
6341
|
<mdc-button
|
|
6342
6342
|
variant="tertiary"
|
|
6343
6343
|
part="footer-button-toggle"
|
|
6344
6344
|
@click="${this.toggleDetailVisibility}"
|
|
6345
|
-
postfix-icon="${this.isDetailVisible?
|
|
6345
|
+
postfix-icon="${this.isDetailVisible?qe.ARROW_UP_BOLD:qe.ARROW_DOWN_BOLD}"
|
|
6346
6346
|
>
|
|
6347
6347
|
${this.isDetailVisible?this.showLessText:this.showMoreText}
|
|
6348
6348
|
</mdc-button>
|
|
6349
|
-
`:
|
|
6349
|
+
`:W}renderHeader(){return this.headerText?_`
|
|
6350
6350
|
<mdc-text part="toast-header" tagname="${this.headerTagName}" type="${ot.BODY_LARGE_BOLD}">
|
|
6351
6351
|
${this.headerText}
|
|
6352
6352
|
</mdc-text>
|
|
6353
|
-
`:
|
|
6353
|
+
`:W}handleFooterSlot(t,r){super.handleFooterSlot(t,r),this.updateFooterButtonsPresence()}renderFooter(){return this.updateFooterButtonsPresence(),_` <slot name="footer">
|
|
6354
6354
|
<div part="footer ${this.hasFooterButtons}">
|
|
6355
6355
|
${this.renderToggleDetailButton()}
|
|
6356
6356
|
<slot
|
|
6357
6357
|
name="footer-button-secondary"
|
|
6358
|
-
@slotchange=${()=>this.handleFooterSlot(
|
|
6358
|
+
@slotchange=${()=>this.handleFooterSlot(qe.BUTTON,qe.SECONDARY_BUTTON)}
|
|
6359
6359
|
></slot>
|
|
6360
6360
|
<slot
|
|
6361
6361
|
name="footer-button-primary"
|
|
6362
|
-
@slotchange=${()=>this.handleFooterSlot(
|
|
6362
|
+
@slotchange=${()=>this.handleFooterSlot(qe.BUTTON,qe.PRIMARY_BUTTON)}
|
|
6363
6363
|
></slot>
|
|
6364
6364
|
</div>
|
|
6365
6365
|
</slot>`}render(){var t;return _`
|
|
6366
6366
|
<div part="content-container">
|
|
6367
|
-
${this.variant===
|
|
6367
|
+
${this.variant===qe.VARIANT?_`<slot name="content-prefix"></slot>`:_`${this.renderIcon((t=rb(this.variant))!=null?t:"")}`}
|
|
6368
6368
|
<div part="toast-content">
|
|
6369
6369
|
${this.renderHeader()}
|
|
6370
6370
|
<slot name="toast-body-normal"></slot>
|
|
@@ -6374,15 +6374,15 @@
|
|
|
6374
6374
|
</div>
|
|
6375
6375
|
<mdc-button
|
|
6376
6376
|
part="toast-close-btn"
|
|
6377
|
-
prefix-icon="${
|
|
6378
|
-
variant="${
|
|
6379
|
-
size="${
|
|
6377
|
+
prefix-icon="${qe.CANCEL_ICON}"
|
|
6378
|
+
variant="${qe.TERTIARY_BUTTON}"
|
|
6379
|
+
size="${qe.CLOSE_ICON_SIZE}"
|
|
6380
6380
|
aria-label="${tt(this.closeButtonAriaLabel)}"
|
|
6381
6381
|
@click="${this.closeToast}"
|
|
6382
6382
|
></mdc-button>
|
|
6383
6383
|
</div>
|
|
6384
6384
|
${this.renderFooter()}
|
|
6385
|
-
`}};
|
|
6385
|
+
`}};Me.styles=[...j.styles,...ib],p([u({type:String,reflect:!0})],Me.prototype,"variant",2),p([u({type:String,attribute:"close-button-aria-label"})],Me.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0,attribute:"header-text"})],Me.prototype,"headerText",2),p([u({type:String,reflect:!0,attribute:"header-tag-name"})],Me.prototype,"headerTagName",2),p([u({type:String,reflect:!0,attribute:"aria-label"})],Me.prototype,"ariaLabel",2),p([u({type:String,reflect:!0,attribute:"show-more-text"})],Me.prototype,"showMoreText",2),p([u({type:String,reflect:!0,attribute:"show-less-text"})],Me.prototype,"showLessText",2),p([ut()],Me.prototype,"isDetailVisible",2),p([ut()],Me.prototype,"hasDetailedSlot",2),p([Dt({slot:"toast-body-detailed",flatten:!0})],Me.prototype,"detailedElements",2),p([ut()],Me.prototype,"hasFooterButtons",2);var fp=Me;fp.register(eb);var HA=fp;var GA=[yt,U`
|
|
6386
6386
|
:host {
|
|
6387
6387
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
6388
6388
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -6460,7 +6460,7 @@
|
|
|
6460
6460
|
:host([soft-disabled]) {
|
|
6461
6461
|
pointer-events: none;
|
|
6462
6462
|
}
|
|
6463
|
-
`,...St(!0)],
|
|
6463
|
+
`,...St(!0)],ob=GA;var Zo=class extends kt(Us(xe(Ce(Ht(ir))))){constructor(){super(...arguments);this.checked=!1;this.size=Ch.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(an).includes(t)?t:Ch.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return _`
|
|
6464
6464
|
<mdc-statictoggle
|
|
6465
6465
|
?checked="${this.checked}"
|
|
6466
6466
|
?disabled="${this.disabled}"
|
|
@@ -6482,7 +6482,7 @@
|
|
|
6482
6482
|
aria-checked="${this.checked}"
|
|
6483
6483
|
.disabled="${this.disabled}"
|
|
6484
6484
|
?readonly="${this.readonly}"
|
|
6485
|
-
aria-describedby="${tt(this.helpText?
|
|
6485
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:"")}"
|
|
6486
6486
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
6487
6487
|
tabindex="${this.disabled?-1:0}"
|
|
6488
6488
|
@change="${this.handleChange}"
|
|
@@ -6490,10 +6490,10 @@
|
|
|
6490
6490
|
/>
|
|
6491
6491
|
</mdc-statictoggle>
|
|
6492
6492
|
${this.renderLabelAndHelperText()}
|
|
6493
|
-
`}};
|
|
6493
|
+
`}};Zo.styles=[...ir.styles,...ob],Zo.shadowRootOptions={...ir.shadowRootOptions,delegatesFocus:!0},p([u({type:Boolean,reflect:!0})],Zo.prototype,"checked",2),p([u({type:String,reflect:!0})],Zo.prototype,"size",2);var vp=Zo;vp.register(Jv);var KA=vp;function Qo(n,o,t){var m;let r=(m=t.initialDeps)!=null?m:[],s;function d(){var v,x,L,B;let q;t.key&&((v=t.debug)!=null&&v.call(t))&&(q=Date.now());let Q=n();if(!(Q.length!==r.length||Q.some((dt,lt)=>r[lt]!==dt)))return s;r=Q;let it;if(t.key&&((x=t.debug)!=null&&x.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,bt=lt/16,It=(Ct,Yt)=>{for(Ct=String(Ct);Ct.length<Yt;)Ct=" "+Ct;return Ct};console.info(`%c\u23F1 ${It(lt,5)} /${It(dt,5)} ms`,`
|
|
6494
6494
|
font-size: .6rem;
|
|
6495
6495
|
font-weight: bold;
|
|
6496
|
-
color: hsl(${Math.max(0,Math.min(120-120*bt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(B=t==null?void 0:t.onChange)==null||B.call(t,s),s}return d.updateDeps=b=>{r=b},d}function fp(n,o){if(n===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return n}var ib=(n,o)=>Math.abs(n-o)<1.01,ob=(n,o,t)=>{let r;return function(...s){n.clearTimeout(r),r=n.setTimeout(()=>o.apply(this,s),t)}};var sb=n=>{let{offsetWidth:o,offsetHeight:t}=n;return{width:o,height:t}},UA=n=>n,vp=n=>{let o=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},lb=(n,o)=>{let t=n.scrollElement;if(!t)return;let r=n.targetWindow;if(!r)return;let s=m=>{let{width:b,height:x}=m;o({width:Math.round(b),height:Math.round(x)})};if(s(sb(t)),!r.ResizeObserver)return()=>{};let d=new r.ResizeObserver(m=>{let b=()=>{let x=m[0];if(x!=null&&x.borderBoxSize){let N=x.borderBoxSize[0];if(N){s({width:N.inlineSize,height:N.blockSize});return}}s(sb(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(b):b()});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},ab={passive:!0};var nb=typeof window>"u"?!0:"onscrollend"in window,db=(n,o)=>{let t=n.scrollElement;if(!t)return;let r=n.targetWindow;if(!r)return;let s=0,d=n.options.useScrollendEvent&&nb?()=>{}:ob(r,()=>{o(s,!1)},n.options.isScrollingResetDelay),m=B=>()=>{let{horizontal:K,isRtl:Q}=n.options;s=K?t.scrollLeft*(Q&&-1||1):t.scrollTop,d(),o(s,B)},b=m(!0),x=m(!1);x(),t.addEventListener("scroll",b,ab);let N=n.options.useScrollendEvent&&nb;return N&&t.addEventListener("scrollend",x,ab),()=>{t.removeEventListener("scroll",b),N&&t.removeEventListener("scrollend",x)}};var HA=(n,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]};var cb=(n,{adjustments:o=0,behavior:t},r)=>{var s,d;let m=n+o;(d=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||d.call(s,{[r.options.horizontal?"left":"top"]:m,behavior:t})},Nd=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:UA,rangeExtractor:vp,onChange:()=>{},measureElement:HA,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=Xo(()=>(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 b=t[m];if(s.has(b.lane))continue;let x=d.get(b.lane);if(x==null||b.end>x.end?d.set(b.lane,b):b.end<x.end&&s.set(b.lane,!0),s.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((m,b)=>m.end===b.end?m.index-b.index:m.end-b.end)[0]:void 0},this.getMeasurementOptions=Xo(()=>[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=Xo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:m},b)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(B=>{this.itemSizeCache.set(B.key,B.size)}));let x=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let N=this.measurementsCache.slice(0,x);for(let B=x;B<t;B++){let K=d(B),Q=this.options.lanes===1?N[B-1]:this.getFurthestMeasurement(N,B),X=Q?Q.end+this.options.gap:r+s,it=b.get(K),dt=typeof it=="number"?it:this.options.estimateSize(B),lt=X+dt,bt=Q?Q.lane:B%this.options.lanes;N[B]={index:B,start:X,size:dt,end:lt,key:K,lane:bt}}return this.measurementsCache=N,N},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Xo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,d)=>this.range=t.length>0&&r>0?GA({measurements:t,outerSize:r,scrollOffset:s,lanes:d}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Xo(()=>{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,b=this.elementsCache.get(m);b!==t&&(b&&this.observer.unobserve(b),this.observer.observe(t),this.elementsCache.set(m,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var b;let s=this.measurementsCache[t];if(!s)return;let d=(b=this.itemSizeCache.get(s.key))!=null?b: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=Xo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let d=0,m=t.length;d<m;d++){let b=t[d],x=r[b];s.push(x)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return fp(r[hb(0,r.length-1,s=>fp(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 b=this.getTotalSize()+this.options.scrollMargin-d;return Math.max(Math.min(b,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 b=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(b,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,b=N=>{if(!this.targetWindow)return;let B=this.getOffsetForIndex(t,N);if(!B){console.warn("Failed to get offset for index:",t);return}let[K,Q]=B;this._scrollToOffset(K,{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}ib(it[0],X)||x(Q)})},x=N=>{this.targetWindow&&(d++,d<m?this.targetWindow.requestAnimationFrame(()=>b(N)):console.warn(`Failed to scroll to index ${t} after ${m} attempts.`))};b(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),b=r.length-1;for(;b>=0&&m.some(x=>x===null);){let x=r[b];m[x.lane]===null&&(m[x.lane]=x.end),b--}s=Math.max(...m.filter(x=>x!==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)}},hb=(n,o,t,r)=>{for(;n<=o;){let s=(n+o)/2|0,d=t(s);if(d<r)n=s+1;else if(d>r)o=s-1;else return s}return n>0?n-1:0};function GA({measurements:n,outerSize:o,scrollOffset:t,lanes:r}){let s=n.length-1,d=x=>n[x].start;if(n.length<=r)return{startIndex:0,endIndex:s};let m=hb(0,s,d,t),b=m;if(r===1)for(;b<s&&n[b].end<t+o;)b++;else if(r>1){let x=Array(r).fill(0);for(;b<s&&x.some(B=>B<t+o);){let B=n[b];x[B.lane]=B.end,b++}let N=Array(r).fill(t+o);for(;m>=0&&N.some(B=>B>=t);){let B=n[m];N[B.lane]=B.start,m--}m=Math.max(0,m-m%r),b=Math.min(s,b+(r-1-b%r))}return{startIndex:m,endIndex:b}}var gp=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 Nd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Ld=class extends gp{constructor(o,t){super(o,{observeElementRect:lb,observeElementOffset:db,scrollToFn:cb,...t})}};var YA={includeEnd:!1},Od=class{constructor(o,t,r={}){let s={...YA,...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 b=d;return d+=t,(r?b>s:b>=s)?(m=!0,{value:void 0,done:!0}):{value:b,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Rd=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 WA=[U`
|
|
6496
|
+
color: hsl(${Math.max(0,Math.min(120-120*bt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(B=t==null?void 0:t.onChange)==null||B.call(t,s),s}return d.updateDeps=v=>{r=v},d}function gp(n,o){if(n===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return n}var sb=(n,o)=>Math.abs(n-o)<1.01,ab=(n,o,t)=>{let r;return function(...s){n.clearTimeout(r),r=n.setTimeout(()=>o.apply(this,s),t)}};var nb=n=>{let{offsetWidth:o,offsetHeight:t}=n;return{width:o,height:t}},YA=n=>n,bp=n=>{let o=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},cb=(n,o)=>{let t=n.scrollElement;if(!t)return;let r=n.targetWindow;if(!r)return;let s=m=>{let{width:v,height:x}=m;o({width:Math.round(v),height:Math.round(x)})};if(s(nb(t)),!r.ResizeObserver)return()=>{};let d=new r.ResizeObserver(m=>{let v=()=>{let x=m[0];if(x!=null&&x.borderBoxSize){let L=x.borderBoxSize[0];if(L){s({width:L.inlineSize,height:L.blockSize});return}}s(nb(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(v):v()});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},lb={passive:!0};var db=typeof window>"u"?!0:"onscrollend"in window,hb=(n,o)=>{let t=n.scrollElement;if(!t)return;let r=n.targetWindow;if(!r)return;let s=0,d=n.options.useScrollendEvent&&db?()=>{}:ab(r,()=>{o(s,!1)},n.options.isScrollingResetDelay),m=B=>()=>{let{horizontal:q,isRtl:Q}=n.options;s=q?t.scrollLeft*(Q&&-1||1):t.scrollTop,d(),o(s,B)},v=m(!0),x=m(!1);x(),t.addEventListener("scroll",v,lb);let L=n.options.useScrollendEvent&&db;return L&&t.addEventListener("scrollend",x,lb),()=>{t.removeEventListener("scroll",v),L&&t.removeEventListener("scrollend",x)}};var WA=(n,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]};var pb=(n,{adjustments:o=0,behavior:t},r)=>{var s,d;let m=n+o;(d=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||d.call(s,{[r.options.horizontal?"left":"top"]:m,behavior:t})},Od=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:YA,rangeExtractor:bp,onChange:()=>{},measureElement:WA,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=Qo(()=>(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 x=d.get(v.lane);if(x==null||v.end>x.end?d.set(v.lane,v):v.end<x.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=Qo(()=>[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=Qo(()=>[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(B=>{this.itemSizeCache.set(B.key,B.size)}));let x=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let L=this.measurementsCache.slice(0,x);for(let B=x;B<t;B++){let q=d(B),Q=this.options.lanes===1?L[B-1]:this.getFurthestMeasurement(L,B),X=Q?Q.end+this.options.gap:r+s,it=v.get(q),dt=typeof it=="number"?it:this.options.estimateSize(B),lt=X+dt,bt=Q?Q.lane:B%this.options.lanes;L[B]={index:B,start:X,size:dt,end:lt,key:q,lane:bt}}return this.measurementsCache=L,L},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Qo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,d)=>this.range=t.length>0&&r>0?jA({measurements:t,outerSize:r,scrollOffset:s,lanes:d}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Qo(()=>{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=Qo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let d=0,m=t.length;d<m;d++){let v=t[d],x=r[v];s.push(x)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return gp(r[mb(0,r.length-1,s=>gp(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 B=this.getOffsetForIndex(t,L);if(!B){console.warn("Failed to get offset for index:",t);return}let[q,Q]=B;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}sb(it[0],X)||x(Q)})},x=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(x=>x===null);){let x=r[v];m[x.lane]===null&&(m[x.lane]=x.end),v--}s=Math.max(...m.filter(x=>x!==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)}},mb=(n,o,t,r)=>{for(;n<=o;){let s=(n+o)/2|0,d=t(s);if(d<r)n=s+1;else if(d>r)o=s-1;else return s}return n>0?n-1:0};function jA({measurements:n,outerSize:o,scrollOffset:t,lanes:r}){let s=n.length-1,d=x=>n[x].start;if(n.length<=r)return{startIndex:0,endIndex:s};let m=mb(0,s,d,t),v=m;if(r===1)for(;v<s&&n[v].end<t+o;)v++;else if(r>1){let x=Array(r).fill(0);for(;v<s&&x.some(B=>B<t+o);){let B=n[v];x[B.lane]=B.end,v++}let L=Array(r).fill(t+o);for(;m>=0&&L.some(B=>B>=t);){let B=n[m];L[B.lane]=B.start,m--}m=Math.max(0,m-m%r),v=Math.min(s,v+(r-1-v%r))}return{startIndex:m,endIndex:v}}var yp=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 Od(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Rd=class extends yp{constructor(o,t){super(o,{observeElementRect:cb,observeElementOffset:hb,scrollToFn:pb,...t})}};var qA={includeEnd:!1},Md=class{constructor(o,t,r={}){let s={...qA,...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 Pd=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 XA=[U`
|
|
6497
6497
|
:host {
|
|
6498
6498
|
height: 100%;
|
|
6499
6499
|
}
|
|
@@ -6523,7 +6523,7 @@
|
|
|
6523
6523
|
::slotted(mdc-listitem) {
|
|
6524
6524
|
position: relative;
|
|
6525
6525
|
}
|
|
6526
|
-
`],
|
|
6526
|
+
`],ub=XA;var fb=z.constructTagName("virtualizedlist"),b9=z.constructTagName("virtualizedwrapper"),En={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var Xe=class extends kt(Ht(Bs)){constructor(){super();this.virtualizerProps=En.VIRTUALIZER_PROPS;this.loop=En.LOOP;this.scrollAnchoring=En.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=En.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(Kt.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 m=(d=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?d:"data-index";this.virtualizedNavItems=new Pd(super.navItems,v=>Number(v.getAttribute(m)),()=>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 Rd(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,m;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 v=Math.abs(this.virtualizerProps.count-((d=t==null?void 0:t.count)!=null?d:0)),x=this.selectedIndex,L=this.firstKey,B=new Md(x-v,x+v,{includeEnd:!0}),q=(m=Array.from(B).find(X=>r.options.getItemKey(X)===this.selectedKey))!=null?m:this.selectedIndex;if(this.setSelectedIndex(q),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&x!==this.selectedIndex||!this.focusWithin&&this.firstKey!==L){let X=r.measurementsCache[this.selectedIndex].end-s[x].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,m,v;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(v=(m=(d=this.virtualizer)==null?void 0:d.getVirtualItems)==null?void 0:m.call(d))!=null?v:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var x,L,B,q;let{navItems:r,virtualizerProps:s,virtualizer:d}=this,m=(L=(x=s.rangeExtractor)==null?void 0:x.call(s,t))!=null?L:bp(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=(B=this.virtualizer)==null?void 0:B.options.getItemKey(this.firstIndex))!=null?q:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var X;m.includes(Q)||(Q<t.startIndex&&Q>=0&&(m.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((X=d==null?void 0:d.options.count)!=null?X:0)&&(m.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),m.sort((Q,X)=>Q-X),m}updateHiddenItemsPosition(t){let{navItems:r,virtualizerProps:s,virtualizer:d}=this;if(!d||s.count===0)return;let{measurementsCache:m}=d;this.hiddenIndexes.forEach(v=>{let x=r.at(v);if(x){let L=Math.max(t.startIndex-t.overscan,0),B=m[L],q=m[v];x.setAttribute("data-virtualized-hidden","true"),x.style.setProperty("--mdc-virtualizedlist-hidden-top",`${q.start-B.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,m,v;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 x=this.virtualizerProps.count-1;(v=(m=this.virtualizer)==null?void 0:m.scrollToIndex)==null||v.call(m,x,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(x));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(v=>{var x;return((x=this.virtualizer)==null?void 0:x.indexFromElement(v))===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:m})=>!this.hiddenIndexes.includes(m)),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 _`
|
|
6527
6527
|
<slot name="list-header"></slot>
|
|
6528
6528
|
<div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
|
|
6529
6529
|
<div part="wrapper">
|
|
@@ -6532,7 +6532,7 @@
|
|
|
6532
6532
|
</div>
|
|
6533
6533
|
</div>
|
|
6534
6534
|
</div>
|
|
6535
|
-
`}};
|
|
6535
|
+
`}};Xe.styles=[...Bs.styles,...ub],p([u({type:Object})],Xe.prototype,"virtualizerProps",2),p([u({type:String,reflect:!0})],Xe.prototype,"loop",2),p([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],Xe.prototype,"scrollAnchoring",2),p([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],Xe.prototype,"observeSizeChanges",2),p([u({type:Boolean,reflect:!0,attribute:"revert-list"})],Xe.prototype,"revertList",2),p([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],Xe.prototype,"atBottomThreshold",2),p([Ee('[part="scroll"]',!0)],Xe.prototype,"scrollRef",2),p([Ee('[part="wrapper"]',!0)],Xe.prototype,"wrapperRef",2),p([Ee('[part="container"]',!0)],Xe.prototype,"containerRef",2),p([Hm({passive:!0})],Xe.prototype,"onScrollHandler",1);var Ep=Xe;Ep.register(fb);var ZA=Ep;ae.register(Ym);var vb=z.constructTagName("combobox"),Tp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},gb="list";var xp="combobox-trigger-id";var Tn=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 QA=U`
|
|
6536
6536
|
:host {
|
|
6537
6537
|
--mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
6538
6538
|
--mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -6638,19 +6638,19 @@
|
|
|
6638
6638
|
--mdc-icon-fill-color: ButtonText;
|
|
6639
6639
|
}
|
|
6640
6640
|
}
|
|
6641
|
-
`,
|
|
6641
|
+
`,bb=[QA];var ue=class extends kt(Xi(xe(Ce(Ht(le))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=gt.BOUNDARY;this.strategy=gt.STRATEGY;this.popoverZIndex=gt.Z_INDEX;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.handleDestroyEvent=t=>{let r=t.detail.originalTarget;if(r&&(!this.isValidItem(r)||r.tabIndex!==0))return;let s=this.navItems.findIndex(m=>m===r);if(s===-1)return;let d=s+1;d>=this.navItems.length&&(d=s-1)};this.addEventListener(Kt.DESTROYED,this.handleDestroyEvent),this.itemsStore=new qr(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}:not([disabled])`)}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){this.value=(t==null?void 0:t.getAttribute("value"))||"",this.filteredValue=(t==null?void 0:t.getAttribute("label"))||"",this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.setInputValidity(),this.resetHelpText(),Tn.onInputCombobox(this,t),Tn.onChangeCombobox(this,t)}resetSelectedValue(){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){super.attributeChangedCallback(t,r,s),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();if(r)this.initialSelectedOption=r,this.setSelectedValue(r);else if(this.value){let s=this.navItems.find(d=>d.value===this.value);this.setSelectedValue(s)}else this.placeholder&&this.setInputValidity();this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}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()}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.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),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.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(cn)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(v=>!v.hasAttribute("data-hidden"))).length===0&&(t.parentElement.setAttribute("data-hidden",""),(d=t.parentElement.nextElementSibling)!=null&&d.matches(Ka)&&t.parentElement.nextElementSibling.setAttribute("data-hidden",""))}showOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(cn)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(v=>!v.hasAttribute("data-hidden"))).length>0&&(t.parentElement.removeAttribute("data-hidden"),(d=t.parentElement.nextElementSibling)!=null&&d.matches(Ka)&&t.parentElement.nextElementSibling.removeAttribute("data-hidden"))}handleInputChange(t){var r;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 _`
|
|
6642
6642
|
<input
|
|
6643
6643
|
id="${this.inputId}"
|
|
6644
6644
|
name="${this.name}"
|
|
6645
6645
|
type="text"
|
|
6646
|
-
.value="${
|
|
6646
|
+
.value="${Uo(this.value)}"
|
|
6647
6647
|
aria-hidden="true"
|
|
6648
6648
|
part="internal-native-input"
|
|
6649
6649
|
tabindex="-1"
|
|
6650
6650
|
?required=${this.required}
|
|
6651
6651
|
?disabled=${this.disabled}
|
|
6652
6652
|
?readonly=${this.readonly}
|
|
6653
|
-
autocomplete="${
|
|
6653
|
+
autocomplete="${Ds.OFF}"
|
|
6654
6654
|
@focus=${this.handleNativeInputFocus}
|
|
6655
6655
|
@invalid=${this.setInputValidity}
|
|
6656
6656
|
/>
|
|
@@ -6659,8 +6659,8 @@
|
|
|
6659
6659
|
id="${this.id}"
|
|
6660
6660
|
slot="input"
|
|
6661
6661
|
?disabled="${this.disabled}"
|
|
6662
|
-
.value="${
|
|
6663
|
-
autocomplete="${
|
|
6662
|
+
.value="${Uo(this.filteredValue)}"
|
|
6663
|
+
autocomplete="${Ds.OFF}"
|
|
6664
6664
|
part="input-text"
|
|
6665
6665
|
placeholder="${tt(this.placeholder)}"
|
|
6666
6666
|
role="${J.COMBOBOX}"
|
|
@@ -6669,20 +6669,20 @@
|
|
|
6669
6669
|
@input=${this.handleInputChange}
|
|
6670
6670
|
@keydown=${this.handleInputKeydown}
|
|
6671
6671
|
@blur="${this.handleBlurChange}"
|
|
6672
|
-
aria-autocomplete="${
|
|
6673
|
-
aria-describedby="${tt(this.helpText?
|
|
6672
|
+
aria-autocomplete="${gb}"
|
|
6673
|
+
aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:"")}"
|
|
6674
6674
|
aria-disabled="${this.disabled?"true":"false"}"
|
|
6675
6675
|
aria-expanded="${this.isOpen?"true":"false"}"
|
|
6676
6676
|
aria-haspopup="${J.LISTBOX}"
|
|
6677
|
-
aria-invalid="${this.helpTextType
|
|
6677
|
+
aria-invalid="${this.helpTextType===zt.ERROR?"true":"false"}"
|
|
6678
6678
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
6679
|
-
aria-labelledby="${this.label?
|
|
6679
|
+
aria-labelledby="${this.label?Ot.HEADING_ID:""}"
|
|
6680
6680
|
aria-readonly="${this.readonly?"true":"false"}"
|
|
6681
6681
|
aria-required="${this.required?"true":"false"}"
|
|
6682
6682
|
/>
|
|
6683
|
-
`}renderNoResultsText(t){return t===0&&this.noResultText?_`<mdc-listitem part="no-result-text" tabindex="-1" role="" label="${this.noResultText}"></mdc-listitem>`:
|
|
6683
|
+
`}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 _`
|
|
6684
6684
|
${this.renderLabel()}
|
|
6685
|
-
<div part="combobox__base" id="${
|
|
6685
|
+
<div part="combobox__base" id="${xp}">
|
|
6686
6686
|
${this.renderNativeInput()}
|
|
6687
6687
|
<mdc-input
|
|
6688
6688
|
@click="${()=>this.toggleDropdown()}"
|
|
@@ -6702,7 +6702,7 @@
|
|
|
6702
6702
|
>
|
|
6703
6703
|
<mdc-icon
|
|
6704
6704
|
part="combobox__button-icon"
|
|
6705
|
-
name="${this.shouldDisplayPopover(t.length)?
|
|
6705
|
+
name="${this.shouldDisplayPopover(t.length)?Tp.ARROW_UP:Tp.ARROW_DOWN}"
|
|
6706
6706
|
size="1"
|
|
6707
6707
|
length-unit="rem"
|
|
6708
6708
|
></mdc-icon>
|
|
@@ -6723,8 +6723,8 @@
|
|
|
6723
6723
|
role=""
|
|
6724
6724
|
size
|
|
6725
6725
|
strategy="${tt(this.strategy)}"
|
|
6726
|
-
trigger="${
|
|
6727
|
-
triggerid="${
|
|
6726
|
+
trigger="${Ue.MANUAL}"
|
|
6727
|
+
triggerid="${xp}"
|
|
6728
6728
|
z-index="${tt(this.popoverZIndex)}"
|
|
6729
6729
|
>
|
|
6730
6730
|
${this.renderNoResultsText(t.length)}
|
|
@@ -6732,7 +6732,7 @@
|
|
|
6732
6732
|
</mdc-popover>
|
|
6733
6733
|
</div>
|
|
6734
6734
|
${this.renderHelperText()}
|
|
6735
|
-
`}};
|
|
6735
|
+
`}};ue.styles=[...Lr.styles,...le.styles,...bb],p([u({type:String})],ue.prototype,"placeholder",2),p([u({type:String,reflect:!0})],ue.prototype,"placement",2),p([u({type:String,attribute:"no-result-text",reflect:!0})],ue.prototype,"noResultText",2),p([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ue.prototype,"invalidCustomValueText",2),p([u({type:String,reflect:!0})],ue.prototype,"boundary",2),p([u({type:String,reflect:!0})],ue.prototype,"strategy",2),p([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ue.prototype,"popoverZIndex",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ue.prototype,"backdropAppendTo",2),p([Ee(`[role="${J.COMBOBOX}"]`)],ue.prototype,"visualCombobox",2),p([Ee('[part="combobox__button"]')],ue.prototype,"dropDownButton",2),p([Dt({selector:Ed})],ue.prototype,"slottedListboxes",2),p([ut()],ue.prototype,"isOpen",2),p([ut()],ue.prototype,"filteredValue",2);var Ap=ue;Ap.register(vb);var JA=Ap;var yb=(n,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(n[s],s);return r},Eb=hi(class extends Ur{constructor(n){if(super(n),n.type!==er.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let s=[],d=[],m=0;for(let v of n)s[m]=r?r(v,m):m,d[m]=t(v,m),m++;return{values:d,keys:s}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,r]){var dt;let s=bu(n),{values:d,keys:m}=this.dt(o,t,r);if(!Array.isArray(s))return this.ut=m,d;let v=(dt=this.ut)!=null?dt:this.ut=[],x=[],L,B,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(v[q]===m[X])x[X]=Ui(s[q],d[X]),q++,X++;else if(v[Q]===m[it])x[it]=Ui(s[Q],d[it]),Q--,it--;else if(v[q]===m[it])x[it]=Ui(s[q],d[it]),gs(n,x[it+1],s[q]),q++,it--;else if(v[Q]===m[X])x[X]=Ui(s[Q],d[X]),gs(n,s[q],s[Q]),Q--,X++;else if(L===void 0&&(L=yb(m,X,it),B=yb(v,q,Q)),L.has(v[q]))if(L.has(v[Q])){let lt=B.get(m[X]),bt=lt!==void 0?s[lt]:null;if(bt===null){let It=gs(n,s[q]);Ui(It,d[X]),x[X]=It}else x[X]=Ui(bt,d[X]),gs(n,s[q],bt),s[lt]=null;X++}else hl(s[Q]),Q--;else hl(s[q]),q++;for(;X<=it;){let lt=gs(n,x[it+1]);Ui(lt,d[X]),x[X++]=lt}for(;q<=Q;){let lt=s[q++];lt!==null&&hl(lt)}return this.ut=m,cl(n,x),ye}});var Tb=z.constructTagName("slider"),t0={START:"start",END:"end",UNDEFINED:void 0},no={MIN:0,MAX:100,STEP:1,STATE:t0.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var e0=U`
|
|
6736
6736
|
:host {
|
|
6737
6737
|
width: 100%;
|
|
6738
6738
|
--mdc-slider-tooltip-left: 0;
|
|
@@ -6900,15 +6900,15 @@
|
|
|
6900
6900
|
}
|
|
6901
6901
|
|
|
6902
6902
|
input[type='range']:focus::-webkit-slider-thumb {
|
|
6903
|
-
box-shadow: ${
|
|
6903
|
+
box-shadow: ${zi};
|
|
6904
6904
|
}
|
|
6905
6905
|
|
|
6906
6906
|
input[type='range']:focus::-moz-range-thumb {
|
|
6907
|
-
box-shadow: ${
|
|
6907
|
+
box-shadow: ${zi};
|
|
6908
6908
|
}
|
|
6909
6909
|
|
|
6910
6910
|
input[type='range']:focus::-ms-thumb {
|
|
6911
|
-
box-shadow: ${
|
|
6911
|
+
box-shadow: ${zi};
|
|
6912
6912
|
}
|
|
6913
6913
|
|
|
6914
6914
|
:host::part(slider-tooltip) {
|
|
@@ -6954,24 +6954,24 @@
|
|
|
6954
6954
|
border: 1px solid;
|
|
6955
6955
|
}
|
|
6956
6956
|
}
|
|
6957
|
-
`,
|
|
6957
|
+
`,xb=[$i,e0];var Lt=class extends kt(j){constructor(){super();this.thumbFocused=no.STATE;this.thumbHovered=no.STATE;this.range=!1;this.min=no.MIN;this.max=no.MAX;this.step=no.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
|
|
6958
6958
|
name="${t}"
|
|
6959
6959
|
part="${r}"
|
|
6960
|
-
length-unit="${
|
|
6961
|
-
size="${
|
|
6962
|
-
></mdc-icon>`:null}tooltipTemplate(t,r){let[s,d]=this.inputElements,m=r==="end"?d:s,
|
|
6963
|
-
${t||
|
|
6964
|
-
</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),m=Number(this.inputElements[0].max)||1,
|
|
6960
|
+
length-unit="${no.ICON_LENGTH_UNIT}"
|
|
6961
|
+
size="${no.ICON_SIZE}"
|
|
6962
|
+
></mdc-icon>`:null}tooltipTemplate(t,r){let[s,d]=this.inputElements,m=r==="end"?d:s,v=Number(m==null?void 0:m.value);if(typeof v!="number"||Number.isNaN(v)||this.max===this.min||this.disabled||this.hideTooltip)return W;let x=(v-this.min)/(this.max-this.min);return _`<div part="slider-tooltip" aria-hidden="true" style="--mdc-slider-tooltip-left: ${x}">
|
|
6963
|
+
${t||v}
|
|
6964
|
+
</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),m=Number(this.inputElements[0].max)||1,v=Math.max(0,Math.min(100,(s-this.min)/(m-this.min)*100)),x=Math.max(0,Math.min(100,(d-this.min)/(m-this.min)*100));this.inputElements[1].style.background=`linear-gradient(
|
|
6965
6965
|
to right,
|
|
6966
6966
|
${r} 0%,
|
|
6967
|
-
${r} ${
|
|
6968
|
-
${t} ${
|
|
6967
|
+
${r} ${v}%,
|
|
6968
|
+
${t} ${v}%,
|
|
6969
6969
|
${t} ${x}%,
|
|
6970
6970
|
${r} ${x}%,
|
|
6971
6971
|
${r} 100%
|
|
6972
6972
|
)`}else{if(!this.inputElements[0])return;let s=Number(this.inputElements[0].value),d=Number(this.inputElements[0].max)||1,m=Math.max(0,Math.min(100,(s-this.min)/(d-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${m}%, ${r} ${m}%)`}}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 m=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);s.push(m)}if(this.range&&this.inputElements[1]){let m=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);s.push(m)}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">
|
|
6973
|
-
${
|
|
6974
|
-
</div>`:
|
|
6973
|
+
${Eb(t,r=>r,r=>_`<span part="slider-tick" style=${this.getTickStyles(r)}></span>`)}
|
|
6974
|
+
</div>`:W}render(){var t,r,s,d,m,v,x,L,B,q,Q,X,it,dt,lt,bt,It;return _`
|
|
6975
6975
|
${this.label?_`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
|
|
6976
6976
|
<div part="slider-track">
|
|
6977
6977
|
${this.iconTemplate(this.leadingIcon,"leading-icon")}
|
|
@@ -7001,7 +7001,7 @@
|
|
|
7001
7001
|
@mouseenter=${()=>{this.disabled||(this.thumbHovered="start")}}
|
|
7002
7002
|
@mouseleave=${()=>{this.thumbHovered=void 0}}
|
|
7003
7003
|
/>
|
|
7004
|
-
${this.thumbFocused==="start"||this.thumbHovered==="start"?this.tooltipTemplate(this.valueLabelStart):
|
|
7004
|
+
${this.thumbFocused==="start"||this.thumbHovered==="start"?this.tooltipTemplate(this.valueLabelStart):W}
|
|
7005
7005
|
<input
|
|
7006
7006
|
id="end-slider"
|
|
7007
7007
|
part="end-slider"
|
|
@@ -7009,12 +7009,12 @@
|
|
|
7009
7009
|
min="${this.min}"
|
|
7010
7010
|
max="${this.max}"
|
|
7011
7011
|
step="${(m=this.step)!=null?m:1}"
|
|
7012
|
-
.value="${String((
|
|
7012
|
+
.value="${String((v=this.valueEnd)!=null?v:this.max)}"
|
|
7013
7013
|
?disabled="${this.disabled}"
|
|
7014
7014
|
name="${(x=this.nameEnd)!=null?x:""}"
|
|
7015
7015
|
aria-valuemin="${this.min}"
|
|
7016
7016
|
aria-valuemax="${this.max}"
|
|
7017
|
-
aria-valuenow="${(
|
|
7017
|
+
aria-valuenow="${(L=this.valueEnd)!=null?L:this.max}"
|
|
7018
7018
|
aria-label="${this.endAriaLabel||this.label||""}"
|
|
7019
7019
|
aria-valuetext="${this.endAriaValueText||this.valueLabelEnd||this.valueEnd||""}"
|
|
7020
7020
|
tabindex="${this.disabled?-1:0}"
|
|
@@ -7025,7 +7025,7 @@
|
|
|
7025
7025
|
@mouseenter=${()=>{this.disabled||(this.thumbHovered="end")}}
|
|
7026
7026
|
@mouseleave=${()=>{this.thumbHovered=void 0}}
|
|
7027
7027
|
/>
|
|
7028
|
-
${this.thumbFocused==="end"||this.thumbHovered==="end"?this.tooltipTemplate(this.valueLabelEnd,this.thumbFocused||this.thumbHovered):
|
|
7028
|
+
${this.thumbFocused==="end"||this.thumbHovered==="end"?this.tooltipTemplate(this.valueLabelEnd,this.thumbFocused||this.thumbHovered):W}
|
|
7029
7029
|
`:_`
|
|
7030
7030
|
<input
|
|
7031
7031
|
id="single-slider"
|
|
@@ -7034,7 +7034,7 @@
|
|
|
7034
7034
|
min="${this.min}"
|
|
7035
7035
|
max="${this.max}"
|
|
7036
7036
|
step="${(B=this.step)!=null?B:1}"
|
|
7037
|
-
.value="${String((
|
|
7037
|
+
.value="${String((q=this.value)!=null?q:this.min)}"
|
|
7038
7038
|
?disabled="${this.disabled}"
|
|
7039
7039
|
name="${(Q=this.name)!=null?Q:""}"
|
|
7040
7040
|
aria-valuemin="${this.min}"
|
|
@@ -7050,7 +7050,7 @@
|
|
|
7050
7050
|
@mouseenter=${()=>{this.disabled||(this.thumbHovered="start")}}
|
|
7051
7051
|
@mouseleave=${()=>{this.thumbHovered=void 0}}
|
|
7052
7052
|
/>
|
|
7053
|
-
${this.thumbFocused==="start"||this.thumbHovered==="start"?this.tooltipTemplate(this.valueLabel):
|
|
7053
|
+
${this.thumbFocused==="start"||this.thumbHovered==="start"?this.tooltipTemplate(this.valueLabel):W}
|
|
7054
7054
|
`}
|
|
7055
7055
|
</div>
|
|
7056
7056
|
${this.iconTemplate(this.trailingIcon,"trailing-icon")}
|
|
@@ -7059,7 +7059,7 @@
|
|
|
7059
7059
|
${this.labelStart?_`<span part="slider-label-start">${this.labelStart}</span>`:null}
|
|
7060
7060
|
${this.labelEnd?_`<span part="slider-label-end">${this.labelEnd}</span>`:null}
|
|
7061
7061
|
</div>
|
|
7062
|
-
`}};
|
|
7062
|
+
`}};Lt.styles=[...j.styles,...xb],p([ut()],Lt.prototype,"thumbFocused",2),p([ut()],Lt.prototype,"thumbHovered",2),p([u({reflect:!0,type:Boolean})],Lt.prototype,"range",2),p([u({reflect:!0,type:Number})],Lt.prototype,"min",2),p([u({reflect:!0,type:Number})],Lt.prototype,"max",2),p([u({reflect:!0,type:Boolean})],Lt.prototype,"disabled",2),p([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Lt.prototype,"softDisabled",2),p([u({reflect:!0,type:String,attribute:"leading-icon"})],Lt.prototype,"leadingIcon",2),p([u({reflect:!0,type:String,attribute:"trailing-icon"})],Lt.prototype,"trailingIcon",2),p([u({reflect:!0,type:Number})],Lt.prototype,"value",2),p([u({reflect:!0,type:Number,attribute:"value-start"})],Lt.prototype,"valueStart",2),p([u({reflect:!0,type:Number,attribute:"value-end"})],Lt.prototype,"valueEnd",2),p([u({reflect:!0,type:Number})],Lt.prototype,"step",2),p([u({reflect:!0,type:String})],Lt.prototype,"label",2),p([u({reflect:!0,type:String,attribute:"label-start"})],Lt.prototype,"labelStart",2),p([u({reflect:!0,type:String,attribute:"label-end"})],Lt.prototype,"labelEnd",2),p([u({reflect:!0,type:String,attribute:"value-label"})],Lt.prototype,"valueLabel",2),p([u({reflect:!0,type:String,attribute:"value-label-start"})],Lt.prototype,"valueLabelStart",2),p([u({reflect:!0,type:String,attribute:"value-label-end"})],Lt.prototype,"valueLabelEnd",2),p([u({reflect:!0,type:String})],Lt.prototype,"name",2),p([u({reflect:!0,type:String,attribute:"name-start"})],Lt.prototype,"nameStart",2),p([u({reflect:!0,type:String,attribute:"name-end"})],Lt.prototype,"nameEnd",2),p([u({reflect:!0,type:String,attribute:"data-aria-label"})],Lt.prototype,"dataAriaLabel",2),p([u({reflect:!0,type:String,attribute:"start-aria-label"})],Lt.prototype,"startAriaLabel",2),p([u({reflect:!0,type:String,attribute:"end-aria-label"})],Lt.prototype,"endAriaLabel",2),p([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Lt.prototype,"dataAriaValuetext",2),p([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Lt.prototype,"startAriaValuetext",2),p([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Lt.prototype,"endAriaValueText",2),p([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Lt.prototype,"hideTooltip",2),p([Gm('input[type="range"]')],Lt.prototype,"inputElements",2);var Sp=Lt;Sp.register(Tb);var r0=Sp;var i0=U`
|
|
7063
7063
|
:host {
|
|
7064
7064
|
--mdc-listbox-max-height: auto;
|
|
7065
7065
|
|
|
@@ -7076,7 +7076,7 @@
|
|
|
7076
7076
|
::slotted(mdc-option) {
|
|
7077
7077
|
width: 100%;
|
|
7078
7078
|
}
|
|
7079
|
-
`,
|
|
7079
|
+
`,Ab=[i0];var Jo=class extends zs(Xi(j)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new qr(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>`}};Jo.styles=[...gh.styles,...Ab],p([u({type:String,reflect:!0})],Jo.prototype,"name",2),p([u({type:String,reflect:!0})],Jo.prototype,"value",2),p([ut()],Jo.prototype,"selectedOption",2);var Ip=Jo;var Sb=z.constructTagName("listbox");Ip.register(Sb);var o0=Ip;var Ib=z.constructTagName("banner"),Zs={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},xn={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Dd={VARIANT:Zs.CUSTOM,PREFIX_ICON_SIZE:1.25};var s0=U`
|
|
7080
7080
|
:host {
|
|
7081
7081
|
--mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
7082
7082
|
--mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -7159,9 +7159,9 @@
|
|
|
7159
7159
|
gap: var(--mdc-banner-gap);
|
|
7160
7160
|
flex-wrap: wrap;
|
|
7161
7161
|
}
|
|
7162
|
-
`,
|
|
7163
|
-
<mdc-icon name="${t}" size="${
|
|
7164
|
-
`:
|
|
7162
|
+
`,_b=[s0];var Cb=n=>{switch(n){case Zs.INFORMATIONAL:return xn.INFORMATIONAL_ICON_NAME;case Zs.SUCCESS:return xn.SUCCESS_ICON_NAME;case Zs.WARNING:return xn.WARNING_ICON_NAME;case Zs.ERROR:return xn.ERROR_ICON_NAME;default:return null}};var ts=class extends j{constructor(){super(...arguments);this.variant=Dd.VARIANT}renderIcon(t){return t?_`
|
|
7163
|
+
<mdc-icon name="${t}" size="${Dd.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
|
|
7164
|
+
`:W}getTextLabel(){return this.label?_`
|
|
7165
7165
|
<mdc-text
|
|
7166
7166
|
part="leading-label"
|
|
7167
7167
|
type="${this.secondaryLabel?ot.BODY_MIDSIZE_BOLD:ot.BODY_MIDSIZE_MEDIUM}"
|
|
@@ -7173,12 +7173,12 @@
|
|
|
7173
7173
|
type="${ot.BODY_MIDSIZE_REGULAR}"
|
|
7174
7174
|
tagname="${mt.SPAN}"
|
|
7175
7175
|
>${this.secondaryLabel}</mdc-text
|
|
7176
|
-
>`:
|
|
7177
|
-
`:
|
|
7176
|
+
>`:W}
|
|
7177
|
+
`:W}render(){return _`
|
|
7178
7178
|
<slot name="content">
|
|
7179
7179
|
<div part="leading">
|
|
7180
7180
|
<slot name="leading-icon">
|
|
7181
|
-
${this.variant!==
|
|
7181
|
+
${this.variant!==Dd.VARIANT?this.renderIcon(Cb(this.variant)):W}
|
|
7182
7182
|
</slot>
|
|
7183
7183
|
<slot name="leading-text">
|
|
7184
7184
|
<div part="leading-text">${this.getTextLabel()}</div>
|
|
@@ -7188,7 +7188,7 @@
|
|
|
7188
7188
|
<slot name="trailing-actions"></slot>
|
|
7189
7189
|
</div>
|
|
7190
7190
|
</slot>
|
|
7191
|
-
`}};
|
|
7191
|
+
`}};ts.styles=[...j.styles,..._b],p([u({type:String,reflect:!0})],ts.prototype,"variant",2),p([u({type:String,reflect:!0})],ts.prototype,"label",2),p([u({type:String,reflect:!0,attribute:"secondary-label"})],ts.prototype,"secondaryLabel",2);var _p=ts;_p.register(Ib);var a0=_p;})();
|
|
7192
7192
|
/*! Bundled license information:
|
|
7193
7193
|
|
|
7194
7194
|
lottie-web/build/player/lottie_light.js:
|