@momentum-design/components 0.131.0 → 0.131.2
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 +179 -179
- package/dist/browser/index.js.map +3 -3
- package/dist/components/popover/popover.component.d.ts +17 -2
- package/dist/components/popover/popover.component.js +27 -6
- package/dist/components/popover/popover.utils.js +26 -12
- package/dist/custom-elements.json +20 -81
- package/dist/utils/controllers/DepthManager.d.ts +4 -2
- package/dist/utils/controllers/DepthManager.js +23 -14
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var iE=Object.create;var dc=Object.defineProperty;var Bm=Object.getOwnPropertyDescriptor;var oE=Object.getOwnPropertyNames;var sE=Object.getPrototypeOf,nE=Object.prototype.hasOwnProperty;var aE=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var lE=(a,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of oE(o))!nE.call(a,s)&&s!==t&&dc(a,s,{get:()=>o[s],enumerable:!(r=Bm(o,s))||r.enumerable});return a};var dE=(a,o,t)=>(t=a!=null?iE(sE(a)):{},lE(o||!a||!a.__esModule?dc(t,"default",{value:a,enumerable:!0}):t,a));var m=(a,o,t,r)=>{for(var s=r>1?void 0:r?Bm(o,t):o,l=a.length-1,c;l>=0;l--)(c=a[l])&&(s=(r?c(o,t,s):c(s))||s);return r&&s&&dc(o,t,s),s};var Zu=aE((Gn,_l)=>{typeof navigator<"u"&&function(a,o){typeof Gn=="object"&&typeof _l<"u"?_l.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(Gn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},l=function(){return t},c=function(i){o=i},f=function(){return o};function y(e){return document.createElement(e)}function S(e,i){var n,d=e.length,p;for(n=0;n<d;n+=1){p=e[n].prototype;for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(i.prototype[h]=p[h])}}function F(e,i){return Object.getOwnPropertyDescriptor(e,i)}function W(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,p=this.audios.length;for(d=0;d<p;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Z=function(){function e(n,d){var p=0,h=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(p=0;p<d;p+=1)h.push(g);return h}function i(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):e(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function et(e){return Array.apply(null,{length:e})}function lt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(n){return typeof n}:lt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lt(e)}var dt=!0,gt=null,It=null,wt="",Zt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Gt=!1,Qt=Math.pow,se=Math.sqrt,ye=Math.floor,Sr=Math.max,Ue=Math.min,ar={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,n=e.length;for(i=0;i<n;i+=1)ar[e[i]]=Math[e[i]]})();function Ir(){return{}}ar.random=Math.random,ar.abs=function(e){var i=lt(e);if(i==="object"&&e.length){var n=et(e.length),d,p=e.length;for(d=0;d<p;d+=1)n[d]=Math.abs(e[d]);return n}return Math.abs(e)};var _r=150,Nt=Math.PI/180,Se=.5519;function lr(e){Gt=!!e}function dr(e){return Gt?Math.round(e):e}function cr(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function hr(e,i,n,d){this.type=e,this.currentTime=i,this.totalTime=n,this.direction=d<0?-1:1}function Oa(e,i){this.type=e,this.direction=i<0?-1:1}function jp(e,i,n,d){this.type=e,this.currentLoop=n,this.totalLoops=i,this.direction=d<0?-1:1}function qp(e,i,n){this.type=e,this.firstFrame=i,this.totalFrames=n}function Xp(e,i){this.type=e,this.target=i}function iy(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function oy(e){this.type="configError",this.nativeError=e}function iS(e,i){this.type=e,this.nativeError=i}var He=function(){var e=0;return function(){return e+=1,wt+"__lottie_element_"+e}}();function Xd(e,i,n){var d,p,h,g,A,b,k,M;switch(g=Math.floor(e*6),A=e*6-g,b=n*(1-i),k=n*(1-A*i),M=n*(1-(1-A)*i),g%6){case 0:d=n,p=M,h=b;break;case 1:d=k,p=n,h=b;break;case 2:d=b,p=n,h=M;break;case 3:d=b,p=k,h=n;break;case 4:d=M,p=b,h=n;break;case 5:d=n,p=b,h=k;break;default:break}return[d,p,h]}function Zd(e,i,n){var d=Math.max(e,i,n),p=Math.min(e,i,n),h=d-p,g,A=d===0?0:h/d,b=d/255;switch(d){case p:g=0;break;case e:g=i-n+h*(i<n?6:0),g/=6*h;break;case i:g=n-e+h*2,g/=6*h;break;case n:g=e-i+h*4,g/=6*h;break;default:break}return[g,A,b]}function Zp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[1]+=i,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Xd(n[0],n[1],n[2])}function Qp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[2]+=i,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Xd(n[0],n[1],n[2])}function Jp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[0]+=i/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Xd(n[0],n[1],n[2])}var oS=function(){var e=[],i,n;for(i=0;i<256;i+=1)n=i.toString(16),e[i]=n.length===1?"0"+n:n;return function(d,p,h){return d<0&&(d=0),p<0&&(p=0),h<0&&(h=0),"#"+e[d]+e[p]+e[h]}}(),sy=function(i){dt=!!i},ny=function(){return dt},ay=function(i){gt=i},Ra=function(){return gt},sS=function(i){It=i},tm=function(){return It},Pa=function(i){_r=i},dn=function(){return _r},ly=function(i){wt=i},nS=function(){return wt};function Tt(e){return document.createElementNS(a,e)}function Da(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Da=function(n){return typeof n}:Da=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Da(e)}var cn=function(){var e=1,i=[],n,d,p={onmessage:function(){},postMessage:function(O){n({data:O})}},h={postMessage:function(O){p.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(O);return new Worker(D)}return n=x,p}function A(){d||(d=g(function(O){function D(){function B(rt,C){var P,v,E=rt.length,K,z,at,vt;for(v=0;v<E;v+=1)if(P=rt[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for(z=Et.length,K=0;K<z;K+=1)if(Et[K].pt.k.i)N(Et[K].pt.k);else for(vt=Et[K].pt.k.length,at=0;at<vt;at+=1)Et[K].pt.k[at].s&&N(Et[K].pt.k[at].s[0]),Et[K].pt.k[at].e&&N(Et[K].pt.k[at].e[0])}P.ty===0?(P.layers=T(P.refId,C),B(P.layers,C)):P.ty===4?I(P.shapes):P.ty===5&&xt(P)}}function L(rt,C){if(rt){var P=0,v=rt.length;for(P=0;P<v;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,C),B(rt[P].data.layers,C))}}function w(rt,C){for(var P=0,v=C.length;P<v;){if(C[P].id===rt)return C[P];P+=1}return null}function T(rt,C){var P=w(rt,C);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function I(rt){var C,P=rt.length,v,E;for(C=P-1;C>=0;C-=1)if(rt[C].ty==="sh")if(rt[C].ks.k.i)N(rt[C].ks.k);else for(E=rt[C].ks.k.length,v=0;v<E;v+=1)rt[C].ks.k[v].s&&N(rt[C].ks.k[v].s[0]),rt[C].ks.k[v].e&&N(rt[C].ks.k[v].e[0]);else rt[C].ty==="gr"&&I(rt[C].it)}function N(rt){var C,P=rt.i.length;for(C=0;C<P;C+=1)rt.i[C][0]+=rt.v[C][0],rt.i[C][1]+=rt.v[C][1],rt.o[C][0]+=rt.v[C][0],rt.o[C][1]+=rt.v[C][1]}function $(rt,C){var P=C?C.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var H=function(){var rt=[4,4,14];function C(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),Y=function(){var rt=[4,7,99];return function(C){if(C.chars&&!$(rt,C.v)){var P,v=C.chars.length;for(P=0;P<v;P+=1){var E=C.chars[P];E.data&&E.data.shapes&&(I(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},C.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function C(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),yt=function(){var rt=[4,1,9];function C(v){var E,K=v.length,z,at;for(E=0;E<K;E+=1)if(v[E].ty==="gr")C(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(at=v[E].c.k.length,z=0;z<at;z+=1)v[E].c.k[z].s&&(v[E].c.k[z].s[0]/=255,v[E].c.k[z].s[1]/=255,v[E].c.k[z].s[2]/=255,v[E].c.k[z].s[3]/=255),v[E].c.k[z].e&&(v[E].c.k[z].e[0]/=255,v[E].c.k[z].e[1]/=255,v[E].c.k[z].e[2]/=255,v[E].c.k[z].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===4&&C(v[E].shapes)}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function C(v){var E,K=v.length,z,at;for(E=K-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(at=v[E].ks.k.length,z=0;z<at;z+=1)v[E].ks.k[z].s&&(v[E].ks.k[z].s[0].c=v[E].closed),v[E].ks.k[z].e&&(v[E].ks.k[z].e[0].c=v[E].closed);else v[E].ty==="gr"&&C(v[E].it)}function P(v){var E,K,z=v.length,at,vt,Et,Pt;for(K=0;K<z;K+=1){if(E=v[K],E.hasMask){var Dt=E.masksProperties;for(vt=Dt.length,at=0;at<vt;at+=1)if(Dt[at].pt.k.i)Dt[at].pt.k.c=Dt[at].cl;else for(Pt=Dt[at].pt.k.length,Et=0;Et<Pt;Et+=1)Dt[at].pt.k[Et].s&&(Dt[at].pt.k[Et].s[0].c=Dt[at].cl),Dt[at].pt.k[Et].e&&(Dt[at].pt.k[Et].e[0].c=Dt[at].cl)}E.ty===4&&C(E.shapes)}}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}();function st(rt){rt.__complete||(yt(rt),H(rt),Y(rt),it(rt),ut(rt),B(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function xt(rt){rt.t.a.length===0&&"m"in rt.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=Y,ct.checkPathProperties=it,ct.checkShapes=ut,ct.completeLayers=B,ct}if(h.dataManager||(h.dataManager=D()),h.assetLoader||(h.assetLoader=function(){function B(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&Da(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,I,N){var $,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)$=B(H),I($);else try{$=B(H),I($)}catch(Y){N&&N(Y)}};try{H.open(["G","E","T"].join(""),w,!0)}catch{H.open(["G","E","T"].join(""),T+"/"+w,!0)}H.send()}return{load:L}}()),O.data.type==="loadAnimation")h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.dataManager.completeData(B),h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;h.dataManager.completeData(R),h.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,D=O.id,R=i[D];i[D]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:O},D}function k(x,O,D){A();var R=b(O,D);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,D){A();var R=b(O,D);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,D){A();var R=b(O,D);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:M,completeAnimation:G}}(),dy=function(){var e=function(){var L=y("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,w,T){var I="";if(L.e)I=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),I=w+N}else I=T,I+=L.u?L.u:"",I+=L.p;return I}function p(L){var w=0,T=setInterval((function(){var I=L.getBBox();(I.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function h(L){var w=d(L,this.assetsPath,this.path),T=Tt("image");Zt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){I.img=e,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var I={img:T,assetData:L};return I}function g(L){var w=d(L,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){I.img=e,this._imageLoaded()}).bind(this),!1),T.src=w;var I={img:T,assetData:L};return I}function A(L){var w={assetData:L},T=d(L,this.assetsPath,this.path);return cn.loadData(T,(function(I){w.img=I,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function b(L,w){this.imagesLoadedCb=w;var T,I=L.length;for(T=0;T<I;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function G(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function B(){this._imageLoaded=i.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=p.bind(this),this.createFootageData=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 B.prototype={loadAssets:b,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:h,imageLoaded:i,footageLoaded:n,setCacheType:R},B}();function em(){}em.prototype={triggerEvent:function(i,n){if(this._cbs[i])for(var d=this._cbs[i],p=0;p<d.length;p+=1)d[p](n)},addEventListener:function(i,n){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(n),(function(){this.removeEventListener(i,n)}).bind(this)},removeEventListener:function(i,n){if(!n)this._cbs[i]=null;else if(this._cbs[i]){for(var d=0,p=this._cbs[i].length;d<p;)this._cbs[i][d]===n&&(this._cbs[i].splice(d,1),d-=1,p-=1),d+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var cy=function(){function e(i){for(var n=i.split(`\r
|
|
2
|
-
`),d={},p,h=0,g=0;g<n.length;g+=1)p=n[g].split(":"),p.length===2&&(d[p[0]]=p[1].trim(),h+=1);if(h===0)throw new Error;return d}return function(i){for(var n=[],d=0;d<i.length;d+=1){var p=i[d],h={time:p.tm,duration:p.dr};try{h.payload=JSON.parse(i[d].cm)}catch{try{h.payload=e(i[d].cm)}catch{h.payload={name:i[d].cm}}}n.push(h)}return n}}(),hy=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var d=0,p=this.compositions.length;d<p;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),hn={},py=function(i,n){hn[i]=n};function my(e){return hn[e]}function uy(){if(hn.canvas)return"canvas";for(var e in hn)if(hn[e])return e;return""}function pn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(n){return typeof n}:pn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pn(e)}var ft=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=He(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=ny(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=hy(),this.imagePreloader=new dy,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new hr("drawnFrame",0,0,0),this.expressionsPlugin=Ra()};S([em],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=my(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),cn.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){cn.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&pn(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},d=e.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:uy()||"canvas";var p=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";p==="false"?n.loop=!1:p==="true"?n.loop=!0:p!==""&&(n.loop=parseInt(p,10));var h=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=h!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,d=i.length,p=e.layers,h,g=p.length;for(h=0;h<g;h+=1)for(n=0;n<d;){if(i[n].id===p[h].id){i[n]=p[h];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(d=e.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,cn.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Ra();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,cn.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=cy(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=Ra();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,d=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,d)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var d=Number(e);if(isNaN(d)){var p=this.getMarkerData(e);p&&this.goToAndStop(p.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var d=Number(e);if(isNaN(d)){var p=this.getMarkerData(e);p&&(p.duration?this.playSegments([p.time,p.time+p.duration],!0):this.goToAndStop(p.time,!0))}else this.goToAndStop(d,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),pn(e[0])==="object"){var n,d=e.length;for(n=0;n<d;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var d=this.renderer.getElementByPath(e);d.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new hr(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new jp(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Oa(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new qp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Xp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new hr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new jp(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Oa(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new qp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Xp(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new iy(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new oy(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ne=function(){var e={},i=[],n=0,d=0,p=0,h=!0,g=!1;function A(C){for(var P=0,v=C.target;P<d;)i[P].animation===v&&(i.splice(P,1),P-=1,d-=1,v.isPaused||G()),P+=1}function b(C,P){if(!C)return null;for(var v=0;v<d;){if(i[v].elem===C&&i[v].elem!==null)return i[v].animation;v+=1}var E=new ft;return x(E,C),E.setData(C,P),E}function k(){var C,P=i.length,v=[];for(C=0;C<P;C+=1)v.push(i[C].animation);return v}function M(){p+=1,yt()}function G(){p-=1}function x(C,P){C.addEventListener("destroy",A),C.addEventListener("_active",M),C.addEventListener("_idle",G),i.push({elem:P,animation:C}),d+=1}function O(C){var P=new ft;return x(P,null),P.setParams(C),P}function D(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setSpeed(C,P)}function R(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setDirection(C,P)}function B(C){var P;for(P=0;P<d;P+=1)i[P].animation.play(C)}function L(C){var P=C-n,v;for(v=0;v<d;v+=1)i[v].animation.advanceTime(P);n=C,p&&!g?window.requestAnimationFrame(L):h=!0}function w(C){n=C,window.requestAnimationFrame(L)}function T(C){var P;for(P=0;P<d;P+=1)i[P].animation.pause(C)}function I(C,P,v){var E;for(E=0;E<d;E+=1)i[E].animation.goToAndStop(C,P,v)}function N(C){var P;for(P=0;P<d;P+=1)i[P].animation.stop(C)}function $(C){var P;for(P=0;P<d;P+=1)i[P].animation.togglePause(C)}function H(C){var P;for(P=d-1;P>=0;P-=1)i[P].animation.destroy(C)}function Y(C,P,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,z=E.length;for(K=0;K<z;K+=1)v&&E[K].setAttribute("data-bm-type",v),b(E[K],C);if(P&&z===0){v||(v="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=y("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),at.appendChild(vt),b(vt,C)}}function it(){var C;for(C=0;C<d;C+=1)i[C].animation.resize()}function yt(){!g&&p&&h&&(window.requestAnimationFrame(w),h=!1)}function ut(){g=!0}function st(){g=!1,yt()}function xt(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setVolume(C,P)}function ct(C){var P;for(P=0;P<d;P+=1)i[P].animation.mute(C)}function rt(C){var P;for(P=0;P<d;P+=1)i[P].animation.unmute(C)}return e.registerAnimation=b,e.loadAnimation=O,e.setSpeed=D,e.setDirection=R,e.play=B,e.pause=T,e.stop=N,e.togglePause=$,e.searchAnimations=Y,e.resize=it,e.goToAndStop=I,e.destroy=H,e.freeze=ut,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=rt,e.getRegisteredAnimations=k,e}(),mn=function(){var e={};e.getBezierEasing=n;var i={};function n(w,T,I,N,$){var H=$||("bez_"+w+"_"+T+"_"+I+"_"+N).replace(/\./g,"p");if(i[H])return i[H];var Y=new L([w,T,I,N]);return i[H]=Y,Y}var d=4,p=.001,h=1e-7,g=10,A=11,b=1/(A-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function G(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,I){return((M(T,I)*w+G(T,I))*w+x(T))*w}function D(w,T,I){return 3*M(T,I)*w*w+2*G(T,I)*w+x(T)}function R(w,T,I,N,$){var H,Y,it=0;do Y=T+(I-T)/2,H=O(Y,N,$)-w,H>0?I=Y:T=Y;while(Math.abs(H)>h&&++it<g);return Y}function B(w,T,I,N){for(var $=0;$<d;++$){var H=D(T,I,N);if(H===0)return T;var Y=O(T,I,N)-w;T-=Y/H}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var I=this._p[0],N=this._p[1],$=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),I===N&&$===H?T:T===0?0:T===1?1:O(this._getTForX(T),N,H)},_precompute:function(){var T=this._p[0],I=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==I||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],I=this._p[2],N=0;N<A;++N)this._mSampleValues[N]=O(N*b,T,I)},_getTForX:function(T){for(var I=this._p[0],N=this._p[2],$=this._mSampleValues,H=0,Y=1,it=A-1;Y!==it&&$[Y]<=T;++Y)H+=b;--Y;var yt=(T-$[Y])/($[Y+1]-$[Y]),ut=H+yt*b,st=D(ut,I,N);return st>=p?B(T,ut,I,N):st===0?ut:R(T,H,H+b,I,N)}},e}(),rm=function(){function e(i){return i.concat(et(i.length))}return{double:e}}(),Fa=function(){return function(e,i,n){var d=0,p=e,h=et(p),g={newElement:A,release:b};function A(){var k;return d?(d-=1,k=h[d]):k=i(),k}function b(k){d===p&&(h=rm.double(h),p*=2),n&&n(k),h[d]=k,d+=1}return g}}(),im=function(){function e(){return{addedLength:0,percents:Z("float32",dn()),lengths:Z("float32",dn())}}return Fa(8,e)}(),om=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var d,p=n.lengths.length;for(d=0;d<p;d+=1)im.release(n.lengths[d]);n.lengths.length=0}return Fa(8,e,i)}();function fy(){var e=Math;function i(x,O,D,R,B,L){var w=x*R+O*B+D*L-B*R-L*x-D*O;return w>-.001&&w<.001}function n(x,O,D,R,B,L,w,T,I){if(D===0&&L===0&&I===0)return i(x,O,R,B,w,T);var N=e.sqrt(e.pow(R-x,2)+e.pow(B-O,2)+e.pow(L-D,2)),$=e.sqrt(e.pow(w-x,2)+e.pow(T-O,2)+e.pow(I-D,2)),H=e.sqrt(e.pow(w-R,2)+e.pow(T-B,2)+e.pow(I-L,2)),Y;return N>$?N>H?Y=N-$-H:Y=H-$-N:H>$?Y=H-$-N:Y=$-N-H,Y>-1e-4&&Y<1e-4}var d=function(){return function(x,O,D,R){var B=dn(),L,w,T,I,N,$=0,H,Y=[],it=[],yt=im.newElement();for(T=D.length,L=0;L<B;L+=1){for(N=L/(B-1),H=0,w=0;w<T;w+=1)I=Qt(1-N,3)*x[w]+3*Qt(1-N,2)*N*D[w]+3*(1-N)*Qt(N,2)*R[w]+Qt(N,3)*O[w],Y[w]=I,it[w]!==null&&(H+=Qt(Y[w]-it[w],2)),it[w]=Y[w];H&&(H=se(H),$+=H),yt.percents[L]=N,yt.lengths[L]=$}return yt.addedLength=$,yt}}();function p(x){var O=om.newElement(),D=x.c,R=x.v,B=x.o,L=x.i,w,T=x._length,I=O.lengths,N=0;for(w=0;w<T-1;w+=1)I[w]=d(R[w],R[w+1],B[w],L[w+1]),N+=I[w].addedLength;return D&&T&&(I[w]=d(R[w],R[0],B[w],L[0]),N+=I[w].addedLength),O.totalLength=N,O}function h(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var A=function(){var x={};return function(O,D,R,B){var L=(O[0]+"_"+O[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+B[0]+"_"+B[1]).replace(/\./g,"p");if(!x[L]){var w=dn(),T,I,N,$,H,Y=0,it,yt,ut=null;O.length===2&&(O[0]!==D[0]||O[1]!==D[1])&&i(O[0],O[1],D[0],D[1],O[0]+R[0],O[1]+R[1])&&i(O[0],O[1],D[0],D[1],D[0]+B[0],D[1]+B[1])&&(w=2);var st=new h(w);for(N=R.length,T=0;T<w;T+=1){for(yt=et(N),H=T/(w-1),it=0,I=0;I<N;I+=1)$=Qt(1-H,3)*O[I]+3*Qt(1-H,2)*H*(O[I]+R[I])+3*(1-H)*Qt(H,2)*(D[I]+B[I])+Qt(H,3)*D[I],yt[I]=$,ut!==null&&(it+=Qt(yt[I]-ut[I],2));it=se(it),Y+=it,st.points[T]=new g(it,yt),ut=yt}st.segmentLength=Y,x[L]=st}return x[L]}}();function b(x,O){var D=O.percents,R=O.lengths,B=D.length,L=ye((B-1)*x),w=x*O.addedLength,T=0;if(L===B-1||L===0||w===R[L])return D[L];for(var I=R[L]>w?-1:1,N=!0;N;)if(R[L]<=w&&R[L+1]>w?(T=(w-R[L])/(R[L+1]-R[L]),N=!1):L+=I,L<0||L>=B-1){if(L===B-1)return D[L];N=!1}return D[L]+(D[L+1]-D[L])*T}function k(x,O,D,R,B,L){var w=b(B,L),T=1-w,I=e.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*D[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=e.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*D[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[I,N]}var M=Z("float32",8);function G(x,O,D,R,B,L,w){B<0?B=0:B>1&&(B=1);var T=b(B,w);L=L>1?1:L;var I=b(L,w),N,$=x.length,H=1-T,Y=1-I,it=H*H*H,yt=T*H*H*3,ut=T*T*H*3,st=T*T*T,xt=H*H*Y,ct=T*H*Y+H*T*Y+H*H*I,rt=T*T*Y+H*T*I+T*H*I,C=T*T*I,P=H*Y*Y,v=T*Y*Y+H*I*Y+H*Y*I,E=T*I*Y+H*I*I+T*Y*I,K=T*I*I,z=Y*Y*Y,at=I*Y*Y+Y*I*Y+Y*Y*I,vt=I*I*Y+Y*I*I+I*Y*I,Et=I*I*I;for(N=0;N<$;N+=1)M[N*4]=e.round((it*x[N]+yt*D[N]+ut*R[N]+st*O[N])*1e3)/1e3,M[N*4+1]=e.round((xt*x[N]+ct*D[N]+rt*R[N]+C*O[N])*1e3)/1e3,M[N*4+2]=e.round((P*x[N]+v*D[N]+E*R[N]+K*O[N])*1e3)/1e3,M[N*4+3]=e.round((z*x[N]+at*D[N]+vt*R[N]+Et*O[N])*1e3)/1e3;return M}return{getSegmentsLength:p,getNewSegment:G,getPointInSegment:k,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:n}}var $r=fy(),bo=r,sm=Math.abs;function nm(e,i){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var p=i.lastIndex,h=p,g=this.keyframes.length-1,A=!0,b,k,M;A;){if(b=this.keyframes[h],k=this.keyframes[h+1],h===g-1&&e>=k.t-n){b.h&&(b=k),p=0;break}if(k.t-n>e){p=h;break}h<g-1?h+=1:(p=0,A=!1)}M=this.keyframesMetadata[h]||{};var G,x,O,D,R,B,L=k.t-n,w=b.t-n,T;if(b.to){M.bezierData||(M.bezierData=$r.buildBezierData(b.s,k.s||b.e,b.to,b.ti));var I=M.bezierData;if(e>=L||e<w){var N=e>=L?I.points.length-1:0;for(x=I.points[N].point.length,G=0;G<x;G+=1)d[G]=I.points[N].point[G]}else{M.__fnct?B=M.__fnct:(B=mn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,M.__fnct=B),O=B((e-w)/(L-w));var $=I.segmentLength*O,H,Y=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastPoint:0,A=!0,D=I.points.length;A;){if(Y+=I.points[R].partialLength,$===0||O===0||R===I.points.length-1){for(x=I.points[R].point.length,G=0;G<x;G+=1)d[G]=I.points[R].point[G];break}else if($>=Y&&$<Y+I.points[R+1].partialLength){for(H=($-Y)/I.points[R+1].partialLength,x=I.points[R].point.length,G=0;G<x;G+=1)d[G]=I.points[R].point[G]+(I.points[R+1].point[G]-I.points[R].point[G])*H;break}R<D-1?R+=1:A=!1}i._lastPoint=R,i._lastAddedLength=Y-I.points[R].partialLength,i._lastKeyframeIndex=h}}else{var it,yt,ut,st,xt;if(g=b.s.length,T=k.s||b.e,this.sh&&b.h!==1)if(e>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(e<=w)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ct=am(b.s),rt=am(T),C=(e-w)/(L-w);gy(d,vy(ct,rt,C))}else for(h=0;h<g;h+=1)b.h!==1&&(e>=L?O=1:e<w?O=0:(b.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[h]?B=M.__fnct[h]:(it=b.o.x[h]===void 0?b.o.x[0]:b.o.x[h],yt=b.o.y[h]===void 0?b.o.y[0]:b.o.y[h],ut=b.i.x[h]===void 0?b.i.x[0]:b.i.x[h],st=b.i.y[h]===void 0?b.i.y[0]:b.i.y[h],B=mn.getBezierEasing(it,yt,ut,st).get,M.__fnct[h]=B)):M.__fnct?B=M.__fnct:(it=b.o.x,yt=b.o.y,ut=b.i.x,st=b.i.y,B=mn.getBezierEasing(it,yt,ut,st).get,b.keyframeMetadata=B),O=B((e-w)/(L-w)))),T=k.s||b.e,xt=b.h===1?b.s[h]:b.s[h]+(T[h]-b.s[h])*O,this.propType==="multidimensional"?d[h]=xt:d=xt}return i.lastIndex=p,d}function vy(e,i,n){var d=[],p=e[0],h=e[1],g=e[2],A=e[3],b=i[0],k=i[1],M=i[2],G=i[3],x,O,D,R,B;return O=p*b+h*k+g*M+A*G,O<0&&(O=-O,b=-b,k=-k,M=-M,G=-G),1-O>1e-6?(x=Math.acos(O),D=Math.sin(x),R=Math.sin((1-n)*x)/D,B=Math.sin(n*x)/D):(R=1-n,B=n),d[0]=R*p+B*b,d[1]=R*h+B*k,d[2]=R*g+B*M,d[3]=R*A+B*G,d}function gy(e,i){var n=i[0],d=i[1],p=i[2],h=i[3],g=Math.atan2(2*d*h-2*n*p,1-2*d*d-2*p*p),A=Math.asin(2*n*d+2*p*h),b=Math.atan2(2*n*h-2*d*p,1-2*n*n-2*p*p);e[0]=g/Nt,e[1]=A/Nt,e[2]=b/Nt}function am(e){var i=e[0]*Nt,n=e[1]*Nt,d=e[2]*Nt,p=Math.cos(i/2),h=Math.cos(n/2),g=Math.cos(d/2),A=Math.sin(i/2),b=Math.sin(n/2),k=Math.sin(d/2),M=p*h*g-A*b*k,G=A*b*g+p*h*k,x=A*h*g+p*b*k,O=p*b*g-A*h*k;return[G,x,O,M]}function lm(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==bo&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(e,this._caching);this.pv=d}return this._caching.lastFrame=e,this.pv}function $a(e){var i;if(this.propType==="unidimensional")i=e*this.mult,sm(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)i=e[n]*this.mult,sm(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function za(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Va(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function by(e,i,n,d){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=d,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=za,this.setVValue=$a,this.addEffect=Va}function yy(e,i,n,d){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=d,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var p,h=i.k.length;for(this.v=Z("float32",h),this.pv=Z("float32",h),this.vel=Z("float32",h),p=0;p<h;p+=1)this.v[p]=i.k[p]*this.mult,this.pv[p]=i.k[p];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=za,this.setVValue=$a,this.addEffect=Va}function Ey(e,i,n,d){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:bo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.v=bo,this.pv=bo,this._isFirstFrame=!0,this.getValue=za,this.setVValue=$a,this.interpolateValue=nm,this.effectsSequence=[lm.bind(this)],this.addEffect=Va}function Ty(e,i,n,d){this.propType="multidimensional";var p,h=i.k.length,g,A,b,k;for(p=0;p<h-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(g=i.k[p].s,A=i.k[p+1].s,b=i.k[p].to,k=i.k[p].ti,(g.length===2&&!(g[0]===A[0]&&g[1]===A[1])&&$r.pointOnLine2D(g[0],g[1],A[0],A[1],g[0]+b[0],g[1]+b[1])&&$r.pointOnLine2D(g[0],g[1],A[0],A[1],A[0]+k[0],A[1]+k[1])||g.length===3&&!(g[0]===A[0]&&g[1]===A[1]&&g[2]===A[2])&&$r.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])&&$r.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],A[0]+k[0],A[1]+k[1],A[2]+k[2]))&&(i.k[p].to=null,i.k[p].ti=null),g[0]===A[0]&&g[1]===A[1]&&b[0]===0&&b[1]===0&&k[0]===0&&k[1]===0&&(g.length===2||g[2]===A[2]&&b[2]===0&&k[2]===0)&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[lm.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.getValue=za,this.setVValue=$a,this.interpolateValue=nm,this.frameId=-1;var M=i.k[0].s.length;for(this.v=Z("float32",M),this.pv=Z("float32",M),p=0;p<M;p+=1)this.v[p]=bo,this.pv[p]=bo;this._caching={lastFrame:bo,lastIndex:0,value:Z("float32",M)},this.addEffect=Va}var nt=function(){function e(n,d,p,h,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var A;if(!d.k.length)A=new by(n,d,h,g);else if(typeof d.k[0]=="number")A=new yy(n,d,h,g);else switch(p){case 0:A=new Ey(n,d,h,g);break;case 1:A=new Ty(n,d,h,g);break;default:break}return A.effectsSequence.length&&g.addDynamicProperty(A),A}var i={getProp:e};return i}();function Ee(){}Ee.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var yo=function(){function e(){return Z("float32",2)}return Fa(8,e)}();function ri(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}ri.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=yo.newElement(),this.o[n]=yo.newElement(),this.i[n]=yo.newElement(),n+=1},ri.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ri.prototype.doubleArrayLength=function(){this.v=this.v.concat(et(this._maxLength)),this.i=this.i.concat(et(this._maxLength)),this.o=this.o.concat(et(this._maxLength)),this._maxLength*=2},ri.prototype.setXYAt=function(e,i,n,d,p){var h;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":h=this.v;break;case"i":h=this.i;break;case"o":h=this.o;break;default:h=[];break}(!h[d]||h[d]&&!p)&&(h[d]=yo.newElement()),h[d][0]=e,h[d][1]=i},ri.prototype.setTripleAt=function(e,i,n,d,p,h,g,A){this.setXYAt(e,i,"v",g,A),this.setXYAt(n,d,"o",g,A),this.setXYAt(p,h,"i",g,A)},ri.prototype.reverse=function(){var e=new ri;e.setPathData(this.c,this._length);var i=this.v,n=this.o,d=this.i,p=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),p=1);var h=this._length-1,g=this._length,A;for(A=p;A<g;A+=1)e.setTripleAt(i[h][0],i[h][1],d[h][0],d[h][1],n[h][0],n[h][1],A,!1),h-=1;return e},ri.prototype.length=function(){return this._length};var Ie=function(){function e(){return new ri}function i(p){var h=p._length,g;for(g=0;g<h;g+=1)yo.release(p.v[g]),yo.release(p.i[g]),yo.release(p.o[g]),p.v[g]=null,p.i[g]=null,p.o[g]=null;p._length=0,p.c=!1}function n(p){var h=d.newElement(),g,A=p._length===void 0?p.v.length:p._length;for(h.setLength(A),h.c=p.c,g=0;g<A;g+=1)h.setTripleAt(p.v[g][0],p.v[g][1],p.o[g][0],p.o[g][1],p.i[g][0],p.i[g][1],g);return h}var d=Fa(4,e,i);return d.clone=n,d}();function Qd(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Qd.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Qd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)Ie.release(this.shapes[e]);this._length=0};var ps=function(){var e={newShapeCollection:p,release:h},i=0,n=4,d=et(n);function p(){var g;return i?(i-=1,g=d[i]):g=new Qd,g}function h(g){var A,b=g._length;for(A=0;A<b;A+=1)Ie.release(g.shapes[A]);g._length=0,i===n&&(d=rm.double(d),n*=2),d[i]=g,i+=1}return e}(),Ba=function(){var e=-999999;function i(L,w,T){var I=T.lastIndex,N,$,H,Y,it,yt,ut,st,xt,ct=this.keyframes;if(L<ct[0].t-this.offsetTime)N=ct[0].s[0],H=!0,I=0;else if(L>=ct[ct.length-1].t-this.offsetTime)N=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var rt=I,C=ct.length-1,P=!0,v,E,K;P&&(v=ct[rt],E=ct[rt+1],!(E.t-this.offsetTime>L));)rt<C-1?rt+=1:P=!1;if(K=this.keyframesMetadata[rt]||{},H=v.h===1,I=rt,!H){if(L>=E.t-this.offsetTime)st=1;else if(L<v.t-this.offsetTime)st=0;else{var z;K.__fnct?z=K.__fnct:(z=mn.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,K.__fnct=z),st=z((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(yt=w._length,ut=N.i[0].length,T.lastIndex=I,Y=0;Y<yt;Y+=1)for(it=0;it<ut;it+=1)xt=H?N.i[Y][it]:N.i[Y][it]+($.i[Y][it]-N.i[Y][it])*st,w.i[Y][it]=xt,xt=H?N.o[Y][it]:N.o[Y][it]+($.o[Y][it]-N.o[Y][it])*st,w.o[Y][it]=xt,xt=H?N.v[Y][it]:N.v[Y][it]+($.v[Y][it]-N.v[Y][it])*st,w.v[Y][it]=xt}function n(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,I=this._caching.lastFrame;return I!==e&&(I<w&&L<w||I>T&&L>T)||(this._caching.lastIndex=I<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function d(){this.paths=this.localShapeCollection}function p(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,I=L._length;for(T=0;T<I;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function h(L){p(this.v,L)||(this.v=Ie.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var I=T===3?w.pt.k:w.ks.k;this.v=Ie.clone(I),this.pv=Ie.clone(this.v),this.localShapeCollection=ps.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=g,A.prototype.setVValue=h,A.prototype.addEffect=b;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var I=this.keyframes[0].s[0].i.length;this.v=Ie.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,I),this.pv=Ie.clone(this.v),this.localShapeCollection=ps.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=d,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=g,k.prototype.interpolateShape=i,k.prototype.setVValue=h,k.prototype.addEffect=b;var M=function(){var L=Se;function w(T,I){this.v=Ie.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ps.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=I.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=nt.getProp(T,I.p,1,0,this),this.s=nt.getProp(T,I.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var I=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,H=this.s.v[1]/2,Y=this.d!==3,it=this.v;it.v[0][0]=I,it.v[0][1]=N-H,it.v[1][0]=Y?I+$:I-$,it.v[1][1]=N,it.v[2][0]=I,it.v[2][1]=N+H,it.v[3][0]=Y?I-$:I+$,it.v[3][1]=N,it.i[0][0]=Y?I-$*L:I+$*L,it.i[0][1]=N-H,it.i[1][0]=Y?I+$:I-$,it.i[1][1]=N-H*L,it.i[2][0]=Y?I+$*L:I-$*L,it.i[2][1]=N+H,it.i[3][0]=Y?I-$:I+$,it.i[3][1]=N+H*L,it.o[0][0]=Y?I+$*L:I-$*L,it.o[0][1]=N-H,it.o[1][0]=Y?I+$:I-$,it.o[1][1]=N+H*L,it.o[2][0]=Y?I-$*L:I+$*L,it.o[2][1]=N+H,it.o[3][0]=Y?I-$:I+$,it.o[3][1]=N-H*L}},S([Ee],w),w}(),G=function(){function L(w,T){this.v=Ie.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=nt.getProp(w,T.ir,0,0,this),this.is=nt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(w,T.pt,0,0,this),this.p=nt.getProp(w,T.p,1,0,this),this.r=nt.getProp(w,T.r,0,Nt,this),this.or=nt.getProp(w,T.or,0,0,this),this.os=nt.getProp(w,T.os,0,.01,this),this.localShapeCollection=ps.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,I=Math.PI*2/T,N=!0,$=this.or.v,H=this.ir.v,Y=this.os.v,it=this.is.v,yt=2*Math.PI*$/(T*2),ut=2*Math.PI*H/(T*2),st,xt,ct,rt,C=-Math.PI/2;C+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){xt=N?$:H,ct=N?Y:it,rt=N?yt:ut;var v=xt*Math.cos(C),E=xt*Math.sin(C),K=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),z=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-K*rt*ct*P,E-z*rt*ct*P,v+K*rt*ct*P,E+z*rt*ct*P,st,!0),N=!N,C+=I*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),I=Math.PI*2/T,N=this.or.v,$=this.os.v,H=2*Math.PI*N/(T*4),Y,it=-Math.PI*.5,yt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,Y=0;Y<T;Y+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),xt=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ct=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-xt*H*$*yt,st-ct*H*$*yt,ut+xt*H*$*yt,st+ct*H*$*yt,Y,!0),it+=I*yt}this.paths.length=0,this.paths[0]=this.v}},S([Ee],L),L}(),x=function(){function L(w,T){this.v=Ie.newElement(),this.v.c=!0,this.localShapeCollection=ps.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=nt.getProp(w,T.p,1,0,this),this.s=nt.getProp(w,T.s,1,0,this),this.r=nt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],I=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,H=Ue(N,$,this.r.v),Y=H*(1-Se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,I-$+H,T+N,I-$+H,T+N,I-$+Y,0,!0),this.v.setTripleAt(T+N,I+$-H,T+N,I+$-Y,T+N,I+$-H,1,!0),H!==0?(this.v.setTripleAt(T+N-H,I+$,T+N-H,I+$,T+N-Y,I+$,2,!0),this.v.setTripleAt(T-N+H,I+$,T-N+Y,I+$,T-N+H,I+$,3,!0),this.v.setTripleAt(T-N,I+$-H,T-N,I+$-H,T-N,I+$-Y,4,!0),this.v.setTripleAt(T-N,I-$+H,T-N,I-$+Y,T-N,I-$+H,5,!0),this.v.setTripleAt(T-N+H,I-$,T-N+H,I-$,T-N+Y,I-$,6,!0),this.v.setTripleAt(T+N-H,I-$,T+N-Y,I-$,T+N-H,I-$,7,!0)):(this.v.setTripleAt(T-N,I+$,T-N+Y,I+$,T-N,I+$,2),this.v.setTripleAt(T-N,I-$,T-N,I-$+Y,T-N,I-$,3))):(this.v.setTripleAt(T+N,I-$+H,T+N,I-$+Y,T+N,I-$+H,0,!0),H!==0?(this.v.setTripleAt(T+N-H,I-$,T+N-H,I-$,T+N-Y,I-$,1,!0),this.v.setTripleAt(T-N+H,I-$,T-N+Y,I-$,T-N+H,I-$,2,!0),this.v.setTripleAt(T-N,I-$+H,T-N,I-$+H,T-N,I-$+Y,3,!0),this.v.setTripleAt(T-N,I+$-H,T-N,I+$-Y,T-N,I+$-H,4,!0),this.v.setTripleAt(T-N+H,I+$,T-N+H,I+$,T-N+Y,I+$,5,!0),this.v.setTripleAt(T+N-H,I+$,T+N-Y,I+$,T+N-H,I+$,6,!0),this.v.setTripleAt(T+N,I+$-H,T+N,I+$-H,T+N,I+$-Y,7,!0)):(this.v.setTripleAt(T-N,I-$,T-N+Y,I-$,T-N,I-$,1,!0),this.v.setTripleAt(T-N,I+$,T-N,I+$-Y,T-N,I+$,2,!0),this.v.setTripleAt(T+N,I+$,T+N-Y,I+$,T+N,I+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},S([Ee],L),L}();function O(L,w,T){var I;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?I=new k(L,w,T):I=new A(L,w,T)}else T===5?I=new x(L,w):T===6?I=new M(L,w):T===7&&(I=new G(L,w));return I.k&&L.addDynamicProperty(I),I}function D(){return A}function R(){return k}var B={};return B.getShapeProp=O,B.getConstructorFunction=D,B.getKeyframedConstructorFunction=R,B}();var _e=function(){var e=Math.cos,i=Math.sin,n=Math.tan,d=Math.round;function p(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function h(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(1,0,0,0,0,E,-K,0,0,K,E,0,0,0,0,1)}function A(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,0,K,0,0,1,0,0,-K,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function G(v,E){var K=e(E),z=i(E);return this._t(K,z,0,0,-z,K,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(K,-z,0,0,z,K,0,0,0,0,1,0,0,0,0,1)}function x(v,E,K){return!K&&K!==0&&(K=1),v===1&&E===1&&K===1?this:this._t(v,0,0,0,0,E,0,0,0,0,K,0,0,0,0,1)}function O(v,E,K,z,at,vt,Et,Pt,Dt,ae,Ke,Vr,We,Te,rr,zt){return this.props[0]=v,this.props[1]=E,this.props[2]=K,this.props[3]=z,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Pt,this.props[8]=Dt,this.props[9]=ae,this.props[10]=Ke,this.props[11]=Vr,this.props[12]=We,this.props[13]=Te,this.props[14]=rr,this.props[15]=zt,this}function D(v,E,K){return K=K||0,v!==0||E!==0||K!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,K,1):this}function R(v,E,K,z,at,vt,Et,Pt,Dt,ae,Ke,Vr,We,Te,rr,zt){var ht=this.props;if(v===1&&E===0&&K===0&&z===0&&at===0&&vt===1&&Et===0&&Pt===0&&Dt===0&&ae===0&&Ke===1&&Vr===0)return ht[12]=ht[12]*v+ht[15]*We,ht[13]=ht[13]*vt+ht[15]*Te,ht[14]=ht[14]*Ke+ht[15]*rr,ht[15]*=zt,this._identityCalculated=!1,this;var si=ht[0],Di=ht[1],ni=ht[2],Br=ht[3],ai=ht[4],li=ht[5],Ye=ht[6],Fi=ht[7],$i=ht[8],wr=ht[9],zi=ht[10],kr=ht[11],Ao=ht[12],Xa=ht[13],Za=ht[14],Qa=ht[15];return ht[0]=si*v+Di*at+ni*Dt+Br*We,ht[1]=si*E+Di*vt+ni*ae+Br*Te,ht[2]=si*K+Di*Et+ni*Ke+Br*rr,ht[3]=si*z+Di*Pt+ni*Vr+Br*zt,ht[4]=ai*v+li*at+Ye*Dt+Fi*We,ht[5]=ai*E+li*vt+Ye*ae+Fi*Te,ht[6]=ai*K+li*Et+Ye*Ke+Fi*rr,ht[7]=ai*z+li*Pt+Ye*Vr+Fi*zt,ht[8]=$i*v+wr*at+zi*Dt+kr*We,ht[9]=$i*E+wr*vt+zi*ae+kr*Te,ht[10]=$i*K+wr*Et+zi*Ke+kr*rr,ht[11]=$i*z+wr*Pt+zi*Vr+kr*zt,ht[12]=Ao*v+Xa*at+Za*Dt+Qa*We,ht[13]=Ao*E+Xa*vt+Za*ae+Qa*Te,ht[14]=Ao*K+Xa*Et+Za*Ke+Qa*rr,ht[15]=Ao*z+Xa*Pt+Za*Vr+Qa*zt,this._identityCalculated=!1,this}function B(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function I(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,K){return{x:v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}}function $(v,E,K){return v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12]}function H(v,E,K){return v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13]}function Y(v,E,K){return v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,K=-this.props[1]/v,z=-this.props[4]/v,at=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new _e;return Pt.props[0]=E,Pt.props[1]=K,Pt.props[4]=z,Pt.props[5]=at,Pt.props[12]=vt,Pt.props[13]=Et,Pt}function yt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,K=v.length,z=[];for(E=0;E<K;E+=1)z[E]=yt(v[E]);return z}function st(v,E,K){var z=Z("float32",6);if(this.isIdentity())z[0]=v[0],z[1]=v[1],z[2]=E[0],z[3]=E[1],z[4]=K[0],z[5]=K[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Pt=this.props[5],Dt=this.props[12],ae=this.props[13];z[0]=v[0]*at+v[1]*Et+Dt,z[1]=v[0]*vt+v[1]*Pt+ae,z[2]=E[0]*at+E[1]*Et+Dt,z[3]=E[0]*vt+E[1]*Pt+ae,z[4]=K[0]*at+K[1]*Et+Dt,z[5]=K[0]*vt+K[1]*Pt+ae}return z}function xt(v,E,K){var z;return this.isIdentity()?z=[v,E,K]:z=[v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]],z}function ct(v,E){if(this.isIdentity())return v+","+E;var K=this.props;return Math.round((v*K[0]+E*K[4]+K[12])*100)/100+","+Math.round((v*K[1]+E*K[5]+K[13])*100)/100}function rt(){for(var v=0,E=this.props,K="matrix3d(",z=1e4;v<16;)K+=d(E[v]*z)/z,K+=v===15?")":",",v+=1;return K}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function P(){var v=this.props,E=C(v[0]),K=C(v[1]),z=C(v[4]),at=C(v[5]),vt=C(v[12]),Et=C(v[13]);return"matrix("+E+","+K+","+z+","+at+","+vt+","+Et+")"}return function(){this.reset=p,this.rotate=h,this.rotateX=g,this.rotateY=A,this.rotateZ=b,this.skew=M,this.skewFromAxis=G,this.shear=k,this.scale=x,this.setTransform=O,this.translate=D,this.transform=R,this.multiply=B,this.applyToPoint=N,this.applyToX=$,this.applyToY=H,this.applyToZ=Y,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=I,this.equals=w,this.inversePoints=ut,this.inversePoint=yt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function Ua(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ua=function(n){return typeof n}:Ua=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ua(e)}var Ft={},Ha="__[STANDALONE]__",dm="__[ANIMATIONDATA]__",cm="";function xy(e){c(e)}function hm(){Ha===!0?ne.searchAnimations(dm,Ha,cm):ne.searchAnimations()}function Ay(e){sy(e)}function Sy(e){ly(e)}function Iy(e){return Ha===!0&&(e.animationData=JSON.parse(dm)),ne.loadAnimation(e)}function _y(e){if(typeof e=="string")switch(e){case"high":Pa(200);break;default:case"medium":Pa(50);break;case"low":Pa(10);break}else!isNaN(e)&&e>1&&Pa(e);dn()>=50?lr(!1):lr(!0)}function Cy(){return typeof navigator<"u"}function wy(e,i){e==="expressions"&&ay(i)}function ky(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return Ba;case"matrix":return _e;default:return null}}Ft.play=ne.play,Ft.pause=ne.pause,Ft.setLocationHref=xy,Ft.togglePause=ne.togglePause,Ft.setSpeed=ne.setSpeed,Ft.setDirection=ne.setDirection,Ft.stop=ne.stop,Ft.searchAnimations=hm,Ft.registerAnimation=ne.registerAnimation,Ft.loadAnimation=Iy,Ft.setSubframeRendering=Ay,Ft.resize=ne.resize,Ft.goToAndStop=ne.goToAndStop,Ft.destroy=ne.destroy,Ft.setQuality=_y,Ft.inBrowser=Cy,Ft.installPlugin=wy,Ft.freeze=ne.freeze,Ft.unfreeze=ne.unfreeze,Ft.setVolume=ne.setVolume,Ft.mute=ne.mute,Ft.unmute=ne.unmute,Ft.getRegisteredAnimations=ne.getRegisteredAnimations,Ft.useWebWorker=s,Ft.setIDPrefix=Sy,Ft.__getFactory=ky,Ft.version="5.12.2";function Ny(){document.readyState==="complete"&&(clearInterval(Oy),hm())}function Ly(e){for(var i=pm.split("&"),n=0;n<i.length;n+=1){var d=i[n].split("=");if(decodeURIComponent(d[0])==e)return decodeURIComponent(d[1])}return null}var pm="";if(Ha){var mm=document.getElementsByTagName("script"),My=mm.length-1,um=mm[My]||{src:""};pm=um.src?um.src.replace(/^[^\?]+\??/,""):"",cm=Ly("renderer")}var Oy=setInterval(Ny,100);try{!((typeof Gn>"u"?"undefined":Ua(Gn))==="object"&&typeof _l<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ft)}catch{}var Ni=function(){var e={},i={};e.registerModifier=n,e.getModifier=d;function n(p,h){i[p]||(i[p]=h)}function d(p,h,g){return new i[p](h,g)}return e}();function pr(){}pr.prototype.initModifierProperties=function(){},pr.prototype.addShapeToModifier=function(){},pr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ps.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},pr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},pr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},S([Ee],pr);function Cr(){}S([pr],Cr),Cr.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Cr.prototype.addShapeToModifier=function(e){e.pathsData=[]},Cr.prototype.calculateShapeEdges=function(e,i,n,d,p){var h=[];i<=1?h.push({s:e,e:i}):e>=1?h.push({s:e-1,e:i-1}):(h.push({s:e,e:1}),h.push({s:0,e:i-1}));var g=[],A,b=h.length,k;for(A=0;A<b;A+=1)if(k=h[A],!(k.e*p<d||k.s*p>d+n)){var M,G;k.s*p<=d?M=0:M=(k.s*p-d)/n,k.e*p>=d+n?G=1:G=(k.e*p-d)/n,g.push([M,G])}return g.length||g.push([0,0]),g},Cr.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)om.release(e[i]);return e.length=0,e},Cr.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?i=1+d:this.s.v<0?i=0+d:i=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,i>n){var p=i;i=n,n=p}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var h,g,A=this.shapes.length,b,k,M,G,x,O=0;if(n===i)for(g=0;g<A;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<A;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,B;for(g=0;g<A;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(h=R.shape.paths,k=h._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),b=0;b<k;b+=1)G=$r.getSegmentsLength(h.shapes[b]),M.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=i,w=n,T=0,I;for(g=A-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(B=R.localShapeCollection,B.releaseShapes(),this.m===2&&A>1?(I=this.calculateShapeEdges(i,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):I=[[L,w]],k=I.length,b=0;b<k;b+=1){L=I[b][0],w=I[b][1],D.length=0,w<=1?D.push({s:R.totalShapeLength*L,e:R.totalShapeLength*w}):L>=1?D.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(w-1)}):(D.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var H=N.pop();this.addPaths(N,B),N=this.addShapes(R,D[1],H)}else this.addPaths(N,B),N=this.addShapes(R,D[1])}this.addPaths(N,B)}}R.shape.paths=B}}},Cr.prototype.addPaths=function(e,i){var n,d=e.length;for(n=0;n<d;n+=1)i.addShape(e[n])},Cr.prototype.addSegment=function(e,i,n,d,p,h,g){p.setXYAt(i[0],i[1],"o",h),p.setXYAt(n[0],n[1],"i",h+1),g&&p.setXYAt(e[0],e[1],"v",h),p.setXYAt(d[0],d[1],"v",h+1)},Cr.prototype.addSegmentFromArray=function(e,i,n,d){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),d&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Cr.prototype.addShapes=function(e,i,n){var d=e.pathsData,p=e.shape.paths.shapes,h,g=e.shape.paths._length,A,b,k=0,M,G,x,O,D=[],R,B=!0;for(n?(G=n._length,R=n._length):(n=Ie.newElement(),G=0,R=0),D.push(n),h=0;h<g;h+=1){for(x=d[h].lengths,n.c=p[h].c,b=p[h].c?x.length:x.length+1,A=1;A<b;A+=1)if(M=x[A-1],k+M.addedLength<i.s)k+=M.addedLength,n.c=!1;else if(k>i.e){n.c=!1;break}else i.s<=k&&i.e>=k+M.addedLength?(this.addSegment(p[h].v[A-1],p[h].o[A-1],p[h].i[A],p[h].v[A],n,G,B),B=!1):(O=$r.getNewSegment(p[h].v[A-1],p[h].v[A],p[h].o[A-1],p[h].i[A],(i.s-k)/M.addedLength,(i.e-k)/M.addedLength,x[A-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1),k+=M.addedLength,G+=1;if(p[h].c&&x.length){if(M=x[A-1],k<=i.e){var L=x[A-1].addedLength;i.s<=k&&i.e>=k+L?(this.addSegment(p[h].v[A-1],p[h].o[A-1],p[h].i[0],p[h].v[0],n,G,B),B=!1):(O=$r.getNewSegment(p[h].v[A-1],p[h].v[0],p[h].o[A-1],p[h].i[0],(i.s-k)/L,(i.e-k)/L,x[A-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1)}else n.c=!1;k+=M.addedLength,G+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),k>i.e)break;h<g-1&&(n=Ie.newElement(),B=!0,D.push(n),G=0)}return D};function un(){}S([pr],un),un.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},un.prototype.processPath=function(e,i){var n=i/100,d=[0,0],p=e._length,h=0;for(h=0;h<p;h+=1)d[0]+=e.v[h][0],d[1]+=e.v[h][1];d[0]/=p,d[1]/=p;var g=Ie.newElement();g.c=e.c;var A,b,k,M,G,x;for(h=0;h<p;h+=1)A=e.v[h][0]+(d[0]-e.v[h][0])*n,b=e.v[h][1]+(d[1]-e.v[h][1])*n,k=e.o[h][0]+(d[0]-e.o[h][0])*-n,M=e.o[h][1]+(d[1]-e.o[h][1])*-n,G=e.i[h][0]+(d[0]-e.i[h][0])*-n,x=e.i[h][1]+(d[1]-e.i[h][1])*-n,g.setTripleAt(A,b,k,M,G,x,h);return g},un.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amount.v;if(g!==0){var A,b;for(n=0;n<d;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,h=A.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Jd=function(){var e=[0,0];function i(b){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,G;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),G[0]=x.getValueAtTime(x.keyframes[0].t/k,0),G[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),G[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),G[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else G=e,M=G;this.v.rotate(-Math.atan2(M[1]-G[1],M[0]-G[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function p(){}function h(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,k,M){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=k,this.v=new _e,this.pre=new _e,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||b),k.p&&k.p.s?(this.px=nt.getProp(b,k.p.x,0,0,this),this.py=nt.getProp(b,k.p.y,0,0,this),k.p.z&&(this.pz=nt.getProp(b,k.p.z,0,0,this))):this.p=nt.getProp(b,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=nt.getProp(b,k.rx,0,Nt,this),this.ry=nt.getProp(b,k.ry,0,Nt,this),this.rz=nt.getProp(b,k.rz,0,Nt,this),k.or.k[0].ti){var G,x=k.or.k.length;for(G=0;G<x;G+=1)k.or.k[G].to=null,k.or.k[G].ti=null}this.or=nt.getProp(b,k.or,1,Nt,this),this.or.sh=!0}else this.r=nt.getProp(b,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=nt.getProp(b,k.sk,0,Nt,this),this.sa=nt.getProp(b,k.sa,0,Nt,this)),this.a=nt.getProp(b,k.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=nt.getProp(b,k.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:d,autoOrient:p},S([Ee],g),g.prototype.addDynamicProperty=h,g.prototype._addDynamicProperty=Ee.prototype.addDynamicProperty;function A(b,k,M){return new g(b,k,M)}return{getTransformProperty:A}}();function zr(){}S([pr],zr),zr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=Jd.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new _e,this.rMatrix=new _e,this.sMatrix=new _e,this.tMatrix=new _e,this.matrix=new _e},zr.prototype.applyTransforms=function(e,i,n,d,p,h){var g=h?-1:1,A=d.s.v[0]+(1-d.s.v[0])*(1-p),b=d.s.v[1]+(1-d.s.v[1])*(1-p);e.translate(d.p.v[0]*g*p,d.p.v[1]*g*p,d.p.v[2]),i.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),i.rotate(-d.r.v*g*p),i.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(h?1/A:A,h?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},zr.prototype.init=function(e,i,n,d){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},zr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},zr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},zr.prototype.changeGroupRender=function(e,i){var n,d=e.length;for(n=0;n<d;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},zr.prototype.processShapes=function(e){var i,n,d,p,h,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}h=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=h<A,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var M=this.elemsData[d].it,G=M[M.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}h+=1}this._currentCopies=A;var x=this.o.v,O=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,B=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,p=this.data.m===1?1:-1,h=this._currentCopies;for(var T,I;h;){if(i=this.elemsData[d].it,n=i[i.length-1].transform.mProps.v.props,I=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&p===1||d!==this._currentCopies-1&&p===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14],B[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<I;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<I;T+=1)n[T]=this.matrix.props[T];w+=1,h-=1,d+=p}}else for(h=this._currentCopies,d=0,p=1;h;)i=this.elemsData[d].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,h-=1,d+=p;return g},zr.prototype.addShape=function(){};function fn(){}S([pr],fn),fn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},fn.prototype.processPath=function(e,i){var n=Ie.newElement();n.c=e.c;var d,p=e._length,h,g,A,b,k,M,G=0,x,O,D,R,B,L;for(d=0;d<p;d+=1)h=e.v[d],A=e.o[d],g=e.i[d],h[0]===A[0]&&h[1]===A[1]&&h[0]===g[0]&&h[1]===g[1]?(d===0||d===p-1)&&!e.c?(n.setTripleAt(h[0],h[1],A[0],A[1],g[0],g[1],G),G+=1):(d===0?b=e.v[p-1]:b=e.v[d-1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,B=h[0]+(b[0]-h[0])*M,x=B,L=h[1]-(h[1]-b[1])*M,O=L,D=x-(x-h[0])*Se,R=O-(O-h[1])*Se,n.setTripleAt(x,O,D,R,B,L,G),G+=1,d===p-1?b=e.v[0]:b=e.v[d+1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,D=h[0]+(b[0]-h[0])*M,x=D,R=h[1]+(b[1]-h[1])*M,O=R,B=x-(x-h[0])*Se,L=O-(O-h[1])*Se,n.setTripleAt(x,O,D,R,B,L,G),G+=1):(n.setTripleAt(e.v[d][0],e.v[d][1],e.o[d][0],e.o[d][1],e.i[d][0],e.i[d][1],G),G+=1);return n},fn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.rd.v;if(g!==0){var A,b;for(n=0;n<d;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,h=A.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ga(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function tc(e){return Math.abs(e)<=1e-5}function fm(e,i,n){return e*(1-n)+i*n}function Li(e,i,n){return[fm(e[0],i[0],n),fm(e[1],i[1],n)]}function Ry(e,i,n){if(e===0)return[];var d=i*i-4*e*n;if(d<0)return[];var p=-i/(2*e);if(d===0)return[p];var h=Math.sqrt(d)/(2*e);return[p-h,p+h]}function vm(e,i,n,d){return[-e+3*i-3*n+d,3*e-6*i+3*n,-3*e+3*i,e]}function gm(e){return new te(e,e,e,e,!1)}function te(e,i,n,d,p){p&&us(e,i)&&(i=Li(e,d,1/3)),p&&us(n,d)&&(n=Li(e,d,2/3));var h=vm(e[0],i[0],n[0],d[0]),g=vm(e[1],i[1],n[1],d[1]);this.a=[h[0],g[0]],this.b=[h[1],g[1]],this.c=[h[2],g[2]],this.d=[h[3],g[3]],this.points=[e,i,n,d]}te.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},te.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},te.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},te.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},te.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(tc(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var d=Math.sqrt(n);return tc(d)?d>0&&d<1?[i]:[]:[i-d,i+d].filter(function(p){return p>0&&p<1})},te.prototype.split=function(e){if(e<=0)return[gm(this.points[0]),this];if(e>=1)return[this,gm(this.points[this.points.length-1])];var i=Li(this.points[0],this.points[1],e),n=Li(this.points[1],this.points[2],e),d=Li(this.points[2],this.points[3],e),p=Li(i,n,e),h=Li(n,d,e),g=Li(p,h,e);return[new te(this.points[0],i,p,g,!0),new te(g,h,d,this.points[3],!0)]};function bm(e,i){var n=e.points[0][i],d=e.points[e.points.length-1][i];if(n>d){var p=d;d=n,n=p}for(var h=Ry(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<h.length;g+=1)if(h[g]>0&&h[g]<1){var A=e.point(h[g])[i];A<n?n=A:A>d&&(d=A)}return{min:n,max:d}}te.prototype.bounds=function(){return{x:bm(this,0),y:bm(this,1)}},te.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Ka(e,i,n){var d=e.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function ym(e){var i=e.bez.split(.5);return[Ka(i[0],e.t1,e.t),Ka(i[1],e.t,e.t2)]}function Py(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function vn(e,i,n,d,p,h){if(Py(e,i)){if(n>=h||e.width<=d&&e.height<=d&&i.width<=d&&i.height<=d){p.push([e.t,i.t]);return}var g=ym(e),A=ym(i);vn(g[0],A[0],n+1,d,p,h),vn(g[0],A[1],n+1,d,p,h),vn(g[1],A[0],n+1,d,p,h),vn(g[1],A[1],n+1,d,p,h)}}te.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var d=[];return vn(Ka(this,0,1),Ka(e,0,1),0,i,d,n),d},te.shapeSegment=function(e,i){var n=(i+1)%e.length();return new te(e.v[i],e.o[i],e.i[n],e.v[n],!0)},te.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new te(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function ec(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Wa(e,i,n,d){var p=[e[0],e[1],1],h=[i[0],i[1],1],g=[n[0],n[1],1],A=[d[0],d[1],1],b=ec(ec(p,h),ec(g,A));return tc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function ms(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function rc(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function us(e,i){return Ga(e[0],i[0])&&Ga(e[1],i[1])}function gn(){}S([pr],gn),gn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Em(e,i,n,d,p,h,g){var A=n-Math.PI/2,b=n+Math.PI/2,k=i[0]+Math.cos(n)*d*p,M=i[1]-Math.sin(n)*d*p;e.setTripleAt(k,M,k+Math.cos(A)*h,M-Math.sin(A)*h,k+Math.cos(b)*g,M-Math.sin(b)*g,e.length())}function Dy(e,i){var n=[i[0]-e[0],i[1]-e[1]],d=-Math.PI*.5,p=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return p}function Fy(e,i){var n=i===0?e.length()-1:i-1,d=(i+1)%e.length(),p=e.v[n],h=e.v[d],g=Dy(p,h);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function Tm(e,i,n,d,p,h,g){var A=Fy(i,n),b=i.v[n%i._length],k=i.v[n===0?i._length-1:n-1],M=i.v[(n+1)%i._length],G=h===2?Math.sqrt(Math.pow(b[0]-k[0],2)+Math.pow(b[1]-k[1],2)):0,x=h===2?Math.sqrt(Math.pow(b[0]-M[0],2)+Math.pow(b[1]-M[1],2)):0;Em(e,i.v[n%i._length],A,g,d,x/((p+1)*2),G/((p+1)*2),h)}function $y(e,i,n,d,p,h){for(var g=0;g<d;g+=1){var A=(g+1)/(d+1),b=p===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,k=i.normalAngle(A),M=i.point(A);Em(e,M,k,h,n,b/((d+1)*2),b/((d+1)*2),p),h=-h}return h}gn.prototype.processPath=function(e,i,n,d){var p=e._length,h=Ie.newElement();if(h.c=e.c,e.c||(p-=1),p===0)return h;var g=-1,A=te.shapeSegment(e,0);Tm(h,e,0,i,n,d,g);for(var b=0;b<p;b+=1)g=$y(h,A,i,n,d,-g),b===p-1&&!e.c?A=null:A=te.shapeSegment(e,(b+1)%p),Tm(h,e,b+1,i,n,d,g);return h},gn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,A,b));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ic(e,i,n){var d=Math.atan2(i[0]-e[0],i[1]-e[1]);return[ms(e,d,n),ms(i,d,n)]}function fs(e,i){var n,d,p,h,g,A,b;b=ic(e.points[0],e.points[1],i),n=b[0],d=b[1],b=ic(e.points[1],e.points[2],i),p=b[0],h=b[1],b=ic(e.points[2],e.points[3],i),g=b[0],A=b[1];var k=Wa(n,d,p,h);k===null&&(k=d);var M=Wa(g,A,p,h);return M===null&&(M=g),new te(n,k,M,A)}function xm(e,i,n,d,p){var h=i.points[3],g=n.points[0];if(d===3||us(h,g))return h;if(d===2){var A=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,k=Wa(h,ms(h,A+Math.PI/2,100),g,ms(g,A+Math.PI/2,100)),M=k?rc(k,h):rc(h,g)/2,G=ms(h,A,2*M*Se);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=ms(g,b,2*M*Se),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=us(h,i.points[2])?i.points[0]:i.points[2],O=us(g,n.points[1])?n.points[3]:n.points[1],D=Wa(x,h,g,O);return D&&rc(D,h)<p?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):h}function Am(e,i){var n=e.intersections(i);return n.length&&Ga(n[0][0],1)&&n.shift(),n.length?n[0]:null}function Sm(e,i){var n=e.slice(),d=i.slice(),p=Am(e[e.length-1],i[0]);return p&&(n[e.length-1]=e[e.length-1].split(p[0])[0],d[0]=i[0].split(p[1])[1]),e.length>1&&i.length>1&&(p=Am(e[0],i[i.length-1]),p)?[[e[0].split(p[0])[0]],[i[i.length-1].split(p[1])[1]]]:[n,d]}function zy(e){for(var i,n=1;n<e.length;n+=1)i=Sm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=Sm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function Im(e,i){var n=e.inflectionPoints(),d,p,h,g;if(n.length===0)return[fs(e,i)];if(n.length===1||Ga(n[1],1))return h=e.split(n[0]),d=h[0],p=h[1],[fs(d,i),fs(p,i)];h=e.split(n[0]),d=h[0];var A=(n[1]-n[0])/(1-n[0]);return h=h[1].split(A),g=h[0],p=h[1],[fs(d,i),fs(g,i),fs(p,i)]}function bn(){}S([pr],bn),bn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},bn.prototype.processPath=function(e,i,n,d){var p=Ie.newElement();p.c=e.c;var h=e.length();e.c||(h-=1);var g,A,b,k=[];for(g=0;g<h;g+=1)b=te.shapeSegment(e,g),k.push(Im(b,i));if(!e.c)for(g=h-1;g>=0;g-=1)b=te.shapeSegmentInverted(e,g),k.push(Im(b,i));k=zy(k);var M=null,G=null;for(g=0;g<k.length;g+=1){var x=k[g];for(G&&(M=xm(p,G,x[0],n,d)),G=x[x.length-1],A=0;A<x.length;A+=1)b=x[A],M&&us(b.points[0],M)?p.setXYAt(b.points[1][0],b.points[1][1],"o",p.length()-1):p.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],p.length()),p.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],p.length()),M=b.points[3]}return k.length&&xm(p,G,k[0][0],n,d),p},bn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amount.v,A=this.miterLimit.v,b=this.lineJoin;if(g!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,b,A));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function _m(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",d="normal",p=i.length,h,g=0;g<p;g+=1)switch(h=i[g].toLowerCase(),h){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:e.fWeight||n}}var Eo=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,p=917631,h=917601,g=917626,A=65039,b=8205,k=127462,M=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var P=C.split(","),v,E=P.length,K=[];for(v=0;v<E;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&K.push(P[v]);return K.join(",")}function O(C,P){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var K=E.offsetWidth;return E.style.fontFamily=x(C)+", "+P,{node:E,w:K,parent:v}}function D(){var C,P=this.fonts.length,v,E,K=P;for(C=0;C<P;C+=1)this.fonts[C].loaded?K-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(K-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(K-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));K!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,P){var v=document.body&&P?"svg":"canvas",E,K=_m(C);if(v==="svg"){var z=Tt("text");z.style.fontSize="100px",z.setAttribute("font-family",C.fFamily),z.setAttribute("font-style",K.style),z.setAttribute("font-weight",K.weight),z.textContent="1",C.fClass?(z.style.fontFamily="inherit",z.setAttribute("class",C.fClass)):z.style.fontFamily=C.fFamily,P.appendChild(z),E=z}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=K.style+" "+K.weight+" 100px "+C.fFamily,E=at}function vt(Et){return v==="svg"?(E.textContent=Et,E.getComputedTextLength()):E.measureText(Et).width}return{measureText:vt}}function B(C,P){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(Ke){Ke.helper=R(Ke),Ke.cache={}}),this.fonts=C.list;return}var v=C.list,E,K=v.length,z=K;for(E=0;E<K;E+=1){var at=!0,vt,Et;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,z-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),vt.length>0&&(at=!1),at){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",P.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[E].fPath)!==-1&&(at=!1);if(at){var Dt=y("link");Dt.setAttribute("f-forigin",v[E].fOrigin),Dt.setAttribute("f-origin",v[E].origin),Dt.type="text/css",Dt.rel="stylesheet",Dt.href=v[E].fPath,document.body.appendChild(Dt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[E].fPath===vt[Et].src&&(at=!1);if(at){var ae=y("link");ae.setAttribute("f-forigin",v[E].fOrigin),ae.setAttribute("f-origin",v[E].origin),ae.setAttribute("rel","stylesheet"),ae.setAttribute("href",v[E].fPath),P.appendChild(ae)}}v[E].helper=R(v[E],P),v[E].cache={},this.fonts.push(v[E])}z===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(C){if(C){this.chars||(this.chars=[]);var P,v=C.length,E,K=this.chars.length,z;for(P=0;P<v;P+=1){for(E=0,z=!1;E<K;)this.chars[E].style===C[P].style&&this.chars[E].fFamily===C[P].fFamily&&this.chars[E].ch===C[P].ch&&(z=!0),E+=1;z||(this.chars.push(C[P]),K+=1)}}}function w(C,P,v){for(var E=0,K=this.chars.length;E<K;){if(this.chars[E].ch===C&&this.chars[E].style===P&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,P,v)),i}function T(C,P,v){var E=this.getFontByName(P),K=C;if(!E.cache[K]){var z=E.helper;if(C===" "){var at=z.measureText("|"+C+"|"),vt=z.measureText("||");E.cache[K]=(at-vt)/100}else E.cache[K]=z.measureText(C)/100}return E.cache[K]*v}function I(C){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===C)return this.fonts[P];P+=1}return this.fonts[0]}function N(C){var P=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(P=(v-55296)*1024+E-56320+65536)}return P}function $(C,P){var v=C.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function H(C){return C===b}function Y(C){return C===A}function it(C){var P=N(C);return P>=k&&P<=M}function yt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return n.indexOf(C)!==-1}function st(C,P){var v=N(C.substr(P,2));if(v!==d)return!1;var E=0;for(P+=2;E<5;){if(v=N(C.substr(P,2)),v<h||v>g)return!1;E+=1,P+=2}return N(C.substr(P,2))===p}function xt(){this.isLoaded=!0}var ct=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ct.isModifier=$,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=it,ct.isCombinedCharacter=ut,ct.isRegionalFlag=st,ct.isVariationSelector=Y,ct.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:B,getCharData:w,getFontByName:I,measureText:T,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=rt,ct}();function Cm(e){this.animationData=e}Cm.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function Vy(e){return new Cm(e)}function Ya(){}Ya.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var oc=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function By(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Uy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Hy(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Gy(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Ky(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Wy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Yy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function jy(){this.p={}}function wm(e,i){var n=e.ef||[];this.effectElements=[];var d,p=n.length,h;for(d=0;d<p;d+=1)h=new yn(n[d],i),this.effectElements.push(h)}function yn(e,i){this.init(e,i)}S([Ee],yn),yn.prototype.getValue=yn.prototype.iterateDynamicProperties,yn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,d=this.data.ef.length,p,h=this.data.ef;for(n=0;n<d;n+=1){switch(p=null,h[n].ty){case 0:p=new By(h[n],i,this);break;case 1:p=new Uy(h[n],i,this);break;case 2:p=new Hy(h[n],i,this);break;case 3:p=new Gy(h[n],i,this);break;case 4:case 7:p=new Yy(h[n],i,this);break;case 10:p=new Ky(h[n],i,this);break;case 11:p=new Wy(h[n],i,this);break;case 5:p=new wm(h[n],i,this);break;default:p=new jy(h[n],i,this);break}p&&this.effectElements.push(p)}};function Mi(){}Mi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=tm();if(i){var n=i("layer"),d=i("effects"),p=i("shape"),h=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=d.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=p(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=h(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=oc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,d){this.globalData=n,this.comp=d,this.data=i,this.layerId=He(),this.data.sr||(this.data.sr=1),this.effectsManager=new wm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Oi(){}Oi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var d,p=this.dynamicProperties.length;for(d=0;d<p;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function Ri(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}Ri.prototype.prepareFrame=function(){},S([Ya,Mi,Oi],Ri),Ri.prototype.getBaseElement=function(){return null},Ri.prototype.renderFrame=function(){},Ri.prototype.destroy=function(){},Ri.prototype.initExpressions=function(){var e=tm();if(e){var i=e("footage");this.layerInterface=i(this)}},Ri.prototype.getFootageData=function(){return this.footageData};function Ge(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ge.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},S([Ya,Mi,Oi],Ge),Ge.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Ge.prototype.show=function(){},Ge.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ge.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ge.prototype.resume=function(){this._canPlay=!0},Ge.prototype.setRate=function(e){this.audio.rate(e)},Ge.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ge.prototype.getBaseElement=function(){return null},Ge.prototype.destroy=function(){},Ge.prototype.sourceRectAtTime=function(){},Ge.prototype.initExpressions=function(){};function Ce(){}Ce.prototype.checkLayers=function(e){var i,n=this.layers.length,d;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(d=this.layers[i],d.ip-d.st<=e-this.layers[i].st&&d.op-d.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},Ce.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)}},Ce.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ce.prototype.createAudio=function(e){return new Ge(e,this.globalData,this)},Ce.prototype.createFootage=function(e){return new Ri(e,this.globalData,this)},Ce.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},Ce.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,d,p=this.layers.length;for(i=0;i<n;i+=1)for(d=0;d<p;){if(this.layers[d].id===e[i].id){this.layers[d]=e[i];break}d+=1}},Ce.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Ce.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ce.prototype.buildElementParenting=function(e,i,n){for(var d=this.elements,p=this.layers,h=0,g=p.length;h<g;)p[h].ind==i&&(!d[h]||d[h]===!0?(this.buildItem(h),this.addPendingElement(e)):(n.push(d[h]),d[h].setAsParent(),p[h].parent!==void 0?this.buildElementParenting(e,p[h].parent,n):e.setHierarchy(n))),h+=1},Ce.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Ce.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var d=this.createComp(e[i]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Ce.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},Ce.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var d,p=this.elements.length;for(d=0;d<p;d+=1)if(this.elements[d].data.nm===i){n=this.elements[d];break}}return e.length===0?n:n.getElementByPath(e)},Ce.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new Eo,this.globalData.slotManager=Vy(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 qy={TRANSFORM_EFFECT:"transformEFfect"};function vs(){}vs.prototype={initTransform:function(){var i=new _e;this.finalTransform={mProp:this.data.ks?Jd.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,n=this.finalTransform.mat,d=0,p=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<p;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),d=0;d<p;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),i=1;i<n;i+=1){var p=this.localTransforms[i].matrix;d.multiply(p)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var h=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)h*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=h}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(qy.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new _e;var n=0,d=i.length;for(n=0;n<d;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var d=!0,p=this.comp;d;)p.finalTransform?(p.data.hasMask&&n.splice(0,0,p.finalTransform),p=p.comp):d=!1;var h,g=n.length,A;for(h=0;h<g;h+=1)A=n[h].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new _e};function To(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,p,h=this.masksProperties?this.masksProperties.length:0;this.viewData=et(h),this.solidPath="";var g,A=this.masksProperties,b=0,k=[],M,G,x=He(),O,D,R,B,L="clipPath",w="clip-path";for(p=0;p<h;p+=1)if((A[p].mode!=="a"&&A[p].mode!=="n"||A[p].inv||A[p].o.k!==100||A[p].o.x)&&(L="mask",w="mask"),(A[p].mode==="s"||A[p].mode==="i")&&b===0?(O=Tt("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,g=Tt("path"),A[p].mode==="n")this.viewData[p]={op:nt.getProp(this.element,A[p].o,0,.01,this.element),prop:Ba.getShapeProp(this.element,A[p],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",A[p].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(A[p].x.k!==0?(L="mask",w="mask",B=nt.getProp(this.element,A[p].x,0,null,this.element),T=He(),D=Tt("filter"),D.setAttribute("id",T),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),d.appendChild(D),g.setAttribute("stroke",A[p].mode==="s"?"#000000":"#ffffff")):(R=null,B=null),this.storedData[p]={elem:g,x:B,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},A[p].mode==="i"){G=k.length;var I=Tt("g");for(M=0;M<G;M+=1)I.appendChild(k[M]);var N=Tt("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),I.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),k.length=0,k.push(I)}else k.push(g);A[p].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[p]={elem:g,lastPath:"",op:nt.getProp(this.element,A[p].o,0,.01,this.element),prop:Ba.getShapeProp(this.element,A[p],3),invRect:O},this.viewData[p].prop.k||this.drawPath(A[p],this.viewData[p].prop.v,this.viewData[p])}for(this.maskElement=Tt(L),h=k.length,p=0;p<h;p+=1)this.maskElement.appendChild(k[p]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}To.prototype.getMaskProperty=function(e){return this.viewData[e].prop},To.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var p=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),p.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},To.prototype.getMaskelement=function(){return this.maskElement},To.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},To.prototype.drawPath=function(e,i,n){var d=" M"+i.v[0][0]+","+i.v[0][1],p,h;for(h=i._length,p=1;p<h;p+=1)d+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[p][0]+","+i.i[p][1]+" "+i.v[p][0]+","+i.v[p][1];if(i.c&&h>1&&(d+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==d){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},To.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var En=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(d,p){var h=Tt("filter");return h.setAttribute("id",d),p!==!0&&(h.setAttribute("filterUnits","objectBoundingBox"),h.setAttribute("x","0%"),h.setAttribute("y","0%"),h.setAttribute("width","100%"),h.setAttribute("height","100%")),h}function n(){var d=Tt("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return e}(),km=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),ja={},Nm="filter_result_";function sc(e){var i,n="SourceGraphic",d=e.data.ef?e.data.ef.length:0,p=He(),h=En.createFilter(p,!0),g=0;this.filters=[];var A;for(i=0;i<d;i+=1){A=null;var b=e.data.ef[i].ty;if(ja[b]){var k=ja[b].effect;A=new k(h,e.effectsManager.effectElements[i],e,Nm+g,n),n=Nm+g,ja[b].countsAsEffect&&(g+=1)}A&&this.filters.push(A)}g&&(e.globalData.defs.appendChild(h),e.layerElement.setAttribute("filter","url("+f()+"#"+p+")")),this.filters.length&&e.addRenderableComponent(this)}sc.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},sc.prototype.getEffects=function(e){var i,n=this.filters.length,d=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&d.push(this.filters[i]);return d};function aS(e,i,n){ja[e]={effect:i,countsAsEffect:n}}function Tn(){}Tn.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=Tt("clipPath"),p=Tt("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var h=He();if(d.setAttribute("id",h),d.appendChild(p),this.globalData.defs.appendChild(d),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+h+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new To(this.data,this,this.globalData),this.renderableEffectsManager=new sc(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,d,p,h,g;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",n),A.setAttribute("mask-type",i===3?"luminance":"alpha"),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(h),this.globalData.defs.appendChild(A),!km.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),d=He(),p=En.createFilter(d),this.globalData.defs.appendChild(p),p.appendChild(En.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(h),A.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var k=Tt("g");b.appendChild(k),d=He(),p=En.createFilter(d);var M=Tt("feComponentTransfer");M.setAttribute("in","SourceGraphic"),p.appendChild(M);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),M.appendChild(G),this.globalData.defs.appendChild(p);var x=Tt("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(h),km.maskType||(b.setAttribute("mask-type","luminance"),p.appendChild(En.createAlphaToLuminanceFilter()),g=Tt("g"),k.appendChild(x),g.appendChild(this.layerElement),k.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function gs(){}gs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function xn(){}(function(){var e={initElement:function(n,d,p){this.initFrame(),this.initBaseData(n,d,p),this.initTransform(n,d,p),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};S([Ya,W(e)],xn)})();function An(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}S([Mi,vs,Tn,gs,Oi,xn],An),An.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},An.prototype.sourceRectAtTime=function(){return this.sourceRect};function Xy(e,i){this.elem=e,this.pos=i}function Lm(){}Lm.prototype={addShapeToModifiers:function(i){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var d;for(i=n-1;i>=0&&(d=this.shapeModifiers[i].processShapes(this._isFirstFrame),!d);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,d=0,p=n.length;d<p;){if(n[d].elem===i)return n[d].pos;d+=1}return 0},addProcessedElement:function(i,n){for(var d=this.processedElements,p=d.length;p;)if(p-=1,d[p].elem===i){d[p].pos=n;return}d.push(new Xy(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var Mm={1:"butt",2:"round",3:"square"},Om={1:"miter",2:"round",3:"bevel"};function Rm(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var d=0,p=e.length;d<p;){if(e[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Rm.prototype.setAsAnimated=function(){this._isAnimated=!0};function Pm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}Pm.prototype.reset=function(){this.d="",this._mdf=!1};function qa(e,i,n,d){this.elem=e,this.frameId=-1,this.dataProps=et(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",i.length?i.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var p,h=i.length||0,g;for(p=0;p<h;p+=1)g=nt.getProp(e,i[p].v,0,0,this),this.k=g.k||this.k,this.dataProps[p]={n:i[p].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}qa.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},S([Ee],qa);function Dm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new qa(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}S([Ee],Dm);function Fm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}S([Ee],Fm);function $m(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}S([Ee],$m);function Sn(e,i,n){this.data=i,this.c=Z("uint8c",i.p*4);var d=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=Z("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Sn.prototype.comparePoints=function(e,i){for(var n=0,d=this.o.length/2,p;n<d;){if(p=Math.abs(e[n*4]-e[i*4+n*2]),p>.01)return!1;n+=1}return!0},Sn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Sn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,d,p;for(i=0;i<n;i+=1)d=i%4===0?100:255,p=Math.round(this.prop.v[i]*d),this.c[i]!==p&&(this.c[i]=p,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)d=i%2===0?100:1,p=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==p&&(this.o[i-this.data.p*4]=p,this._omdf=!e);this._mdf=!e}},S([Ee],Sn);function bs(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}bs.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,Nt,this),this.g=new Sn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},bs.prototype.setGradientData=function(e,i){var n=He(),d=Tt(i.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var p=[],h,g,A;for(A=i.g.p*4,g=0;g<A;g+=4)h=Tt("stop"),d.appendChild(h),p.push(h);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=p},bs.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,p,h=Tt("mask"),g=Tt("path");h.appendChild(g);var A=He(),b=He();h.setAttribute("id",b);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",A),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),p=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var M=this.stops;for(d=e.g.p*4;d<p;d+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),M.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+A+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",Mm[e.lc||2]),g.setAttribute("stroke-linejoin",Om[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=h,this.ost=M,this.maskId=b,i.msElem=g}},S([Ee],bs);function zm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new qa(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}S([bs,Ee],zm);function Zy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function Qy(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Vm=function(i,n,d,p){if(n===0)return"";var h=i.o,g=i.i,A=i.v,b,k=" M"+p.applyToPointStringified(A[0][0],A[0][1]);for(b=1;b<n;b+=1)k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[b][0],g[b][1])+" "+p.applyToPointStringified(A[b][0],A[b][1]);return d&&n&&(k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[0][0],g[0][1])+" "+p.applyToPointStringified(A[0][0],A[0][1]),k+="z"),k},Jy=function(){var e=new _e,i=new _e,n={createRenderFunction:d};function d(G){switch(G.ty){case"fl":return A;case"gf":return k;case"gs":return b;case"st":return M;case"sh":case"el":case"rc":case"sr":return g;case"tr":return p;case"no":return h;default:return null}}function p(G,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function h(){}function g(G,x,O){var D,R,B,L,w,T,I=x.styles.length,N=x.lvl,$,H,Y,it;for(T=0;T<I;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(H=i.reset(),Y=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&Y>0;)L=x.transformers[it].mProps._mdf||L,Y-=1,it-=1;if(L)for(Y=N-x.styles[T].lvl,it=x.transformers.length-1;Y>0;)H.multiply(x.transformers[it].mProps.v),Y-=1,it-=1}else H=e;if($=x.sh.paths,R=$._length,L){for(B="",D=0;D<R;D+=1)w=$.shapes[D],w&&w._length&&(B+=Vm(w,w._length,w.c,H));x.caches[T]=B}else B=x.caches[T];x.styles[T].d+=G.hd===!0?"":B,x.styles[T]._mdf=L||x.styles[T]._mdf}}function A(G,x,O){var D=x.style;(x.c._mdf||O)&&D.pElem.setAttribute("fill","rgb("+ye(x.c.v[0])+","+ye(x.c.v[1])+","+ye(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){k(G,x,O),M(G,x,O)}function k(G,x,O){var D=x.gf,R=x.g._hasOpacity,B=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=G.t===1?"x1":"cx",I=T==="x1"?"y1":"cy";D.setAttribute(T,B[0]),D.setAttribute(I,B[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,B[0]),x.of.setAttribute(I,B[1]))}var N,$,H,Y;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(H=N.length,$=0;$<H;$+=1)Y=N[$],Y.setAttribute("offset",it[$*4]+"%"),Y.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var yt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,H=N.length,$=0;$<H;$+=1)Y=N[$],x.g._collapsable||Y.setAttribute("offset",yt[$*2]+"%"),Y.setAttribute("stop-opacity",yt[$*2+1])}if(G.t===1)(x.e._mdf||O)&&(D.setAttribute("x2",L[0]),D.setAttribute("y2",L[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)),D.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)));var st=Math.atan2(L[1]-B[1],L[0]-B[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=ut*xt,rt=Math.cos(st+x.a.v)*ct+B[0],C=Math.sin(st+x.a.v)*ct+B[1];D.setAttribute("fx",rt),D.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function M(G,x,O){var D=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&D.pElem.setAttribute("stroke","rgb("+ye(x.c.v[0])+","+ye(x.c.v[1])+","+ye(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function re(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}S([Mi,vs,Tn,Lm,gs,Oi,xn],re),re.prototype.initSecondaryElement=function(){},re.prototype.identityMatrix=new _e,re.prototype.buildExpressionInterface=function(){},re.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},re.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,d,p=this.stylesList.length,h,g=[],A=!1;for(d=0;d<p;d+=1){for(h=this.stylesList[d],A=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(h)!==-1&&(g.push(n),A=n._isAnimated||A);g.length>1&&A&&this.setShapesAsAnimated(g)}},re.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},re.prototype.createStyleElement=function(e,i){var n,d=new Pm(e,i),p=d.pElem;if(e.ty==="st")n=new Dm(this,e,d);else if(e.ty==="fl")n=new Fm(this,e,d);else if(e.ty==="gf"||e.ty==="gs"){var h=e.ty==="gf"?bs:zm;n=new h(this,e,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),p.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new $m(this,e,d));return(e.ty==="st"||e.ty==="gs")&&(p.setAttribute("stroke-linecap",Mm[e.lc||2]),p.setAttribute("stroke-linejoin",Om[e.lj||2]),p.setAttribute("fill-opacity","0"),e.lj===1&&p.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&p.setAttribute("fill-rule","evenodd"),e.ln&&p.setAttribute("id",e.ln),e.cl&&p.setAttribute("class",e.cl),e.bm&&(p.style["mix-blend-mode"]=oc(e.bm)),this.stylesList.push(d),this.addToAnimatedContents(e,n),n},re.prototype.createGroupElement=function(e){var i=new Zy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=oc(e.bm)),i},re.prototype.createTransformElement=function(e,i){var n=Jd.getTransformProperty(this,e,this),d=new Qy(n,n.o,i);return this.addToAnimatedContents(e,d),d},re.prototype.createShapeElement=function(e,i,n){var d=4;e.ty==="rc"?d=5:e.ty==="el"?d=6:e.ty==="sr"&&(d=7);var p=Ba.getShapeProp(this,e,d,this),h=new Rm(i,n,p);return this.shapes.push(h),this.addShapeToModifiers(h),this.addToAnimatedContents(e,h),h},re.prototype.addToAnimatedContents=function(e,i){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:Jy.createRenderFunction(e),element:i,data:e})},re.prototype.setElementStyles=function(e){var i=e.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},re.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},re.prototype.searchShapes=function(e,i,n,d,p,h,g){var A=[].concat(h),b,k=e.length-1,M,G,x=[],O=[],D,R,B;for(b=k;b>=0;b-=1){if(B=this.searchProcessedElement(e[b]),B?i[b]=n[B-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")B?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],p),e[b]._render&&i[b].style.pElem.parentNode!==d&&d.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!B)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,M=0;M<G;M+=1)i[b].prevViewData[M]=i[b].it[M];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,p+1,A,g),e[b]._render&&i[b].gr.parentNode!==d&&d.appendChild(i[b].gr)}else e[b].ty==="tr"?(B||(i[b]=this.createTransformElement(e[b],d)),D=i[b].transform,A.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(B||(i[b]=this.createShapeElement(e[b],A,p)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(B?(R=i[b],R.closed=!1):(R=Ni.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),O.push(R)):e[b].ty==="rp"&&(B?(R=i[b],R.closed=!0):(R=Ni.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(e[b],b+1)}for(k=x.length,b=0;b<k;b+=1)x[b].closed=!0;for(k=O.length,b=0;b<k;b+=1)O[b].closed=!0},re.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},re.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},re.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function nc(e,i,n,d,p,h){this.o=e,this.sw=i,this.sc=n,this.fc=d,this.m=p,this.p=h,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!d,m:!0,p:!0}}nc.prototype.update=function(e,i,n,d,p,h){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==p&&(this.m=p,this._mdf.m=!0,g=!0),h.length&&(this.p[0]!==h[0]||this.p[1]!==h[1]||this.p[4]!==h[4]||this.p[5]!==h[5]||this.p[12]!==h[12]||this.p[13]!==h[13])&&(this.p=h,this._mdf.p=!0,g=!0),g};function Re(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)}Re.prototype.defaultBoxWidth=[0,0],Re.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},Re.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Re.prototype.searchProperty=function(){return this.searchKeyframes()},Re.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Re.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Re.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,p=this.effectsSequence.length,h=e||this.data.d.k[this.keysIndex].s;for(d=0;d<p;d+=1)n!==this.keysIndex?h=this.effectsSequence[d](h,h.t):h=this.effectsSequence[d](this.currentData,h.t);i!==h&&this.setCurrentData(h),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Re.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,d=e.length;n<=d-1&&!(n===d-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Re.prototype.buildFinalText=function(e){for(var i=[],n=0,d=e.length,p,h,g=!1,A=!1,b="";n<d;)g=A,A=!1,p=e.charCodeAt(n),b=e.charAt(n),Eo.isCombinedCharacter(p)?g=!0:p>=55296&&p<=56319?Eo.isRegionalFlag(e,n)?b=e.substr(n,14):(h=e.charCodeAt(n+1),h>=56320&&h<=57343&&(Eo.isModifier(p,h)?(b=e.substr(n,2),g=!0):Eo.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):p>56319?(h=e.charCodeAt(n+1),Eo.isVariationSelector(p)&&(g=!0)):Eo.isZeroWidthJoiner(p)&&(g=!0,A=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},Re.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,d=[],p,h,g,A=0,b,k=n.m.g,M=0,G=0,x=0,O=[],D=0,R=0,B,L,w=i.getFontByName(e.f),T,I=0,N=_m(w);e.fWeight=N.weight,e.fStyle=N.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),h=e.finalText.length,e.finalLineHeight=e.lh;var $=e.tr/1e3*e.finalSize,H;if(e.sz)for(var Y=!0,it=e.sz[0],yt=e.sz[1],ut,st;Y;){st=this.buildFinalText(e.t),ut=0,D=0,h=st.length,$=e.tr/1e3*e.finalSize;var xt=-1;for(p=0;p<h;p+=1)H=st[p].charCodeAt(0),g=!1,st[p]===" "?xt=p:(H===13||H===3)&&(D=0,g=!0,ut+=e.finalLineHeight||e.finalSize*1.2),i.chars?(T=i.getCharData(st[p],w.fStyle,w.fFamily),I=g?0:T.w*e.finalSize/100):I=i.measureText(st[p],e.f,e.finalSize),D+I>it&&st[p]!==" "?(xt===-1?h+=1:p=xt,ut+=e.finalLineHeight||e.finalSize*1.2,st.splice(p,xt===p?1:0,"\r"),xt=-1,D=0):(D+=I,D+=$);ut+=w.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<ut?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,h=e.finalText.length,Y=!1)}D=-$,I=0;var ct=0,rt;for(p=0;p<h;p+=1)if(g=!1,rt=e.finalText[p],H=rt.charCodeAt(0),H===13||H===3?(ct=0,O.push(D),R=D>R?D:R,D=-2*$,b="",g=!0,x+=1):b=rt,i.chars?(T=i.getCharData(rt,w.fStyle,i.getFontByName(e.f).fFamily),I=g?0:T.w*e.finalSize/100):I=i.measureText(b,e.f,e.finalSize),rt===" "?ct+=I+$:(D+=I+$+ct,ct=0),d.push({l:I,an:I,add:M,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),k==2){if(M+=I,b===""||b===" "||p===h-1){for((b===""||b===" ")&&(M-=I);G<=p;)d[G].an=M,d[G].ind=A,d[G].extra=I,G+=1;A+=1,M=0}}else if(k==3){if(M+=I,b===""||p===h-1){for(b===""&&(M-=I);G<=p;)d[G].an=M,d[G].ind=A,d[G].extra=I,G+=1;M=0,A+=1}}else d[A].ind=A,d[A].extra=0,A+=1;if(e.l=d,R=D>R?D:R,O.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=O;var C=n.a,P,v;L=C.length;var E,K,z=[];for(B=0;B<L;B+=1){for(P=C[B],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),K=0,E=P.s.b,p=0;p<h;p+=1)v=d[p],v.anIndexes[B]=K,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||p==h-1)||E==4&&(v.n||p==h-1))&&(P.s.rn===1&&z.push(K),K+=1);n.a[B].s.totalChars=K;var at=-1,vt;if(P.s.rn===1)for(p=0;p<h;p+=1)v=d[p],at!=v.anIndexes[B]&&(at=v.anIndexes[B],vt=z.splice(Math.floor(Math.random()*z.length),1)[0]),v.anIndexes[B]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=w.ascent*e.finalSize/100},Re.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Re.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Re.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Re.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var tE=function(){var e=Math.max,i=Math.min,n=Math.floor;function d(h,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=h,this.comp=h.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(h),this.s=nt.getProp(h,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(h,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(h,g.o||{k:0},0,0,this),this.xe=nt.getProp(h,g.xe||{k:0},0,0,this),this.ne=nt.getProp(h,g.ne||{k:0},0,0,this),this.sm=nt.getProp(h,g.sm||{k:100},0,0,this),this.a=nt.getProp(h,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,b=0,k=1,M=1;this.ne.v>0?A=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var G=mn.getBezierEasing(A,b,k,M).get,x=0,O=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===O?x=g>=D?1:0:x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===3)D===O?x=g>=D?0:1:x=1-e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===4)D===O?x=0:(x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===O)x=0;else{var B=D-O;g=i(e(0,g+.5-O),D-O);var L=-B/2+g,w=B/2;x=Math.sqrt(1-L*L/(w*w))}x=G(x)}else R===6?(D===O?x=0:(g=i(e(0,g+.5-O),D-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-O)))/2),x=G(x)):(g>=n(O)&&(g-O<0?x=e(0,i(i(D,1)-(O-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var I=.5-T*.5;x<I?x=0:(x=(x-I)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var A=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/A,k=this.s.v/A+b,M=this.e.v/A+b;if(k>M){var G=k;k=M,M=G}this.finalS=k,this.finalE=M}},S([Ee],d);function p(h,g,A){return new d(h,g,A)}return{getTextSelectorProp:p}}();function eE(e,i,n){var d={propType:!1},p=nt.getProp,h=i.a;this.a={r:h.r?p(e,h.r,0,Nt,n):d,rx:h.rx?p(e,h.rx,0,Nt,n):d,ry:h.ry?p(e,h.ry,0,Nt,n):d,sk:h.sk?p(e,h.sk,0,Nt,n):d,sa:h.sa?p(e,h.sa,0,Nt,n):d,s:h.s?p(e,h.s,1,.01,n):d,a:h.a?p(e,h.a,1,0,n):d,o:h.o?p(e,h.o,0,.01,n):d,p:h.p?p(e,h.p,1,0,n):d,sw:h.sw?p(e,h.sw,0,0,n):d,sc:h.sc?p(e,h.sc,1,0,n):d,fc:h.fc?p(e,h.fc,1,0,n):d,fh:h.fh?p(e,h.fh,0,0,n):d,fs:h.fs?p(e,h.fs,0,.01,n):d,fb:h.fb?p(e,h.fb,0,.01,n):d,t:h.t?p(e,h.t,0,0,n):d},this.s=tE.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function xo(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}xo.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,d=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new eE(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},xo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,p=this._textData,h=this.mHelper,g=this._renderType,A=this.renderedLetters.length,b,k,M,G,x=e.l,O,D,R,B,L,w,T,I,N,$,H,Y,it,yt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var xt;for(Y=0,M=0;M<G;M+=1)xt=$r.buildBezierData(st.v[M],st.v[M+1],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[M+1][0]-st.v[M+1][0],st.i[M+1][1]-st.v[M+1][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),Y+=xt.segmentLength;M=G,ut.v.c&&(xt=$r.buildBezierData(st.v[M],st.v[0],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),Y+=xt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,D=this._pathData.f.v,T=0,w=1,B=0,L=!0,$=O.segments,D<0&&ut.v.c)for(O.tLength<Math.abs(D)&&(D=-Math.abs(D)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;D<0;)D+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,I=N[w-1],R=N[w],H=R.partialLength}G=x.length,b=0,k=0;var ct=e.finalSize*1.2*.714,rt=!0,C,P,v,E,K;E=d.length;var z,at=-1,vt,Et,Pt,Dt=D,ae=T,Ke=w,Vr=-1,We,Te,rr,zt,ht,si,Di,ni,Br="",ai=this.defaultPropsArray,li;if(e.j===2||e.j===1){var Ye=0,Fi=0,$i=e.j===2?-.5:-1,wr=0,zi=!0;for(M=0;M<G;M+=1)if(x[M].n){for(Ye&&(Ye+=Fi);wr<M;)x[wr].animatorJustifyOffset=Ye,wr+=1;Ye=0,zi=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(zi&&e.j===2&&(Fi+=C.t.v*$i),P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?Ye+=C.t.v*z[0]*$i:Ye+=C.t.v*z*$i);zi=!1}for(Ye&&(Ye+=Fi);wr<M;)x[wr].animatorJustifyOffset=Ye,wr+=1}for(M=0;M<G;M+=1){if(h.reset(),We=1,x[M].n)b=0,k+=e.yOffset,k+=rt?1:0,D=Dt,rt=!1,this._hasMaskedPath&&(T=ae,w=Ke,N=$[T].points,I=N[w-1],R=N[w],H=R.partialLength,B=0),Br="",ni="",si="",li="",ai=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Vr!==x[M].line){switch(e.j){case 1:D+=Y-e.lineWidths[x[M].line];break;case 2:D+=(Y-e.lineWidths[x[M].line])/2;break;default:break}Vr=x[M].line}at!==x[M].ind&&(x[at]&&(D+=x[at].extra),D+=x[M].an/2,at=x[M].ind),D+=n[0]*x[M].an*.005;var kr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?kr+=C.p.v[0]*z[0]:kr+=C.p.v[0]*z),C.a.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?kr+=C.a.v[0]*z[0]:kr+=C.a.v[0]*z);for(L=!0,this._pathData.a.v&&(D=x[0].an*.5+(Y-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);L;)B+H>=D+kr||!N?(it=(D+kr-B)/R.partialLength,Et=I.point[0]+(R.point[0]-I.point[0])*it,Pt=I.point[1]+(R.point[1]-I.point[1])*it,h.translate(-n[0]*x[M].an*.005,-(n[1]*ct)*.01),L=!1):N&&(B+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ut.v.c?(w=0,T=0,N=$[T].points):(B-=R.partialLength,N=null)),N&&(I=R,R=N[w],H=R.partialLength));vt=x[M].an/2-x[M].add,h.translate(-vt,0,0)}else vt=x[M].an/2-x[M].add,h.translate(-vt,0,0),h.translate(-n[0]*x[M].an*.005,-n[1]*ct*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?z.length?D+=C.t.v*z[0]:D+=C.t.v*z:z.length?b+=C.t.v*z[0]:b+=C.t.v*z));for(e.strokeWidthAnim&&(rr=e.sw||0),e.strokeColorAnim&&(e.sc?Te=[e.sc[0],e.sc[1],e.sc[2]]:Te=[0,0,0]),e.fillColorAnim&&e.fc&&(zt=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?h.translate(-C.a.v[0]*z[0],-C.a.v[1]*z[1],C.a.v[2]*z[2]):h.translate(-C.a.v[0]*z,-C.a.v[1]*z,C.a.v[2]*z));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?h.scale(1+(C.s.v[0]-1)*z[0],1+(C.s.v[1]-1)*z[1],1):h.scale(1+(C.s.v[0]-1)*z,1+(C.s.v[1]-1)*z,1));for(v=0;v<E;v+=1){if(C=d[v].a,P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),C.sk.propType&&(z.length?h.skewFromAxis(-C.sk.v*z[0],C.sa.v*z[1]):h.skewFromAxis(-C.sk.v*z,C.sa.v*z)),C.r.propType&&(z.length?h.rotateZ(-C.r.v*z[2]):h.rotateZ(-C.r.v*z)),C.ry.propType&&(z.length?h.rotateY(C.ry.v*z[1]):h.rotateY(C.ry.v*z)),C.rx.propType&&(z.length?h.rotateX(C.rx.v*z[0]):h.rotateX(C.rx.v*z)),C.o.propType&&(z.length?We+=(C.o.v*z[0]-We)*z[0]:We+=(C.o.v*z-We)*z),e.strokeWidthAnim&&C.sw.propType&&(z.length?rr+=C.sw.v*z[0]:rr+=C.sw.v*z),e.strokeColorAnim&&C.sc.propType)for(ht=0;ht<3;ht+=1)z.length?Te[ht]+=(C.sc.v[ht]-Te[ht])*z[0]:Te[ht]+=(C.sc.v[ht]-Te[ht])*z;if(e.fillColorAnim&&e.fc){if(C.fc.propType)for(ht=0;ht<3;ht+=1)z.length?zt[ht]+=(C.fc.v[ht]-zt[ht])*z[0]:zt[ht]+=(C.fc.v[ht]-zt[ht])*z;C.fh.propType&&(z.length?zt=Jp(zt,C.fh.v*z[0]):zt=Jp(zt,C.fh.v*z)),C.fs.propType&&(z.length?zt=Zp(zt,C.fs.v*z[0]):zt=Zp(zt,C.fs.v*z)),C.fb.propType&&(z.length?zt=Qp(zt,C.fb.v*z[0]):zt=Qp(zt,C.fb.v*z))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),this._hasMaskedPath?z.length?h.translate(0,C.p.v[1]*z[0],-C.p.v[2]*z[1]):h.translate(0,C.p.v[1]*z,-C.p.v[2]*z):z.length?h.translate(C.p.v[0]*z[0],C.p.v[1]*z[1],-C.p.v[2]*z[2]):h.translate(C.p.v[0]*z,C.p.v[1]*z,-C.p.v[2]*z));if(e.strokeWidthAnim&&(si=rr<0?0:rr),e.strokeColorAnim&&(Di="rgb("+Math.round(Te[0]*255)+","+Math.round(Te[1]*255)+","+Math.round(Te[2]*255)+")"),e.fillColorAnim&&e.fc&&(ni="rgb("+Math.round(zt[0]*255)+","+Math.round(zt[1]*255)+","+Math.round(zt[2]*255)+")"),this._hasMaskedPath){if(h.translate(0,-e.ls),h.translate(0,n[1]*ct*.01+k,0),this._pathData.p.v){yt=(R.point[1]-I.point[1])/(R.point[0]-I.point[0]);var Ao=Math.atan(yt)*180/Math.PI;R.point[0]<I.point[0]&&(Ao+=180),h.rotate(-Ao*Math.PI/180)}h.translate(Et,Pt,0),D-=n[0]*x[M].an*.005,x[M+1]&&at!==x[M+1].ind&&(D+=x[M].an/2,D+=e.tr*.001*e.finalSize)}else{switch(h.translate(b,k,0),e.ps&&h.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line]),0,0);break;case 2:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line])/2,0,0);break;default:break}h.translate(0,-e.ls),h.translate(vt,0,0),h.translate(n[0]*x[M].an*.005,n[1]*ct*.01,0),b+=x[M].l+e.tr*.001*e.finalSize}g==="html"?Br=h.toCSS():g==="svg"?Br=h.to2dCSS():ai=[h.props[0],h.props[1],h.props[2],h.props[3],h.props[4],h.props[5],h.props[6],h.props[7],h.props[8],h.props[9],h.props[10],h.props[11],h.props[12],h.props[13],h.props[14],h.props[15]],li=We}A<=M?(K=new nc(li,si,Di,ni,Br,ai),this.renderedLetters.push(K),A+=1,this.lettersChangedFlag=!0):(K=this.renderedLetters[M],this.lettersChangedFlag=K.update(li,si,Di,ni,Br,ai)||this.lettersChangedFlag)}}},xo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},xo.prototype.mHelper=new _e,xo.prototype.defaultPropsArray=[],S([Ee],xo);function mr(){}mr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new Re(this,e.t,this.dynamicProperties),this.textAnimator=new xo(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},mr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},mr.prototype.createPathShape=function(e,i){var n,d=i.length,p,h="";for(n=0;n<d;n+=1)i[n].ty==="sh"&&(p=i[n].ks.k,h+=Vm(p,p.i.length,!0,e));return h},mr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},mr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},mr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},mr.prototype.applyTextPropertiesToMatrix=function(e,i,n,d,p){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(d,p,0)},mr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},mr.prototype.emptyProp=new nc,mr.prototype.destroy=function(){},mr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var rE={shapes:[]};function ii(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}S([Mi,vs,Tn,gs,Oi,xn,mr],ii),ii.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ii.prototype.buildTextContents=function(e){for(var i=0,n=e.length,d=[],p="";i<n;)e[i]==="\r"||e[i]===""?(d.push(p),p=""):p+=e[i],i+=1;return d.push(p),d},ii.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=i,d.s.k[1]=i)}}return e},ii.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=et(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var p=n.fWeight,h=n.fStyle;this.layerElement.setAttribute("font-style",h),this.layerElement.setAttribute("font-weight",p)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],A=!!this.globalData.fontManager.chars;i=g.length;var b,k=this.mHelper,M="",G=this.data.singleShape,x=0,O=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!A&&!n.sz){var B=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}B.setAttribute("text-anchor",L),B.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(i=w.length,O=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=w[e],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",B.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(B)}else{var T=this.textSpans.length,I;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(b=T>e?this.textSpans[e].span:Tt(A?"g":"text"),T<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,A){var N=Tt("g");b.appendChild(N),this.textSpans[e].childSpan=N}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(k.reset(),G&&(g[e].n&&(x=-R,O+=n.yOffset,O+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,k,g[e].line,x,O),x+=g[e].l||0,x+=R),A){I=this.globalData.fontManager.getCharData(n.finalText[e],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(I.t===1)$=new In(I.data,this.globalData,this);else{var H=rE;I.data&&I.data.shapes&&(H=this.buildShapeData(I.data,n.finalSize)),$=new re(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=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[e].childSpan.appendChild($.layerElement),I.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",M)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ii.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},ii.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ii.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;i=d.length;var p,h,g;for(e=0;e<i;e+=1)d[e].n||(p=n[e],h=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),p._mdf.m&&h.setAttribute("transform",p.m),p._mdf.o&&h.setAttribute("opacity",p.o),p._mdf.sw&&h.setAttribute("stroke-width",p.sw),p._mdf.sc&&h.setAttribute("stroke",p.sc),p._mdf.fc&&h.setAttribute("fill",p.fc))}};function ac(e,i,n){this.initElement(e,i,n)}S([An],ac),ac.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Pi(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Pi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Pi.prototype.renderFrame=function(){},Pi.prototype.getBaseElement=function(){return null},Pi.prototype.destroy=function(){},Pi.prototype.sourceRectAtTime=function(){},Pi.prototype.hide=function(){},S([Mi,vs,gs,Oi],Pi);function he(){}S([Ce],he),he.prototype.createNull=function(e){return new Pi(e,this.globalData,this)},he.prototype.createShape=function(e){return new re(e,this.globalData,this)},he.prototype.createText=function(e){return new ii(e,this.globalData,this)},he.prototype.createImage=function(e){return new An(e,this.globalData,this)},he.prototype.createSolid=function(e){return new ac(e,this.globalData,this)},he.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),d=Tt("rect");d.setAttribute("width",e.w),d.setAttribute("height",e.h),d.setAttribute("x",0),d.setAttribute("y",0);var p=He();n.setAttribute("id",p),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")"),i.appendChild(n),this.layers=e.layers,this.elements=et(e.layers.length)},he.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},he.prototype.updateContainerSize=function(){},he.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},he.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,Ra()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var d="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var p=i[d],h=p.getMatte(this.layers[e].tt);n.setMatte(h)}}}},he.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var d="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,p=this.elements[d],h=p.getMatte(this.layers[i].tt);e.setMatte(h);break}i+=1}}},he.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},he.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var d=0,p;d<i;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(p=this.elements[d].getBaseElement()),d+=1;p?this.layerElement.insertBefore(n,p):this.layerElement.appendChild(n)}},he.prototype.hide=function(){this.layerElement.style.display="none"},he.prototype.show=function(){this.layerElement.style.display="block"};function oi(){}S([Mi,vs,gs,Oi,xn],oi),oi.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},oi.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},oi.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},oi.prototype.setElements=function(e){this.elements=e},oi.prototype.getElements=function(){return this.elements},oi.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},oi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function In(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}S([he,oi,Tn],In),In.prototype.createComp=function(e){return new In(e,this.globalData,this)};function lc(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var d=Tt("title"),p=He();d.setAttribute("id",p),d.textContent=i.title,this.svgElement.appendChild(d),n+=p}if(i&&i.description){var h=Tt("desc"),g=He();h.setAttribute("id",g),h.textContent=i.description,this.svgElement.appendChild(h),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var A=Tt("defs");this.svgElement.appendChild(A);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return S([he],lc),lc.prototype.createComp=function(e){return new In(e,this.globalData,this)},py("svg",lc),Ni.registerModifier("tm",Cr),Ni.registerModifier("pb",un),Ni.registerModifier("rp",zr),Ni.registerModifier("rd",fn),Ni.registerModifier("zz",gn),Ni.registerModifier("op",bn),Ft})});var Ja=globalThis,tl=Ja.ShadowRoot&&(Ja.ShadyCSS===void 0||Ja.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cc=Symbol(),Um=new WeakMap,_n=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==cc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(tl&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Um.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Um.set(t,o))}return o}toString(){return this.cssText}},Hm=a=>new _n(typeof a=="string"?a:a+"",void 0,cc),U=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,l)=>r+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[l+1],a[0]);return new _n(t,a,cc)},hc=(a,o)=>{if(tl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Ja.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},el=tl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Hm(t)})(a):a;var{is:cE,defineProperty:hE,getOwnPropertyDescriptor:pE,getOwnPropertyNames:mE,getOwnPropertySymbols:uE,getPrototypeOf:fE}=Object,Vi=globalThis,Gm=Vi.trustedTypes,vE=Gm?Gm.emptyScript:"",pc=Vi.reactiveElementPolyfillSupport,Cn=(a,o)=>a,wn={toAttribute(a,o){switch(o){case Boolean:a=a?vE:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},rl=(a,o)=>!cE(a,o),Km={attribute:!0,type:String,converter:wn,reflect:!1,hasChanged:rl},Wm,Ym;(Wm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ym=Vi.litPropertyMetadata)!=null||(Vi.litPropertyMetadata=new WeakMap);var di=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Km){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&hE(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var c;let{get:s,set:l}=(c=pE(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let y=s==null?void 0:s.call(this);l.call(this,f),this.requestUpdate(o,y,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Km}static _$Ei(){if(this.hasOwnProperty(Cn("elementProperties")))return;let o=fE(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cn("properties"))){let t=this.properties,r=[...mE(t),...uE(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(el(s))}else o!==void 0&&t.push(el(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return hc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var l;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let c=(((l=r.converter)==null?void 0:l.toAttribute)!==void 0?r.converter:wn).toAttribute(t,r.type);this._$Em=o,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(o,t){var l;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:wn;this._$Em=s,this[s]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:rl)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},jm;di.elementStyles=[],di.shadowRootOptions={mode:"open"},di[Cn("elementProperties")]=new Map,di[Cn("finalized")]=new Map,pc==null||pc({ReactiveElement:di}),((jm=Vi.reactiveElementVersions)!=null?jm:Vi.reactiveElementVersions=[]).push("2.0.4");var Nn=globalThis,il=Nn.trustedTypes,qm=il?il.createPolicy("lit-html",{createHTML:a=>a}):void 0,fc="$lit$",ci=`lit$${Math.random().toFixed(9).slice(2)}$`,vc="?"+ci,gE=`<${vc}>`,_o=document,Ln=()=>_o.createComment(""),Mn=a=>a===null||typeof a!="object"&&typeof a!="function",gc=Array.isArray,ru=a=>gc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",mc=`[
|
|
1
|
+
"use strict";(()=>{var oE=Object.create;var dc=Object.defineProperty;var Bm=Object.getOwnPropertyDescriptor;var sE=Object.getOwnPropertyNames;var nE=Object.getPrototypeOf,aE=Object.prototype.hasOwnProperty;var lE=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var dE=(a,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of sE(o))!aE.call(a,s)&&s!==t&&dc(a,s,{get:()=>o[s],enumerable:!(r=Bm(o,s))||r.enumerable});return a};var cE=(a,o,t)=>(t=a!=null?oE(nE(a)):{},dE(o||!a||!a.__esModule?dc(t,"default",{value:a,enumerable:!0}):t,a));var m=(a,o,t,r)=>{for(var s=r>1?void 0:r?Bm(o,t):o,l=a.length-1,c;l>=0;l--)(c=a[l])&&(s=(r?c(o,t,s):c(s))||s);return r&&s&&dc(o,t,s),s};var Zu=lE((Gn,_l)=>{typeof navigator<"u"&&function(a,o){typeof Gn=="object"&&typeof _l<"u"?_l.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(Gn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},l=function(){return t},c=function(i){o=i},f=function(){return o};function y(e){return document.createElement(e)}function A(e,i){var n,d=e.length,p;for(n=0;n<d;n+=1){p=e[n].prototype;for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(i.prototype[h]=p[h])}}function F(e,i){return Object.getOwnPropertyDescriptor(e,i)}function W(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,p=this.audios.length;for(d=0;d<p;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Z=function(){function e(n,d){var p=0,h=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(p=0;p<d;p+=1)h.push(g);return h}function i(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):e(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function et(e){return Array.apply(null,{length:e})}function lt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(n){return typeof n}:lt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lt(e)}var dt=!0,gt=null,It=null,wt="",Zt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Gt=!1,Qt=Math.pow,se=Math.sqrt,ye=Math.floor,Sr=Math.max,Ue=Math.min,ar={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,n=e.length;for(i=0;i<n;i+=1)ar[e[i]]=Math[e[i]]})();function Ir(){return{}}ar.random=Math.random,ar.abs=function(e){var i=lt(e);if(i==="object"&&e.length){var n=et(e.length),d,p=e.length;for(d=0;d<p;d+=1)n[d]=Math.abs(e[d]);return n}return Math.abs(e)};var _r=150,Nt=Math.PI/180,Ie=.5519;function lr(e){Gt=!!e}function dr(e){return Gt?Math.round(e):e}function cr(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function hr(e,i,n,d){this.type=e,this.currentTime=i,this.totalTime=n,this.direction=d<0?-1:1}function Oa(e,i){this.type=e,this.direction=i<0?-1:1}function jp(e,i,n,d){this.type=e,this.currentLoop=n,this.totalLoops=i,this.direction=d<0?-1:1}function qp(e,i,n){this.type=e,this.firstFrame=i,this.totalFrames=n}function Xp(e,i){this.type=e,this.target=i}function oy(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function sy(e){this.type="configError",this.nativeError=e}function iS(e,i){this.type=e,this.nativeError=i}var He=function(){var e=0;return function(){return e+=1,wt+"__lottie_element_"+e}}();function Xd(e,i,n){var d,p,h,g,S,b,k,M;switch(g=Math.floor(e*6),S=e*6-g,b=n*(1-i),k=n*(1-S*i),M=n*(1-(1-S)*i),g%6){case 0:d=n,p=M,h=b;break;case 1:d=k,p=n,h=b;break;case 2:d=b,p=n,h=M;break;case 3:d=b,p=k,h=n;break;case 4:d=M,p=b,h=n;break;case 5:d=n,p=b,h=k;break;default:break}return[d,p,h]}function Zd(e,i,n){var d=Math.max(e,i,n),p=Math.min(e,i,n),h=d-p,g,S=d===0?0:h/d,b=d/255;switch(d){case p:g=0;break;case e:g=i-n+h*(i<n?6:0),g/=6*h;break;case i:g=n-e+h*2,g/=6*h;break;case n:g=e-i+h*4,g/=6*h;break;default:break}return[g,S,b]}function Zp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[1]+=i,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Xd(n[0],n[1],n[2])}function Qp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[2]+=i,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Xd(n[0],n[1],n[2])}function Jp(e,i){var n=Zd(e[0]*255,e[1]*255,e[2]*255);return n[0]+=i/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Xd(n[0],n[1],n[2])}var oS=function(){var e=[],i,n;for(i=0;i<256;i+=1)n=i.toString(16),e[i]=n.length===1?"0"+n:n;return function(d,p,h){return d<0&&(d=0),p<0&&(p=0),h<0&&(h=0),"#"+e[d]+e[p]+e[h]}}(),ny=function(i){dt=!!i},ay=function(){return dt},ly=function(i){gt=i},Ra=function(){return gt},sS=function(i){It=i},tm=function(){return It},Pa=function(i){_r=i},dn=function(){return _r},dy=function(i){wt=i},nS=function(){return wt};function Tt(e){return document.createElementNS(a,e)}function Da(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Da=function(n){return typeof n}:Da=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Da(e)}var cn=function(){var e=1,i=[],n,d,p={onmessage:function(){},postMessage:function(O){n({data:O})}},h={postMessage:function(O){p.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(O);return new Worker(D)}return n=x,p}function S(){d||(d=g(function(O){function D(){function B(rt,C){var P,v,E=rt.length,K,z,at,vt;for(v=0;v<E;v+=1)if(P=rt[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for(z=Et.length,K=0;K<z;K+=1)if(Et[K].pt.k.i)N(Et[K].pt.k);else for(vt=Et[K].pt.k.length,at=0;at<vt;at+=1)Et[K].pt.k[at].s&&N(Et[K].pt.k[at].s[0]),Et[K].pt.k[at].e&&N(Et[K].pt.k[at].e[0])}P.ty===0?(P.layers=T(P.refId,C),B(P.layers,C)):P.ty===4?I(P.shapes):P.ty===5&&xt(P)}}function L(rt,C){if(rt){var P=0,v=rt.length;for(P=0;P<v;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,C),B(rt[P].data.layers,C))}}function w(rt,C){for(var P=0,v=C.length;P<v;){if(C[P].id===rt)return C[P];P+=1}return null}function T(rt,C){var P=w(rt,C);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function I(rt){var C,P=rt.length,v,E;for(C=P-1;C>=0;C-=1)if(rt[C].ty==="sh")if(rt[C].ks.k.i)N(rt[C].ks.k);else for(E=rt[C].ks.k.length,v=0;v<E;v+=1)rt[C].ks.k[v].s&&N(rt[C].ks.k[v].s[0]),rt[C].ks.k[v].e&&N(rt[C].ks.k[v].e[0]);else rt[C].ty==="gr"&&I(rt[C].it)}function N(rt){var C,P=rt.i.length;for(C=0;C<P;C+=1)rt.i[C][0]+=rt.v[C][0],rt.i[C][1]+=rt.v[C][1],rt.o[C][0]+=rt.v[C][0],rt.o[C][1]+=rt.v[C][1]}function $(rt,C){var P=C?C.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var H=function(){var rt=[4,4,14];function C(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),Y=function(){var rt=[4,7,99];return function(C){if(C.chars&&!$(rt,C.v)){var P,v=C.chars.length;for(P=0;P<v;P+=1){var E=C.chars[P];E.data&&E.data.shapes&&(I(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},C.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function C(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),yt=function(){var rt=[4,1,9];function C(v){var E,K=v.length,z,at;for(E=0;E<K;E+=1)if(v[E].ty==="gr")C(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(at=v[E].c.k.length,z=0;z<at;z+=1)v[E].c.k[z].s&&(v[E].c.k[z].s[0]/=255,v[E].c.k[z].s[1]/=255,v[E].c.k[z].s[2]/=255,v[E].c.k[z].s[3]/=255),v[E].c.k[z].e&&(v[E].c.k[z].e[0]/=255,v[E].c.k[z].e[1]/=255,v[E].c.k[z].e[2]/=255,v[E].c.k[z].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===4&&C(v[E].shapes)}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function C(v){var E,K=v.length,z,at;for(E=K-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(at=v[E].ks.k.length,z=0;z<at;z+=1)v[E].ks.k[z].s&&(v[E].ks.k[z].s[0].c=v[E].closed),v[E].ks.k[z].e&&(v[E].ks.k[z].e[0].c=v[E].closed);else v[E].ty==="gr"&&C(v[E].it)}function P(v){var E,K,z=v.length,at,vt,Et,Pt;for(K=0;K<z;K+=1){if(E=v[K],E.hasMask){var Dt=E.masksProperties;for(vt=Dt.length,at=0;at<vt;at+=1)if(Dt[at].pt.k.i)Dt[at].pt.k.c=Dt[at].cl;else for(Pt=Dt[at].pt.k.length,Et=0;Et<Pt;Et+=1)Dt[at].pt.k[Et].s&&(Dt[at].pt.k[Et].s[0].c=Dt[at].cl),Dt[at].pt.k[Et].e&&(Dt[at].pt.k[Et].e[0].c=Dt[at].cl)}E.ty===4&&C(E.shapes)}}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}();function st(rt){rt.__complete||(yt(rt),H(rt),Y(rt),it(rt),ut(rt),B(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function xt(rt){rt.t.a.length===0&&"m"in rt.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=Y,ct.checkPathProperties=it,ct.checkShapes=ut,ct.completeLayers=B,ct}if(h.dataManager||(h.dataManager=D()),h.assetLoader||(h.assetLoader=function(){function B(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&Da(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,I,N){var $,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)$=B(H),I($);else try{$=B(H),I($)}catch(Y){N&&N(Y)}};try{H.open(["G","E","T"].join(""),w,!0)}catch{H.open(["G","E","T"].join(""),T+"/"+w,!0)}H.send()}return{load:L}}()),O.data.type==="loadAnimation")h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.dataManager.completeData(B),h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;h.dataManager.completeData(R),h.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,D=O.id,R=i[D];i[D]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:O},D}function k(x,O,D){S();var R=b(O,D);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,D){S();var R=b(O,D);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,D){S();var R=b(O,D);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:M,completeAnimation:G}}(),cy=function(){var e=function(){var L=y("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,w,T){var I="";if(L.e)I=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),I=w+N}else I=T,I+=L.u?L.u:"",I+=L.p;return I}function p(L){var w=0,T=setInterval((function(){var I=L.getBBox();(I.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function h(L){var w=d(L,this.assetsPath,this.path),T=Tt("image");Zt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){I.img=e,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var I={img:T,assetData:L};return I}function g(L){var w=d(L,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){I.img=e,this._imageLoaded()}).bind(this),!1),T.src=w;var I={img:T,assetData:L};return I}function S(L){var w={assetData:L},T=d(L,this.assetsPath,this.path);return cn.loadData(T,(function(I){w.img=I,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function b(L,w){this.imagesLoadedCb=w;var T,I=L.length;for(T=0;T<I;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function G(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function B(){this._imageLoaded=i.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=p.bind(this),this.createFootageData=S.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return B.prototype={loadAssets:b,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:h,imageLoaded:i,footageLoaded:n,setCacheType:R},B}();function em(){}em.prototype={triggerEvent:function(i,n){if(this._cbs[i])for(var d=this._cbs[i],p=0;p<d.length;p+=1)d[p](n)},addEventListener:function(i,n){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(n),(function(){this.removeEventListener(i,n)}).bind(this)},removeEventListener:function(i,n){if(!n)this._cbs[i]=null;else if(this._cbs[i]){for(var d=0,p=this._cbs[i].length;d<p;)this._cbs[i][d]===n&&(this._cbs[i].splice(d,1),d-=1,p-=1),d+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var hy=function(){function e(i){for(var n=i.split(`\r
|
|
2
|
+
`),d={},p,h=0,g=0;g<n.length;g+=1)p=n[g].split(":"),p.length===2&&(d[p[0]]=p[1].trim(),h+=1);if(h===0)throw new Error;return d}return function(i){for(var n=[],d=0;d<i.length;d+=1){var p=i[d],h={time:p.tm,duration:p.dr};try{h.payload=JSON.parse(i[d].cm)}catch{try{h.payload=e(i[d].cm)}catch{h.payload={name:i[d].cm}}}n.push(h)}return n}}(),py=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var d=0,p=this.compositions.length;d<p;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),hn={},my=function(i,n){hn[i]=n};function uy(e){return hn[e]}function fy(){if(hn.canvas)return"canvas";for(var e in hn)if(hn[e])return e;return""}function pn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(n){return typeof n}:pn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pn(e)}var ft=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=He(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=ay(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=py(),this.imagePreloader=new cy,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new hr("drawnFrame",0,0,0),this.expressionsPlugin=Ra()};A([em],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=uy(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),cn.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){cn.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&pn(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},d=e.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:fy()||"canvas";var p=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";p==="false"?n.loop=!1:p==="true"?n.loop=!0:p!==""&&(n.loop=parseInt(p,10));var h=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=h!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,d=i.length,p=e.layers,h,g=p.length;for(h=0;h<g;h+=1)for(n=0;n<d;){if(i[n].id===p[h].id){i[n]=p[h];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(d=e.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,cn.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Ra();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,cn.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=hy(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=Ra();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,d=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,d)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var d=Number(e);if(isNaN(d)){var p=this.getMarkerData(e);p&&this.goToAndStop(p.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var d=Number(e);if(isNaN(d)){var p=this.getMarkerData(e);p&&(p.duration?this.playSegments([p.time,p.time+p.duration],!0):this.goToAndStop(p.time,!0))}else this.goToAndStop(d,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),pn(e[0])==="object"){var n,d=e.length;for(n=0;n<d;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var d=this.renderer.getElementByPath(e);d.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new hr(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new jp(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Oa(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new qp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Xp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new hr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new jp(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Oa(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new qp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Xp(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new oy(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new sy(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ne=function(){var e={},i=[],n=0,d=0,p=0,h=!0,g=!1;function S(C){for(var P=0,v=C.target;P<d;)i[P].animation===v&&(i.splice(P,1),P-=1,d-=1,v.isPaused||G()),P+=1}function b(C,P){if(!C)return null;for(var v=0;v<d;){if(i[v].elem===C&&i[v].elem!==null)return i[v].animation;v+=1}var E=new ft;return x(E,C),E.setData(C,P),E}function k(){var C,P=i.length,v=[];for(C=0;C<P;C+=1)v.push(i[C].animation);return v}function M(){p+=1,yt()}function G(){p-=1}function x(C,P){C.addEventListener("destroy",S),C.addEventListener("_active",M),C.addEventListener("_idle",G),i.push({elem:P,animation:C}),d+=1}function O(C){var P=new ft;return x(P,null),P.setParams(C),P}function D(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setSpeed(C,P)}function R(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setDirection(C,P)}function B(C){var P;for(P=0;P<d;P+=1)i[P].animation.play(C)}function L(C){var P=C-n,v;for(v=0;v<d;v+=1)i[v].animation.advanceTime(P);n=C,p&&!g?window.requestAnimationFrame(L):h=!0}function w(C){n=C,window.requestAnimationFrame(L)}function T(C){var P;for(P=0;P<d;P+=1)i[P].animation.pause(C)}function I(C,P,v){var E;for(E=0;E<d;E+=1)i[E].animation.goToAndStop(C,P,v)}function N(C){var P;for(P=0;P<d;P+=1)i[P].animation.stop(C)}function $(C){var P;for(P=0;P<d;P+=1)i[P].animation.togglePause(C)}function H(C){var P;for(P=d-1;P>=0;P-=1)i[P].animation.destroy(C)}function Y(C,P,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,z=E.length;for(K=0;K<z;K+=1)v&&E[K].setAttribute("data-bm-type",v),b(E[K],C);if(P&&z===0){v||(v="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=y("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),at.appendChild(vt),b(vt,C)}}function it(){var C;for(C=0;C<d;C+=1)i[C].animation.resize()}function yt(){!g&&p&&h&&(window.requestAnimationFrame(w),h=!1)}function ut(){g=!0}function st(){g=!1,yt()}function xt(C,P){var v;for(v=0;v<d;v+=1)i[v].animation.setVolume(C,P)}function ct(C){var P;for(P=0;P<d;P+=1)i[P].animation.mute(C)}function rt(C){var P;for(P=0;P<d;P+=1)i[P].animation.unmute(C)}return e.registerAnimation=b,e.loadAnimation=O,e.setSpeed=D,e.setDirection=R,e.play=B,e.pause=T,e.stop=N,e.togglePause=$,e.searchAnimations=Y,e.resize=it,e.goToAndStop=I,e.destroy=H,e.freeze=ut,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=rt,e.getRegisteredAnimations=k,e}(),mn=function(){var e={};e.getBezierEasing=n;var i={};function n(w,T,I,N,$){var H=$||("bez_"+w+"_"+T+"_"+I+"_"+N).replace(/\./g,"p");if(i[H])return i[H];var Y=new L([w,T,I,N]);return i[H]=Y,Y}var d=4,p=.001,h=1e-7,g=10,S=11,b=1/(S-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function G(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,I){return((M(T,I)*w+G(T,I))*w+x(T))*w}function D(w,T,I){return 3*M(T,I)*w*w+2*G(T,I)*w+x(T)}function R(w,T,I,N,$){var H,Y,it=0;do Y=T+(I-T)/2,H=O(Y,N,$)-w,H>0?I=Y:T=Y;while(Math.abs(H)>h&&++it<g);return Y}function B(w,T,I,N){for(var $=0;$<d;++$){var H=D(T,I,N);if(H===0)return T;var Y=O(T,I,N)-w;T-=Y/H}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(S):new Array(S),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var I=this._p[0],N=this._p[1],$=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),I===N&&$===H?T:T===0?0:T===1?1:O(this._getTForX(T),N,H)},_precompute:function(){var T=this._p[0],I=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==I||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],I=this._p[2],N=0;N<S;++N)this._mSampleValues[N]=O(N*b,T,I)},_getTForX:function(T){for(var I=this._p[0],N=this._p[2],$=this._mSampleValues,H=0,Y=1,it=S-1;Y!==it&&$[Y]<=T;++Y)H+=b;--Y;var yt=(T-$[Y])/($[Y+1]-$[Y]),ut=H+yt*b,st=D(ut,I,N);return st>=p?B(T,ut,I,N):st===0?ut:R(T,H,H+b,I,N)}},e}(),rm=function(){function e(i){return i.concat(et(i.length))}return{double:e}}(),Fa=function(){return function(e,i,n){var d=0,p=e,h=et(p),g={newElement:S,release:b};function S(){var k;return d?(d-=1,k=h[d]):k=i(),k}function b(k){d===p&&(h=rm.double(h),p*=2),n&&n(k),h[d]=k,d+=1}return g}}(),im=function(){function e(){return{addedLength:0,percents:Z("float32",dn()),lengths:Z("float32",dn())}}return Fa(8,e)}(),om=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var d,p=n.lengths.length;for(d=0;d<p;d+=1)im.release(n.lengths[d]);n.lengths.length=0}return Fa(8,e,i)}();function vy(){var e=Math;function i(x,O,D,R,B,L){var w=x*R+O*B+D*L-B*R-L*x-D*O;return w>-.001&&w<.001}function n(x,O,D,R,B,L,w,T,I){if(D===0&&L===0&&I===0)return i(x,O,R,B,w,T);var N=e.sqrt(e.pow(R-x,2)+e.pow(B-O,2)+e.pow(L-D,2)),$=e.sqrt(e.pow(w-x,2)+e.pow(T-O,2)+e.pow(I-D,2)),H=e.sqrt(e.pow(w-R,2)+e.pow(T-B,2)+e.pow(I-L,2)),Y;return N>$?N>H?Y=N-$-H:Y=H-$-N:H>$?Y=H-$-N:Y=$-N-H,Y>-1e-4&&Y<1e-4}var d=function(){return function(x,O,D,R){var B=dn(),L,w,T,I,N,$=0,H,Y=[],it=[],yt=im.newElement();for(T=D.length,L=0;L<B;L+=1){for(N=L/(B-1),H=0,w=0;w<T;w+=1)I=Qt(1-N,3)*x[w]+3*Qt(1-N,2)*N*D[w]+3*(1-N)*Qt(N,2)*R[w]+Qt(N,3)*O[w],Y[w]=I,it[w]!==null&&(H+=Qt(Y[w]-it[w],2)),it[w]=Y[w];H&&(H=se(H),$+=H),yt.percents[L]=N,yt.lengths[L]=$}return yt.addedLength=$,yt}}();function p(x){var O=om.newElement(),D=x.c,R=x.v,B=x.o,L=x.i,w,T=x._length,I=O.lengths,N=0;for(w=0;w<T-1;w+=1)I[w]=d(R[w],R[w+1],B[w],L[w+1]),N+=I[w].addedLength;return D&&T&&(I[w]=d(R[w],R[0],B[w],L[0]),N+=I[w].addedLength),O.totalLength=N,O}function h(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var S=function(){var x={};return function(O,D,R,B){var L=(O[0]+"_"+O[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+B[0]+"_"+B[1]).replace(/\./g,"p");if(!x[L]){var w=dn(),T,I,N,$,H,Y=0,it,yt,ut=null;O.length===2&&(O[0]!==D[0]||O[1]!==D[1])&&i(O[0],O[1],D[0],D[1],O[0]+R[0],O[1]+R[1])&&i(O[0],O[1],D[0],D[1],D[0]+B[0],D[1]+B[1])&&(w=2);var st=new h(w);for(N=R.length,T=0;T<w;T+=1){for(yt=et(N),H=T/(w-1),it=0,I=0;I<N;I+=1)$=Qt(1-H,3)*O[I]+3*Qt(1-H,2)*H*(O[I]+R[I])+3*(1-H)*Qt(H,2)*(D[I]+B[I])+Qt(H,3)*D[I],yt[I]=$,ut!==null&&(it+=Qt(yt[I]-ut[I],2));it=se(it),Y+=it,st.points[T]=new g(it,yt),ut=yt}st.segmentLength=Y,x[L]=st}return x[L]}}();function b(x,O){var D=O.percents,R=O.lengths,B=D.length,L=ye((B-1)*x),w=x*O.addedLength,T=0;if(L===B-1||L===0||w===R[L])return D[L];for(var I=R[L]>w?-1:1,N=!0;N;)if(R[L]<=w&&R[L+1]>w?(T=(w-R[L])/(R[L+1]-R[L]),N=!1):L+=I,L<0||L>=B-1){if(L===B-1)return D[L];N=!1}return D[L]+(D[L+1]-D[L])*T}function k(x,O,D,R,B,L){var w=b(B,L),T=1-w,I=e.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*D[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=e.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*D[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[I,N]}var M=Z("float32",8);function G(x,O,D,R,B,L,w){B<0?B=0:B>1&&(B=1);var T=b(B,w);L=L>1?1:L;var I=b(L,w),N,$=x.length,H=1-T,Y=1-I,it=H*H*H,yt=T*H*H*3,ut=T*T*H*3,st=T*T*T,xt=H*H*Y,ct=T*H*Y+H*T*Y+H*H*I,rt=T*T*Y+H*T*I+T*H*I,C=T*T*I,P=H*Y*Y,v=T*Y*Y+H*I*Y+H*Y*I,E=T*I*Y+H*I*I+T*Y*I,K=T*I*I,z=Y*Y*Y,at=I*Y*Y+Y*I*Y+Y*Y*I,vt=I*I*Y+Y*I*I+I*Y*I,Et=I*I*I;for(N=0;N<$;N+=1)M[N*4]=e.round((it*x[N]+yt*D[N]+ut*R[N]+st*O[N])*1e3)/1e3,M[N*4+1]=e.round((xt*x[N]+ct*D[N]+rt*R[N]+C*O[N])*1e3)/1e3,M[N*4+2]=e.round((P*x[N]+v*D[N]+E*R[N]+K*O[N])*1e3)/1e3,M[N*4+3]=e.round((z*x[N]+at*D[N]+vt*R[N]+Et*O[N])*1e3)/1e3;return M}return{getSegmentsLength:p,getNewSegment:G,getPointInSegment:k,buildBezierData:S,pointOnLine2D:i,pointOnLine3D:n}}var $r=vy(),bo=r,sm=Math.abs;function nm(e,i){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var p=i.lastIndex,h=p,g=this.keyframes.length-1,S=!0,b,k,M;S;){if(b=this.keyframes[h],k=this.keyframes[h+1],h===g-1&&e>=k.t-n){b.h&&(b=k),p=0;break}if(k.t-n>e){p=h;break}h<g-1?h+=1:(p=0,S=!1)}M=this.keyframesMetadata[h]||{};var G,x,O,D,R,B,L=k.t-n,w=b.t-n,T;if(b.to){M.bezierData||(M.bezierData=$r.buildBezierData(b.s,k.s||b.e,b.to,b.ti));var I=M.bezierData;if(e>=L||e<w){var N=e>=L?I.points.length-1:0;for(x=I.points[N].point.length,G=0;G<x;G+=1)d[G]=I.points[N].point[G]}else{M.__fnct?B=M.__fnct:(B=mn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,M.__fnct=B),O=B((e-w)/(L-w));var $=I.segmentLength*O,H,Y=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastPoint:0,S=!0,D=I.points.length;S;){if(Y+=I.points[R].partialLength,$===0||O===0||R===I.points.length-1){for(x=I.points[R].point.length,G=0;G<x;G+=1)d[G]=I.points[R].point[G];break}else if($>=Y&&$<Y+I.points[R+1].partialLength){for(H=($-Y)/I.points[R+1].partialLength,x=I.points[R].point.length,G=0;G<x;G+=1)d[G]=I.points[R].point[G]+(I.points[R+1].point[G]-I.points[R].point[G])*H;break}R<D-1?R+=1:S=!1}i._lastPoint=R,i._lastAddedLength=Y-I.points[R].partialLength,i._lastKeyframeIndex=h}}else{var it,yt,ut,st,xt;if(g=b.s.length,T=k.s||b.e,this.sh&&b.h!==1)if(e>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(e<=w)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ct=am(b.s),rt=am(T),C=(e-w)/(L-w);by(d,gy(ct,rt,C))}else for(h=0;h<g;h+=1)b.h!==1&&(e>=L?O=1:e<w?O=0:(b.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[h]?B=M.__fnct[h]:(it=b.o.x[h]===void 0?b.o.x[0]:b.o.x[h],yt=b.o.y[h]===void 0?b.o.y[0]:b.o.y[h],ut=b.i.x[h]===void 0?b.i.x[0]:b.i.x[h],st=b.i.y[h]===void 0?b.i.y[0]:b.i.y[h],B=mn.getBezierEasing(it,yt,ut,st).get,M.__fnct[h]=B)):M.__fnct?B=M.__fnct:(it=b.o.x,yt=b.o.y,ut=b.i.x,st=b.i.y,B=mn.getBezierEasing(it,yt,ut,st).get,b.keyframeMetadata=B),O=B((e-w)/(L-w)))),T=k.s||b.e,xt=b.h===1?b.s[h]:b.s[h]+(T[h]-b.s[h])*O,this.propType==="multidimensional"?d[h]=xt:d=xt}return i.lastIndex=p,d}function gy(e,i,n){var d=[],p=e[0],h=e[1],g=e[2],S=e[3],b=i[0],k=i[1],M=i[2],G=i[3],x,O,D,R,B;return O=p*b+h*k+g*M+S*G,O<0&&(O=-O,b=-b,k=-k,M=-M,G=-G),1-O>1e-6?(x=Math.acos(O),D=Math.sin(x),R=Math.sin((1-n)*x)/D,B=Math.sin(n*x)/D):(R=1-n,B=n),d[0]=R*p+B*b,d[1]=R*h+B*k,d[2]=R*g+B*M,d[3]=R*S+B*G,d}function by(e,i){var n=i[0],d=i[1],p=i[2],h=i[3],g=Math.atan2(2*d*h-2*n*p,1-2*d*d-2*p*p),S=Math.asin(2*n*d+2*p*h),b=Math.atan2(2*n*h-2*d*p,1-2*n*n-2*p*p);e[0]=g/Nt,e[1]=S/Nt,e[2]=b/Nt}function am(e){var i=e[0]*Nt,n=e[1]*Nt,d=e[2]*Nt,p=Math.cos(i/2),h=Math.cos(n/2),g=Math.cos(d/2),S=Math.sin(i/2),b=Math.sin(n/2),k=Math.sin(d/2),M=p*h*g-S*b*k,G=S*b*g+p*h*k,x=S*h*g+p*b*k,O=p*b*g-S*h*k;return[G,x,O,M]}function lm(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==bo&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(e,this._caching);this.pv=d}return this._caching.lastFrame=e,this.pv}function $a(e){var i;if(this.propType==="unidimensional")i=e*this.mult,sm(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)i=e[n]*this.mult,sm(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function za(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Va(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function yy(e,i,n,d){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=d,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=za,this.setVValue=$a,this.addEffect=Va}function Ey(e,i,n,d){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=d,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var p,h=i.k.length;for(this.v=Z("float32",h),this.pv=Z("float32",h),this.vel=Z("float32",h),p=0;p<h;p+=1)this.v[p]=i.k[p]*this.mult,this.pv[p]=i.k[p];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=za,this.setVValue=$a,this.addEffect=Va}function Ty(e,i,n,d){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:bo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.v=bo,this.pv=bo,this._isFirstFrame=!0,this.getValue=za,this.setVValue=$a,this.interpolateValue=nm,this.effectsSequence=[lm.bind(this)],this.addEffect=Va}function xy(e,i,n,d){this.propType="multidimensional";var p,h=i.k.length,g,S,b,k;for(p=0;p<h-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(g=i.k[p].s,S=i.k[p+1].s,b=i.k[p].to,k=i.k[p].ti,(g.length===2&&!(g[0]===S[0]&&g[1]===S[1])&&$r.pointOnLine2D(g[0],g[1],S[0],S[1],g[0]+b[0],g[1]+b[1])&&$r.pointOnLine2D(g[0],g[1],S[0],S[1],S[0]+k[0],S[1]+k[1])||g.length===3&&!(g[0]===S[0]&&g[1]===S[1]&&g[2]===S[2])&&$r.pointOnLine3D(g[0],g[1],g[2],S[0],S[1],S[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&$r.pointOnLine3D(g[0],g[1],g[2],S[0],S[1],S[2],S[0]+k[0],S[1]+k[1],S[2]+k[2]))&&(i.k[p].to=null,i.k[p].ti=null),g[0]===S[0]&&g[1]===S[1]&&b[0]===0&&b[1]===0&&k[0]===0&&k[1]===0&&(g.length===2||g[2]===S[2]&&b[2]===0&&k[2]===0)&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[lm.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.getValue=za,this.setVValue=$a,this.interpolateValue=nm,this.frameId=-1;var M=i.k[0].s.length;for(this.v=Z("float32",M),this.pv=Z("float32",M),p=0;p<M;p+=1)this.v[p]=bo,this.pv[p]=bo;this._caching={lastFrame:bo,lastIndex:0,value:Z("float32",M)},this.addEffect=Va}var nt=function(){function e(n,d,p,h,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var S;if(!d.k.length)S=new yy(n,d,h,g);else if(typeof d.k[0]=="number")S=new Ey(n,d,h,g);else switch(p){case 0:S=new Ty(n,d,h,g);break;case 1:S=new xy(n,d,h,g);break;default:break}return S.effectsSequence.length&&g.addDynamicProperty(S),S}var i={getProp:e};return i}();function Ee(){}Ee.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var yo=function(){function e(){return Z("float32",2)}return Fa(8,e)}();function ri(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}ri.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=yo.newElement(),this.o[n]=yo.newElement(),this.i[n]=yo.newElement(),n+=1},ri.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ri.prototype.doubleArrayLength=function(){this.v=this.v.concat(et(this._maxLength)),this.i=this.i.concat(et(this._maxLength)),this.o=this.o.concat(et(this._maxLength)),this._maxLength*=2},ri.prototype.setXYAt=function(e,i,n,d,p){var h;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":h=this.v;break;case"i":h=this.i;break;case"o":h=this.o;break;default:h=[];break}(!h[d]||h[d]&&!p)&&(h[d]=yo.newElement()),h[d][0]=e,h[d][1]=i},ri.prototype.setTripleAt=function(e,i,n,d,p,h,g,S){this.setXYAt(e,i,"v",g,S),this.setXYAt(n,d,"o",g,S),this.setXYAt(p,h,"i",g,S)},ri.prototype.reverse=function(){var e=new ri;e.setPathData(this.c,this._length);var i=this.v,n=this.o,d=this.i,p=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),p=1);var h=this._length-1,g=this._length,S;for(S=p;S<g;S+=1)e.setTripleAt(i[h][0],i[h][1],d[h][0],d[h][1],n[h][0],n[h][1],S,!1),h-=1;return e},ri.prototype.length=function(){return this._length};var _e=function(){function e(){return new ri}function i(p){var h=p._length,g;for(g=0;g<h;g+=1)yo.release(p.v[g]),yo.release(p.i[g]),yo.release(p.o[g]),p.v[g]=null,p.i[g]=null,p.o[g]=null;p._length=0,p.c=!1}function n(p){var h=d.newElement(),g,S=p._length===void 0?p.v.length:p._length;for(h.setLength(S),h.c=p.c,g=0;g<S;g+=1)h.setTripleAt(p.v[g][0],p.v[g][1],p.o[g][0],p.o[g][1],p.i[g][0],p.i[g][1],g);return h}var d=Fa(4,e,i);return d.clone=n,d}();function Qd(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Qd.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Qd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)_e.release(this.shapes[e]);this._length=0};var ps=function(){var e={newShapeCollection:p,release:h},i=0,n=4,d=et(n);function p(){var g;return i?(i-=1,g=d[i]):g=new Qd,g}function h(g){var S,b=g._length;for(S=0;S<b;S+=1)_e.release(g.shapes[S]);g._length=0,i===n&&(d=rm.double(d),n*=2),d[i]=g,i+=1}return e}(),Ba=function(){var e=-999999;function i(L,w,T){var I=T.lastIndex,N,$,H,Y,it,yt,ut,st,xt,ct=this.keyframes;if(L<ct[0].t-this.offsetTime)N=ct[0].s[0],H=!0,I=0;else if(L>=ct[ct.length-1].t-this.offsetTime)N=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var rt=I,C=ct.length-1,P=!0,v,E,K;P&&(v=ct[rt],E=ct[rt+1],!(E.t-this.offsetTime>L));)rt<C-1?rt+=1:P=!1;if(K=this.keyframesMetadata[rt]||{},H=v.h===1,I=rt,!H){if(L>=E.t-this.offsetTime)st=1;else if(L<v.t-this.offsetTime)st=0;else{var z;K.__fnct?z=K.__fnct:(z=mn.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,K.__fnct=z),st=z((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(yt=w._length,ut=N.i[0].length,T.lastIndex=I,Y=0;Y<yt;Y+=1)for(it=0;it<ut;it+=1)xt=H?N.i[Y][it]:N.i[Y][it]+($.i[Y][it]-N.i[Y][it])*st,w.i[Y][it]=xt,xt=H?N.o[Y][it]:N.o[Y][it]+($.o[Y][it]-N.o[Y][it])*st,w.o[Y][it]=xt,xt=H?N.v[Y][it]:N.v[Y][it]+($.v[Y][it]-N.v[Y][it])*st,w.v[Y][it]=xt}function n(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,I=this._caching.lastFrame;return I!==e&&(I<w&&L<w||I>T&&L>T)||(this._caching.lastIndex=I<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function d(){this.paths=this.localShapeCollection}function p(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,I=L._length;for(T=0;T<I;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function h(L){p(this.v,L)||(this.v=_e.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function S(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var I=T===3?w.pt.k:w.ks.k;this.v=_e.clone(I),this.pv=_e.clone(this.v),this.localShapeCollection=ps.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}S.prototype.interpolateShape=i,S.prototype.getValue=g,S.prototype.setVValue=h,S.prototype.addEffect=b;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var I=this.keyframes[0].s[0].i.length;this.v=_e.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,I),this.pv=_e.clone(this.v),this.localShapeCollection=ps.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=d,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=g,k.prototype.interpolateShape=i,k.prototype.setVValue=h,k.prototype.addEffect=b;var M=function(){var L=Ie;function w(T,I){this.v=_e.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ps.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=I.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=nt.getProp(T,I.p,1,0,this),this.s=nt.getProp(T,I.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var I=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,H=this.s.v[1]/2,Y=this.d!==3,it=this.v;it.v[0][0]=I,it.v[0][1]=N-H,it.v[1][0]=Y?I+$:I-$,it.v[1][1]=N,it.v[2][0]=I,it.v[2][1]=N+H,it.v[3][0]=Y?I-$:I+$,it.v[3][1]=N,it.i[0][0]=Y?I-$*L:I+$*L,it.i[0][1]=N-H,it.i[1][0]=Y?I+$:I-$,it.i[1][1]=N-H*L,it.i[2][0]=Y?I+$*L:I-$*L,it.i[2][1]=N+H,it.i[3][0]=Y?I-$:I+$,it.i[3][1]=N+H*L,it.o[0][0]=Y?I+$*L:I-$*L,it.o[0][1]=N-H,it.o[1][0]=Y?I+$:I-$,it.o[1][1]=N+H*L,it.o[2][0]=Y?I-$*L:I+$*L,it.o[2][1]=N+H,it.o[3][0]=Y?I-$:I+$,it.o[3][1]=N-H*L}},A([Ee],w),w}(),G=function(){function L(w,T){this.v=_e.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=nt.getProp(w,T.ir,0,0,this),this.is=nt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(w,T.pt,0,0,this),this.p=nt.getProp(w,T.p,1,0,this),this.r=nt.getProp(w,T.r,0,Nt,this),this.or=nt.getProp(w,T.or,0,0,this),this.os=nt.getProp(w,T.os,0,.01,this),this.localShapeCollection=ps.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,I=Math.PI*2/T,N=!0,$=this.or.v,H=this.ir.v,Y=this.os.v,it=this.is.v,yt=2*Math.PI*$/(T*2),ut=2*Math.PI*H/(T*2),st,xt,ct,rt,C=-Math.PI/2;C+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){xt=N?$:H,ct=N?Y:it,rt=N?yt:ut;var v=xt*Math.cos(C),E=xt*Math.sin(C),K=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),z=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-K*rt*ct*P,E-z*rt*ct*P,v+K*rt*ct*P,E+z*rt*ct*P,st,!0),N=!N,C+=I*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),I=Math.PI*2/T,N=this.or.v,$=this.os.v,H=2*Math.PI*N/(T*4),Y,it=-Math.PI*.5,yt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,Y=0;Y<T;Y+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),xt=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ct=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-xt*H*$*yt,st-ct*H*$*yt,ut+xt*H*$*yt,st+ct*H*$*yt,Y,!0),it+=I*yt}this.paths.length=0,this.paths[0]=this.v}},A([Ee],L),L}(),x=function(){function L(w,T){this.v=_e.newElement(),this.v.c=!0,this.localShapeCollection=ps.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=nt.getProp(w,T.p,1,0,this),this.s=nt.getProp(w,T.s,1,0,this),this.r=nt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],I=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,H=Ue(N,$,this.r.v),Y=H*(1-Ie);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,I-$+H,T+N,I-$+H,T+N,I-$+Y,0,!0),this.v.setTripleAt(T+N,I+$-H,T+N,I+$-Y,T+N,I+$-H,1,!0),H!==0?(this.v.setTripleAt(T+N-H,I+$,T+N-H,I+$,T+N-Y,I+$,2,!0),this.v.setTripleAt(T-N+H,I+$,T-N+Y,I+$,T-N+H,I+$,3,!0),this.v.setTripleAt(T-N,I+$-H,T-N,I+$-H,T-N,I+$-Y,4,!0),this.v.setTripleAt(T-N,I-$+H,T-N,I-$+Y,T-N,I-$+H,5,!0),this.v.setTripleAt(T-N+H,I-$,T-N+H,I-$,T-N+Y,I-$,6,!0),this.v.setTripleAt(T+N-H,I-$,T+N-Y,I-$,T+N-H,I-$,7,!0)):(this.v.setTripleAt(T-N,I+$,T-N+Y,I+$,T-N,I+$,2),this.v.setTripleAt(T-N,I-$,T-N,I-$+Y,T-N,I-$,3))):(this.v.setTripleAt(T+N,I-$+H,T+N,I-$+Y,T+N,I-$+H,0,!0),H!==0?(this.v.setTripleAt(T+N-H,I-$,T+N-H,I-$,T+N-Y,I-$,1,!0),this.v.setTripleAt(T-N+H,I-$,T-N+Y,I-$,T-N+H,I-$,2,!0),this.v.setTripleAt(T-N,I-$+H,T-N,I-$+H,T-N,I-$+Y,3,!0),this.v.setTripleAt(T-N,I+$-H,T-N,I+$-Y,T-N,I+$-H,4,!0),this.v.setTripleAt(T-N+H,I+$,T-N+H,I+$,T-N+Y,I+$,5,!0),this.v.setTripleAt(T+N-H,I+$,T+N-Y,I+$,T+N-H,I+$,6,!0),this.v.setTripleAt(T+N,I+$-H,T+N,I+$-H,T+N,I+$-Y,7,!0)):(this.v.setTripleAt(T-N,I-$,T-N+Y,I-$,T-N,I-$,1,!0),this.v.setTripleAt(T-N,I+$,T-N,I+$-Y,T-N,I+$,2,!0),this.v.setTripleAt(T+N,I+$,T+N-Y,I+$,T+N,I+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ee],L),L}();function O(L,w,T){var I;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?I=new k(L,w,T):I=new S(L,w,T)}else T===5?I=new x(L,w):T===6?I=new M(L,w):T===7&&(I=new G(L,w));return I.k&&L.addDynamicProperty(I),I}function D(){return S}function R(){return k}var B={};return B.getShapeProp=O,B.getConstructorFunction=D,B.getKeyframedConstructorFunction=R,B}();var Ce=function(){var e=Math.cos,i=Math.sin,n=Math.tan,d=Math.round;function p(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function h(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(1,0,0,0,0,E,-K,0,0,K,E,0,0,0,0,1)}function S(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,0,K,0,0,1,0,0,-K,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function G(v,E){var K=e(E),z=i(E);return this._t(K,z,0,0,-z,K,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(K,-z,0,0,z,K,0,0,0,0,1,0,0,0,0,1)}function x(v,E,K){return!K&&K!==0&&(K=1),v===1&&E===1&&K===1?this:this._t(v,0,0,0,0,E,0,0,0,0,K,0,0,0,0,1)}function O(v,E,K,z,at,vt,Et,Pt,Dt,ae,Ke,Vr,We,Te,rr,zt){return this.props[0]=v,this.props[1]=E,this.props[2]=K,this.props[3]=z,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Pt,this.props[8]=Dt,this.props[9]=ae,this.props[10]=Ke,this.props[11]=Vr,this.props[12]=We,this.props[13]=Te,this.props[14]=rr,this.props[15]=zt,this}function D(v,E,K){return K=K||0,v!==0||E!==0||K!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,K,1):this}function R(v,E,K,z,at,vt,Et,Pt,Dt,ae,Ke,Vr,We,Te,rr,zt){var ht=this.props;if(v===1&&E===0&&K===0&&z===0&&at===0&&vt===1&&Et===0&&Pt===0&&Dt===0&&ae===0&&Ke===1&&Vr===0)return ht[12]=ht[12]*v+ht[15]*We,ht[13]=ht[13]*vt+ht[15]*Te,ht[14]=ht[14]*Ke+ht[15]*rr,ht[15]*=zt,this._identityCalculated=!1,this;var si=ht[0],Di=ht[1],ni=ht[2],Br=ht[3],ai=ht[4],li=ht[5],Ye=ht[6],Fi=ht[7],$i=ht[8],wr=ht[9],zi=ht[10],kr=ht[11],Ao=ht[12],Xa=ht[13],Za=ht[14],Qa=ht[15];return ht[0]=si*v+Di*at+ni*Dt+Br*We,ht[1]=si*E+Di*vt+ni*ae+Br*Te,ht[2]=si*K+Di*Et+ni*Ke+Br*rr,ht[3]=si*z+Di*Pt+ni*Vr+Br*zt,ht[4]=ai*v+li*at+Ye*Dt+Fi*We,ht[5]=ai*E+li*vt+Ye*ae+Fi*Te,ht[6]=ai*K+li*Et+Ye*Ke+Fi*rr,ht[7]=ai*z+li*Pt+Ye*Vr+Fi*zt,ht[8]=$i*v+wr*at+zi*Dt+kr*We,ht[9]=$i*E+wr*vt+zi*ae+kr*Te,ht[10]=$i*K+wr*Et+zi*Ke+kr*rr,ht[11]=$i*z+wr*Pt+zi*Vr+kr*zt,ht[12]=Ao*v+Xa*at+Za*Dt+Qa*We,ht[13]=Ao*E+Xa*vt+Za*ae+Qa*Te,ht[14]=Ao*K+Xa*Et+Za*Ke+Qa*rr,ht[15]=Ao*z+Xa*Pt+Za*Vr+Qa*zt,this._identityCalculated=!1,this}function B(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function I(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,K){return{x:v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}}function $(v,E,K){return v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12]}function H(v,E,K){return v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13]}function Y(v,E,K){return v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,K=-this.props[1]/v,z=-this.props[4]/v,at=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new Ce;return Pt.props[0]=E,Pt.props[1]=K,Pt.props[4]=z,Pt.props[5]=at,Pt.props[12]=vt,Pt.props[13]=Et,Pt}function yt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,K=v.length,z=[];for(E=0;E<K;E+=1)z[E]=yt(v[E]);return z}function st(v,E,K){var z=Z("float32",6);if(this.isIdentity())z[0]=v[0],z[1]=v[1],z[2]=E[0],z[3]=E[1],z[4]=K[0],z[5]=K[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Pt=this.props[5],Dt=this.props[12],ae=this.props[13];z[0]=v[0]*at+v[1]*Et+Dt,z[1]=v[0]*vt+v[1]*Pt+ae,z[2]=E[0]*at+E[1]*Et+Dt,z[3]=E[0]*vt+E[1]*Pt+ae,z[4]=K[0]*at+K[1]*Et+Dt,z[5]=K[0]*vt+K[1]*Pt+ae}return z}function xt(v,E,K){var z;return this.isIdentity()?z=[v,E,K]:z=[v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]],z}function ct(v,E){if(this.isIdentity())return v+","+E;var K=this.props;return Math.round((v*K[0]+E*K[4]+K[12])*100)/100+","+Math.round((v*K[1]+E*K[5]+K[13])*100)/100}function rt(){for(var v=0,E=this.props,K="matrix3d(",z=1e4;v<16;)K+=d(E[v]*z)/z,K+=v===15?")":",",v+=1;return K}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function P(){var v=this.props,E=C(v[0]),K=C(v[1]),z=C(v[4]),at=C(v[5]),vt=C(v[12]),Et=C(v[13]);return"matrix("+E+","+K+","+z+","+at+","+vt+","+Et+")"}return function(){this.reset=p,this.rotate=h,this.rotateX=g,this.rotateY=S,this.rotateZ=b,this.skew=M,this.skewFromAxis=G,this.shear=k,this.scale=x,this.setTransform=O,this.translate=D,this.transform=R,this.multiply=B,this.applyToPoint=N,this.applyToX=$,this.applyToY=H,this.applyToZ=Y,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=I,this.equals=w,this.inversePoints=ut,this.inversePoint=yt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function Ua(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ua=function(n){return typeof n}:Ua=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ua(e)}var Ft={},Ha="__[STANDALONE]__",dm="__[ANIMATIONDATA]__",cm="";function Ay(e){c(e)}function hm(){Ha===!0?ne.searchAnimations(dm,Ha,cm):ne.searchAnimations()}function Sy(e){ny(e)}function Iy(e){dy(e)}function _y(e){return Ha===!0&&(e.animationData=JSON.parse(dm)),ne.loadAnimation(e)}function Cy(e){if(typeof e=="string")switch(e){case"high":Pa(200);break;default:case"medium":Pa(50);break;case"low":Pa(10);break}else!isNaN(e)&&e>1&&Pa(e);dn()>=50?lr(!1):lr(!0)}function wy(){return typeof navigator<"u"}function ky(e,i){e==="expressions"&&ly(i)}function Ny(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return Ba;case"matrix":return Ce;default:return null}}Ft.play=ne.play,Ft.pause=ne.pause,Ft.setLocationHref=Ay,Ft.togglePause=ne.togglePause,Ft.setSpeed=ne.setSpeed,Ft.setDirection=ne.setDirection,Ft.stop=ne.stop,Ft.searchAnimations=hm,Ft.registerAnimation=ne.registerAnimation,Ft.loadAnimation=_y,Ft.setSubframeRendering=Sy,Ft.resize=ne.resize,Ft.goToAndStop=ne.goToAndStop,Ft.destroy=ne.destroy,Ft.setQuality=Cy,Ft.inBrowser=wy,Ft.installPlugin=ky,Ft.freeze=ne.freeze,Ft.unfreeze=ne.unfreeze,Ft.setVolume=ne.setVolume,Ft.mute=ne.mute,Ft.unmute=ne.unmute,Ft.getRegisteredAnimations=ne.getRegisteredAnimations,Ft.useWebWorker=s,Ft.setIDPrefix=Iy,Ft.__getFactory=Ny,Ft.version="5.12.2";function Ly(){document.readyState==="complete"&&(clearInterval(Ry),hm())}function My(e){for(var i=pm.split("&"),n=0;n<i.length;n+=1){var d=i[n].split("=");if(decodeURIComponent(d[0])==e)return decodeURIComponent(d[1])}return null}var pm="";if(Ha){var mm=document.getElementsByTagName("script"),Oy=mm.length-1,um=mm[Oy]||{src:""};pm=um.src?um.src.replace(/^[^\?]+\??/,""):"",cm=My("renderer")}var Ry=setInterval(Ly,100);try{!((typeof Gn>"u"?"undefined":Ua(Gn))==="object"&&typeof _l<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ft)}catch{}var Ni=function(){var e={},i={};e.registerModifier=n,e.getModifier=d;function n(p,h){i[p]||(i[p]=h)}function d(p,h,g){return new i[p](h,g)}return e}();function pr(){}pr.prototype.initModifierProperties=function(){},pr.prototype.addShapeToModifier=function(){},pr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ps.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},pr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},pr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ee],pr);function Cr(){}A([pr],Cr),Cr.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Cr.prototype.addShapeToModifier=function(e){e.pathsData=[]},Cr.prototype.calculateShapeEdges=function(e,i,n,d,p){var h=[];i<=1?h.push({s:e,e:i}):e>=1?h.push({s:e-1,e:i-1}):(h.push({s:e,e:1}),h.push({s:0,e:i-1}));var g=[],S,b=h.length,k;for(S=0;S<b;S+=1)if(k=h[S],!(k.e*p<d||k.s*p>d+n)){var M,G;k.s*p<=d?M=0:M=(k.s*p-d)/n,k.e*p>=d+n?G=1:G=(k.e*p-d)/n,g.push([M,G])}return g.length||g.push([0,0]),g},Cr.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)om.release(e[i]);return e.length=0,e},Cr.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?i=1+d:this.s.v<0?i=0+d:i=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,i>n){var p=i;i=n,n=p}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var h,g,S=this.shapes.length,b,k,M,G,x,O=0;if(n===i)for(g=0;g<S;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<S;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,B;for(g=0;g<S;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(h=R.shape.paths,k=h._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),b=0;b<k;b+=1)G=$r.getSegmentsLength(h.shapes[b]),M.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=i,w=n,T=0,I;for(g=S-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(B=R.localShapeCollection,B.releaseShapes(),this.m===2&&S>1?(I=this.calculateShapeEdges(i,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):I=[[L,w]],k=I.length,b=0;b<k;b+=1){L=I[b][0],w=I[b][1],D.length=0,w<=1?D.push({s:R.totalShapeLength*L,e:R.totalShapeLength*w}):L>=1?D.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(w-1)}):(D.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var H=N.pop();this.addPaths(N,B),N=this.addShapes(R,D[1],H)}else this.addPaths(N,B),N=this.addShapes(R,D[1])}this.addPaths(N,B)}}R.shape.paths=B}}},Cr.prototype.addPaths=function(e,i){var n,d=e.length;for(n=0;n<d;n+=1)i.addShape(e[n])},Cr.prototype.addSegment=function(e,i,n,d,p,h,g){p.setXYAt(i[0],i[1],"o",h),p.setXYAt(n[0],n[1],"i",h+1),g&&p.setXYAt(e[0],e[1],"v",h),p.setXYAt(d[0],d[1],"v",h+1)},Cr.prototype.addSegmentFromArray=function(e,i,n,d){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),d&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Cr.prototype.addShapes=function(e,i,n){var d=e.pathsData,p=e.shape.paths.shapes,h,g=e.shape.paths._length,S,b,k=0,M,G,x,O,D=[],R,B=!0;for(n?(G=n._length,R=n._length):(n=_e.newElement(),G=0,R=0),D.push(n),h=0;h<g;h+=1){for(x=d[h].lengths,n.c=p[h].c,b=p[h].c?x.length:x.length+1,S=1;S<b;S+=1)if(M=x[S-1],k+M.addedLength<i.s)k+=M.addedLength,n.c=!1;else if(k>i.e){n.c=!1;break}else i.s<=k&&i.e>=k+M.addedLength?(this.addSegment(p[h].v[S-1],p[h].o[S-1],p[h].i[S],p[h].v[S],n,G,B),B=!1):(O=$r.getNewSegment(p[h].v[S-1],p[h].v[S],p[h].o[S-1],p[h].i[S],(i.s-k)/M.addedLength,(i.e-k)/M.addedLength,x[S-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1),k+=M.addedLength,G+=1;if(p[h].c&&x.length){if(M=x[S-1],k<=i.e){var L=x[S-1].addedLength;i.s<=k&&i.e>=k+L?(this.addSegment(p[h].v[S-1],p[h].o[S-1],p[h].i[0],p[h].v[0],n,G,B),B=!1):(O=$r.getNewSegment(p[h].v[S-1],p[h].v[0],p[h].o[S-1],p[h].i[0],(i.s-k)/L,(i.e-k)/L,x[S-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1)}else n.c=!1;k+=M.addedLength,G+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),k>i.e)break;h<g-1&&(n=_e.newElement(),B=!0,D.push(n),G=0)}return D};function un(){}A([pr],un),un.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},un.prototype.processPath=function(e,i){var n=i/100,d=[0,0],p=e._length,h=0;for(h=0;h<p;h+=1)d[0]+=e.v[h][0],d[1]+=e.v[h][1];d[0]/=p,d[1]/=p;var g=_e.newElement();g.c=e.c;var S,b,k,M,G,x;for(h=0;h<p;h+=1)S=e.v[h][0]+(d[0]-e.v[h][0])*n,b=e.v[h][1]+(d[1]-e.v[h][1])*n,k=e.o[h][0]+(d[0]-e.o[h][0])*-n,M=e.o[h][1]+(d[1]-e.o[h][1])*-n,G=e.i[h][0]+(d[0]-e.i[h][0])*-n,x=e.i[h][1]+(d[1]-e.i[h][1])*-n,g.setTripleAt(S,b,k,M,G,x,h);return g},un.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amount.v;if(g!==0){var S,b;for(n=0;n<d;n+=1){if(S=this.shapes[n],b=S.localShapeCollection,!(!S.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),S.shape._mdf=!0,i=S.shape.paths.shapes,h=S.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));S.shape.paths=S.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Jd=function(){var e=[0,0];function i(b){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,G;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),G[0]=x.getValueAtTime(x.keyframes[0].t/k,0),G[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),G[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),G[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else G=e,M=G;this.v.rotate(-Math.atan2(M[1]-G[1],M[0]-G[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function p(){}function h(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,k,M){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Ce,this.pre=new Ce,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||b),k.p&&k.p.s?(this.px=nt.getProp(b,k.p.x,0,0,this),this.py=nt.getProp(b,k.p.y,0,0,this),k.p.z&&(this.pz=nt.getProp(b,k.p.z,0,0,this))):this.p=nt.getProp(b,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=nt.getProp(b,k.rx,0,Nt,this),this.ry=nt.getProp(b,k.ry,0,Nt,this),this.rz=nt.getProp(b,k.rz,0,Nt,this),k.or.k[0].ti){var G,x=k.or.k.length;for(G=0;G<x;G+=1)k.or.k[G].to=null,k.or.k[G].ti=null}this.or=nt.getProp(b,k.or,1,Nt,this),this.or.sh=!0}else this.r=nt.getProp(b,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=nt.getProp(b,k.sk,0,Nt,this),this.sa=nt.getProp(b,k.sa,0,Nt,this)),this.a=nt.getProp(b,k.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=nt.getProp(b,k.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:d,autoOrient:p},A([Ee],g),g.prototype.addDynamicProperty=h,g.prototype._addDynamicProperty=Ee.prototype.addDynamicProperty;function S(b,k,M){return new g(b,k,M)}return{getTransformProperty:S}}();function zr(){}A([pr],zr),zr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=Jd.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ce,this.rMatrix=new Ce,this.sMatrix=new Ce,this.tMatrix=new Ce,this.matrix=new Ce},zr.prototype.applyTransforms=function(e,i,n,d,p,h){var g=h?-1:1,S=d.s.v[0]+(1-d.s.v[0])*(1-p),b=d.s.v[1]+(1-d.s.v[1])*(1-p);e.translate(d.p.v[0]*g*p,d.p.v[1]*g*p,d.p.v[2]),i.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),i.rotate(-d.r.v*g*p),i.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(h?1/S:S,h?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},zr.prototype.init=function(e,i,n,d){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},zr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},zr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},zr.prototype.changeGroupRender=function(e,i){var n,d=e.length;for(n=0;n<d;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},zr.prototype.processShapes=function(e){var i,n,d,p,h,g=!1;if(this._mdf||e){var S=Math.ceil(this.c.v);if(this._groups.length<S){for(;this._groups.length<S;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}h=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=h<S,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var M=this.elemsData[d].it,G=M[M.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}h+=1}this._currentCopies=S;var x=this.o.v,O=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,B=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,p=this.data.m===1?1:-1,h=this._currentCopies;for(var T,I;h;){if(i=this.elemsData[d].it,n=i[i.length-1].transform.mProps.v.props,I=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&p===1||d!==this._currentCopies-1&&p===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14],B[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<I;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<I;T+=1)n[T]=this.matrix.props[T];w+=1,h-=1,d+=p}}else for(h=this._currentCopies,d=0,p=1;h;)i=this.elemsData[d].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,h-=1,d+=p;return g},zr.prototype.addShape=function(){};function fn(){}A([pr],fn),fn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},fn.prototype.processPath=function(e,i){var n=_e.newElement();n.c=e.c;var d,p=e._length,h,g,S,b,k,M,G=0,x,O,D,R,B,L;for(d=0;d<p;d+=1)h=e.v[d],S=e.o[d],g=e.i[d],h[0]===S[0]&&h[1]===S[1]&&h[0]===g[0]&&h[1]===g[1]?(d===0||d===p-1)&&!e.c?(n.setTripleAt(h[0],h[1],S[0],S[1],g[0],g[1],G),G+=1):(d===0?b=e.v[p-1]:b=e.v[d-1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,B=h[0]+(b[0]-h[0])*M,x=B,L=h[1]-(h[1]-b[1])*M,O=L,D=x-(x-h[0])*Ie,R=O-(O-h[1])*Ie,n.setTripleAt(x,O,D,R,B,L,G),G+=1,d===p-1?b=e.v[0]:b=e.v[d+1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,D=h[0]+(b[0]-h[0])*M,x=D,R=h[1]+(b[1]-h[1])*M,O=R,B=x-(x-h[0])*Ie,L=O-(O-h[1])*Ie,n.setTripleAt(x,O,D,R,B,L,G),G+=1):(n.setTripleAt(e.v[d][0],e.v[d][1],e.o[d][0],e.o[d][1],e.i[d][0],e.i[d][1],G),G+=1);return n},fn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.rd.v;if(g!==0){var S,b;for(n=0;n<d;n+=1){if(S=this.shapes[n],b=S.localShapeCollection,!(!S.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),S.shape._mdf=!0,i=S.shape.paths.shapes,h=S.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));S.shape.paths=S.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ga(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function tc(e){return Math.abs(e)<=1e-5}function fm(e,i,n){return e*(1-n)+i*n}function Li(e,i,n){return[fm(e[0],i[0],n),fm(e[1],i[1],n)]}function Py(e,i,n){if(e===0)return[];var d=i*i-4*e*n;if(d<0)return[];var p=-i/(2*e);if(d===0)return[p];var h=Math.sqrt(d)/(2*e);return[p-h,p+h]}function vm(e,i,n,d){return[-e+3*i-3*n+d,3*e-6*i+3*n,-3*e+3*i,e]}function gm(e){return new te(e,e,e,e,!1)}function te(e,i,n,d,p){p&&us(e,i)&&(i=Li(e,d,1/3)),p&&us(n,d)&&(n=Li(e,d,2/3));var h=vm(e[0],i[0],n[0],d[0]),g=vm(e[1],i[1],n[1],d[1]);this.a=[h[0],g[0]],this.b=[h[1],g[1]],this.c=[h[2],g[2]],this.d=[h[3],g[3]],this.points=[e,i,n,d]}te.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},te.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},te.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},te.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},te.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(tc(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var d=Math.sqrt(n);return tc(d)?d>0&&d<1?[i]:[]:[i-d,i+d].filter(function(p){return p>0&&p<1})},te.prototype.split=function(e){if(e<=0)return[gm(this.points[0]),this];if(e>=1)return[this,gm(this.points[this.points.length-1])];var i=Li(this.points[0],this.points[1],e),n=Li(this.points[1],this.points[2],e),d=Li(this.points[2],this.points[3],e),p=Li(i,n,e),h=Li(n,d,e),g=Li(p,h,e);return[new te(this.points[0],i,p,g,!0),new te(g,h,d,this.points[3],!0)]};function bm(e,i){var n=e.points[0][i],d=e.points[e.points.length-1][i];if(n>d){var p=d;d=n,n=p}for(var h=Py(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<h.length;g+=1)if(h[g]>0&&h[g]<1){var S=e.point(h[g])[i];S<n?n=S:S>d&&(d=S)}return{min:n,max:d}}te.prototype.bounds=function(){return{x:bm(this,0),y:bm(this,1)}},te.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Ka(e,i,n){var d=e.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function ym(e){var i=e.bez.split(.5);return[Ka(i[0],e.t1,e.t),Ka(i[1],e.t,e.t2)]}function Dy(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function vn(e,i,n,d,p,h){if(Dy(e,i)){if(n>=h||e.width<=d&&e.height<=d&&i.width<=d&&i.height<=d){p.push([e.t,i.t]);return}var g=ym(e),S=ym(i);vn(g[0],S[0],n+1,d,p,h),vn(g[0],S[1],n+1,d,p,h),vn(g[1],S[0],n+1,d,p,h),vn(g[1],S[1],n+1,d,p,h)}}te.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var d=[];return vn(Ka(this,0,1),Ka(e,0,1),0,i,d,n),d},te.shapeSegment=function(e,i){var n=(i+1)%e.length();return new te(e.v[i],e.o[i],e.i[n],e.v[n],!0)},te.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new te(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function ec(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Wa(e,i,n,d){var p=[e[0],e[1],1],h=[i[0],i[1],1],g=[n[0],n[1],1],S=[d[0],d[1],1],b=ec(ec(p,h),ec(g,S));return tc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function ms(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function rc(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function us(e,i){return Ga(e[0],i[0])&&Ga(e[1],i[1])}function gn(){}A([pr],gn),gn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Em(e,i,n,d,p,h,g){var S=n-Math.PI/2,b=n+Math.PI/2,k=i[0]+Math.cos(n)*d*p,M=i[1]-Math.sin(n)*d*p;e.setTripleAt(k,M,k+Math.cos(S)*h,M-Math.sin(S)*h,k+Math.cos(b)*g,M-Math.sin(b)*g,e.length())}function Fy(e,i){var n=[i[0]-e[0],i[1]-e[1]],d=-Math.PI*.5,p=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return p}function $y(e,i){var n=i===0?e.length()-1:i-1,d=(i+1)%e.length(),p=e.v[n],h=e.v[d],g=Fy(p,h);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function Tm(e,i,n,d,p,h,g){var S=$y(i,n),b=i.v[n%i._length],k=i.v[n===0?i._length-1:n-1],M=i.v[(n+1)%i._length],G=h===2?Math.sqrt(Math.pow(b[0]-k[0],2)+Math.pow(b[1]-k[1],2)):0,x=h===2?Math.sqrt(Math.pow(b[0]-M[0],2)+Math.pow(b[1]-M[1],2)):0;Em(e,i.v[n%i._length],S,g,d,x/((p+1)*2),G/((p+1)*2),h)}function zy(e,i,n,d,p,h){for(var g=0;g<d;g+=1){var S=(g+1)/(d+1),b=p===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,k=i.normalAngle(S),M=i.point(S);Em(e,M,k,h,n,b/((d+1)*2),b/((d+1)*2),p),h=-h}return h}gn.prototype.processPath=function(e,i,n,d){var p=e._length,h=_e.newElement();if(h.c=e.c,e.c||(p-=1),p===0)return h;var g=-1,S=te.shapeSegment(e,0);Tm(h,e,0,i,n,d,g);for(var b=0;b<p;b+=1)g=zy(h,S,i,n,d,-g),b===p-1&&!e.c?S=null:S=te.shapeSegment(e,(b+1)%p),Tm(h,e,b+1,i,n,d,g);return h},gn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amplitude.v,S=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,S,b));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ic(e,i,n){var d=Math.atan2(i[0]-e[0],i[1]-e[1]);return[ms(e,d,n),ms(i,d,n)]}function fs(e,i){var n,d,p,h,g,S,b;b=ic(e.points[0],e.points[1],i),n=b[0],d=b[1],b=ic(e.points[1],e.points[2],i),p=b[0],h=b[1],b=ic(e.points[2],e.points[3],i),g=b[0],S=b[1];var k=Wa(n,d,p,h);k===null&&(k=d);var M=Wa(g,S,p,h);return M===null&&(M=g),new te(n,k,M,S)}function xm(e,i,n,d,p){var h=i.points[3],g=n.points[0];if(d===3||us(h,g))return h;if(d===2){var S=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,k=Wa(h,ms(h,S+Math.PI/2,100),g,ms(g,S+Math.PI/2,100)),M=k?rc(k,h):rc(h,g)/2,G=ms(h,S,2*M*Ie);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=ms(g,b,2*M*Ie),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=us(h,i.points[2])?i.points[0]:i.points[2],O=us(g,n.points[1])?n.points[3]:n.points[1],D=Wa(x,h,g,O);return D&&rc(D,h)<p?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):h}function Am(e,i){var n=e.intersections(i);return n.length&&Ga(n[0][0],1)&&n.shift(),n.length?n[0]:null}function Sm(e,i){var n=e.slice(),d=i.slice(),p=Am(e[e.length-1],i[0]);return p&&(n[e.length-1]=e[e.length-1].split(p[0])[0],d[0]=i[0].split(p[1])[1]),e.length>1&&i.length>1&&(p=Am(e[0],i[i.length-1]),p)?[[e[0].split(p[0])[0]],[i[i.length-1].split(p[1])[1]]]:[n,d]}function Vy(e){for(var i,n=1;n<e.length;n+=1)i=Sm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=Sm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function Im(e,i){var n=e.inflectionPoints(),d,p,h,g;if(n.length===0)return[fs(e,i)];if(n.length===1||Ga(n[1],1))return h=e.split(n[0]),d=h[0],p=h[1],[fs(d,i),fs(p,i)];h=e.split(n[0]),d=h[0];var S=(n[1]-n[0])/(1-n[0]);return h=h[1].split(S),g=h[0],p=h[1],[fs(d,i),fs(g,i),fs(p,i)]}function bn(){}A([pr],bn),bn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},bn.prototype.processPath=function(e,i,n,d){var p=_e.newElement();p.c=e.c;var h=e.length();e.c||(h-=1);var g,S,b,k=[];for(g=0;g<h;g+=1)b=te.shapeSegment(e,g),k.push(Im(b,i));if(!e.c)for(g=h-1;g>=0;g-=1)b=te.shapeSegmentInverted(e,g),k.push(Im(b,i));k=Vy(k);var M=null,G=null;for(g=0;g<k.length;g+=1){var x=k[g];for(G&&(M=xm(p,G,x[0],n,d)),G=x[x.length-1],S=0;S<x.length;S+=1)b=x[S],M&&us(b.points[0],M)?p.setXYAt(b.points[1][0],b.points[1][1],"o",p.length()-1):p.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],p.length()),p.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],p.length()),M=b.points[3]}return k.length&&xm(p,G,k[0][0],n,d),p},bn.prototype.processShapes=function(e){var i,n,d=this.shapes.length,p,h,g=this.amount.v,S=this.miterLimit.v,b=this.lineJoin;if(g!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,b,S));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function _m(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",d="normal",p=i.length,h,g=0;g<p;g+=1)switch(h=i[g].toLowerCase(),h){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:e.fWeight||n}}var Eo=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,p=917631,h=917601,g=917626,S=65039,b=8205,k=127462,M=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var P=C.split(","),v,E=P.length,K=[];for(v=0;v<E;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&K.push(P[v]);return K.join(",")}function O(C,P){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var K=E.offsetWidth;return E.style.fontFamily=x(C)+", "+P,{node:E,w:K,parent:v}}function D(){var C,P=this.fonts.length,v,E,K=P;for(C=0;C<P;C+=1)this.fonts[C].loaded?K-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(K-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(K-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));K!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,P){var v=document.body&&P?"svg":"canvas",E,K=_m(C);if(v==="svg"){var z=Tt("text");z.style.fontSize="100px",z.setAttribute("font-family",C.fFamily),z.setAttribute("font-style",K.style),z.setAttribute("font-weight",K.weight),z.textContent="1",C.fClass?(z.style.fontFamily="inherit",z.setAttribute("class",C.fClass)):z.style.fontFamily=C.fFamily,P.appendChild(z),E=z}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=K.style+" "+K.weight+" 100px "+C.fFamily,E=at}function vt(Et){return v==="svg"?(E.textContent=Et,E.getComputedTextLength()):E.measureText(Et).width}return{measureText:vt}}function B(C,P){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(Ke){Ke.helper=R(Ke),Ke.cache={}}),this.fonts=C.list;return}var v=C.list,E,K=v.length,z=K;for(E=0;E<K;E+=1){var at=!0,vt,Et;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,z-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),vt.length>0&&(at=!1),at){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",P.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[E].fPath)!==-1&&(at=!1);if(at){var Dt=y("link");Dt.setAttribute("f-forigin",v[E].fOrigin),Dt.setAttribute("f-origin",v[E].origin),Dt.type="text/css",Dt.rel="stylesheet",Dt.href=v[E].fPath,document.body.appendChild(Dt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[E].fPath===vt[Et].src&&(at=!1);if(at){var ae=y("link");ae.setAttribute("f-forigin",v[E].fOrigin),ae.setAttribute("f-origin",v[E].origin),ae.setAttribute("rel","stylesheet"),ae.setAttribute("href",v[E].fPath),P.appendChild(ae)}}v[E].helper=R(v[E],P),v[E].cache={},this.fonts.push(v[E])}z===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(C){if(C){this.chars||(this.chars=[]);var P,v=C.length,E,K=this.chars.length,z;for(P=0;P<v;P+=1){for(E=0,z=!1;E<K;)this.chars[E].style===C[P].style&&this.chars[E].fFamily===C[P].fFamily&&this.chars[E].ch===C[P].ch&&(z=!0),E+=1;z||(this.chars.push(C[P]),K+=1)}}}function w(C,P,v){for(var E=0,K=this.chars.length;E<K;){if(this.chars[E].ch===C&&this.chars[E].style===P&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,P,v)),i}function T(C,P,v){var E=this.getFontByName(P),K=C;if(!E.cache[K]){var z=E.helper;if(C===" "){var at=z.measureText("|"+C+"|"),vt=z.measureText("||");E.cache[K]=(at-vt)/100}else E.cache[K]=z.measureText(C)/100}return E.cache[K]*v}function I(C){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===C)return this.fonts[P];P+=1}return this.fonts[0]}function N(C){var P=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(P=(v-55296)*1024+E-56320+65536)}return P}function $(C,P){var v=C.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function H(C){return C===b}function Y(C){return C===S}function it(C){var P=N(C);return P>=k&&P<=M}function yt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return n.indexOf(C)!==-1}function st(C,P){var v=N(C.substr(P,2));if(v!==d)return!1;var E=0;for(P+=2;E<5;){if(v=N(C.substr(P,2)),v<h||v>g)return!1;E+=1,P+=2}return N(C.substr(P,2))===p}function xt(){this.isLoaded=!0}var ct=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ct.isModifier=$,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=it,ct.isCombinedCharacter=ut,ct.isRegionalFlag=st,ct.isVariationSelector=Y,ct.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:B,getCharData:w,getFontByName:I,measureText:T,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=rt,ct}();function Cm(e){this.animationData=e}Cm.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function By(e){return new Cm(e)}function Ya(){}Ya.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var oc=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function Uy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Hy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Gy(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Ky(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Wy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Yy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function jy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function qy(){this.p={}}function wm(e,i){var n=e.ef||[];this.effectElements=[];var d,p=n.length,h;for(d=0;d<p;d+=1)h=new yn(n[d],i),this.effectElements.push(h)}function yn(e,i){this.init(e,i)}A([Ee],yn),yn.prototype.getValue=yn.prototype.iterateDynamicProperties,yn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,d=this.data.ef.length,p,h=this.data.ef;for(n=0;n<d;n+=1){switch(p=null,h[n].ty){case 0:p=new Uy(h[n],i,this);break;case 1:p=new Hy(h[n],i,this);break;case 2:p=new Gy(h[n],i,this);break;case 3:p=new Ky(h[n],i,this);break;case 4:case 7:p=new jy(h[n],i,this);break;case 10:p=new Wy(h[n],i,this);break;case 11:p=new Yy(h[n],i,this);break;case 5:p=new wm(h[n],i,this);break;default:p=new qy(h[n],i,this);break}p&&this.effectElements.push(p)}};function Mi(){}Mi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=tm();if(i){var n=i("layer"),d=i("effects"),p=i("shape"),h=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var S=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(S),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=p(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=h(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=oc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,d){this.globalData=n,this.comp=d,this.data=i,this.layerId=He(),this.data.sr||(this.data.sr=1),this.effectsManager=new wm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Oi(){}Oi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var d,p=this.dynamicProperties.length;for(d=0;d<p;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function Ri(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}Ri.prototype.prepareFrame=function(){},A([Ya,Mi,Oi],Ri),Ri.prototype.getBaseElement=function(){return null},Ri.prototype.renderFrame=function(){},Ri.prototype.destroy=function(){},Ri.prototype.initExpressions=function(){var e=tm();if(e){var i=e("footage");this.layerInterface=i(this)}},Ri.prototype.getFootageData=function(){return this.footageData};function Ge(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ge.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([Ya,Mi,Oi],Ge),Ge.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Ge.prototype.show=function(){},Ge.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ge.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ge.prototype.resume=function(){this._canPlay=!0},Ge.prototype.setRate=function(e){this.audio.rate(e)},Ge.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ge.prototype.getBaseElement=function(){return null},Ge.prototype.destroy=function(){},Ge.prototype.sourceRectAtTime=function(){},Ge.prototype.initExpressions=function(){};function we(){}we.prototype.checkLayers=function(e){var i,n=this.layers.length,d;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(d=this.layers[i],d.ip-d.st<=e-this.layers[i].st&&d.op-d.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},we.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},we.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},we.prototype.createAudio=function(e){return new Ge(e,this.globalData,this)},we.prototype.createFootage=function(e){return new Ri(e,this.globalData,this)},we.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},we.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,d,p=this.layers.length;for(i=0;i<n;i+=1)for(d=0;d<p;){if(this.layers[d].id===e[i].id){this.layers[d]=e[i];break}d+=1}},we.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},we.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},we.prototype.buildElementParenting=function(e,i,n){for(var d=this.elements,p=this.layers,h=0,g=p.length;h<g;)p[h].ind==i&&(!d[h]||d[h]===!0?(this.buildItem(h),this.addPendingElement(e)):(n.push(d[h]),d[h].setAsParent(),p[h].parent!==void 0?this.buildElementParenting(e,p[h].parent,n):e.setHierarchy(n))),h+=1},we.prototype.addPendingElement=function(e){this.pendingElements.push(e)},we.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var d=this.createComp(e[i]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},we.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},we.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var d,p=this.elements.length;for(d=0;d<p;d+=1)if(this.elements[d].data.nm===i){n=this.elements[d];break}}return e.length===0?n:n.getElementByPath(e)},we.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new Eo,this.globalData.slotManager=By(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Xy={TRANSFORM_EFFECT:"transformEFfect"};function vs(){}vs.prototype={initTransform:function(){var i=new Ce;this.finalTransform={mProp:this.data.ks?Jd.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,n=this.finalTransform.mat,d=0,p=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<p;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),d=0;d<p;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),i=1;i<n;i+=1){var p=this.localTransforms[i].matrix;d.multiply(p)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var h=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)h*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=h}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(Xy.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Ce;var n=0,d=i.length;for(n=0;n<d;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var d=!0,p=this.comp;d;)p.finalTransform?(p.data.hasMask&&n.splice(0,0,p.finalTransform),p=p.comp):d=!1;var h,g=n.length,S;for(h=0;h<g;h+=1)S=n[h].mat.applyToPointArray(0,0,0),i=[i[0]-S[0],i[1]-S[1],0];return i},mHelper:new Ce};function To(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,p,h=this.masksProperties?this.masksProperties.length:0;this.viewData=et(h),this.solidPath="";var g,S=this.masksProperties,b=0,k=[],M,G,x=He(),O,D,R,B,L="clipPath",w="clip-path";for(p=0;p<h;p+=1)if((S[p].mode!=="a"&&S[p].mode!=="n"||S[p].inv||S[p].o.k!==100||S[p].o.x)&&(L="mask",w="mask"),(S[p].mode==="s"||S[p].mode==="i")&&b===0?(O=Tt("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,g=Tt("path"),S[p].mode==="n")this.viewData[p]={op:nt.getProp(this.element,S[p].o,0,.01,this.element),prop:Ba.getShapeProp(this.element,S[p],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",S[p].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(S[p].x.k!==0?(L="mask",w="mask",B=nt.getProp(this.element,S[p].x,0,null,this.element),T=He(),D=Tt("filter"),D.setAttribute("id",T),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),d.appendChild(D),g.setAttribute("stroke",S[p].mode==="s"?"#000000":"#ffffff")):(R=null,B=null),this.storedData[p]={elem:g,x:B,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},S[p].mode==="i"){G=k.length;var I=Tt("g");for(M=0;M<G;M+=1)I.appendChild(k[M]);var N=Tt("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),I.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),k.length=0,k.push(I)}else k.push(g);S[p].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[p]={elem:g,lastPath:"",op:nt.getProp(this.element,S[p].o,0,.01,this.element),prop:Ba.getShapeProp(this.element,S[p],3),invRect:O},this.viewData[p].prop.k||this.drawPath(S[p],this.viewData[p].prop.v,this.viewData[p])}for(this.maskElement=Tt(L),h=k.length,p=0;p<h;p+=1)this.maskElement.appendChild(k[p]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}To.prototype.getMaskProperty=function(e){return this.viewData[e].prop},To.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var p=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),p.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},To.prototype.getMaskelement=function(){return this.maskElement},To.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},To.prototype.drawPath=function(e,i,n){var d=" M"+i.v[0][0]+","+i.v[0][1],p,h;for(h=i._length,p=1;p<h;p+=1)d+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[p][0]+","+i.i[p][1]+" "+i.v[p][0]+","+i.v[p][1];if(i.c&&h>1&&(d+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==d){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},To.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var En=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(d,p){var h=Tt("filter");return h.setAttribute("id",d),p!==!0&&(h.setAttribute("filterUnits","objectBoundingBox"),h.setAttribute("x","0%"),h.setAttribute("y","0%"),h.setAttribute("width","100%"),h.setAttribute("height","100%")),h}function n(){var d=Tt("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return e}(),km=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),ja={},Nm="filter_result_";function sc(e){var i,n="SourceGraphic",d=e.data.ef?e.data.ef.length:0,p=He(),h=En.createFilter(p,!0),g=0;this.filters=[];var S;for(i=0;i<d;i+=1){S=null;var b=e.data.ef[i].ty;if(ja[b]){var k=ja[b].effect;S=new k(h,e.effectsManager.effectElements[i],e,Nm+g,n),n=Nm+g,ja[b].countsAsEffect&&(g+=1)}S&&this.filters.push(S)}g&&(e.globalData.defs.appendChild(h),e.layerElement.setAttribute("filter","url("+f()+"#"+p+")")),this.filters.length&&e.addRenderableComponent(this)}sc.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},sc.prototype.getEffects=function(e){var i,n=this.filters.length,d=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&d.push(this.filters[i]);return d};function aS(e,i,n){ja[e]={effect:i,countsAsEffect:n}}function Tn(){}Tn.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=Tt("clipPath"),p=Tt("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var h=He();if(d.setAttribute("id",h),d.appendChild(p),this.globalData.defs.appendChild(d),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+h+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new To(this.data,this,this.globalData),this.renderableEffectsManager=new sc(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,d,p,h,g;if(i===1||i===3){var S=Tt("mask");S.setAttribute("id",n),S.setAttribute("mask-type",i===3?"luminance":"alpha"),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),S.appendChild(h),this.globalData.defs.appendChild(S),!km.maskType&&i===1&&(S.setAttribute("mask-type","luminance"),d=He(),p=En.createFilter(d),this.globalData.defs.appendChild(p),p.appendChild(En.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(h),S.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var k=Tt("g");b.appendChild(k),d=He(),p=En.createFilter(d);var M=Tt("feComponentTransfer");M.setAttribute("in","SourceGraphic"),p.appendChild(M);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),M.appendChild(G),this.globalData.defs.appendChild(p);var x=Tt("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(h),km.maskType||(b.setAttribute("mask-type","luminance"),p.appendChild(En.createAlphaToLuminanceFilter()),g=Tt("g"),k.appendChild(x),g.appendChild(this.layerElement),k.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function gs(){}gs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function xn(){}(function(){var e={initElement:function(n,d,p){this.initFrame(),this.initBaseData(n,d,p),this.initTransform(n,d,p),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([Ya,W(e)],xn)})();function An(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Mi,vs,Tn,gs,Oi,xn],An),An.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},An.prototype.sourceRectAtTime=function(){return this.sourceRect};function Zy(e,i){this.elem=e,this.pos=i}function Lm(){}Lm.prototype={addShapeToModifiers:function(i){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var d;for(i=n-1;i>=0&&(d=this.shapeModifiers[i].processShapes(this._isFirstFrame),!d);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,d=0,p=n.length;d<p;){if(n[d].elem===i)return n[d].pos;d+=1}return 0},addProcessedElement:function(i,n){for(var d=this.processedElements,p=d.length;p;)if(p-=1,d[p].elem===i){d[p].pos=n;return}d.push(new Zy(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var Mm={1:"butt",2:"round",3:"square"},Om={1:"miter",2:"round",3:"bevel"};function Rm(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var d=0,p=e.length;d<p;){if(e[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Rm.prototype.setAsAnimated=function(){this._isAnimated=!0};function Pm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}Pm.prototype.reset=function(){this.d="",this._mdf=!1};function qa(e,i,n,d){this.elem=e,this.frameId=-1,this.dataProps=et(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",i.length?i.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var p,h=i.length||0,g;for(p=0;p<h;p+=1)g=nt.getProp(e,i[p].v,0,0,this),this.k=g.k||this.k,this.dataProps[p]={n:i[p].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}qa.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},A([Ee],qa);function Dm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new qa(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Ee],Dm);function Fm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}A([Ee],Fm);function $m(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}A([Ee],$m);function Sn(e,i,n){this.data=i,this.c=Z("uint8c",i.p*4);var d=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=Z("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Sn.prototype.comparePoints=function(e,i){for(var n=0,d=this.o.length/2,p;n<d;){if(p=Math.abs(e[n*4]-e[i*4+n*2]),p>.01)return!1;n+=1}return!0},Sn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Sn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,d,p;for(i=0;i<n;i+=1)d=i%4===0?100:255,p=Math.round(this.prop.v[i]*d),this.c[i]!==p&&(this.c[i]=p,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)d=i%2===0?100:1,p=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==p&&(this.o[i-this.data.p*4]=p,this._omdf=!e);this._mdf=!e}},A([Ee],Sn);function bs(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}bs.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,Nt,this),this.g=new Sn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},bs.prototype.setGradientData=function(e,i){var n=He(),d=Tt(i.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var p=[],h,g,S;for(S=i.g.p*4,g=0;g<S;g+=4)h=Tt("stop"),d.appendChild(h),p.push(h);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=p},bs.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,p,h=Tt("mask"),g=Tt("path");h.appendChild(g);var S=He(),b=He();h.setAttribute("id",b);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",S),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),p=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var M=this.stops;for(d=e.g.p*4;d<p;d+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),M.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+S+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",Mm[e.lc||2]),g.setAttribute("stroke-linejoin",Om[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=h,this.ost=M,this.maskId=b,i.msElem=g}},A([Ee],bs);function zm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new qa(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}A([bs,Ee],zm);function Qy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function Jy(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Vm=function(i,n,d,p){if(n===0)return"";var h=i.o,g=i.i,S=i.v,b,k=" M"+p.applyToPointStringified(S[0][0],S[0][1]);for(b=1;b<n;b+=1)k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[b][0],g[b][1])+" "+p.applyToPointStringified(S[b][0],S[b][1]);return d&&n&&(k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[0][0],g[0][1])+" "+p.applyToPointStringified(S[0][0],S[0][1]),k+="z"),k},tE=function(){var e=new Ce,i=new Ce,n={createRenderFunction:d};function d(G){switch(G.ty){case"fl":return S;case"gf":return k;case"gs":return b;case"st":return M;case"sh":case"el":case"rc":case"sr":return g;case"tr":return p;case"no":return h;default:return null}}function p(G,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function h(){}function g(G,x,O){var D,R,B,L,w,T,I=x.styles.length,N=x.lvl,$,H,Y,it;for(T=0;T<I;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(H=i.reset(),Y=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&Y>0;)L=x.transformers[it].mProps._mdf||L,Y-=1,it-=1;if(L)for(Y=N-x.styles[T].lvl,it=x.transformers.length-1;Y>0;)H.multiply(x.transformers[it].mProps.v),Y-=1,it-=1}else H=e;if($=x.sh.paths,R=$._length,L){for(B="",D=0;D<R;D+=1)w=$.shapes[D],w&&w._length&&(B+=Vm(w,w._length,w.c,H));x.caches[T]=B}else B=x.caches[T];x.styles[T].d+=G.hd===!0?"":B,x.styles[T]._mdf=L||x.styles[T]._mdf}}function S(G,x,O){var D=x.style;(x.c._mdf||O)&&D.pElem.setAttribute("fill","rgb("+ye(x.c.v[0])+","+ye(x.c.v[1])+","+ye(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){k(G,x,O),M(G,x,O)}function k(G,x,O){var D=x.gf,R=x.g._hasOpacity,B=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=G.t===1?"x1":"cx",I=T==="x1"?"y1":"cy";D.setAttribute(T,B[0]),D.setAttribute(I,B[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,B[0]),x.of.setAttribute(I,B[1]))}var N,$,H,Y;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(H=N.length,$=0;$<H;$+=1)Y=N[$],Y.setAttribute("offset",it[$*4]+"%"),Y.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var yt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,H=N.length,$=0;$<H;$+=1)Y=N[$],x.g._collapsable||Y.setAttribute("offset",yt[$*2]+"%"),Y.setAttribute("stop-opacity",yt[$*2+1])}if(G.t===1)(x.e._mdf||O)&&(D.setAttribute("x2",L[0]),D.setAttribute("y2",L[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)),D.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)));var st=Math.atan2(L[1]-B[1],L[0]-B[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=ut*xt,rt=Math.cos(st+x.a.v)*ct+B[0],C=Math.sin(st+x.a.v)*ct+B[1];D.setAttribute("fx",rt),D.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function M(G,x,O){var D=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&D.pElem.setAttribute("stroke","rgb("+ye(x.c.v[0])+","+ye(x.c.v[1])+","+ye(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function re(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}A([Mi,vs,Tn,Lm,gs,Oi,xn],re),re.prototype.initSecondaryElement=function(){},re.prototype.identityMatrix=new Ce,re.prototype.buildExpressionInterface=function(){},re.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},re.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,d,p=this.stylesList.length,h,g=[],S=!1;for(d=0;d<p;d+=1){for(h=this.stylesList[d],S=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(h)!==-1&&(g.push(n),S=n._isAnimated||S);g.length>1&&S&&this.setShapesAsAnimated(g)}},re.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},re.prototype.createStyleElement=function(e,i){var n,d=new Pm(e,i),p=d.pElem;if(e.ty==="st")n=new Dm(this,e,d);else if(e.ty==="fl")n=new Fm(this,e,d);else if(e.ty==="gf"||e.ty==="gs"){var h=e.ty==="gf"?bs:zm;n=new h(this,e,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),p.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new $m(this,e,d));return(e.ty==="st"||e.ty==="gs")&&(p.setAttribute("stroke-linecap",Mm[e.lc||2]),p.setAttribute("stroke-linejoin",Om[e.lj||2]),p.setAttribute("fill-opacity","0"),e.lj===1&&p.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&p.setAttribute("fill-rule","evenodd"),e.ln&&p.setAttribute("id",e.ln),e.cl&&p.setAttribute("class",e.cl),e.bm&&(p.style["mix-blend-mode"]=oc(e.bm)),this.stylesList.push(d),this.addToAnimatedContents(e,n),n},re.prototype.createGroupElement=function(e){var i=new Qy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=oc(e.bm)),i},re.prototype.createTransformElement=function(e,i){var n=Jd.getTransformProperty(this,e,this),d=new Jy(n,n.o,i);return this.addToAnimatedContents(e,d),d},re.prototype.createShapeElement=function(e,i,n){var d=4;e.ty==="rc"?d=5:e.ty==="el"?d=6:e.ty==="sr"&&(d=7);var p=Ba.getShapeProp(this,e,d,this),h=new Rm(i,n,p);return this.shapes.push(h),this.addShapeToModifiers(h),this.addToAnimatedContents(e,h),h},re.prototype.addToAnimatedContents=function(e,i){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:tE.createRenderFunction(e),element:i,data:e})},re.prototype.setElementStyles=function(e){var i=e.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},re.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},re.prototype.searchShapes=function(e,i,n,d,p,h,g){var S=[].concat(h),b,k=e.length-1,M,G,x=[],O=[],D,R,B;for(b=k;b>=0;b-=1){if(B=this.searchProcessedElement(e[b]),B?i[b]=n[B-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")B?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],p),e[b]._render&&i[b].style.pElem.parentNode!==d&&d.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!B)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,M=0;M<G;M+=1)i[b].prevViewData[M]=i[b].it[M];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,p+1,S,g),e[b]._render&&i[b].gr.parentNode!==d&&d.appendChild(i[b].gr)}else e[b].ty==="tr"?(B||(i[b]=this.createTransformElement(e[b],d)),D=i[b].transform,S.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(B||(i[b]=this.createShapeElement(e[b],S,p)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(B?(R=i[b],R.closed=!1):(R=Ni.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),O.push(R)):e[b].ty==="rp"&&(B?(R=i[b],R.closed=!0):(R=Ni.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(e[b],b+1)}for(k=x.length,b=0;b<k;b+=1)x[b].closed=!0;for(k=O.length,b=0;b<k;b+=1)O[b].closed=!0},re.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},re.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},re.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function nc(e,i,n,d,p,h){this.o=e,this.sw=i,this.sc=n,this.fc=d,this.m=p,this.p=h,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!d,m:!0,p:!0}}nc.prototype.update=function(e,i,n,d,p,h){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==p&&(this.m=p,this._mdf.m=!0,g=!0),h.length&&(this.p[0]!==h[0]||this.p[1]!==h[1]||this.p[4]!==h[4]||this.p[5]!==h[5]||this.p[12]!==h[12]||this.p[13]!==h[13])&&(this.p=h,this._mdf.p=!0,g=!0),g};function Pe(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Pe.prototype.defaultBoxWidth=[0,0],Pe.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},Pe.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Pe.prototype.searchProperty=function(){return this.searchKeyframes()},Pe.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Pe.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Pe.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,p=this.effectsSequence.length,h=e||this.data.d.k[this.keysIndex].s;for(d=0;d<p;d+=1)n!==this.keysIndex?h=this.effectsSequence[d](h,h.t):h=this.effectsSequence[d](this.currentData,h.t);i!==h&&this.setCurrentData(h),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Pe.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,d=e.length;n<=d-1&&!(n===d-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Pe.prototype.buildFinalText=function(e){for(var i=[],n=0,d=e.length,p,h,g=!1,S=!1,b="";n<d;)g=S,S=!1,p=e.charCodeAt(n),b=e.charAt(n),Eo.isCombinedCharacter(p)?g=!0:p>=55296&&p<=56319?Eo.isRegionalFlag(e,n)?b=e.substr(n,14):(h=e.charCodeAt(n+1),h>=56320&&h<=57343&&(Eo.isModifier(p,h)?(b=e.substr(n,2),g=!0):Eo.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):p>56319?(h=e.charCodeAt(n+1),Eo.isVariationSelector(p)&&(g=!0)):Eo.isZeroWidthJoiner(p)&&(g=!0,S=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},Pe.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,d=[],p,h,g,S=0,b,k=n.m.g,M=0,G=0,x=0,O=[],D=0,R=0,B,L,w=i.getFontByName(e.f),T,I=0,N=_m(w);e.fWeight=N.weight,e.fStyle=N.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),h=e.finalText.length,e.finalLineHeight=e.lh;var $=e.tr/1e3*e.finalSize,H;if(e.sz)for(var Y=!0,it=e.sz[0],yt=e.sz[1],ut,st;Y;){st=this.buildFinalText(e.t),ut=0,D=0,h=st.length,$=e.tr/1e3*e.finalSize;var xt=-1;for(p=0;p<h;p+=1)H=st[p].charCodeAt(0),g=!1,st[p]===" "?xt=p:(H===13||H===3)&&(D=0,g=!0,ut+=e.finalLineHeight||e.finalSize*1.2),i.chars?(T=i.getCharData(st[p],w.fStyle,w.fFamily),I=g?0:T.w*e.finalSize/100):I=i.measureText(st[p],e.f,e.finalSize),D+I>it&&st[p]!==" "?(xt===-1?h+=1:p=xt,ut+=e.finalLineHeight||e.finalSize*1.2,st.splice(p,xt===p?1:0,"\r"),xt=-1,D=0):(D+=I,D+=$);ut+=w.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<ut?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,h=e.finalText.length,Y=!1)}D=-$,I=0;var ct=0,rt;for(p=0;p<h;p+=1)if(g=!1,rt=e.finalText[p],H=rt.charCodeAt(0),H===13||H===3?(ct=0,O.push(D),R=D>R?D:R,D=-2*$,b="",g=!0,x+=1):b=rt,i.chars?(T=i.getCharData(rt,w.fStyle,i.getFontByName(e.f).fFamily),I=g?0:T.w*e.finalSize/100):I=i.measureText(b,e.f,e.finalSize),rt===" "?ct+=I+$:(D+=I+$+ct,ct=0),d.push({l:I,an:I,add:M,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),k==2){if(M+=I,b===""||b===" "||p===h-1){for((b===""||b===" ")&&(M-=I);G<=p;)d[G].an=M,d[G].ind=S,d[G].extra=I,G+=1;S+=1,M=0}}else if(k==3){if(M+=I,b===""||p===h-1){for(b===""&&(M-=I);G<=p;)d[G].an=M,d[G].ind=S,d[G].extra=I,G+=1;M=0,S+=1}}else d[S].ind=S,d[S].extra=0,S+=1;if(e.l=d,R=D>R?D:R,O.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=O;var C=n.a,P,v;L=C.length;var E,K,z=[];for(B=0;B<L;B+=1){for(P=C[B],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),K=0,E=P.s.b,p=0;p<h;p+=1)v=d[p],v.anIndexes[B]=K,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||p==h-1)||E==4&&(v.n||p==h-1))&&(P.s.rn===1&&z.push(K),K+=1);n.a[B].s.totalChars=K;var at=-1,vt;if(P.s.rn===1)for(p=0;p<h;p+=1)v=d[p],at!=v.anIndexes[B]&&(at=v.anIndexes[B],vt=z.splice(Math.floor(Math.random()*z.length),1)[0]),v.anIndexes[B]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=w.ascent*e.finalSize/100},Pe.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Pe.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Pe.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Pe.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var eE=function(){var e=Math.max,i=Math.min,n=Math.floor;function d(h,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=h,this.comp=h.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(h),this.s=nt.getProp(h,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(h,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(h,g.o||{k:0},0,0,this),this.xe=nt.getProp(h,g.xe||{k:0},0,0,this),this.ne=nt.getProp(h,g.ne||{k:0},0,0,this),this.sm=nt.getProp(h,g.sm||{k:100},0,0,this),this.a=nt.getProp(h,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var S=0,b=0,k=1,M=1;this.ne.v>0?S=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var G=mn.getBezierEasing(S,b,k,M).get,x=0,O=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===O?x=g>=D?1:0:x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===3)D===O?x=g>=D?0:1:x=1-e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===4)D===O?x=0:(x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===O)x=0;else{var B=D-O;g=i(e(0,g+.5-O),D-O);var L=-B/2+g,w=B/2;x=Math.sqrt(1-L*L/(w*w))}x=G(x)}else R===6?(D===O?x=0:(g=i(e(0,g+.5-O),D-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-O)))/2),x=G(x)):(g>=n(O)&&(g-O<0?x=e(0,i(i(D,1)-(O-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var I=.5-T*.5;x<I?x=0:(x=(x-I)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var S=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/S,k=this.s.v/S+b,M=this.e.v/S+b;if(k>M){var G=k;k=M,M=G}this.finalS=k,this.finalE=M}},A([Ee],d);function p(h,g,S){return new d(h,g,S)}return{getTextSelectorProp:p}}();function rE(e,i,n){var d={propType:!1},p=nt.getProp,h=i.a;this.a={r:h.r?p(e,h.r,0,Nt,n):d,rx:h.rx?p(e,h.rx,0,Nt,n):d,ry:h.ry?p(e,h.ry,0,Nt,n):d,sk:h.sk?p(e,h.sk,0,Nt,n):d,sa:h.sa?p(e,h.sa,0,Nt,n):d,s:h.s?p(e,h.s,1,.01,n):d,a:h.a?p(e,h.a,1,0,n):d,o:h.o?p(e,h.o,0,.01,n):d,p:h.p?p(e,h.p,1,0,n):d,sw:h.sw?p(e,h.sw,0,0,n):d,sc:h.sc?p(e,h.sc,1,0,n):d,fc:h.fc?p(e,h.fc,1,0,n):d,fh:h.fh?p(e,h.fh,0,0,n):d,fs:h.fs?p(e,h.fs,0,.01,n):d,fb:h.fb?p(e,h.fb,0,.01,n):d,t:h.t?p(e,h.t,0,0,n):d},this.s=eE.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function xo(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}xo.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,d=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new rE(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},xo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,p=this._textData,h=this.mHelper,g=this._renderType,S=this.renderedLetters.length,b,k,M,G,x=e.l,O,D,R,B,L,w,T,I,N,$,H,Y,it,yt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var xt;for(Y=0,M=0;M<G;M+=1)xt=$r.buildBezierData(st.v[M],st.v[M+1],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[M+1][0]-st.v[M+1][0],st.i[M+1][1]-st.v[M+1][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),Y+=xt.segmentLength;M=G,ut.v.c&&(xt=$r.buildBezierData(st.v[M],st.v[0],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),Y+=xt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,D=this._pathData.f.v,T=0,w=1,B=0,L=!0,$=O.segments,D<0&&ut.v.c)for(O.tLength<Math.abs(D)&&(D=-Math.abs(D)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;D<0;)D+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,I=N[w-1],R=N[w],H=R.partialLength}G=x.length,b=0,k=0;var ct=e.finalSize*1.2*.714,rt=!0,C,P,v,E,K;E=d.length;var z,at=-1,vt,Et,Pt,Dt=D,ae=T,Ke=w,Vr=-1,We,Te,rr,zt,ht,si,Di,ni,Br="",ai=this.defaultPropsArray,li;if(e.j===2||e.j===1){var Ye=0,Fi=0,$i=e.j===2?-.5:-1,wr=0,zi=!0;for(M=0;M<G;M+=1)if(x[M].n){for(Ye&&(Ye+=Fi);wr<M;)x[wr].animatorJustifyOffset=Ye,wr+=1;Ye=0,zi=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(zi&&e.j===2&&(Fi+=C.t.v*$i),P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?Ye+=C.t.v*z[0]*$i:Ye+=C.t.v*z*$i);zi=!1}for(Ye&&(Ye+=Fi);wr<M;)x[wr].animatorJustifyOffset=Ye,wr+=1}for(M=0;M<G;M+=1){if(h.reset(),We=1,x[M].n)b=0,k+=e.yOffset,k+=rt?1:0,D=Dt,rt=!1,this._hasMaskedPath&&(T=ae,w=Ke,N=$[T].points,I=N[w-1],R=N[w],H=R.partialLength,B=0),Br="",ni="",si="",li="",ai=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Vr!==x[M].line){switch(e.j){case 1:D+=Y-e.lineWidths[x[M].line];break;case 2:D+=(Y-e.lineWidths[x[M].line])/2;break;default:break}Vr=x[M].line}at!==x[M].ind&&(x[at]&&(D+=x[at].extra),D+=x[M].an/2,at=x[M].ind),D+=n[0]*x[M].an*.005;var kr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?kr+=C.p.v[0]*z[0]:kr+=C.p.v[0]*z),C.a.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?kr+=C.a.v[0]*z[0]:kr+=C.a.v[0]*z);for(L=!0,this._pathData.a.v&&(D=x[0].an*.5+(Y-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);L;)B+H>=D+kr||!N?(it=(D+kr-B)/R.partialLength,Et=I.point[0]+(R.point[0]-I.point[0])*it,Pt=I.point[1]+(R.point[1]-I.point[1])*it,h.translate(-n[0]*x[M].an*.005,-(n[1]*ct)*.01),L=!1):N&&(B+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ut.v.c?(w=0,T=0,N=$[T].points):(B-=R.partialLength,N=null)),N&&(I=R,R=N[w],H=R.partialLength));vt=x[M].an/2-x[M].add,h.translate(-vt,0,0)}else vt=x[M].an/2-x[M].add,h.translate(-vt,0,0),h.translate(-n[0]*x[M].an*.005,-n[1]*ct*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?z.length?D+=C.t.v*z[0]:D+=C.t.v*z:z.length?b+=C.t.v*z[0]:b+=C.t.v*z));for(e.strokeWidthAnim&&(rr=e.sw||0),e.strokeColorAnim&&(e.sc?Te=[e.sc[0],e.sc[1],e.sc[2]]:Te=[0,0,0]),e.fillColorAnim&&e.fc&&(zt=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?h.translate(-C.a.v[0]*z[0],-C.a.v[1]*z[1],C.a.v[2]*z[2]):h.translate(-C.a.v[0]*z,-C.a.v[1]*z,C.a.v[2]*z));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?h.scale(1+(C.s.v[0]-1)*z[0],1+(C.s.v[1]-1)*z[1],1):h.scale(1+(C.s.v[0]-1)*z,1+(C.s.v[1]-1)*z,1));for(v=0;v<E;v+=1){if(C=d[v].a,P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),C.sk.propType&&(z.length?h.skewFromAxis(-C.sk.v*z[0],C.sa.v*z[1]):h.skewFromAxis(-C.sk.v*z,C.sa.v*z)),C.r.propType&&(z.length?h.rotateZ(-C.r.v*z[2]):h.rotateZ(-C.r.v*z)),C.ry.propType&&(z.length?h.rotateY(C.ry.v*z[1]):h.rotateY(C.ry.v*z)),C.rx.propType&&(z.length?h.rotateX(C.rx.v*z[0]):h.rotateX(C.rx.v*z)),C.o.propType&&(z.length?We+=(C.o.v*z[0]-We)*z[0]:We+=(C.o.v*z-We)*z),e.strokeWidthAnim&&C.sw.propType&&(z.length?rr+=C.sw.v*z[0]:rr+=C.sw.v*z),e.strokeColorAnim&&C.sc.propType)for(ht=0;ht<3;ht+=1)z.length?Te[ht]+=(C.sc.v[ht]-Te[ht])*z[0]:Te[ht]+=(C.sc.v[ht]-Te[ht])*z;if(e.fillColorAnim&&e.fc){if(C.fc.propType)for(ht=0;ht<3;ht+=1)z.length?zt[ht]+=(C.fc.v[ht]-zt[ht])*z[0]:zt[ht]+=(C.fc.v[ht]-zt[ht])*z;C.fh.propType&&(z.length?zt=Jp(zt,C.fh.v*z[0]):zt=Jp(zt,C.fh.v*z)),C.fs.propType&&(z.length?zt=Zp(zt,C.fs.v*z[0]):zt=Zp(zt,C.fs.v*z)),C.fb.propType&&(z.length?zt=Qp(zt,C.fb.v*z[0]):zt=Qp(zt,C.fb.v*z))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),this._hasMaskedPath?z.length?h.translate(0,C.p.v[1]*z[0],-C.p.v[2]*z[1]):h.translate(0,C.p.v[1]*z,-C.p.v[2]*z):z.length?h.translate(C.p.v[0]*z[0],C.p.v[1]*z[1],-C.p.v[2]*z[2]):h.translate(C.p.v[0]*z,C.p.v[1]*z,-C.p.v[2]*z));if(e.strokeWidthAnim&&(si=rr<0?0:rr),e.strokeColorAnim&&(Di="rgb("+Math.round(Te[0]*255)+","+Math.round(Te[1]*255)+","+Math.round(Te[2]*255)+")"),e.fillColorAnim&&e.fc&&(ni="rgb("+Math.round(zt[0]*255)+","+Math.round(zt[1]*255)+","+Math.round(zt[2]*255)+")"),this._hasMaskedPath){if(h.translate(0,-e.ls),h.translate(0,n[1]*ct*.01+k,0),this._pathData.p.v){yt=(R.point[1]-I.point[1])/(R.point[0]-I.point[0]);var Ao=Math.atan(yt)*180/Math.PI;R.point[0]<I.point[0]&&(Ao+=180),h.rotate(-Ao*Math.PI/180)}h.translate(Et,Pt,0),D-=n[0]*x[M].an*.005,x[M+1]&&at!==x[M+1].ind&&(D+=x[M].an/2,D+=e.tr*.001*e.finalSize)}else{switch(h.translate(b,k,0),e.ps&&h.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line]),0,0);break;case 2:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line])/2,0,0);break;default:break}h.translate(0,-e.ls),h.translate(vt,0,0),h.translate(n[0]*x[M].an*.005,n[1]*ct*.01,0),b+=x[M].l+e.tr*.001*e.finalSize}g==="html"?Br=h.toCSS():g==="svg"?Br=h.to2dCSS():ai=[h.props[0],h.props[1],h.props[2],h.props[3],h.props[4],h.props[5],h.props[6],h.props[7],h.props[8],h.props[9],h.props[10],h.props[11],h.props[12],h.props[13],h.props[14],h.props[15]],li=We}S<=M?(K=new nc(li,si,Di,ni,Br,ai),this.renderedLetters.push(K),S+=1,this.lettersChangedFlag=!0):(K=this.renderedLetters[M],this.lettersChangedFlag=K.update(li,si,Di,ni,Br,ai)||this.lettersChangedFlag)}}},xo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},xo.prototype.mHelper=new Ce,xo.prototype.defaultPropsArray=[],A([Ee],xo);function mr(){}mr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new Pe(this,e.t,this.dynamicProperties),this.textAnimator=new xo(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},mr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},mr.prototype.createPathShape=function(e,i){var n,d=i.length,p,h="";for(n=0;n<d;n+=1)i[n].ty==="sh"&&(p=i[n].ks.k,h+=Vm(p,p.i.length,!0,e));return h},mr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},mr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},mr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},mr.prototype.applyTextPropertiesToMatrix=function(e,i,n,d,p){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(d,p,0)},mr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},mr.prototype.emptyProp=new nc,mr.prototype.destroy=function(){},mr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var iE={shapes:[]};function ii(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}A([Mi,vs,Tn,gs,Oi,xn,mr],ii),ii.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ii.prototype.buildTextContents=function(e){for(var i=0,n=e.length,d=[],p="";i<n;)e[i]==="\r"||e[i]===""?(d.push(p),p=""):p+=e[i],i+=1;return d.push(p),d},ii.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=i,d.s.k[1]=i)}}return e},ii.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=et(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var p=n.fWeight,h=n.fStyle;this.layerElement.setAttribute("font-style",h),this.layerElement.setAttribute("font-weight",p)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],S=!!this.globalData.fontManager.chars;i=g.length;var b,k=this.mHelper,M="",G=this.data.singleShape,x=0,O=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!S&&!n.sz){var B=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}B.setAttribute("text-anchor",L),B.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(i=w.length,O=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=w[e],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",B.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(B)}else{var T=this.textSpans.length,I;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!S||!G||e===0){if(b=T>e?this.textSpans[e].span:Tt(S?"g":"text"),T<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,S){var N=Tt("g");b.appendChild(N),this.textSpans[e].childSpan=N}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(k.reset(),G&&(g[e].n&&(x=-R,O+=n.yOffset,O+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,k,g[e].line,x,O),x+=g[e].l||0,x+=R),S){I=this.globalData.fontManager.getCharData(n.finalText[e],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(I.t===1)$=new In(I.data,this.globalData,this);else{var H=iE;I.data&&I.data.shapes&&(H=this.buildShapeData(I.data,n.finalSize)),$=new re(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=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[e].childSpan.appendChild($.layerElement),I.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",M)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ii.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},ii.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ii.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;i=d.length;var p,h,g;for(e=0;e<i;e+=1)d[e].n||(p=n[e],h=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),p._mdf.m&&h.setAttribute("transform",p.m),p._mdf.o&&h.setAttribute("opacity",p.o),p._mdf.sw&&h.setAttribute("stroke-width",p.sw),p._mdf.sc&&h.setAttribute("stroke",p.sc),p._mdf.fc&&h.setAttribute("fill",p.fc))}};function ac(e,i,n){this.initElement(e,i,n)}A([An],ac),ac.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Pi(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Pi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Pi.prototype.renderFrame=function(){},Pi.prototype.getBaseElement=function(){return null},Pi.prototype.destroy=function(){},Pi.prototype.sourceRectAtTime=function(){},Pi.prototype.hide=function(){},A([Mi,vs,gs,Oi],Pi);function he(){}A([we],he),he.prototype.createNull=function(e){return new Pi(e,this.globalData,this)},he.prototype.createShape=function(e){return new re(e,this.globalData,this)},he.prototype.createText=function(e){return new ii(e,this.globalData,this)},he.prototype.createImage=function(e){return new An(e,this.globalData,this)},he.prototype.createSolid=function(e){return new ac(e,this.globalData,this)},he.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),d=Tt("rect");d.setAttribute("width",e.w),d.setAttribute("height",e.h),d.setAttribute("x",0),d.setAttribute("y",0);var p=He();n.setAttribute("id",p),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")"),i.appendChild(n),this.layers=e.layers,this.elements=et(e.layers.length)},he.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},he.prototype.updateContainerSize=function(){},he.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},he.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,Ra()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var d="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var p=i[d],h=p.getMatte(this.layers[e].tt);n.setMatte(h)}}}},he.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var d="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,p=this.elements[d],h=p.getMatte(this.layers[i].tt);e.setMatte(h);break}i+=1}}},he.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},he.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var d=0,p;d<i;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(p=this.elements[d].getBaseElement()),d+=1;p?this.layerElement.insertBefore(n,p):this.layerElement.appendChild(n)}},he.prototype.hide=function(){this.layerElement.style.display="none"},he.prototype.show=function(){this.layerElement.style.display="block"};function oi(){}A([Mi,vs,gs,Oi,xn],oi),oi.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},oi.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},oi.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},oi.prototype.setElements=function(e){this.elements=e},oi.prototype.getElements=function(){return this.elements},oi.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},oi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function In(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}A([he,oi,Tn],In),In.prototype.createComp=function(e){return new In(e,this.globalData,this)};function lc(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var d=Tt("title"),p=He();d.setAttribute("id",p),d.textContent=i.title,this.svgElement.appendChild(d),n+=p}if(i&&i.description){var h=Tt("desc"),g=He();h.setAttribute("id",g),h.textContent=i.description,this.svgElement.appendChild(h),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var S=Tt("defs");this.svgElement.appendChild(S);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:S,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([he],lc),lc.prototype.createComp=function(e){return new In(e,this.globalData,this)},my("svg",lc),Ni.registerModifier("tm",Cr),Ni.registerModifier("pb",un),Ni.registerModifier("rp",zr),Ni.registerModifier("rd",fn),Ni.registerModifier("zz",gn),Ni.registerModifier("op",bn),Ft})});var Ja=globalThis,tl=Ja.ShadowRoot&&(Ja.ShadyCSS===void 0||Ja.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cc=Symbol(),Um=new WeakMap,_n=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==cc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(tl&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Um.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Um.set(t,o))}return o}toString(){return this.cssText}},Hm=a=>new _n(typeof a=="string"?a:a+"",void 0,cc),U=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,l)=>r+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[l+1],a[0]);return new _n(t,a,cc)},hc=(a,o)=>{if(tl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Ja.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},el=tl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Hm(t)})(a):a;var{is:hE,defineProperty:pE,getOwnPropertyDescriptor:mE,getOwnPropertyNames:uE,getOwnPropertySymbols:fE,getPrototypeOf:vE}=Object,Vi=globalThis,Gm=Vi.trustedTypes,gE=Gm?Gm.emptyScript:"",pc=Vi.reactiveElementPolyfillSupport,Cn=(a,o)=>a,wn={toAttribute(a,o){switch(o){case Boolean:a=a?gE:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},rl=(a,o)=>!hE(a,o),Km={attribute:!0,type:String,converter:wn,reflect:!1,hasChanged:rl},Wm,Ym;(Wm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ym=Vi.litPropertyMetadata)!=null||(Vi.litPropertyMetadata=new WeakMap);var di=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Km){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&pE(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var c;let{get:s,set:l}=(c=mE(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let y=s==null?void 0:s.call(this);l.call(this,f),this.requestUpdate(o,y,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Km}static _$Ei(){if(this.hasOwnProperty(Cn("elementProperties")))return;let o=vE(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cn("properties"))){let t=this.properties,r=[...uE(t),...fE(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(el(s))}else o!==void 0&&t.push(el(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return hc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var l;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let c=(((l=r.converter)==null?void 0:l.toAttribute)!==void 0?r.converter:wn).toAttribute(t,r.type);this._$Em=o,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(o,t){var l;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:wn;this._$Em=s,this[s]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:rl)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},jm;di.elementStyles=[],di.shadowRootOptions={mode:"open"},di[Cn("elementProperties")]=new Map,di[Cn("finalized")]=new Map,pc==null||pc({ReactiveElement:di}),((jm=Vi.reactiveElementVersions)!=null?jm:Vi.reactiveElementVersions=[]).push("2.0.4");var Nn=globalThis,il=Nn.trustedTypes,qm=il?il.createPolicy("lit-html",{createHTML:a=>a}):void 0,fc="$lit$",ci=`lit$${Math.random().toFixed(9).slice(2)}$`,vc="?"+ci,bE=`<${vc}>`,_o=document,Ln=()=>_o.createComment(""),Mn=a=>a===null||typeof a!="object"&&typeof a!="function",gc=Array.isArray,ru=a=>gc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",mc=`[
|
|
3
3
|
\f\r]`,kn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xm=/-->/g,Zm=/>/g,So=RegExp(`>|${mc}(?:([^\\s"'>=/]+)(${mc}*=${mc}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Qm=/'/g,Jm=/"/g,iu=/^(?:script|style|textarea|title)$/i,bc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),_=bc(1),mS=bc(2),uS=bc(3),we=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),tu=new WeakMap,Io=_o.createTreeWalker(_o,129);function ou(a,o){if(!gc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return qm!==void 0?qm.createHTML(o):o}var su=(a,o)=>{let t=a.length-1,r=[],s,l=o===2?"<svg>":o===3?"<math>":"",c=kn;for(let f=0;f<t;f++){let y=a[f],S,F,W=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===kn?F[1]==="!--"?c=Xm:F[1]!==void 0?c=Zm:F[2]!==void 0?(iu.test(F[2])&&(s=RegExp("</"+F[2],"g")),c=So):F[3]!==void 0&&(c=So):c===So?F[0]===">"?(c=s!=null?s:kn,W=-1):F[1]===void 0?W=-2:(W=c.lastIndex-F[2].length,S=F[1],c=F[3]===void 0?So:F[3]==='"'?Jm:Qm):c===Jm||c===Qm?c=So:c===Xm||c===Zm?c=kn:(c=So,s=void 0);let Z=c===So&&a[f+1].startsWith("/>")?" ":"";l+=c===kn?y+gE:W>=0?(r.push(S),y.slice(0,W)+fc+y.slice(W)+ci+Z):y+ci+(W===-2?f:Z)}return[ou(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},On=class a{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let l=0,c=0,f=o.length-1,y=this.parts,[S,F]=su(o,t);if(this.el=a.createElement(S,r),Io.currentNode=this.el.content,t===2||t===3){let W=this.el.content.firstChild;W.replaceWith(...W.childNodes)}for(;(s=Io.nextNode())!==null&&y.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let W of s.getAttributeNames())if(W.endsWith(fc)){let Q=F[c++],Z=s.getAttribute(W).split(ci),et=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:et[2],strings:Z,ctor:et[1]==="."?sl:et[1]==="?"?nl:et[1]==="@"?al:wo}),s.removeAttribute(W)}else W.startsWith(ci)&&(y.push({type:6,index:l}),s.removeAttribute(W));if(iu.test(s.tagName)){let W=s.textContent.split(ci),Q=W.length-1;if(Q>0){s.textContent=il?il.emptyScript:"";for(let Z=0;Z<Q;Z++)s.append(W[Z],Ln()),Io.nextNode(),y.push({type:2,index:++l});s.append(W[Q],Ln())}}}else if(s.nodeType===8)if(s.data===vc)y.push({type:2,index:l});else{let W=-1;for(;(W=s.data.indexOf(ci,W+1))!==-1;)y.push({type:7,index:l}),W+=ci.length-1}l++}}static createElement(o,t){let r=_o.createElement("template");return r.innerHTML=o,r}};function Co(a,o,t=a,r){var c,f,y;if(o===we)return o;let s=r!==void 0?(c=t.o)==null?void 0:c[r]:t.l,l=Mn(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((f=s==null?void 0:s._$AO)==null||f.call(s,!1),l===void 0?s=void 0:(s=new l(a),s._$AT(a,t,r)),r!==void 0?((y=t.o)!=null?y:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=Co(a,s._$AS(a,o.values),s,r)),o}var ol=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 S;let{el:{content:t},parts:r}=this._$AD,s=((S=o==null?void 0:o.creationScope)!=null?S:_o).importNode(t,!0);Io.currentNode=s;let l=Io.nextNode(),c=0,f=0,y=r[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new ys(l,l.nextSibling,this,o):y.type===1?F=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(F=new ll(l,this,o)),this._$AV.push(F),y=r[++f]}c!==(y==null?void 0:y.index)&&(l=Io.nextNode(),c++)}return Io.currentNode=_o,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++}},ys=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var l;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(l=s==null?void 0:s.isConnected)!=null?l:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Co(this,o,t),Mn(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==we&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):ru(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==j&&Mn(this._$AH)?this._$AA.nextSibling.data=o:this.T(_o.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=On.createElement(ou(r.h,r.h[0]),this.options)),r);if(((l=this._$AH)==null?void 0:l._$AD)===s)this._$AH.p(t);else{let c=new ol(s,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=tu.get(o.strings);return t===void 0&&tu.set(o.strings,t=new On(o)),t}k(o){gc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let l of o)s===t.length?t.push(r=new a(this.O(Ln()),this.O(Ln()),this,this.options)):r=t[s],r._$AI(l),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},wo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,l){this.type=1,this._$AH=j,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=l,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=j}_$AI(o,t=this,r,s){let l=this.strings,c=!1;if(l===void 0)o=Co(this,o,t,0),c=!Mn(o)||o!==this._$AH&&o!==we,c&&(this._$AH=o);else{let f=o,y,S;for(o=l[0],y=0;y<l.length-1;y++)S=Co(this,f[r+y],t,y),S===we&&(S=this._$AH[y]),c||(c=!Mn(S)||S!==this._$AH[y]),S===j?o=j:o!==j&&(o+=(S!=null?S:"")+l[y+1]),this._$AH[y]=S}c&&!s&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},sl=class extends wo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},nl=class extends wo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},al=class extends wo{constructor(o,t,r,s,l){super(o,t,r,s,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=Co(this,o,t,0))!=null?c:j)===we)return;let r=this._$AH,s=o===j&&r!==j||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,l=o!==j&&(r===j||s);s&&this.element.removeEventListener(this.name,this,r),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},ll=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){Co(this,o)}},nu={M:fc,P:ci,A:vc,C:1,L:su,R:ol,D:ru,V:Co,I:ys,H:wo,N:nl,U:al,B:sl,F:ll},uc=Nn.litHtmlPolyfillSupport,eu;uc==null||uc(On,ys),((eu=Nn.litHtmlVersions)!=null?eu:Nn.litHtmlVersions=[]).push("3.2.0");var au=(a,o,t)=>{var l,c;let r=(l=t==null?void 0:t.renderBefore)!=null?l:o,s=r._$litPart$;if(s===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;r._$litPart$=s=new ys(o.insertBefore(Ln(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var Bi=class extends di{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=au(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return we}},lu;Bi._$litElement$=!0,Bi.finalized=!0,(lu=globalThis.litElementHydrateSupport)==null||lu.call(globalThis,{LitElement:Bi});var yc=globalThis.litElementPolyfillSupport;yc==null||yc({LitElement:Bi});var du;((du=globalThis.litElementVersions)!=null?du:globalThis.litElementVersions=[]).push("4.1.0");var bE={attribute:!0,type:String,converter:wn,reflect:!1,hasChanged:rl},yE=(a=bE,o,t)=>{let{kind:r,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),l.set(t.name,a),r==="accessor"){let{name:c}=t;return{set(f){let y=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(r==="setter"){let{name:c}=t;return function(f){let y=this[c];o.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+r)};function u(a){return(o,t)=>typeof t=="object"?yE(a,o,t):((r,s,l)=>{let c=s.hasOwnProperty(l);return s.constructor.createProperty(l,c?{...r,wrapped:!0}:r),c?Object.getOwnPropertyDescriptor(s,l):void 0})(a,o,t)}function pt(a){return u({...a,state:!0,attribute:!1})}function cu(a){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,a)}}var Ur=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Kt(a,o){return(t,r,s)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(o){let{get:c,set:f}=typeof r=="object"?t:s!=null?s:(()=>{let y=Symbol();return{get(){return this[y]},set(S){this[y]=S}}})();return Ur(t,r,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Ur(t,r,{get(){return l(this)}})}}var Ec;function hu(a){return(o,t)=>Ur(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:Ec!=null?Ec:Ec=document.createDocumentFragment()).querySelectorAll(a)}})}function $t(a){return(o,t)=>{let{slot:r,selector:s}=a!=null?a:{},l="slot"+(r?`[name=${r}]`:":not([name])");return Ur(o,t,{get(){var y,S;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(S=c==null?void 0:c.assignedElements(a))!=null?S:[];return s===void 0?f:f.filter(F=>F.matches(s))}})}}function pu(a){return(o,t)=>{let{slot:r}=a!=null?a:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Ur(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(s);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var EE={PREFIX:"mdc",SEPARATOR:"-"},TE={NAMESPACE:EE},Tc=TE;var xE=a=>[Tc.NAMESPACE.PREFIX,a].join(Tc.NAMESPACE.SEPARATOR),V={constructTagName:xE};var tt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var mu=V.constructTagName("buttonsimple"),ko={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},Es={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Rn={SIZE:ko[32],TYPE:Es.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var hi=V.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Pn={40:40,32:32,28:28,24:24},ur={64:64,52:52,20:20,...Pn},No={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ts={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},je={VARIANT:Bt.PRIMARY,SIZE:Pn[32],COLOR:No.DEFAULT,TYPE_INTERNAL:Ts.ICON,TYPE:Es.BUTTON,INVERTED:!1};var dl=a=>{class o extends a{constructor(){super(...arguments);this.variant=je.VARIANT;this.color=je.COLOR;this.typeInternal=je.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(Bt).includes(s)?s:je.VARIANT)}setColor(s){!Object.values(No).includes(s)||this.variant===Bt.TERTIARY?this.setAttribute("color",`${je.COLOR}`):this.setAttribute("color",s)}setSize(s){let c=this.typeInternal===Ts.ICON?Object.values(ur).includes(s)&&!(s===ur[20]&&this.variant!==Bt.TERTIARY):Object.values(Pn).includes(s);this.setAttribute("size",c?`${s}`:`${je.SIZE}`)}inferButtonType(){var S,F,W,Q,Z,et;let s=(F=(S=this.shadowRoot)==null?void 0:S.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,l=(Q=(W=this.shadowRoot)==null?void 0:W.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,c=this.prefixIcon||l&&l>0,f=(et=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:et.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,y=this.postfixIcon||f&&f>0;s&&(c||y)?(this.typeInternal=Ts.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(c||y)?(this.typeInternal=Ts.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ts.PILL,this.setAttribute("data-btn-type","pill"))}}return m([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),m([u({type:String})],o.prototype,"variant",2),m([u({type:String})],o.prototype,"color",2),m([pt()],o.prototype,"typeInternal",2),o};var uu=U`
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Qm=/'/g,Jm=/"/g,iu=/^(?:script|style|textarea|title)$/i,bc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),_=bc(1),mS=bc(2),uS=bc(3),ke=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),tu=new WeakMap,Io=_o.createTreeWalker(_o,129);function ou(a,o){if(!gc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return qm!==void 0?qm.createHTML(o):o}var su=(a,o)=>{let t=a.length-1,r=[],s,l=o===2?"<svg>":o===3?"<math>":"",c=kn;for(let f=0;f<t;f++){let y=a[f],A,F,W=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===kn?F[1]==="!--"?c=Xm:F[1]!==void 0?c=Zm:F[2]!==void 0?(iu.test(F[2])&&(s=RegExp("</"+F[2],"g")),c=So):F[3]!==void 0&&(c=So):c===So?F[0]===">"?(c=s!=null?s:kn,W=-1):F[1]===void 0?W=-2:(W=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?So:F[3]==='"'?Jm:Qm):c===Jm||c===Qm?c=So:c===Xm||c===Zm?c=kn:(c=So,s=void 0);let Z=c===So&&a[f+1].startsWith("/>")?" ":"";l+=c===kn?y+bE:W>=0?(r.push(A),y.slice(0,W)+fc+y.slice(W)+ci+Z):y+ci+(W===-2?f:Z)}return[ou(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},On=class a{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let l=0,c=0,f=o.length-1,y=this.parts,[A,F]=su(o,t);if(this.el=a.createElement(A,r),Io.currentNode=this.el.content,t===2||t===3){let W=this.el.content.firstChild;W.replaceWith(...W.childNodes)}for(;(s=Io.nextNode())!==null&&y.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let W of s.getAttributeNames())if(W.endsWith(fc)){let Q=F[c++],Z=s.getAttribute(W).split(ci),et=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:et[2],strings:Z,ctor:et[1]==="."?sl:et[1]==="?"?nl:et[1]==="@"?al:wo}),s.removeAttribute(W)}else W.startsWith(ci)&&(y.push({type:6,index:l}),s.removeAttribute(W));if(iu.test(s.tagName)){let W=s.textContent.split(ci),Q=W.length-1;if(Q>0){s.textContent=il?il.emptyScript:"";for(let Z=0;Z<Q;Z++)s.append(W[Z],Ln()),Io.nextNode(),y.push({type:2,index:++l});s.append(W[Q],Ln())}}}else if(s.nodeType===8)if(s.data===vc)y.push({type:2,index:l});else{let W=-1;for(;(W=s.data.indexOf(ci,W+1))!==-1;)y.push({type:7,index:l}),W+=ci.length-1}l++}}static createElement(o,t){let r=_o.createElement("template");return r.innerHTML=o,r}};function Co(a,o,t=a,r){var c,f,y;if(o===ke)return o;let s=r!==void 0?(c=t.o)==null?void 0:c[r]:t.l,l=Mn(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((f=s==null?void 0:s._$AO)==null||f.call(s,!1),l===void 0?s=void 0:(s=new l(a),s._$AT(a,t,r)),r!==void 0?((y=t.o)!=null?y:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=Co(a,s._$AS(a,o.values),s,r)),o}var ol=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var A;let{el:{content:t},parts:r}=this._$AD,s=((A=o==null?void 0:o.creationScope)!=null?A:_o).importNode(t,!0);Io.currentNode=s;let l=Io.nextNode(),c=0,f=0,y=r[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new ys(l,l.nextSibling,this,o):y.type===1?F=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(F=new ll(l,this,o)),this._$AV.push(F),y=r[++f]}c!==(y==null?void 0:y.index)&&(l=Io.nextNode(),c++)}return Io.currentNode=_o,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++}},ys=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var l;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(l=s==null?void 0:s.isConnected)!=null?l:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Co(this,o,t),Mn(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==ke&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):ru(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==j&&Mn(this._$AH)?this._$AA.nextSibling.data=o:this.T(_o.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=On.createElement(ou(r.h,r.h[0]),this.options)),r);if(((l=this._$AH)==null?void 0:l._$AD)===s)this._$AH.p(t);else{let c=new ol(s,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=tu.get(o.strings);return t===void 0&&tu.set(o.strings,t=new On(o)),t}k(o){gc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let l of o)s===t.length?t.push(r=new a(this.O(Ln()),this.O(Ln()),this,this.options)):r=t[s],r._$AI(l),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},wo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,l){this.type=1,this._$AH=j,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=l,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=j}_$AI(o,t=this,r,s){let l=this.strings,c=!1;if(l===void 0)o=Co(this,o,t,0),c=!Mn(o)||o!==this._$AH&&o!==ke,c&&(this._$AH=o);else{let f=o,y,A;for(o=l[0],y=0;y<l.length-1;y++)A=Co(this,f[r+y],t,y),A===ke&&(A=this._$AH[y]),c||(c=!Mn(A)||A!==this._$AH[y]),A===j?o=j:o!==j&&(o+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!s&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},sl=class extends wo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},nl=class extends wo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},al=class extends wo{constructor(o,t,r,s,l){super(o,t,r,s,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=Co(this,o,t,0))!=null?c:j)===ke)return;let r=this._$AH,s=o===j&&r!==j||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,l=o!==j&&(r===j||s);s&&this.element.removeEventListener(this.name,this,r),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},ll=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){Co(this,o)}},nu={M:fc,P:ci,A:vc,C:1,L:su,R:ol,D:ru,V:Co,I:ys,H:wo,N:nl,U:al,B:sl,F:ll},uc=Nn.litHtmlPolyfillSupport,eu;uc==null||uc(On,ys),((eu=Nn.litHtmlVersions)!=null?eu:Nn.litHtmlVersions=[]).push("3.2.0");var au=(a,o,t)=>{var l,c;let r=(l=t==null?void 0:t.renderBefore)!=null?l:o,s=r._$litPart$;if(s===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;r._$litPart$=s=new ys(o.insertBefore(Ln(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var Bi=class extends di{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=au(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return ke}},lu;Bi._$litElement$=!0,Bi.finalized=!0,(lu=globalThis.litElementHydrateSupport)==null||lu.call(globalThis,{LitElement:Bi});var yc=globalThis.litElementPolyfillSupport;yc==null||yc({LitElement:Bi});var du;((du=globalThis.litElementVersions)!=null?du:globalThis.litElementVersions=[]).push("4.1.0");var yE={attribute:!0,type:String,converter:wn,reflect:!1,hasChanged:rl},EE=(a=yE,o,t)=>{let{kind:r,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),l.set(t.name,a),r==="accessor"){let{name:c}=t;return{set(f){let y=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(r==="setter"){let{name:c}=t;return function(f){let y=this[c];o.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+r)};function u(a){return(o,t)=>typeof t=="object"?EE(a,o,t):((r,s,l)=>{let c=s.hasOwnProperty(l);return s.constructor.createProperty(l,c?{...r,wrapped:!0}:r),c?Object.getOwnPropertyDescriptor(s,l):void 0})(a,o,t)}function pt(a){return u({...a,state:!0,attribute:!1})}function cu(a){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,a)}}var Ur=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Kt(a,o){return(t,r,s)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(o){let{get:c,set:f}=typeof r=="object"?t:s!=null?s:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return Ur(t,r,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Ur(t,r,{get(){return l(this)}})}}var Ec;function hu(a){return(o,t)=>Ur(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:Ec!=null?Ec:Ec=document.createDocumentFragment()).querySelectorAll(a)}})}function $t(a){return(o,t)=>{let{slot:r,selector:s}=a!=null?a:{},l="slot"+(r?`[name=${r}]`:":not([name])");return Ur(o,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return s===void 0?f:f.filter(F=>F.matches(s))}})}}function pu(a){return(o,t)=>{let{slot:r}=a!=null?a:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Ur(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(s);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var TE={PREFIX:"mdc",SEPARATOR:"-"},xE={NAMESPACE:TE},Tc=xE;var AE=a=>[Tc.NAMESPACE.PREFIX,a].join(Tc.NAMESPACE.SEPARATOR),V={constructTagName:AE};var tt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var mu=V.constructTagName("buttonsimple"),ko={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},Es={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Rn={SIZE:ko[32],TYPE:Es.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var hi=V.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Pn={40:40,32:32,28:28,24:24},ur={64:64,52:52,20:20,...Pn},No={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ts={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},je={VARIANT:Bt.PRIMARY,SIZE:Pn[32],COLOR:No.DEFAULT,TYPE_INTERNAL:Ts.ICON,TYPE:Es.BUTTON,INVERTED:!1};var dl=a=>{class o extends a{constructor(){super(...arguments);this.variant=je.VARIANT;this.color=je.COLOR;this.typeInternal=je.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(Bt).includes(s)?s:je.VARIANT)}setColor(s){!Object.values(No).includes(s)||this.variant===Bt.TERTIARY?this.setAttribute("color",`${je.COLOR}`):this.setAttribute("color",s)}setSize(s){let c=this.typeInternal===Ts.ICON?Object.values(ur).includes(s)&&!(s===ur[20]&&this.variant!==Bt.TERTIARY):Object.values(Pn).includes(s);this.setAttribute("size",c?`${s}`:`${je.SIZE}`)}inferButtonType(){var A,F,W,Q,Z,et;let s=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,l=(Q=(W=this.shadowRoot)==null?void 0:W.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,c=this.prefixIcon||l&&l>0,f=(et=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:et.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,y=this.postfixIcon||f&&f>0;s&&(c||y)?(this.typeInternal=Ts.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(c||y)?(this.typeInternal=Ts.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ts.PILL,this.setAttribute("data-btn-type","pill"))}}return m([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),m([u({type:String})],o.prototype,"variant",2),m([u({type:String})],o.prototype,"color",2),m([pt()],o.prototype,"typeInternal",2),o};var uu=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 cl=class extends Bi{static register(o){customElements.get(o)||customElements.define(o,this)}};cl.styles=[uu];var fu=cl;var X=fu;var Ui=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 xs=class{constructor(o,t,r,s){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!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 Ui(this.context,this.t,this.subscribe))}};var hl=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 xc=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},As=class extends hl{constructor(o,t,r){var s,l;super(t.context!==void 0?t.initialValue:r),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let y=new Set;for(let[
|
|
14
|
+
`;var cl=class extends Bi{static register(o){customElements.get(o)||customElements.define(o,this)}};cl.styles=[uu];var fu=cl;var X=fu;var Ui=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 xs=class{constructor(o,t,r,s){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!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 Ui(this.context,this.t,this.subscribe))}};var hl=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 xc=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},As=class extends hl{constructor(o,t,r){var s,l;super(t.context!==void 0?t.initialValue:r),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let y=new Set;for(let[A,{consumerHost:F}]of this.subscriptions)y.has(A)||(y.add(A),F.dispatchEvent(new Ui(this.context,A,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(l=(s=this.host).addController)==null||l.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new xc(this.context))}};var SE=U`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
|
-
`,vu=AE;var pl=class extends X{constructor({context:o,initialValue:t}){super(),this.context=new As(this,{context:o,initialValue:t})}render(){return this.updateContext(),_`<slot></slot>`}};pl.styles=[...X.styles,vu];var gu=pl;var pe=gu;var ke=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var jt=a=>{class o extends a{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var Hr=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Vt={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 SE=a=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:l}=a,c=(s||l)&&(f=>{l&&l.forEach(y=>{o.requestUpdate(y)}),s==null||s(f)});return new xs(o,{context:t,callback:c,subscribe:r!=null?r:!0})},IE={consume:SE},me=IE;var bu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),yu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),_E=a=>a.getClientRects().length===0,CE=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=a;return r+s+t+o===0},Eu=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:r}=o;return t==="auto"||t==="scroll"||r==="auto"||r==="scroll"},wE=a=>CE(a)||_E(a),kE=a=>{let{display:o,opacity:t,visibility:r}=a.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},NE=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},LE=a=>getComputedStyle(a).display==="contents",ME=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||kE(a)||!LE(a)&&(NE(a)||wE(a)),OE=a=>a.disabled,RE=a=>a.getAttribute("tabindex")!=="-1",PE=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),DE=(a,o)=>o.some(t=>a.matches(t));var Ss=(a,o={})=>{var f,y;if(!a)return[];let t=new Set((f=o==null?void 0:o.excludedElements)!=null?f:[]),r=(y=o==null?void 0:o.includeSelectors)!=null?y:[],s=new Set,l=S=>!(S instanceof HTMLSlotElement)&&(ME(S)||OE(S))?"stop":DE(S,r)||RE(S)&&PE(S)?"focusable":"continue",c=S=>{if(t.has(S))return;S instanceof HTMLElement&&l(S)==="focusable"&&s.add(S);let F=[];S instanceof HTMLElement&&S.shadowRoot?F=Array.from(S.shadowRoot.children):S.children.length&&(F=Array.from(S.children)),F.forEach(W=>{let Q=W,Z=l(Q);Z==="focusable"&&s.add(Q),Z!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(lt=>{lt instanceof HTMLElement&&c(lt)}):c(Q))})};return c(a),[...s]},Dn=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Tu=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Ac=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?Ac(o.host):a},xu=a=>{let o=[a],t=a;for(;t;){let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host,o.push(t);else break}return o};var pi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};pi.stack=new Set,pi.currentKeydownListener=null;var ml=V.constructTagName("spatialnavigationprovider");var Sc={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var FE=ml,Ic=FE;var Au=a=>{let{x:o,y:t,width:r,height:s,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),S=o+r/2,F=t+s/2;return{x:o,y:t,width:r,height:s,left:l,top:c,right:f,bottom:y,xMid:S,yMid:F}},$E=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),zE=(a,o)=>o==="horizontal"?a.height/2:a.width/2,VE=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),BE=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,UE=(a,o,t,r)=>{let s=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(s*s+l*l),f=$E(a,o,t)+zE(a,t)*r.orthogonalWeight[t],y=VE(a,o,t),S=BE(a,t,y)*r.alignWeight;return c+f-S-Math.sqrt(y)},Su=(a,o,t,r)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let s=Au(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let y=Au(f);if(t==="left"&&y.right>s.xMid||t==="right"&&y.left<s.xMid||t==="up"&&y.bottom>s.yMid||t==="down"&&y.top<s.yMid)return c;let S=UE(s,y,l,r);return c.push({candidate:f,distance:S}),c},[]).sort((c,f)=>c.distance-f.distance)};var Lo=class extends UIEvent{constructor(o,t,r){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=r,this.relatedTarget=t}};var Fn=class extends pe{constructor(){super({context:Ic});this.navigationKeyMapping=Sc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Sc.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let r=this.context.value.keyToActionMap[t.key],s=new Lo("navbeforeprocess",this,r);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(s)),s.defaultPrevented)return;let l=!1;switch(r){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Lo("navnotarget",this,r))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let r=Dn();r&&this.setActiveElement(r)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return Ic}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([r,s])=>[s,r]))},this.context.updateObservers())}initActiveElement(t){let r=Ss(this.root);this.findActiveElement(r,t)}findActiveElement(t,r){if(!r||!t.includes(r)){let s=t[0];s&&this.setActiveElementAndFocus(s)}}focusNext(t,r){let s=pi.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===s||y===this.root||Eu(y)){c.push(...Ss(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let S=this.focusNextInFocusableAria(c,r);if(S||y===s||y===this.root)return S&&this.emitNavBeforeFocusEvent(S,r),!!S;l=y}return!1}emitNavBeforeFocusEvent(t,r){var s;if(t){let l=new Lo("navbeforefocus",t,r);if((s=this.getActiveElement())==null||s.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,r){var y,S;if(t.length===0)return;let s=this.getActiveElement(),l=Dn();if((!s||!t.includes(s)||s!==l)&&(l&&t.includes(l)?s=l:[s]=t,this.setActiveElement(s)),s!==Dn())return s;let c=`data-spatial-${r}`;if(l){let F=xu(l).find(Q=>Q.hasAttribute(c)),W=F==null?void 0:F.getAttribute(c);if(F&&W){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(W);if(Q)return Q}}return(S=Su(s,t,r,this.distanceCalculationWeights)[0])==null?void 0:S.candidate}emitGoBackEvent(t){let r=new Lo("navback",t,"escape");return this.dispatchEvent(r),r.defaultPrevented}setActiveElement(t){var r;t!==((r=this.activeElement)==null?void 0:r.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Dn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Ss(this.root).find(s=>s.hasAttribute("data-spatial-go-back")),r=this.emitGoBackEvent(t);return t&&!r?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};m([u({attribute:!1})],Fn.prototype,"navigationKeyMapping",2),m([u({attribute:!1})],Fn.prototype,"distanceCalculationWeights",2);var _c=Fn;_c.register(ml);var Iu=_c;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},HE={[Vt.ARROW_UP]:q.UP,[Vt.ARROW_DOWN]:q.DOWN,[Vt.ARROW_LEFT]:q.LEFT,[Vt.ARROW_RIGHT]:q.RIGHT,[Vt.ENTER]:q.ENTER,[Vt.SPACE]:q.SPACE,[Vt.ESCAPE]:q.ESCAPE,[Vt.TAB]:q.TAB,[Vt.HOME]:q.HOME,[Vt.END]:q.END},qt={DEFAULT:"default",SPATIAL:"spatial"},Ct=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=me.consume({host:this,context:Iu.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?qt.SPATIAL:qt.DEFAULT}getActionForKeyEvent(s,l=!1){var y,S,F;let f=((F=(S=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:S.keyToActionMap)!=null?F:HE)[s.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(s){return s===q.UP||s===q.DOWN||s===q.LEFT||s===q.RIGHT}}return o};var Lt=a=>{class o extends a{constructor(...s){super(...s);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=s=>{this.keyDownEventHandledFlag&&s.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var bt=U`
|
|
18
|
+
`,vu=SE;var pl=class extends X{constructor({context:o,initialValue:t}){super(),this.context=new As(this,{context:o,initialValue:t})}render(){return this.updateContext(),_`<slot></slot>`}};pl.styles=[...X.styles,vu];var gu=pl;var pe=gu;var Ne=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var jt=a=>{class o extends a{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var Hr=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Vt={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 IE=a=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:l}=a,c=(s||l)&&(f=>{l&&l.forEach(y=>{o.requestUpdate(y)}),s==null||s(f)});return new xs(o,{context:t,callback:c,subscribe:r!=null?r:!0})},_E={consume:IE},me=_E;var bu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),yu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),CE=a=>a.getClientRects().length===0,wE=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=a;return r+s+t+o===0},Eu=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:r}=o;return t==="auto"||t==="scroll"||r==="auto"||r==="scroll"},kE=a=>wE(a)||CE(a),NE=a=>{let{display:o,opacity:t,visibility:r}=a.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},LE=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},ME=a=>getComputedStyle(a).display==="contents",OE=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||NE(a)||!ME(a)&&(LE(a)||kE(a)),RE=a=>a.disabled,PE=a=>a.getAttribute("tabindex")!=="-1",DE=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),FE=(a,o)=>o.some(t=>a.matches(t));var Ss=(a,o={})=>{var f,y;if(!a)return[];let t=new Set((f=o==null?void 0:o.excludedElements)!=null?f:[]),r=(y=o==null?void 0:o.includeSelectors)!=null?y:[],s=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(OE(A)||RE(A))?"stop":FE(A,r)||PE(A)&&DE(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&s.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(W=>{let Q=W,Z=l(Q);Z==="focusable"&&s.add(Q),Z!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(lt=>{lt instanceof HTMLElement&&c(lt)}):c(Q))})};return c(a),[...s]},Dn=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Tu=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Ac=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?Ac(o.host):a},xu=a=>{let o=[a],t=a;for(;t;){let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host,o.push(t);else break}return o};var pi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};pi.stack=new Set,pi.currentKeydownListener=null;var ml=V.constructTagName("spatialnavigationprovider");var Sc={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var $E=ml,Ic=$E;var Au=a=>{let{x:o,y:t,width:r,height:s,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=o+r/2,F=t+s/2;return{x:o,y:t,width:r,height:s,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},zE=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),VE=(a,o)=>o==="horizontal"?a.height/2:a.width/2,BE=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),UE=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,HE=(a,o,t,r)=>{let s=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(s*s+l*l),f=zE(a,o,t)+VE(a,t)*r.orthogonalWeight[t],y=BE(a,o,t),A=UE(a,t,y)*r.alignWeight;return c+f-A-Math.sqrt(y)},Su=(a,o,t,r)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let s=Au(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let y=Au(f);if(t==="left"&&y.right>s.xMid||t==="right"&&y.left<s.xMid||t==="up"&&y.bottom>s.yMid||t==="down"&&y.top<s.yMid)return c;let A=HE(s,y,l,r);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Lo=class extends UIEvent{constructor(o,t,r){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=r,this.relatedTarget=t}};var Fn=class extends pe{constructor(){super({context:Ic});this.navigationKeyMapping=Sc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Sc.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let r=this.context.value.keyToActionMap[t.key],s=new Lo("navbeforeprocess",this,r);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(s)),s.defaultPrevented)return;let l=!1;switch(r){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Lo("navnotarget",this,r))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let r=Dn();r&&this.setActiveElement(r)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return Ic}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([r,s])=>[s,r]))},this.context.updateObservers())}initActiveElement(t){let r=Ss(this.root);this.findActiveElement(r,t)}findActiveElement(t,r){if(!r||!t.includes(r)){let s=t[0];s&&this.setActiveElementAndFocus(s)}}focusNext(t,r){let s=pi.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===s||y===this.root||Eu(y)){c.push(...Ss(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,r);if(A||y===s||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,r),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,r){var s;if(t){let l=new Lo("navbeforefocus",t,r);if((s=this.getActiveElement())==null||s.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,r){var y,A;if(t.length===0)return;let s=this.getActiveElement(),l=Dn();if((!s||!t.includes(s)||s!==l)&&(l&&t.includes(l)?s=l:[s]=t,this.setActiveElement(s)),s!==Dn())return s;let c=`data-spatial-${r}`;if(l){let F=xu(l).find(Q=>Q.hasAttribute(c)),W=F==null?void 0:F.getAttribute(c);if(F&&W){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(W);if(Q)return Q}}return(A=Su(s,t,r,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let r=new Lo("navback",t,"escape");return this.dispatchEvent(r),r.defaultPrevented}setActiveElement(t){var r;t!==((r=this.activeElement)==null?void 0:r.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Dn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Ss(this.root).find(s=>s.hasAttribute("data-spatial-go-back")),r=this.emitGoBackEvent(t);return t&&!r?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};m([u({attribute:!1})],Fn.prototype,"navigationKeyMapping",2),m([u({attribute:!1})],Fn.prototype,"distanceCalculationWeights",2);var _c=Fn;_c.register(ml);var Iu=_c;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},GE={[Vt.ARROW_UP]:q.UP,[Vt.ARROW_DOWN]:q.DOWN,[Vt.ARROW_LEFT]:q.LEFT,[Vt.ARROW_RIGHT]:q.RIGHT,[Vt.ENTER]:q.ENTER,[Vt.SPACE]:q.SPACE,[Vt.ESCAPE]:q.ESCAPE,[Vt.TAB]:q.TAB,[Vt.HOME]:q.HOME,[Vt.END]:q.END},qt={DEFAULT:"default",SPATIAL:"spatial"},Ct=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=me.consume({host:this,context:Iu.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?qt.SPATIAL:qt.DEFAULT}getActionForKeyEvent(s,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:GE)[s.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(s){return s===q.UP||s===q.DOWN||s===q.LEFT||s===q.RIGHT}}return o};var Lt=a=>{class o extends a{constructor(...s){super(...s);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=s=>{this.keyDownEventHandledFlag&&s.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var bt=U`
|
|
19
19
|
:host {
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
@@ -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 KE=[bt,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
|
-
`,...At()],_u=
|
|
134
|
+
`,...At()],_u=KE;var ir=class extends Lt(Ct(Ne(Hr(jt(X))))){constructor(){super();this.size=Rn.SIZE;this.role=Rn.ROLE;this.type=Rn.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Rn.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Es.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Es.RESET&&this.form&&this.form.reset()}setActive(t,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(l=>l.trim().startsWith("aria-")).forEach(l=>{r===!0?t.setAttribute(l.trim(),"true"):r===!1?t.setAttribute(l.trim(),"false"):t.removeAttribute(l.trim())})}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,r){r?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.add("pressed"),r===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.remove("pressed"),r===q.SPACE&&this.triggerClickEvent())}render(){return _` <slot></slot> `}};ir.formAssociated=!0,ir.styles=[...X.styles,..._u],m([u({type:Boolean,reflect:!0})],ir.prototype,"active",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ir.prototype,"softDisabled",2),m([u({type:Number,reflect:!0})],ir.prototype,"size",2),m([u({type:String,reflect:!0})],ir.prototype,"role",2),m([u({type:String,reflect:!0})],ir.prototype,"ariaStateKey",2),m([u({reflect:!0})],ir.prototype,"type",2),m([u({type:String,reflect:!0})],ir.prototype,"name",2),m([u({type:String,reflect:!0})],ir.prototype,"value",2);var ue=ir;var ul=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let r=this.overflowElement;return r.scrollWidth>r.clientWidth}}return o};var WE=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
|
-
`,Cu=[
|
|
419
|
+
`,Cu=[WE];var Mo=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var Gr=class extends ul(dl(ue)){constructor(){super(...arguments);this.size=je.SIZE;this.inverted=je.INVERTED;this.role=tt.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Mo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Mo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return _`
|
|
420
420
|
<slot name="prefix" part="prefix">
|
|
421
421
|
${this.prefixFilledIconName?_` <mdc-icon
|
|
422
422
|
name="${this.prefixFilledIconName}"
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
length-unit="rem"
|
|
433
433
|
></mdc-icon>`:""}
|
|
434
434
|
</slot>
|
|
435
|
-
`}};Gr.styles=[...ue.styles,...Cu],m([Kt('slot[part="button-text"]')],Gr.prototype,"buttonTextPart",2),m([u({type:Number})],Gr.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Gr.prototype,"inverted",2),m([u({type:String,reflect:!0})],Gr.prototype,"role",2),m([pt()],Gr.prototype,"prefixFilledIconName",2),m([pt()],Gr.prototype,"postfixFilledIconName",2);var Oo=Gr;var fl=V.constructTagName("iconprovider"),wu=["svg"],ku=["em","rem","px","%"],
|
|
435
|
+
`}};Gr.styles=[...ue.styles,...Cu],m([Kt('slot[part="button-text"]')],Gr.prototype,"buttonTextPart",2),m([u({type:Number})],Gr.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Gr.prototype,"inverted",2),m([u({type:String,reflect:!0})],Gr.prototype,"role",2),m([pt()],Gr.prototype,"prefixFilledIconName",2),m([pt()],Gr.prototype,"postfixFilledIconName",2);var Oo=Gr;var fl=V.constructTagName("iconprovider"),wu=["svg"],ku=["em","rem","px","%"],YE={px:16,em:1,rem:1,"%":100},mi={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:YE.em,ICON_SET:"momentum-icons"};var vl=class{};vl.context=fl;var gl=vl;var Kr=class extends pe{constructor(){super({context:gl.context,initialValue:new gl});this.iconSet=mi.ICON_SET;this.fileExtension=mi.FILE_EXTENSION;this.lengthUnit=mi.LENGTH_UNIT;this.size=mi.SIZE}static get Context(){return gl.context}updateValuesInContext(){this.fileExtension&&wu.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=mi.FILE_EXTENSION,this.context.value.fileExtension=mi.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&ku.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=mi.LENGTH_UNIT,this.context.value.lengthUnit=mi.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};m([u({type:String,attribute:"icon-set",reflect:!0})],Kr.prototype,"iconSet",2),m([u({type:String})],Kr.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Kr.prototype,"fileExtension",2),m([u({type:String,attribute:"length-unit",reflect:!0})],Kr.prototype,"lengthUnit",2),m([u({type:Number,reflect:!0})],Kr.prototype,"size",2),m([u({type:String,attribute:"cache-strategy"})],Kr.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Kr.prototype,"cacheName",2);var $n=Kr;var jE=[bt,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
|
-
`,...At()],Nu=
|
|
450
|
+
`,...At()],Nu=jE;var zn={},Lu=async a=>(zn[a]===void 0&&(zn[a]=new Map),{async set(o,t){zn[a].set(o.url,await t.text())},async get(o){return zn[a].get(o.url)},async delete(o){zn[a].delete(o.url)}}),Mu=async a=>{let o=await caches.open(a);return{set:async(t,r)=>{await o.put(t,r)},get:async t=>{let r=await o.match(t);return r==null?void 0:r.text()},delete:async t=>{await o.delete(t)}}},bl=async(a,o)=>o==="in-memory-cache"?Lu(a):Mu(a);var Ou=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Ru=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?Ou(f).then(y=>y.text()):bl(s,r).then(y=>y.get(f).then(A=>A||Ou(f.clone()).then(F=>{var W;return F.status<400&&F.headers.has("content-type")?(W=y.set)==null?void 0:W.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var Pu=V.constructTagName("icon"),Cc={NAME:void 0,SIZE:1};var or=class extends X{constructor(){super();this.name=Cc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=me.consume({host:this,context:$n.Context});this.abortController=new AbortController}prepareIconElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:s,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&s&&r&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Ru({url:s,name:this.name,fileExtension:r,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:Cc.SIZE}updated(t){var r,s,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.iconData} `}};or.styles=[...X.styles,...Nu],m([pt()],or.prototype,"iconData",2),m([pt()],or.prototype,"lengthUnitFromContext",2),m([pt()],or.prototype,"sizeFromContext",2),m([u({type:String,reflect:!0})],or.prototype,"name",2),m([u({type:Number})],or.prototype,"size",2),m([u({type:String,attribute:"length-unit"})],or.prototype,"lengthUnit",2),m([u({type:String,attribute:"aria-label"})],or.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],or.prototype,"ariaLabelledby",2),m([pt()],or.prototype,"abortController",2);var wc=or;wc.register(Pu);var qE=wc;Oo.register(hi);var XE=Oo;var Du=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 ZE=[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
|
-
`,Du],Fu=
|
|
700
|
+
`,Du],Fu=ZE;var Vn=V.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"},xe={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 Ro=class extends ul(X){constructor(){super(...arguments);this.type=xe.TYPE;this.tagname=xe.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[mt.SPAN,mt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case mt.H1:return _`<h1 part=${xe.CSS_PART_TEXT}><slot></slot></h1>`;case mt.H2:return _`<h2 part=${xe.CSS_PART_TEXT}><slot></slot></h2>`;case mt.H3:return _`<h3 part=${xe.CSS_PART_TEXT}><slot></slot></h3>`;case mt.H4:return _`<h4 part=${xe.CSS_PART_TEXT}><slot></slot></h4>`;case mt.H5:return _`<h5 part=${xe.CSS_PART_TEXT}><slot></slot></h5>`;case mt.H6:return _`<h6 part=${xe.CSS_PART_TEXT}><slot></slot></h6>`;case mt.DIV:return _`<div part=${xe.CSS_PART_TEXT}><slot></slot></div>`;case mt.SPAN:return _`<span part=${xe.CSS_PART_TEXT}><slot></slot></span>`;case mt.SMALL:return _`<small part=${xe.CSS_PART_TEXT}><slot></slot></small>`;case mt.P:default:return _`<p part=${xe.CSS_PART_TEXT}><slot></slot></p>`}}};Ro.styles=[...X.styles,...Fu],m([Kt(`[part='${xe.CSS_PART_TEXT}']`)],Ro.prototype,"textPartElement",2),m([u({attribute:"type",reflect:!0,type:String})],Ro.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Ro.prototype,"tagname",2);var kc=Ro;kc.register(Vn);var QE=kc;var J=a=>a!=null?a:j;var Ae=[];for(let a=0;a<256;++a)Ae.push((a+256).toString(16).slice(1));function $u(a,o=0){return(Ae[a[o+0]]+Ae[a[o+1]]+Ae[a[o+2]]+Ae[a[o+3]]+"-"+Ae[a[o+4]]+Ae[a[o+5]]+"-"+Ae[a[o+6]]+Ae[a[o+7]]+"-"+Ae[a[o+8]]+Ae[a[o+9]]+"-"+Ae[a[o+10]]+Ae[a[o+11]]+Ae[a[o+12]]+Ae[a[o+13]]+Ae[a[o+14]]+Ae[a[o+15]]).toLowerCase()}var Nc,JE=new Uint8Array(16);function Lc(){if(!Nc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Nc=crypto.getRandomValues.bind(crypto)}return Nc(JE)}var tT=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Mc={randomUUID:tT};function eT(a,o,t){var s,l,c;if(Mc.randomUUID&&!o&&!a)return Mc.randomUUID();a=a||{};let r=(c=(l=a.random)!=null?l:(s=a.rng)==null?void 0:s.call(a))!=null?c:Lc();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=r[f];return o}return $u(r)}var Le=eT;var zu=V.constructTagName("accordiongroup"),Oc={SMALL:"small",LARGE:"large"},rT={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Bn={SIZE:Oc.SMALL,VARIANT:rT.STACKED};var yl=V.constructTagName("accordionbutton"),Un={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},iT={DEFAULT:"default",BORDERLESS:"borderless"},Wi={EXPANDED:!1,SIZE:Oc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:iT.DEFAULT,ICON_NAME:Un.ARROW_UP};var oT=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,7 +814,7 @@
|
|
|
814
814
|
:host([variant='default']:not([expanded]))::part(header-section) {
|
|
815
815
|
border-bottom: none;
|
|
816
816
|
}
|
|
817
|
-
`,Vu=[
|
|
817
|
+
`,Vu=[oT,...At(!0)];var Wr=class extends Lt(Ct(jt(X))){constructor(){super(...arguments);this.size=Wi.SIZE;this.variant=Wi.VARIANT;this.dataAriaLevel=Wi.DATA_ARIA_LEVEL;this.expanded=Wi.EXPANDED;this.headSectionId=`head-section-${Le()}`;this.bodySectionId=`body-section-${Le()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}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===q.ENTER||r===q.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?_`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:j}renderHeadingText(){return this.headerText?_`<mdc-text
|
|
818
818
|
id="${this.headSectionId}"
|
|
819
819
|
type="${ot.BODY_LARGE_REGULAR}"
|
|
820
820
|
tagname=${mt.SPAN}
|
|
@@ -849,7 +849,7 @@
|
|
|
849
849
|
role="${tt.REGION}"
|
|
850
850
|
>
|
|
851
851
|
<slot></slot>
|
|
852
|
-
</div>`:j}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Wi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Wi.SIZE),t.has("variant")&&!this.variant&&(this.variant=Wi.VARIANT)}render(){return _` ${this.renderHeader()} ${this.renderBody()} `}};Wr.styles=[...X.styles,...Vu],m([u({type:String,reflect:!0})],Wr.prototype,"size",2),m([u({type:String,reflect:!0})],Wr.prototype,"variant",2),m([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Wr.prototype,"dataAriaLevel",2),m([u({type:Boolean,reflect:!0})],Wr.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Wr.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],Wr.prototype,"prefixIcon",2);var Is=Wr;var
|
|
852
|
+
</div>`:j}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Wi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Wi.SIZE),t.has("variant")&&!this.variant&&(this.variant=Wi.VARIANT)}render(){return _` ${this.renderHeader()} ${this.renderBody()} `}};Wr.styles=[...X.styles,...Vu],m([u({type:String,reflect:!0})],Wr.prototype,"size",2),m([u({type:String,reflect:!0})],Wr.prototype,"variant",2),m([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Wr.prototype,"dataAriaLevel",2),m([u({type:Boolean,reflect:!0})],Wr.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Wr.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],Wr.prototype,"prefixIcon",2);var Is=Wr;var sT=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
|
-
`,Bu=[
|
|
866
|
+
`,Bu=[sT];var Yi=class extends Is{handleHeaderShownEvent(o){o.stopPropagation()}update(o){super.update(o),o.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderHeader(){return _`
|
|
867
867
|
<div part="header-section" @shown="${this.handleHeaderShownEvent}">
|
|
868
868
|
<div part="leading-header">
|
|
869
869
|
${this.renderIcon(this.prefixIcon)}
|
|
@@ -885,7 +885,7 @@
|
|
|
885
885
|
></mdc-button>
|
|
886
886
|
</div>
|
|
887
887
|
</div>
|
|
888
|
-
`}};Yi.styles=[...Is.styles,...Bu],m([$t({slot:"leading-controls"})],Yi.prototype,"leadingControlsSlot",2),m([$t({slot:"trailing-controls"})],Yi.prototype,"trailingControlsSlot",2),m([u({type:String,attribute:"open-button-aria-label",reflect:!0})],Yi.prototype,"openButtonAriaLabel",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Yi.prototype,"closeButtonAriaLabel",2);var Rc=Yi;var El=V.constructTagName("accordion");Rc.register(El);var
|
|
888
|
+
`}};Yi.styles=[...Is.styles,...Bu],m([$t({slot:"leading-controls"})],Yi.prototype,"leadingControlsSlot",2),m([$t({slot:"trailing-controls"})],Yi.prototype,"trailingControlsSlot",2),m([u({type:String,attribute:"open-button-aria-label",reflect:!0})],Yi.prototype,"openButtonAriaLabel",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Yi.prototype,"closeButtonAriaLabel",2);var Rc=Yi;var El=V.constructTagName("accordion");Rc.register(El);var nT=Rc;var aT=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
|
-
`,Uu=[
|
|
932
|
+
`,Uu=[aT,...At()];var ui=class extends X{constructor(){super();this.size=Bn.SIZE;this.variant=Bn.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=Bn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=Bn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return _` <slot></slot> `}};ui.styles=[...X.styles,...Uu],m([u({type:String,reflect:!0})],ui.prototype,"size",2),m([u({type:String,reflect:!0})],ui.prototype,"variant",2),m([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],ui.prototype,"allowMultiple",2),m([$t({selector:El})],ui.prototype,"accordionItems",2),m([$t({selector:yl})],ui.prototype,"accordionButtonItems",2);var Pc=ui;Pc.register(zu);var lT=Pc;Is.register(yl);var dT=Is;var ie=a=>{class o extends a{}return m([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var cT=U`
|
|
933
933
|
:host {
|
|
934
934
|
height: 1.5rem;
|
|
935
935
|
gap: 0.25rem;
|
|
@@ -1042,16 +1042,16 @@
|
|
|
1042
1042
|
--mdc-chip-icon-color: ButtonText;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
`,Hu=[bt,
|
|
1045
|
+
`,Hu=[bt,cT,...At()];var Gu=V.constructTagName("alertchip"),Po={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},_s={VARIANT:Po.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:ko[24],ROLE:tt.BUTTON};var Ku=a=>({[Po.ERROR]:"error-legacy-badge-filled",[Po.INFORMATIONAL]:"info-badge-filled",[Po.NEUTRAL]:"dnd-presence-badge-filled",[Po.SUCCESS]:"check-circle-badge-filled",[Po.WARNING]:"warning-badge-filled"})[a];var Cs=class extends ie(ue){constructor(){super(...arguments);this.variant=_s.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=_s.SIZE,this.role=_s.ROLE}render(){return _`
|
|
1046
1046
|
<mdc-icon part="icon" name="${this.iconName||Ku(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
|
1047
1047
|
${this.label?_`<mdc-text part="label" type="${_s.TEXT_TYPE}" tagname="${_s.TAG_NAME}"
|
|
1048
1048
|
>${this.label}</mdc-text
|
|
1049
1049
|
>`:j}
|
|
1050
|
-
`}};Cs.styles=[...X.styles,...Hu],m([u({type:String,reflect:!0})],Cs.prototype,"variant",2),m([u({type:String})],Cs.prototype,"label",2);var Dc=Cs;Dc.register(Gu);var
|
|
1050
|
+
`}};Cs.styles=[...X.styles,...Hu],m([u({type:String,reflect:!0})],Cs.prototype,"variant",2),m([u({type:String})],Cs.prototype,"label",2);var Dc=Cs;Dc.register(Gu);var hT=Dc;var{I:pT}=nu;var Tl=a=>a.strings===void 0,Wu=()=>document.createComment(""),ws=(a,o,t)=>{var l;let r=a._$AA.parentNode,s=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=r.insertBefore(Wu(),s),f=r.insertBefore(Wu(),s);t=new pT(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,y=f!==a;if(y){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==s||y){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;r.insertBefore(A,s),A=F}}}return t},ji=(a,o,t=a)=>(a._$AI(o,t),a),mT={},xl=(a,o=mT)=>a._$AH=o,Yu=a=>a._$AH,Al=a=>{var r;(r=a._$AP)==null||r.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let s=o.nextSibling;o.remove(),o=s}};var sr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},fi=a=>(...o)=>({_$litDirective$:a,values:o}),Yr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this.t=o,this._$AM=t,this.i=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var Hn=(a,o)=>{var r;let t=a._$AN;if(t===void 0)return!1;for(let s of t)(r=s._$AO)==null||r.call(s,o,!1),Hn(s,o);return!0},Sl=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},ju=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),vT(o)}};function uT(a){this._$AN!==void 0?(Sl(this),this._$AM=a,ju(this)):this._$AM=a}function fT(a,o=!1,t=0){let r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(o)if(Array.isArray(r))for(let l=t;l<r.length;l++)Hn(r[l],!1),Sl(r[l]);else r!=null&&(Hn(r,!1),Sl(r));else Hn(this,a)}var vT=a=>{var o,t;a.type==sr.CHILD&&((o=a._$AP)!=null||(a._$AP=fT),(t=a._$AQ)!=null||(a._$AQ=uT))},Il=class extends Yr{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),ju(this),this.isConnected=o._$AU}_$AO(o,t=!0){var r,s;o!==this.isConnected&&(this.isConnected=o,o?(r=this.reconnected)==null||r.call(this):(s=this.disconnected)==null||s.call(this)),t&&(Hn(this,o),Sl(this))}setValue(o){if(Tl(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var qu=()=>new $c,$c=class{},Fc=new WeakMap,Xu=fi(class extends Il{render(a){return j}update(a,[o]){var r;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(r=a.options)==null?void 0:r.host,this.rt(this.ct=a.element)),j}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,r=Fc.get(t);r===void 0&&(r=new WeakMap,Fc.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=Fc.get((a=this.ht)!=null?a:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var tf=cE(Zu());var zc={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var gT=[bt,U`
|
|
1051
1051
|
:host svg {
|
|
1052
1052
|
display: block;
|
|
1053
1053
|
}
|
|
1054
|
-
`],Qu=
|
|
1054
|
+
`],Qu=gT;var Ju=V.constructTagName("animation"),Vc={AUTO_PLAY:!0,LOOP:"true"};var vi=class extends X{constructor(){super(...arguments);this.loop=Vc.LOOP;this.autoplay=Vc.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=qu();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=tf.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&zc[this.name]?import(`@momentum-design/animations/dist/lottie${zc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?tt.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return _`<div aria-hidden="true" ${Xu(this.containerRef)}></div>`}};vi.styles=[...X.styles,...Qu],m([u({type:String,reflect:!0})],vi.prototype,"name",2),m([u({type:String,reflect:!0})],vi.prototype,"loop",2),m([u({type:Boolean,reflect:!0})],vi.prototype,"autoplay",2),m([u({type:String,attribute:"aria-label"})],vi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],vi.prototype,"ariaLabelledby",2);var Bc=vi;Bc.register(Ju);var bT=Bc;var Cl=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),pi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),pi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Ss(this.shadowRoot))}setInitialFocus(s=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[s]&&(this.focusTrapIndex=s,this.focusableElements[s].focus({preventScroll:!0}))}calculateNextIndex(s,l){let{length:c}=this.focusableElements;if(s===-1)return l>0?0:c-1;let f=s+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let s=document.activeElement||document.body;for(;s instanceof HTMLElement&&((l=s.shadowRoot)!=null&&l.activeElement);)s=s.shadowRoot.activeElement;return s||document.body}findElement(s){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(s,l))}isEqualFocusNode(s,l){return s.nodeType>=0?l.isEqualNode(s)&&l===s:!1}trapFocus(s){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(s.preventDefault(),y.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return m([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var wl=a=>{class o extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var kl=V.constructTagName("link"),Nl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ll={LARGE:1,MIDSIZE:.875,SMALL:.75},ef={LINK_SIZE:Nl.LARGE};var rf=V.constructTagName("card"),Uc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},yT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},fe={VARIANT:Uc.BORDER,ORIENTATION:yT.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:kl,BUTTON:hi};var ks=a=>{class o extends a{updateFooterButtonColors(r){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(l=>{r===Uc.PROMOTIONAL?l.setAttribute("color",No.PROMOTIONAL):l.setAttribute("color",No.DEFAULT)})}handleFooterSlot(r,s){var c,f,y;let l=[];r===fe.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:r===fe.BUTTON&&s===Bt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:r===fe.BUTTON&&s===Bt.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(r)||A.remove(),s&&A.setAttribute("variant",s)})}renderFooter(){return _` <slot name="footer">
|
|
1055
1055
|
<div part="footer">
|
|
1056
1056
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(fe.LINK)}></slot>
|
|
1057
1057
|
<slot
|
|
@@ -1063,7 +1063,7 @@
|
|
|
1063
1063
|
@slotchange=${()=>this.handleFooterSlot(fe.BUTTON,Bt.PRIMARY)}
|
|
1064
1064
|
></slot>
|
|
1065
1065
|
</div>
|
|
1066
|
-
</slot>`}}return m([$t({slot:"footer-link"})],o.prototype,"footerLink",2),m([$t({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),m([$t({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var
|
|
1066
|
+
</slot>`}}return m([$t({slot:"footer-link"})],o.prototype,"footerLink",2),m([$t({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),m([$t({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Se=[],of=1e3,ET=3,Hc=-2,Gc=-1,qi=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Se.length}pushHost(){var o,t;return this.has(this.host)?!1:(Se.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(!this.has(o))return;let t=Se.indexOf(o),r=[];for(let s=Se.length-1;s>=t;s-=1){let l=Se[s];(l===o||l.triggerID!==o.triggerID)&&r.push(l)}return this.remove(r),o}pop(){var t;let o=Se.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let r=Se.length-1;r>=0;r-=1){let s=Se[r],l=o(s,r);if(l===!1)break;l!=="skip"&&t.push(s)}return this.remove(t)}peek(){return Se.at(-1)}remove(o){var s,l;let t=o.filter(c=>Se.includes(c)),r=t.reduce((c,f)=>Math.min(c,Se.indexOf(f)),1/0);t.forEach(c=>{Se.splice(Se.indexOf(c),1)}),t.forEach(c=>{var f;(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=r;c<Se.length;c+=1)(l=(s=Se[c]).onComponentStackChanged)==null||l.call(s,"moved");return t}has(o){return Se.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return Se.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?of+t*ET:of}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var Ml=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(s){var l;if(super.update(s),s.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Hc}`;let c=(l=this.triggerElementCache)==null?void 0:l.deref();c&&(c.style.zIndex=`${this.zIndex+Gc}`)}}createBackdrop(s){let l=document.createElement("div");l.classList.add(`${s}-backdrop`);let c=document.createElement("style");c.textContent=`
|
|
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+Hc};
|
|
1075
1075
|
}
|
|
1076
|
-
`,l.appendChild(c);let y=document.getElementById(this.backdropAppendTo)||this.parentElement;y==null||y.appendChild(l),this.backdropElement=l}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.triggerElementCache=new WeakRef(s),this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex+Gc}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var Ol=V.constructTagName("responsivesettingsprovider"),Nr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},
|
|
1076
|
+
`,l.appendChild(c);let y=document.getElementById(this.backdropAppendTo)||this.parentElement;y==null||y.appendChild(l),this.backdropElement=l}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.triggerElementCache=new WeakRef(s),this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex+Gc}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var Ol=V.constructTagName("responsivesettingsprovider"),Nr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},sf=["float","dialog"],nf=["unknown","mobile","desktop","tablet"];var Rl=class{constructor(o={}){this.media=Nr.MEDIA;this.forceFullscreenDialog=Nr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=Nr.POPOVER_POSITIONING;Object.assign(this,o)}};Rl.context=Ol;var Pl=Rl;var Ns=class extends pe{constructor(){super({context:Pl.context,initialValue:new Pl({media:Nr.MEDIA,popoverPositioning:Nr.POPOVER_POSITIONING,forceFullscreenDialog:Nr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=Nr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=Nr.POPOVER_POSITIONING;this.privateMedia=Nr.MEDIA}static get Context(){return Pl.context}set popoverPositioning(t){sf.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){nf.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,r,s;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((r=this.context.value)==null?void 0:r.popoverPositioning)!==this.privatePopoverPositioning||((s=this.context.value)==null?void 0:s.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};m([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Ns.prototype,"forceFullscreenDialog",2),m([u({type:String,attribute:"popover-positioning",reflect:!0})],Ns.prototype,"popoverPositioning",1),m([u({type:String,attribute:"media",reflect:!0})],Ns.prototype,"media",1);var Kc=Ns;Kc.register(Ol);var Wc=Kc;var af=V.constructTagName("dialog"),Yc={DEFAULT:"default",PROMOTIONAL:"promotional"},fr={VISIBLE:!1,Z_INDEX:1e3,ROLE:tt.DIALOG,SIZE:"small",HEADER_TAG_NAME:mt.H2,DESCRIPTION_TAG_NAME:mt.P,CANCEL_ICON:"cancel-bold",VARIANT:Yc.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var GL=[tt.DIALOG,tt.ALERTDIALOG];var Xi=class{static dispatchDialogEvent(o,t,r=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:r}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var TT=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
|
+
`,lf=[TT];var Xt=class extends Lt(Ct(Ml(wl(Cl(ks(X)))))){constructor(){super(...arguments);this.responsiveSettingsContext=me.consume({host:this,context:Wc.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new qi(this);this.id="";this.visible=fr.VISIBLE;this.internalSize=fr.SIZE;this.variant=fr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=fr.HEADER_TAG_NAME;this.descriptionTagName=fr.DESCRIPTION_TAG_NAME;this.role=fr.ROLE;this.disableAriaHasPopup=fr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=fr.FOCUS_TRAP;this.hideBackdrop=fr.HIDE_BACKDROP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,r;return(r=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&r.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(r=this.deactivateFocusTrap)==null||r.call(this),this.focusBackToTrigger(),Xi.onDestroyedDialog(this)}applyZIndex(){this.style.setProperty("z-index",`${this.zIndex}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Xi.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerID")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.setupAriaHasPopup()),t.has("visible")){let r=t.get("visible");await this.isOpenUpdated(r,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=fr.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,r;this.disableAriaHasPopup||(r=this.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerID&&this.setAttribute("aria-labelledby",this.triggerID)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerID&&this.setAttribute("aria-describedby",this.triggerID))}closeDialog(){this.depthManager.popHost(),Xi.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,r){var s,l,c,f,y;t!==r&&(r&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((s=this.activateFocusTrap)==null||s.call(this)),(l=this.setInitialFocus)==null||l.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),Xi.onShowDialog(this)):!r&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(y=this.deactivateFocusTrap)==null||y.call(this),this.focusBackToTrigger(),Xi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?_` <div part="header-section">
|
|
1228
1228
|
<div part="header">
|
|
1229
1229
|
<slot name="header-prefix"></slot>
|
|
1230
1230
|
<mdc-text
|
|
@@ -1255,7 +1255,7 @@
|
|
|
1255
1255
|
@click="${this.closeDialog}"
|
|
1256
1256
|
></mdc-button>
|
|
1257
1257
|
${this.renderBody()} ${this.renderFooter()}
|
|
1258
|
-
`}};Xt.styles=[...X.styles,...
|
|
1258
|
+
`}};Xt.styles=[...X.styles,...lf],m([u({type:String,reflect:!0})],Xt.prototype,"id",2),m([u({type:String,reflect:!0})],Xt.prototype,"triggerID",2),m([u({type:Boolean,reflect:!0})],Xt.prototype,"visible",2),m([u({type:Number,reflect:!0,attribute:"z-index"})],Xt.prototype,"zIndex",1),m([u({type:String,reflect:!0})],Xt.prototype,"size",1),m([u({type:String,reflect:!0})],Xt.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Xt.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Xt.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Xt.prototype,"ariaLabelledby",2),m([u({type:String,reflect:!0,attribute:"aria-describedby"})],Xt.prototype,"ariaDescribedby",2),m([u({type:String,reflect:!0,attribute:"aria-description"})],Xt.prototype,"ariaDescription",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Xt.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"description-text"})],Xt.prototype,"descriptionText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Xt.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"description-tag-name"})],Xt.prototype,"descriptionTagName",2),m([u({type:String,reflect:!0})],Xt.prototype,"role",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Xt.prototype,"disableAriaHasPopup",2),m([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Xt.prototype,"focusTrap",2),m([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],Xt.prototype,"hideBackdrop",2);var Ls=Xt;var xT=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
|
+
`,df=[xT];var cf=V.constructTagName("announcementdialog");var hf={SIZE:"medium"};var Ms=class extends Ls{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=hf.SIZE}connectedCallback(){super.connectedCallback(),this.variant=Yc.DEFAULT}renderHeader(){return _`${j}`}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
|
-
`}};Ms.styles=[...Ls.styles,...
|
|
1327
|
+
`}};Ms.styles=[...Ls.styles,...df],m([u({type:String,reflect:!0})],Ms.prototype,"illustration",2),m([u({type:String,reflect:!0})],Ms.prototype,"size",1);var jc=Ms;var Dl=V.constructTagName("illustrationprovider"),pf=["svg"],Kn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Fl=class{};Fl.context=Dl;var $l=Fl;var Zi=class extends pe{constructor(){super({context:$l.context,initialValue:new $l});this.illustrationSet=Kn.ILLUSTRATION_SET;this.fileExtension=Kn.FILE_EXTENSION}static get Context(){return $l.context}updateValuesInContext(){this.fileExtension&&pf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Kn.FILE_EXTENSION,this.context.value.fileExtension=Kn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};m([u({type:String,attribute:"illustration-set",reflect:!0})],Zi.prototype,"illustrationSet",2),m([u({type:String})],Zi.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Zi.prototype,"fileExtension",2),m([u({type:String,attribute:"cache-strategy"})],Zi.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Zi.prototype,"cacheName",2);var Wn=Zi;var AT=[bt,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
|
+
`],mf=AT;var uf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),ff=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?uf(f).then(y=>y.text()):bl(s,r).then(y=>y.get(f).then(A=>A||uf(f.clone()).then(F=>{var W;return F.status<400&&F.headers.has("content-type")?(W=y.set)==null?void 0:W.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var vf=V.constructTagName("illustration"),gf={NAME:void 0};var gi=class extends X{constructor(){super();this.name=gf.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=me.consume({host:this,context:Wn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","illustration"),r.setAttribute("aria-hidden","true"),r}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:r,url:s,cacheName:l,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&s&&r&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return ff({url:s,name:this.name,fileExtension:r,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(F)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(y=>{this.handleIllustrationLoadedSuccess(y.default())}).catch(y=>{this.handleIllustrationLoadedFailure(y)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIllustrationLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(r=>{r.name!=="AbortError"&&this.onerror&&this.onerror(r)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?tt.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.illustrationData} `}};gi.styles=[...X.styles,...mf],m([pt()],gi.prototype,"illustrationData",2),m([u({type:String,reflect:!0})],gi.prototype,"name",2),m([u({type:String,attribute:"aria-label"})],gi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],gi.prototype,"ariaLabelledby",2),m([pt()],gi.prototype,"abortController",2);var qc=gi;qc.register(vf);var ST=qc;jc.register(cf);var IT=jc;var _T=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
|
+
`,bf=[_T];var zl=class extends X{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
|
-
`}};zl.styles=[...X.styles,...
|
|
1379
|
+
`}};zl.styles=[...X.styles,...bf];var Xc=zl;var yf=V.constructTagName("appheader");Xc.register(yf);var CT=Xc;var Ef=V.constructTagName("avatar"),De={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Zc=99,wT="user-regular",Wt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Os={TYPE:De.PHOTO,SIZE:Wt[32],ICON_NAME:wT};var Vl=a=>{class o extends a{constructor(){super(...arguments);this.size=Os.SIZE;this.isTyping=!1}}return m([u({type:String})],o.prototype,"src",2),m([u({type:String})],o.prototype,"initials",2),m([u({type:String})],o.prototype,"presence",2),m([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),m([u({type:Number})],o.prototype,"counter",2),m([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var kT=[bt,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);
|
|
@@ -1533,8 +1533,8 @@
|
|
|
1533
1533
|
outline: 0.125rem solid;
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
`],
|
|
1537
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
|
1536
|
+
`],Tf=kT;var xf=V.constructTagName("presence"),Me={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"},oe={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Rs={TYPE:Me.ACTIVE,SIZE:oe[32]};var Af=a=>({[Wt[124]]:oe[124],[Wt[88]]:oe[88],[Wt[72]]:oe[72],[Wt[64]]:oe[64],[Wt[48]]:oe[48],[Wt[32]]:oe[32],[Wt[24]]:oe[24]})[a]||oe[32],Sf=a=>({[Wt[124]]:4.75,[Wt[88]]:3,[Wt[72]]:2.5,[Wt[64]]:2.25,[Wt[48]]:1.75,[Wt[32]]:1.25,[Wt[24]]:1})[a]||1.25,If=a=>({[Wt[124]]:ot.HEADING_XLARGE_MEDIUM,[Wt[88]]:ot.HEADING_LARGE_MEDIUM,[Wt[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Wt[64]]:ot.HEADING_SMALL_MEDIUM,[Wt[48]]:ot.HEADING_SMALL_MEDIUM,[Wt[32]]:ot.BODY_MIDSIZE_MEDIUM,[Wt[24]]:ot.BODY_SMALL_MEDIUM})[a]||ot.BODY_MIDSIZE_MEDIUM;var Yn=class extends Vl(ie(X)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===De.COUNTER&&(this.counter||this.counter===0)||this.isTyping?j:this.presence?_`
|
|
1537
|
+
<mdc-presence part="presence" type="${this.presence}" size="${Af(this.size)}"></mdc-presence>
|
|
1538
1538
|
`:j}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 _`
|
|
1539
1539
|
<img
|
|
1540
1540
|
part="photo"
|
|
@@ -1545,11 +1545,11 @@
|
|
|
1545
1545
|
@error="${this.handleOnError}"
|
|
1546
1546
|
/>
|
|
1547
1547
|
`}iconTemplate(){let t=this.iconName||Os.ICON_NAME;return _`
|
|
1548
|
-
<mdc-icon name="${J(t)}" length-unit="rem" size="${
|
|
1549
|
-
`}textTemplate(t){return _` <mdc-text type="${
|
|
1548
|
+
<mdc-icon name="${J(t)}" length-unit="rem" size="${Sf(this.size)}"></mdc-icon>
|
|
1549
|
+
`}textTemplate(t){return _` <mdc-text type="${If(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Zc?`${Zc}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let r="";return t===De.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),t===De.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?De.PHOTO:this.iconName?De.ICON:this.initials?De.TEXT:this.counter||this.counter===0?De.COUNTER:De.ICON}getTemplateBasedOnType(t){switch(t){case De.PHOTO:return this.photoTemplate();case De.TEXT:case De.COUNTER:return this.generateTextContent(t);case De.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?_`<div part="loading-wrapper"><div part="loader"></div></div>`:j}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?j:t===De.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():j}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return _`
|
|
1550
1550
|
${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
|
|
1551
1551
|
${this.getPresenceTemplateBasedOnType(t)}
|
|
1552
|
-
`}};Yn.styles=[...X.styles,...
|
|
1552
|
+
`}};Yn.styles=[...X.styles,...Tf],m([pt()],Yn.prototype,"isPhotoLoaded",2);var Qc=Yn;var NT=[bt,U`
|
|
1553
1553
|
:host {
|
|
1554
1554
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
|
1555
1555
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
|
@@ -1643,17 +1643,17 @@
|
|
|
1643
1643
|
:host::part(mdc-presence-icon__scheduled) {
|
|
1644
1644
|
color: var(--mdc-presence-scheduled-background-color);
|
|
1645
1645
|
}
|
|
1646
|
-
`],
|
|
1646
|
+
`],_f=NT;var Cf=a=>{switch(a){case Me.AWAY:return"recents-presence-badge-filled";case Me.AWAY_CALLING:return"away-calling-presence-filled";case Me.BUSY:return"busy-presence-bold";case Me.DND:return"dnd-presence-badge-filled";case Me.MEETING:return"camera-filled";case Me.ON_CALL:return"handset-filled";case Me.ON_DEVICE:return"generic-device-video-badge-filled";case Me.ON_MOBILE:return"phone-badge-filled";case Me.PAUSE:return"pause-badge-filled";case Me.PTO:return"pto-presence-filled";case Me.PRESENTING:return"share-screen-badge-filled";case Me.QUIET:return"quiet-hours-presence-filled";case Me.SCHEDULED:return"meetings-presence-badge-filled";case Me.ACTIVE:default:return"active-presence-small-filled"}},wf=a=>({[oe[124]]:2.25,[oe[88]]:1.625,[oe[72]]:1.3125,[oe[64]]:1.1875,[oe[48]]:.875,[oe[32]]:.875,[oe[24]]:.875})[a]||.875;var Do=class extends X{constructor(){super(...arguments);this.type=Rs.TYPE;this.size=Rs.SIZE;this.currentIconType=Rs.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(oe).includes(t)?`${t}`:Rs.SIZE.toString())}get icon(){let t=Cf(this.type);return t==="active-presence-small-filled"&&(this.type=Rs.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 _`
|
|
1647
1647
|
<div part="presence-content">
|
|
1648
1648
|
<mdc-icon
|
|
1649
1649
|
part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
|
1650
1650
|
name="${this.icon}"
|
|
1651
|
-
size="${
|
|
1651
|
+
size="${wf(this.size)}"
|
|
1652
1652
|
@load="${this.handleOnLoad}"
|
|
1653
1653
|
@error="${this.handleOnError}"
|
|
1654
1654
|
></mdc-icon>
|
|
1655
1655
|
</div>
|
|
1656
|
-
`}};Do.styles=[...X.styles,...
|
|
1656
|
+
`}};Do.styles=[...X.styles,..._f],m([u({type:String,reflect:!0})],Do.prototype,"type",2),m([u({type:Number,reflect:!0})],Do.prototype,"size",2),m([pt()],Do.prototype,"currentIconType",2);var Jc=Do;Jc.register(xf);var LT=Jc;Qc.register(Ef);var MT=Qc;var OT=[bt,U`
|
|
1657
1657
|
:host {
|
|
1658
1658
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
|
1659
1659
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
|
@@ -1692,7 +1692,7 @@
|
|
|
1692
1692
|
--mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
|
|
1693
1693
|
--mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
|
|
1694
1694
|
}
|
|
1695
|
-
`,...At()],
|
|
1695
|
+
`,...At()],kf=OT;var jn=class extends Vl(ie(ue)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=tt.BUTTON,this.type=je.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Wt).includes(t)?`${t}`:Os.SIZE.toString())}render(){return _`
|
|
1696
1696
|
<div part="overlay" aria-hidden="true"></div>
|
|
1697
1697
|
<mdc-avatar
|
|
1698
1698
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
|
@@ -1704,7 +1704,7 @@
|
|
|
1704
1704
|
size="${J(this.size)}"
|
|
1705
1705
|
src="${J(this.src)}"
|
|
1706
1706
|
></mdc-avatar>
|
|
1707
|
-
`}};jn.styles=[...
|
|
1707
|
+
`}};jn.styles=[...kf],m([u({type:String,attribute:"aria-label"})],jn.prototype,"ariaLabel",2);var th=jn;var Nf=V.constructTagName("avatarbutton");th.register(Nf);var RT=th;var Lf=V.constructTagName("badge"),vr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Bl={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},eh={PRIMARY:"primary",SECONDARY:"secondary"},bi={TYPE:vr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:eh.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var PT=[bt,U`
|
|
1708
1708
|
:host {
|
|
1709
1709
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
|
1710
1710
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
|
@@ -1783,7 +1783,7 @@
|
|
|
1783
1783
|
outline: none;
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
`],
|
|
1786
|
+
`],Mf=PT;var jr=class extends ie(X){constructor(){super(...arguments);this.variant=bi.VARIANT;this.maxCounter=bi.MAX_COUNTER;this.overlay=bi.OVERLAY;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>bi.MAX_COUNTER_LIMIT||r>bi.MAX_COUNTER_LIMIT?`${bi.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t){return _`
|
|
1787
1787
|
<mdc-icon
|
|
1788
1788
|
part="badge-icon ${this.overlay?"badge-overlay":""}"
|
|
1789
1789
|
name="${J(t)}"
|
|
@@ -1797,7 +1797,7 @@
|
|
|
1797
1797
|
>
|
|
1798
1798
|
${this.getCounterText(this.maxCounter,this.counter)}
|
|
1799
1799
|
</mdc-text>
|
|
1800
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(eh).includes(this.variant)&&(this.variant=bi.VARIANT);let{iconName:t,type:r}=this;switch(r){case vr.ICON:return this.getBadgeIcon(t||"");case vr.COUNTER:return this.getBadgeCounterText();case vr.SUCCESS:return this.getBadgeIcon(Bl.SUCCESS_ICON_NAME);case vr.WARNING:return this.getBadgeIcon(Bl.WARNING_ICON_NAME);case vr.ERROR:return this.getBadgeIcon(Bl.ERROR_ICON_NAME);case vr.DOT:default:return this.type=vr.DOT,this.getBadgeDot()}}};jr.styles=[...X.styles,...
|
|
1800
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(eh).includes(this.variant)&&(this.variant=bi.VARIANT);let{iconName:t,type:r}=this;switch(r){case vr.ICON:return this.getBadgeIcon(t||"");case vr.COUNTER:return this.getBadgeCounterText();case vr.SUCCESS:return this.getBadgeIcon(Bl.SUCCESS_ICON_NAME);case vr.WARNING:return this.getBadgeIcon(Bl.WARNING_ICON_NAME);case vr.ERROR:return this.getBadgeIcon(Bl.ERROR_ICON_NAME);case vr.DOT:default:return this.type=vr.DOT,this.getBadgeDot()}}};jr.styles=[...X.styles,...Mf],m([u({type:String,reflect:!0})],jr.prototype,"type",2),m([u({type:String,reflect:!0})],jr.prototype,"variant",2),m([u({type:Number})],jr.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],jr.prototype,"maxCounter",2),m([u({type:Boolean})],jr.prototype,"overlay",2),m([u({type:String,attribute:"aria-label"})],jr.prototype,"ariaLabel",2);var rh=jr;rh.register(Lf);var DT=rh;var FT=U`
|
|
1801
1801
|
:host {
|
|
1802
1802
|
display: block;
|
|
1803
1803
|
height: 100%;
|
|
@@ -1811,7 +1811,7 @@
|
|
|
1811
1811
|
width: 100%;
|
|
1812
1812
|
object-fit: contain;
|
|
1813
1813
|
}
|
|
1814
|
-
`,
|
|
1814
|
+
`,Of=[FT];var Fo=class extends X{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let 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 c=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return c&&Object.entries(r).forEach(([f,y])=>{c.setAttribute(f,y)}),c||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} `}};Fo.styles=[...X.styles,...Of],m([pt()],Fo.prototype,"brandVisualData",2),m([u({type:String,reflect:!0})],Fo.prototype,"name",2),m([u({type:String,reflect:!0,attribute:"alt-text"})],Fo.prototype,"altText",2);var ih=Fo;var Rf=V.constructTagName("brandvisual");ih.register(Rf);var $T=ih;var zT=U`
|
|
1815
1815
|
:host {
|
|
1816
1816
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
1817
1817
|
--mdc-bullet-size: 0.25rem;
|
|
@@ -1831,7 +1831,7 @@
|
|
|
1831
1831
|
:host([size='large']) {
|
|
1832
1832
|
--mdc-bullet-size: 1rem;
|
|
1833
1833
|
}
|
|
1834
|
-
`,
|
|
1834
|
+
`,Pf=[zT];var Df=V.constructTagName("bullet"),Ff={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var qn=class extends X{constructor(){super(...arguments);this.size=Ff.SMALL}};qn.styles=[...X.styles,...Pf],m([u({type:String,reflect:!0})],qn.prototype,"size",2);var oh=qn;oh.register(Df);var VT=oh;var $f=V.constructTagName("buttongroup"),BT={40:40,32:32,28:28,24:24},UT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},HT={PRIMARY:"primary",SECONDARY:"secondary"},Ul={SIZE:BT[28],VARIANT:HT.PRIMARY,ORIENTATION:UT.HORIZONTAL};var GT=U`
|
|
1835
1835
|
:host {
|
|
1836
1836
|
--mdc-buttongroup-border-radius: 1.25rem;
|
|
1837
1837
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
|
@@ -1931,7 +1931,7 @@
|
|
|
1931
1931
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
|
1932
1932
|
width: 2.5rem;
|
|
1933
1933
|
}
|
|
1934
|
-
|
|
1934
|
+
`,zf=[bt,GT];var yi=class extends X{constructor(){super(...arguments);this.orientation=Ul.ORIENTATION;this.variant=Ul.VARIANT;this.size=Ul.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>`}};yi.styles=[...X.styles,...zf],m([u({type:String,reflect:!0})],yi.prototype,"orientation",2),m([u({type:String,reflect:!0})],yi.prototype,"variant",2),m([u({type:Number,reflect:!0})],yi.prototype,"size",2),m([u({type:Boolean,reflect:!0})],yi.prototype,"compact",2),m([$t({selector:"mdc-button"})],yi.prototype,"buttons",2);var sh=yi;sh.register($f);var KT=sh;var Ht=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return m([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Vf=V.constructTagName("linksimple"),Ps={INLINE:!1,INVERTED:!1};var WT=[bt,U`
|
|
1935
1935
|
:host {
|
|
1936
1936
|
--mdc-link-border-radius: 0.25rem;
|
|
1937
1937
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
|
@@ -2010,7 +2010,7 @@
|
|
|
2010
2010
|
:host([inline])::part(anchor) {
|
|
2011
2011
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
|
2012
2012
|
}
|
|
2013
|
-
`,...At(!0)],
|
|
2013
|
+
`,...At(!0)],Bf=WT;var Fe=class extends Ht(jt(X)){constructor(){super(...arguments);this.inline=Ps.INLINE;this.inverted=Ps.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))}click(){var t,r,s,l;this.disabled||(l=(s=(r=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:r.call(t,"a"))==null?void 0:s.click)==null||l.call(s)}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 _`
|
|
2014
2014
|
<a
|
|
2015
2015
|
class="mdc-focus-ring"
|
|
2016
2016
|
part="anchor"
|
|
@@ -2027,7 +2027,7 @@
|
|
|
2027
2027
|
>
|
|
2028
2028
|
${this.renderAnchorContent()}
|
|
2029
2029
|
</a>
|
|
2030
|
-
`}};Fe.styles=[...X.styles,...
|
|
2030
|
+
`}};Fe.styles=[...X.styles,...Bf],Fe.shadowRootOptions={...X.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],Fe.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],Fe.prototype,"inverted",2),m([u({type:String,reflect:!0})],Fe.prototype,"href",2),m([u({type:String,reflect:!0})],Fe.prototype,"target",2),m([u({type:String,reflect:!0})],Fe.prototype,"rel",2),m([u({type:String,reflect:!0})],Fe.prototype,"download",2),m([u({type:String,reflect:!0})],Fe.prototype,"ping",2),m([u({type:String,reflect:!0})],Fe.prototype,"hreflang",2),m([u({type:String,reflect:!0})],Fe.prototype,"type",2),m([u({type:String,reflect:!0})],Fe.prototype,"referrerpolicy",2);var qr=Fe;var YT=U`
|
|
2031
2031
|
:host {
|
|
2032
2032
|
border: unset;
|
|
2033
2033
|
}
|
|
@@ -2081,11 +2081,11 @@
|
|
|
2081
2081
|
:host([variant='secondary'][soft-disabled])::part(anchor) {
|
|
2082
2082
|
border-color: var(--mdc-button-border-color);
|
|
2083
2083
|
}
|
|
2084
|
-
`,
|
|
2084
|
+
`,Uf=[YT,...At(!0)];var Ds=class extends dl(qr){constructor(){super(...arguments);this.size=je.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 _`
|
|
2085
2085
|
${this.prefixIcon?_`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2086
2086
|
<slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
|
|
2087
2087
|
${this.postfixIcon?_`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2088
|
-
`}};Ds.styles=[...Oo.styles,...
|
|
2088
|
+
`}};Ds.styles=[...Oo.styles,...Uf],m([u({type:Number,reflect:!0})],Ds.prototype,"size",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ds.prototype,"softDisabled",2);var nh=Ds;var Hf=V.constructTagName("buttonlink");nh.register(Hf);var jT=nh;var Hl=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=fe.VARIANT;this.orientation=fe.ORIENTATION;this.titleTagName=fe.TAGNAME;this.subtitleTagName=fe.TAGNAME}renderImage(){return this.imageSrc?_`<div part="image-wrapper">
|
|
2089
2089
|
<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
|
|
2090
2090
|
</div>`:j}renderIcon(){return this.iconName?_`<mdc-icon
|
|
2091
2091
|
part="icon"
|
|
@@ -2212,7 +2212,7 @@
|
|
|
2212
2212
|
mdc-text::part(text) {
|
|
2213
2213
|
margin: 0;
|
|
2214
2214
|
}
|
|
2215
|
-
`,
|
|
2215
|
+
`,Gf=[bt,qT];var Xn=class extends Hl(ks(X)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(fe.BUTTON)&&(r.setAttribute("variant",Bt.TERTIARY),r.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return _`<div part="header">
|
|
2216
2216
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2217
2217
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
|
2218
2218
|
</div>`}render(){return _`
|
|
@@ -2226,7 +2226,7 @@
|
|
|
2226
2226
|
</div>
|
|
2227
2227
|
${this.renderFooter()}
|
|
2228
2228
|
</div>
|
|
2229
|
-
`}};Xn.styles=[...X.styles,...
|
|
2229
|
+
`}};Xn.styles=[...X.styles,...Gf],m([$t({slot:"icon-button"})],Xn.prototype,"iconButtons",2);var Lr=Xn;Lr.register(rf);var XT=Lr;var ZT=U`
|
|
2230
2230
|
:host {
|
|
2231
2231
|
cursor: pointer;
|
|
2232
2232
|
user-select: none;
|
|
@@ -2248,7 +2248,7 @@
|
|
|
2248
2248
|
:host([disabled])::part(image) {
|
|
2249
2249
|
opacity: 0.5;
|
|
2250
2250
|
}
|
|
2251
|
-
`,
|
|
2251
|
+
`,Kf=[ZT,...At()];var Gl=class extends Hl(ue){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return _`
|
|
2252
2252
|
<slot name="image"> ${this.renderImage()} </slot>
|
|
2253
2253
|
<div part="body">
|
|
2254
2254
|
<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
|
|
@@ -2256,7 +2256,7 @@
|
|
|
2256
2256
|
<slot name="body"></slot>
|
|
2257
2257
|
<slot name="after-body"></slot>
|
|
2258
2258
|
</div>
|
|
2259
|
-
`}};Gl.styles=[...Lr.styles,...
|
|
2259
|
+
`}};Gl.styles=[...Lr.styles,...Kf];var ah=Gl;var Wf=V.constructTagName("cardbutton");ah.register(Wf);var QT=ah;var Yf=V.constructTagName("cardcheckbox"),lh={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Kl={CHECK:"check",CHECKBOX:"checkbox"},Wl={SELECTION_TYPE:Kl.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var JT=U`
|
|
2260
2260
|
:host {
|
|
2261
2261
|
cursor: pointer;
|
|
2262
2262
|
user-select: none;
|
|
@@ -2313,7 +2313,7 @@
|
|
|
2313
2313
|
:host([disabled])::part(check-icon) {
|
|
2314
2314
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
2315
2315
|
}
|
|
2316
|
-
`,
|
|
2316
|
+
`,jf=[JT,...At()];var Fs=class extends Lt(Ct(jt(Hr(Lr)))){constructor(){super();this.checked=!1;this.selectionType=Wl.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=tt.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let r=this.getActionForKeyEvent(t);r===q.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),r===q.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===q.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?lh.CHECKED:lh.DEFAULT;switch(this.selectionType){case Kl.CHECK:return _`<mdc-icon
|
|
2317
2317
|
part="check check-icon"
|
|
2318
2318
|
size="${Wl.ICON_SIZE}"
|
|
2319
2319
|
length-unit="${Wl.ICON_LENGTH_UNIT}"
|
|
@@ -2330,7 +2330,7 @@
|
|
|
2330
2330
|
<slot name="body"></slot>
|
|
2331
2331
|
<slot name="after-body"></slot>
|
|
2332
2332
|
</div>
|
|
2333
|
-
`}};Fs.styles=[...Lr.styles,...
|
|
2333
|
+
`}};Fs.styles=[...Lr.styles,...jf],m([u({type:Boolean,reflect:!0})],Fs.prototype,"checked",2),m([u({type:String,attribute:"selection-type",reflect:!0})],Fs.prototype,"selectionType",2);var dh=Fs;var tx=[U`
|
|
2334
2334
|
:host {
|
|
2335
2335
|
--mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2336
2336
|
--mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
|
|
@@ -2408,7 +2408,7 @@
|
|
|
2408
2408
|
--mdc-staticcheckbox-icon-color: GrayText;
|
|
2409
2409
|
}
|
|
2410
2410
|
}
|
|
2411
|
-
`],
|
|
2411
|
+
`],qf=tx;var Xf=V.constructTagName("popover"),kt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Oe={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},$o={TONAL:"tonal",CONTRAST:"contrast"},ch={ABSOLUTE:"absolute",FIXED:"fixed"},ex={VIEWPORT:"viewport",DOCUMENT:"document"},St={PLACEMENT:kt.BOTTOM,TRIGGER:Oe.CLICK,COLOR:$o.TONAL,STRATEGY:ch.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:ex.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:tt.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},Ei={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Zf=V.constructTagName("formfieldwrapper"),Ut={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ot={VALIDATION:Ut.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:kt.TOP,TOGGLETIP_STRATEGY:ch.ABSOLUTE},Zn={TAGNAME:mt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Qf=V.constructTagName("checkbox"),Yl={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Jf={ERROR:Ut.ERROR,DEFAULT:Ut.DEFAULT};var tv=V.constructTagName("staticcheckbox");var Qi=class extends jt(X){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?_`
|
|
2412
2412
|
<mdc-icon
|
|
2413
2413
|
part="checkbox-icon"
|
|
2414
2414
|
name="${this.indeterminate?Yl.INDETERMINATE:Yl.CHECKED}"
|
|
@@ -2416,7 +2416,7 @@
|
|
|
2416
2416
|
length-unit="rem"
|
|
2417
2417
|
></mdc-icon>
|
|
2418
2418
|
`:j;return _`<slot></slot>
|
|
2419
|
-
<div part="icon-container">${t}</div>`}};Qi.styles=[...X.styles,...
|
|
2419
|
+
<div part="icon-container">${t}</div>`}};Qi.styles=[...X.styles,...qf],m([u({type:Boolean,reflect:!0})],Qi.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Qi.prototype,"indeterminate",2),m([u({type:Boolean,reflect:!0})],Qi.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Qi.prototype,"softDisabled",2);var hh=Qi;hh.register(tv);var rx=hh;dh.register(Yf);var ix=dh;var ox=U`
|
|
2420
2420
|
:host {
|
|
2421
2421
|
cursor: pointer;
|
|
2422
2422
|
user-select: none;
|
|
@@ -2469,7 +2469,7 @@
|
|
|
2469
2469
|
:host([disabled])::part(image) {
|
|
2470
2470
|
opacity: 0.5;
|
|
2471
2471
|
}
|
|
2472
|
-
`,
|
|
2472
|
+
`,ev=[ox,...At()];var $s=class extends Lt(Ct(jt(Hr(Lr)))){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=tt.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}))}click(){this.disabled||(super.click(),this.toggleChecked())}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===q.SPACE){t.preventDefault();return}if(this.disabled)return;let l=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),c=l.indexOf(this);if(r===q.DOWN||q.RIGHT===r){let f=(c+1)%l.length;this.updateCardRadio(l,f),this.keyDownEventHandled()}else if(r===q.UP||q.LEFT===r){let f=(c-1+l.length)%l.length;this.updateCardRadio(l,f),this.keyDownEventHandled()}r===q.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===q.SPACE&&this.toggleChecked()}renderHeader(){return _`<div part="header">
|
|
2473
2473
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2474
2474
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
|
2475
2475
|
</div>`}render(){return _`
|
|
@@ -2480,7 +2480,7 @@
|
|
|
2480
2480
|
<slot name="body"></slot>
|
|
2481
2481
|
<slot name="after-body"></slot>
|
|
2482
2482
|
</div>
|
|
2483
|
-
`}};$s.styles=[...Lr.styles,...
|
|
2483
|
+
`}};$s.styles=[...Lr.styles,...ev],m([u({type:Boolean,reflect:!0})],$s.prototype,"checked",2),m([u({type:String})],$s.prototype,"name",2);var ph=$s;var jl=V.constructTagName("cardradio");var sx=[U`
|
|
2484
2484
|
:host {
|
|
2485
2485
|
--mdc-staticradio-inner-circle-size: 0.375rem;
|
|
2486
2486
|
--mdc-staticradio-outer-circle-size: 1rem;
|
|
@@ -2577,8 +2577,8 @@
|
|
|
2577
2577
|
--mdc-staticradio-outer-circle-background-color: GrayText;
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
|
-
`],
|
|
2581
|
-
<span part="radio-icon" class="radio-icon"></span>`}};zo.styles=[...X.styles,...ev],m([u({type:Boolean,reflect:!0})],zo.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],zo.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],zo.prototype,"softDisabled",2);var mh=zo;var rv=V.constructTagName("staticradio");mh.register(rv);var nx=mh;ph.register(jl);var ax=ph;var Xr=Math.min,$e=Math.max,Jn=Math.round,ta=Math.floor,Mr=a=>({x:a,y:a}),lx={left:"right",right:"left",bottom:"top",top:"bottom"},dx={start:"end",end:"start"};function Xl(a,o,t){return $e(a,Xr(o,t))}function Vo(a,o){return typeof a=="function"?a(o):a}function Ti(a){return a.split("-")[0]}function Bo(a){return a.split("-")[1]}function uh(a){return a==="x"?"y":"x"}function Zl(a){return a==="y"?"height":"width"}var cx=new Set(["top","bottom"]);function Zr(a){return cx.has(Ti(a))?"y":"x"}function Ql(a){return uh(Zr(a))}function sv(a,o,t){t===void 0&&(t=!1);let r=Bo(a),s=Ql(a),l=Zl(s),c=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=Qn(c)),[c,Qn(c)]}function nv(a){let o=Qn(a);return[ql(a),o,ql(o)]}function ql(a){return a.replace(/start|end/g,o=>dx[o])}var iv=["left","right"],ov=["right","left"],hx=["top","bottom"],px=["bottom","top"];function mx(a,o,t){switch(a){case"top":case"bottom":return t?o?ov:iv:o?iv:ov;case"left":case"right":return o?hx:px;default:return[]}}function av(a,o,t,r){let s=Bo(a),l=mx(Ti(a),t==="start",r);return s&&(l=l.map(c=>c+"-"+s),o&&(l=l.concat(l.map(ql)))),l}function Qn(a){return a.replace(/left|right|bottom|top/g,o=>lx[o])}function ux(a){return{top:0,right:0,bottom:0,left:0,...a}}function fh(a){return typeof a!="number"?ux(a):{top:a,right:a,bottom:a,left:a}}function Uo(a){let{x:o,y:t,width:r,height:s}=a;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function lv(a,o,t){let{reference:r,floating:s}=a,l=Zr(o),c=Ql(o),f=Zl(c),y=Ti(o),S=l==="y",F=r.x+r.width/2-s.width/2,W=r.y+r.height/2-s.height/2,Q=r[f]/2-s[f]/2,Z;switch(y){case"top":Z={x:F,y:r.y-s.height};break;case"bottom":Z={x:F,y:r.y+r.height};break;case"right":Z={x:r.x+r.width,y:W};break;case"left":Z={x:r.x-s.width,y:W};break;default:Z={x:r.x,y:r.y}}switch(Bo(o)){case"start":Z[c]-=Q*(t&&S?-1:1);break;case"end":Z[c]+=Q*(t&&S?-1:1);break}return Z}var dv=async(a,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(o)),S=await c.getElementRects({reference:a,floating:o,strategy:s}),{x:F,y:W}=lv(S,r,y),Q=r,Z={},et=0;for(let lt=0;lt<f.length;lt++){let{name:dt,fn:gt}=f[lt],{x:It,y:wt,data:Zt,reset:Gt}=await gt({x:F,y:W,initialPlacement:r,placement:Q,strategy:s,middlewareData:Z,rects:S,platform:c,elements:{reference:a,floating:o}});F=It!=null?It:F,W=wt!=null?wt:W,Z={...Z,[dt]:{...Z[dt],...Zt}},Gt&&et<=50&&(et++,typeof Gt=="object"&&(Gt.placement&&(Q=Gt.placement),Gt.rects&&(S=Gt.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:s}):Gt.rects),{x:F,y:W}=lv(S,Q,y)),lt=-1)}return{x:F,y:W,placement:Q,strategy:s,middlewareData:Z}};async function Jl(a,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:l,rects:c,elements:f,strategy:y}=a,{boundary:S="clippingAncestors",rootBoundary:F="viewport",elementContext:W="floating",altBoundary:Q=!1,padding:Z=0}=Vo(o,a),et=fh(Z),dt=f[Q?W==="floating"?"reference":"floating":W],gt=Uo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(dt)))==null||t?dt:dt.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:S,rootBoundary:F,strategy:y})),It=W==="floating"?{x:r,y:s,width:c.floating.width,height:c.floating.height}:c.reference,wt=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Zt=await(l.isElement==null?void 0:l.isElement(wt))?await(l.getScale==null?void 0:l.getScale(wt))||{x:1,y:1}:{x:1,y:1},Gt=Uo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:wt,strategy:y}):It);return{top:(gt.top-Gt.top+et.top)/Zt.y,bottom:(Gt.bottom-gt.bottom+et.bottom)/Zt.y,left:(gt.left-Gt.left+et.left)/Zt.x,right:(Gt.right-gt.right+et.right)/Zt.x}}var cv=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:r,placement:s,rects:l,platform:c,elements:f,middlewareData:y}=o,{element:S,padding:F=0}=Vo(a,o)||{};if(S==null)return{};let W=fh(F),Q={x:t,y:r},Z=Ql(s),et=Zl(Z),lt=await c.getDimensions(S),dt=Z==="y",gt=dt?"top":"left",It=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",Zt=l.reference[et]+l.reference[Z]-Q[Z]-l.floating[et],Gt=Q[Z]-l.reference[Z],Qt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(S)),se=Qt?Qt[wt]:0;(!se||!await(c.isElement==null?void 0:c.isElement(Qt)))&&(se=f.floating[wt]||l.floating[et]);let ye=Zt/2-Gt/2,Sr=se/2-lt[et]/2-1,Ue=Xr(W[gt],Sr),ar=Xr(W[It],Sr),Ir=Ue,_r=se-lt[et]-ar,Nt=se/2-lt[et]/2+ye,Se=Xl(Ir,Nt,_r),lr=!y.arrow&&Bo(s)!=null&&Nt!==Se&&l.reference[et]/2-(Nt<Ir?Ue:ar)-lt[et]/2<0,dr=lr?Nt<Ir?Nt-Ir:Nt-_r:0;return{[Z]:Q[Z]+dr,data:{[Z]:Se,centerOffset:Nt-Se-dr,...lr&&{alignmentOffset:dr}},reset:lr}}});var hv=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,r;let{placement:s,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:S}=o,{mainAxis:F=!0,crossAxis:W=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:lt=!0,...dt}=Vo(a,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let gt=Ti(s),It=Zr(f),wt=Ti(f)===f,Zt=await(y.isRTL==null?void 0:y.isRTL(S.floating)),Gt=Q||(wt||!lt?[Qn(f)]:nv(f)),Qt=et!=="none";!Q&&Qt&&Gt.push(...av(f,lt,et,Zt));let se=[f,...Gt],ye=await Jl(o,dt),Sr=[],Ue=((r=l.flip)==null?void 0:r.overflows)||[];if(F&&Sr.push(ye[gt]),W){let Nt=sv(s,c,Zt);Sr.push(ye[Nt[0]],ye[Nt[1]])}if(Ue=[...Ue,{placement:s,overflows:Sr}],!Sr.every(Nt=>Nt<=0)){var ar,Ir;let Nt=(((ar=l.flip)==null?void 0:ar.index)||0)+1,Se=se[Nt];if(Se&&(!(W==="alignment"?It!==Zr(Se):!1)||Ue.every(cr=>cr.overflows[0]>0&&Zr(cr.placement)===It)))return{data:{index:Nt,overflows:Ue},reset:{placement:Se}};let lr=(Ir=Ue.filter(dr=>dr.overflows[0]<=0).sort((dr,cr)=>dr.overflows[1]-cr.overflows[1])[0])==null?void 0:Ir.placement;if(!lr)switch(Z){case"bestFit":{var _r;let dr=(_r=Ue.filter(cr=>{if(Qt){let hr=Zr(cr.placement);return hr===It||hr==="y"}return!0}).map(cr=>[cr.placement,cr.overflows.filter(hr=>hr>0).reduce((hr,Oa)=>hr+Oa,0)]).sort((cr,hr)=>cr[1]-hr[1])[0])==null?void 0:_r[0];dr&&(lr=dr);break}case"initialPlacement":lr=f;break}if(s!==lr)return{reset:{placement:lr}}}return{}}}};var fx=new Set(["left","top"]);async function vx(a,o){let{placement:t,platform:r,elements:s}=a,l=await(r.isRTL==null?void 0:r.isRTL(s.floating)),c=Ti(t),f=Bo(t),y=Zr(t)==="y",S=fx.has(c)?-1:1,F=l&&y?-1:1,W=Vo(o,a),{mainAxis:Q,crossAxis:Z,alignmentAxis:et}=typeof W=="number"?{mainAxis:W,crossAxis:0,alignmentAxis:null}:{mainAxis:W.mainAxis||0,crossAxis:W.crossAxis||0,alignmentAxis:W.alignmentAxis};return f&&typeof et=="number"&&(Z=f==="end"?et*-1:et),y?{x:Z*F,y:Q*S}:{x:Q*S,y:Z*F}}var pv=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,r;let{x:s,y:l,placement:c,middlewareData:f}=o,y=await vx(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+y.x,y:l+y.y,data:{...y,placement:c}}}}},mv=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:dt=>{let{x:gt,y:It}=dt;return{x:gt,y:It}}},...y}=Vo(a,o),S={x:t,y:r},F=await Jl(o,y),W=Zr(Ti(s)),Q=uh(W),Z=S[Q],et=S[W];if(l){let dt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",It=Z+F[dt],wt=Z-F[gt];Z=Xl(It,Z,wt)}if(c){let dt=W==="y"?"top":"left",gt=W==="y"?"bottom":"right",It=et+F[dt],wt=et-F[gt];et=Xl(It,et,wt)}let lt=f.fn({...o,[Q]:Z,[W]:et});return{...lt,data:{x:lt.x-t,y:lt.y-r,enabled:{[Q]:l,[W]:c}}}}}};var uv=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,r;let{placement:s,rects:l,platform:c,elements:f}=o,{apply:y=()=>{},...S}=Vo(a,o),F=await Jl(o,S),W=Ti(s),Q=Bo(s),Z=Zr(s)==="y",{width:et,height:lt}=l.floating,dt,gt;W==="top"||W==="bottom"?(dt=W,gt=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(gt=W,dt=Q==="end"?"top":"bottom");let It=lt-F.top-F.bottom,wt=et-F.left-F.right,Zt=Xr(lt-F[dt],It),Gt=Xr(et-F[gt],wt),Qt=!o.middlewareData.shift,se=Zt,ye=Gt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ye=wt),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(se=It),Qt&&!Q){let Ue=$e(F.left,0),ar=$e(F.right,0),Ir=$e(F.top,0),_r=$e(F.bottom,0);Z?ye=et-2*(Ue!==0||ar!==0?Ue+ar:$e(F.left,F.right)):se=lt-2*(Ir!==0||_r!==0?Ir+_r:$e(F.top,F.bottom))}await y({...o,availableWidth:ye,availableHeight:se});let Sr=await c.getDimensions(f.floating);return et!==Sr.width||lt!==Sr.height?{reset:{rects:!0}}:{}}}};function td(){return typeof window<"u"}function Ho(a){return vv(a)?(a.nodeName||"").toLowerCase():"#document"}function qe(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Or(a){var o;return(o=(vv(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function vv(a){return td()?a instanceof Node||a instanceof qe(a).Node:!1}function gr(a){return td()?a instanceof Element||a instanceof qe(a).Element:!1}function Rr(a){return td()?a instanceof HTMLElement||a instanceof qe(a).HTMLElement:!1}function fv(a){return!td()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof qe(a).ShadowRoot}var gx=new Set(["inline","contents"]);function Vs(a){let{overflow:o,overflowX:t,overflowY:r,display:s}=br(a);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!gx.has(s)}var bx=new Set(["table","td","th"]);function gv(a){return bx.has(Ho(a))}var yx=[":popover-open",":modal"];function ea(a){return yx.some(o=>{try{return a.matches(o)}catch{return!1}})}var Ex=["transform","translate","scale","rotate","perspective"],Tx=["transform","translate","scale","rotate","perspective","filter"],xx=["paint","layout","strict","content"];function ed(a){let o=rd(),t=gr(a)?br(a):a;return Ex.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)||Tx.some(r=>(t.willChange||"").includes(r))||xx.some(r=>(t.contain||"").includes(r))}function bv(a){let o=xi(a);for(;Rr(o)&&!Go(o);){if(ed(o))return o;if(ea(o))return null;o=xi(o)}return null}function rd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Ax=new Set(["html","body","#document"]);function Go(a){return Ax.has(Ho(a))}function br(a){return qe(a).getComputedStyle(a)}function ra(a){return gr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function xi(a){if(Ho(a)==="html")return a;let o=a.assignedSlot||a.parentNode||fv(a)&&a.host||Or(a);return fv(o)?o.host:o}function yv(a){let o=xi(a);return Go(o)?a.ownerDocument?a.ownerDocument.body:a.body:Rr(o)&&Vs(o)?o:yv(o)}function zs(a,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=yv(a),l=s===((r=a.ownerDocument)==null?void 0:r.body),c=qe(s);if(l){let f=id(c);return o.concat(c,c.visualViewport||[],Vs(s)?s:[],f&&t?zs(f):[])}return o.concat(s,zs(s,[],t))}function id(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function xv(a){let o=br(a),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Rr(a),l=s?a.offsetWidth:t,c=s?a.offsetHeight:r,f=Jn(t)!==l||Jn(r)!==c;return f&&(t=l,r=c),{width:t,height:r,$:f}}function gh(a){return gr(a)?a:a.contextElement}function Bs(a){let o=gh(a);if(!Rr(o))return Mr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:l}=xv(o),c=(l?Jn(t.width):t.width)/r,f=(l?Jn(t.height):t.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var Sx=Mr(0);function Av(a){let o=qe(a);return!rd()||!o.visualViewport?Sx:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ix(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==qe(a)?!1:o}function Ko(a,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),l=gh(a),c=Mr(1);o&&(r?gr(r)&&(c=Bs(r)):c=Bs(a));let f=Ix(l,t,r)?Av(l):Mr(0),y=(s.left+f.x)/c.x,S=(s.top+f.y)/c.y,F=s.width/c.x,W=s.height/c.y;if(l){let Q=qe(l),Z=r&&gr(r)?qe(r):r,et=Q,lt=id(et);for(;lt&&r&&Z!==et;){let dt=Bs(lt),gt=lt.getBoundingClientRect(),It=br(lt),wt=gt.left+(lt.clientLeft+parseFloat(It.paddingLeft))*dt.x,Zt=gt.top+(lt.clientTop+parseFloat(It.paddingTop))*dt.y;y*=dt.x,S*=dt.y,F*=dt.x,W*=dt.y,y+=wt,S+=Zt,et=qe(lt),lt=id(et)}}return Uo({width:F,height:W,x:y,y:S})}function bh(a,o){let t=ra(a).scrollLeft;return o?o.left+t:Ko(Or(a)).left+t}function Sv(a,o,t){t===void 0&&(t=!1);let r=a.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:bh(a,r)),l=r.top+o.scrollTop;return{x:s,y:l}}function _x(a){let{elements:o,rect:t,offsetParent:r,strategy:s}=a,l=s==="fixed",c=Or(r),f=o?ea(o.floating):!1;if(r===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},S=Mr(1),F=Mr(0),W=Rr(r);if((W||!W&&!l)&&((Ho(r)!=="body"||Vs(c))&&(y=ra(r)),Rr(r))){let Z=Ko(r);S=Bs(r),F.x=Z.x+r.clientLeft,F.y=Z.y+r.clientTop}let Q=c&&!W&&!l?Sv(c,y,!0):Mr(0);return{width:t.width*S.x,height:t.height*S.y,x:t.x*S.x-y.scrollLeft*S.x+F.x+Q.x,y:t.y*S.y-y.scrollTop*S.y+F.y+Q.y}}function Cx(a){return Array.from(a.getClientRects())}function wx(a){let o=Or(a),t=ra(a),r=a.ownerDocument.body,s=$e(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),l=$e(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),c=-t.scrollLeft+bh(a),f=-t.scrollTop;return br(r).direction==="rtl"&&(c+=$e(o.clientWidth,r.clientWidth)-s),{width:s,height:l,x:c,y:f}}function kx(a,o){let t=qe(a),r=Or(a),s=t.visualViewport,l=r.clientWidth,c=r.clientHeight,f=0,y=0;if(s){l=s.width,c=s.height;let S=rd();(!S||S&&o==="fixed")&&(f=s.offsetLeft,y=s.offsetTop)}return{width:l,height:c,x:f,y}}var Nx=new Set(["absolute","fixed"]);function Lx(a,o){let t=Ko(a,!0,o==="fixed"),r=t.top+a.clientTop,s=t.left+a.clientLeft,l=Rr(a)?Bs(a):Mr(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,y=s*l.x,S=r*l.y;return{width:c,height:f,x:y,y:S}}function Ev(a,o,t){let r;if(o==="viewport")r=kx(a,t);else if(o==="document")r=wx(Or(a));else if(gr(o))r=Lx(o,t);else{let s=Av(a);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return Uo(r)}function Iv(a,o){let t=xi(a);return t===o||!gr(t)||Go(t)?!1:br(t).position==="fixed"||Iv(t,o)}function Mx(a,o){let t=o.get(a);if(t)return t;let r=zs(a,[],!1).filter(f=>gr(f)&&Ho(f)!=="body"),s=null,l=br(a).position==="fixed",c=l?xi(a):a;for(;gr(c)&&!Go(c);){let f=br(c),y=ed(c);!y&&f.position==="fixed"&&(s=null),(l?!y&&!s:!y&&f.position==="static"&&!!s&&Nx.has(s.position)||Vs(c)&&!y&&Iv(a,c))?r=r.filter(F=>F!==c):s=f,c=xi(c)}return o.set(a,r),r}function Ox(a){let{element:o,boundary:t,rootBoundary:r,strategy:s}=a,c=[...t==="clippingAncestors"?ea(o)?[]:Mx(o,this._c):[].concat(t),r],f=c[0],y=c.reduce((S,F)=>{let W=Ev(o,F,s);return S.top=$e(W.top,S.top),S.right=Xr(W.right,S.right),S.bottom=Xr(W.bottom,S.bottom),S.left=$e(W.left,S.left),S},Ev(o,f,s));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Rx(a){let{width:o,height:t}=xv(a);return{width:o,height:t}}function Px(a,o,t){let r=Rr(o),s=Or(o),l=t==="fixed",c=Ko(a,!0,l,o),f={scrollLeft:0,scrollTop:0},y=Mr(0);function S(){y.x=bh(s)}if(r||!r&&!l)if((Ho(o)!=="body"||Vs(s))&&(f=ra(o)),r){let Z=Ko(o,!0,l,o);y.x=Z.x+o.clientLeft,y.y=Z.y+o.clientTop}else s&&S();l&&!r&&s&&S();let F=s&&!r&&!l?Sv(s,f):Mr(0),W=c.left+f.scrollLeft-y.x-F.x,Q=c.top+f.scrollTop-y.y-F.y;return{x:W,y:Q,width:c.width,height:c.height}}function vh(a){return br(a).position==="static"}function Tv(a,o){if(!Rr(a)||br(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Or(a)===t&&(t=t.ownerDocument.body),t}function _v(a,o){let t=qe(a);if(ea(a))return t;if(!Rr(a)){let s=xi(a);for(;s&&!Go(s);){if(gr(s)&&!vh(s))return s;s=xi(s)}return t}let r=Tv(a,o);for(;r&&gv(r)&&vh(r);)r=Tv(r,o);return r&&Go(r)&&vh(r)&&!ed(r)?t:r||bv(a)||t}var Dx=async function(a){let o=this.getOffsetParent||_v,t=this.getDimensions,r=await t(a.floating);return{reference:Px(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fx(a){return br(a).direction==="rtl"}var $x={convertOffsetParentRelativeRectToViewportRelativeRect:_x,getDocumentElement:Or,getClippingRect:Ox,getOffsetParent:_v,getElementRects:Dx,getClientRects:Cx,getDimensions:Rx,getScale:Bs,isElement:gr,isRTL:Fx};function Cv(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function zx(a,o){let t=null,r,s=Or(a);function l(){var f;clearTimeout(r),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let S=a.getBoundingClientRect(),{left:F,top:W,width:Q,height:Z}=S;if(f||o(),!Q||!Z)return;let et=ta(W),lt=ta(s.clientWidth-(F+Q)),dt=ta(s.clientHeight-(W+Z)),gt=ta(F),wt={rootMargin:-et+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:$e(0,Xr(1,y))||1},Zt=!0;function Gt(Qt){let se=Qt[0].intersectionRatio;if(se!==y){if(!Zt)return c();se?c(!1,se):r=setTimeout(()=>{c(!1,1e-7)},1e3)}se===1&&!Cv(S,a.getBoundingClientRect())&&c(),Zt=!1}try{t=new IntersectionObserver(Gt,{...wt,root:s.ownerDocument})}catch{t=new IntersectionObserver(Gt,wt)}t.observe(a)}return c(!0),l}function wv(a,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=r,S=gh(a),F=s||l?[...S?zs(S):[],...zs(o)]:[];F.forEach(gt=>{s&>.addEventListener("scroll",t,{passive:!0}),l&>.addEventListener("resize",t)});let W=S&&f?zx(S,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(gt=>{let[It]=gt;It&&It.target===S&&Z&&(Z.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var wt;(wt=Z)==null||wt.observe(o)})),t()}),S&&!y&&Z.observe(S),Z.observe(o));let et,lt=y?Ko(a):null;y&&dt();function dt(){let gt=Ko(a);lt&&!Cv(lt,gt)&&t(),lt=gt,et=requestAnimationFrame(dt)}return t(),()=>{var gt;F.forEach(It=>{s&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),W==null||W(),(gt=Z)==null||gt.disconnect(),Z=null,y&&cancelAnimationFrame(et)}}var kv=pv;var Nv=mv,Lv=hv,Mv=uv;var Ov=cv;var Rv=(a,o,t)=>{let r=new Map,s={platform:$x,...t},l={...s.platform,_c:r};return dv(a,o,{...s,platform:l})};var od=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 l=window.setInterval(t,r,...s);return this.nameToIntervalId.set(o,l),l}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 l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},r,...s);return this.nameToTimeoutId.set(o,l),l}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(([,c])=>c===t))==null?void 0:r[0],s]}return[t,o.get(t)]}};var Ai=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 Vx=U`
|
|
2580
|
+
`],rv=sx;var zo=class extends jt(X){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return _` <slot></slot>
|
|
2581
|
+
<span part="radio-icon" class="radio-icon"></span>`}};zo.styles=[...X.styles,...rv],m([u({type:Boolean,reflect:!0})],zo.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],zo.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],zo.prototype,"softDisabled",2);var mh=zo;var iv=V.constructTagName("staticradio");mh.register(iv);var nx=mh;ph.register(jl);var ax=ph;var Xr=Math.min,$e=Math.max,Jn=Math.round,ta=Math.floor,Mr=a=>({x:a,y:a}),lx={left:"right",right:"left",bottom:"top",top:"bottom"},dx={start:"end",end:"start"};function Xl(a,o,t){return $e(a,Xr(o,t))}function Vo(a,o){return typeof a=="function"?a(o):a}function Ti(a){return a.split("-")[0]}function Bo(a){return a.split("-")[1]}function uh(a){return a==="x"?"y":"x"}function Zl(a){return a==="y"?"height":"width"}var cx=new Set(["top","bottom"]);function Zr(a){return cx.has(Ti(a))?"y":"x"}function Ql(a){return uh(Zr(a))}function nv(a,o,t){t===void 0&&(t=!1);let r=Bo(a),s=Ql(a),l=Zl(s),c=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=Qn(c)),[c,Qn(c)]}function av(a){let o=Qn(a);return[ql(a),o,ql(o)]}function ql(a){return a.replace(/start|end/g,o=>dx[o])}var ov=["left","right"],sv=["right","left"],hx=["top","bottom"],px=["bottom","top"];function mx(a,o,t){switch(a){case"top":case"bottom":return t?o?sv:ov:o?ov:sv;case"left":case"right":return o?hx:px;default:return[]}}function lv(a,o,t,r){let s=Bo(a),l=mx(Ti(a),t==="start",r);return s&&(l=l.map(c=>c+"-"+s),o&&(l=l.concat(l.map(ql)))),l}function Qn(a){return a.replace(/left|right|bottom|top/g,o=>lx[o])}function ux(a){return{top:0,right:0,bottom:0,left:0,...a}}function fh(a){return typeof a!="number"?ux(a):{top:a,right:a,bottom:a,left:a}}function Uo(a){let{x:o,y:t,width:r,height:s}=a;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function dv(a,o,t){let{reference:r,floating:s}=a,l=Zr(o),c=Ql(o),f=Zl(c),y=Ti(o),A=l==="y",F=r.x+r.width/2-s.width/2,W=r.y+r.height/2-s.height/2,Q=r[f]/2-s[f]/2,Z;switch(y){case"top":Z={x:F,y:r.y-s.height};break;case"bottom":Z={x:F,y:r.y+r.height};break;case"right":Z={x:r.x+r.width,y:W};break;case"left":Z={x:r.x-s.width,y:W};break;default:Z={x:r.x,y:r.y}}switch(Bo(o)){case"start":Z[c]-=Q*(t&&A?-1:1);break;case"end":Z[c]+=Q*(t&&A?-1:1);break}return Z}var cv=async(a,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:s}),{x:F,y:W}=dv(A,r,y),Q=r,Z={},et=0;for(let lt=0;lt<f.length;lt++){let{name:dt,fn:gt}=f[lt],{x:It,y:wt,data:Zt,reset:Gt}=await gt({x:F,y:W,initialPlacement:r,placement:Q,strategy:s,middlewareData:Z,rects:A,platform:c,elements:{reference:a,floating:o}});F=It!=null?It:F,W=wt!=null?wt:W,Z={...Z,[dt]:{...Z[dt],...Zt}},Gt&&et<=50&&(et++,typeof Gt=="object"&&(Gt.placement&&(Q=Gt.placement),Gt.rects&&(A=Gt.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:s}):Gt.rects),{x:F,y:W}=dv(A,Q,y)),lt=-1)}return{x:F,y:W,placement:Q,strategy:s,middlewareData:Z}};async function Jl(a,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:l,rects:c,elements:f,strategy:y}=a,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:W="floating",altBoundary:Q=!1,padding:Z=0}=Vo(o,a),et=fh(Z),dt=f[Q?W==="floating"?"reference":"floating":W],gt=Uo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(dt)))==null||t?dt:dt.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:y})),It=W==="floating"?{x:r,y:s,width:c.floating.width,height:c.floating.height}:c.reference,wt=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Zt=await(l.isElement==null?void 0:l.isElement(wt))?await(l.getScale==null?void 0:l.getScale(wt))||{x:1,y:1}:{x:1,y:1},Gt=Uo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:wt,strategy:y}):It);return{top:(gt.top-Gt.top+et.top)/Zt.y,bottom:(Gt.bottom-gt.bottom+et.bottom)/Zt.y,left:(gt.left-Gt.left+et.left)/Zt.x,right:(Gt.right-gt.right+et.right)/Zt.x}}var hv=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:r,placement:s,rects:l,platform:c,elements:f,middlewareData:y}=o,{element:A,padding:F=0}=Vo(a,o)||{};if(A==null)return{};let W=fh(F),Q={x:t,y:r},Z=Ql(s),et=Zl(Z),lt=await c.getDimensions(A),dt=Z==="y",gt=dt?"top":"left",It=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",Zt=l.reference[et]+l.reference[Z]-Q[Z]-l.floating[et],Gt=Q[Z]-l.reference[Z],Qt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),se=Qt?Qt[wt]:0;(!se||!await(c.isElement==null?void 0:c.isElement(Qt)))&&(se=f.floating[wt]||l.floating[et]);let ye=Zt/2-Gt/2,Sr=se/2-lt[et]/2-1,Ue=Xr(W[gt],Sr),ar=Xr(W[It],Sr),Ir=Ue,_r=se-lt[et]-ar,Nt=se/2-lt[et]/2+ye,Ie=Xl(Ir,Nt,_r),lr=!y.arrow&&Bo(s)!=null&&Nt!==Ie&&l.reference[et]/2-(Nt<Ir?Ue:ar)-lt[et]/2<0,dr=lr?Nt<Ir?Nt-Ir:Nt-_r:0;return{[Z]:Q[Z]+dr,data:{[Z]:Ie,centerOffset:Nt-Ie-dr,...lr&&{alignmentOffset:dr}},reset:lr}}});var pv=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,r;let{placement:s,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=o,{mainAxis:F=!0,crossAxis:W=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:lt=!0,...dt}=Vo(a,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let gt=Ti(s),It=Zr(f),wt=Ti(f)===f,Zt=await(y.isRTL==null?void 0:y.isRTL(A.floating)),Gt=Q||(wt||!lt?[Qn(f)]:av(f)),Qt=et!=="none";!Q&&Qt&&Gt.push(...lv(f,lt,et,Zt));let se=[f,...Gt],ye=await Jl(o,dt),Sr=[],Ue=((r=l.flip)==null?void 0:r.overflows)||[];if(F&&Sr.push(ye[gt]),W){let Nt=nv(s,c,Zt);Sr.push(ye[Nt[0]],ye[Nt[1]])}if(Ue=[...Ue,{placement:s,overflows:Sr}],!Sr.every(Nt=>Nt<=0)){var ar,Ir;let Nt=(((ar=l.flip)==null?void 0:ar.index)||0)+1,Ie=se[Nt];if(Ie&&(!(W==="alignment"?It!==Zr(Ie):!1)||Ue.every(cr=>cr.overflows[0]>0&&Zr(cr.placement)===It)))return{data:{index:Nt,overflows:Ue},reset:{placement:Ie}};let lr=(Ir=Ue.filter(dr=>dr.overflows[0]<=0).sort((dr,cr)=>dr.overflows[1]-cr.overflows[1])[0])==null?void 0:Ir.placement;if(!lr)switch(Z){case"bestFit":{var _r;let dr=(_r=Ue.filter(cr=>{if(Qt){let hr=Zr(cr.placement);return hr===It||hr==="y"}return!0}).map(cr=>[cr.placement,cr.overflows.filter(hr=>hr>0).reduce((hr,Oa)=>hr+Oa,0)]).sort((cr,hr)=>cr[1]-hr[1])[0])==null?void 0:_r[0];dr&&(lr=dr);break}case"initialPlacement":lr=f;break}if(s!==lr)return{reset:{placement:lr}}}return{}}}};var fx=new Set(["left","top"]);async function vx(a,o){let{placement:t,platform:r,elements:s}=a,l=await(r.isRTL==null?void 0:r.isRTL(s.floating)),c=Ti(t),f=Bo(t),y=Zr(t)==="y",A=fx.has(c)?-1:1,F=l&&y?-1:1,W=Vo(o,a),{mainAxis:Q,crossAxis:Z,alignmentAxis:et}=typeof W=="number"?{mainAxis:W,crossAxis:0,alignmentAxis:null}:{mainAxis:W.mainAxis||0,crossAxis:W.crossAxis||0,alignmentAxis:W.alignmentAxis};return f&&typeof et=="number"&&(Z=f==="end"?et*-1:et),y?{x:Z*F,y:Q*A}:{x:Q*A,y:Z*F}}var mv=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,r;let{x:s,y:l,placement:c,middlewareData:f}=o,y=await vx(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+y.x,y:l+y.y,data:{...y,placement:c}}}}},uv=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:dt=>{let{x:gt,y:It}=dt;return{x:gt,y:It}}},...y}=Vo(a,o),A={x:t,y:r},F=await Jl(o,y),W=Zr(Ti(s)),Q=uh(W),Z=A[Q],et=A[W];if(l){let dt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",It=Z+F[dt],wt=Z-F[gt];Z=Xl(It,Z,wt)}if(c){let dt=W==="y"?"top":"left",gt=W==="y"?"bottom":"right",It=et+F[dt],wt=et-F[gt];et=Xl(It,et,wt)}let lt=f.fn({...o,[Q]:Z,[W]:et});return{...lt,data:{x:lt.x-t,y:lt.y-r,enabled:{[Q]:l,[W]:c}}}}}};var fv=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,r;let{placement:s,rects:l,platform:c,elements:f}=o,{apply:y=()=>{},...A}=Vo(a,o),F=await Jl(o,A),W=Ti(s),Q=Bo(s),Z=Zr(s)==="y",{width:et,height:lt}=l.floating,dt,gt;W==="top"||W==="bottom"?(dt=W,gt=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(gt=W,dt=Q==="end"?"top":"bottom");let It=lt-F.top-F.bottom,wt=et-F.left-F.right,Zt=Xr(lt-F[dt],It),Gt=Xr(et-F[gt],wt),Qt=!o.middlewareData.shift,se=Zt,ye=Gt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ye=wt),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(se=It),Qt&&!Q){let Ue=$e(F.left,0),ar=$e(F.right,0),Ir=$e(F.top,0),_r=$e(F.bottom,0);Z?ye=et-2*(Ue!==0||ar!==0?Ue+ar:$e(F.left,F.right)):se=lt-2*(Ir!==0||_r!==0?Ir+_r:$e(F.top,F.bottom))}await y({...o,availableWidth:ye,availableHeight:se});let Sr=await c.getDimensions(f.floating);return et!==Sr.width||lt!==Sr.height?{reset:{rects:!0}}:{}}}};function td(){return typeof window<"u"}function Ho(a){return gv(a)?(a.nodeName||"").toLowerCase():"#document"}function qe(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Or(a){var o;return(o=(gv(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function gv(a){return td()?a instanceof Node||a instanceof qe(a).Node:!1}function gr(a){return td()?a instanceof Element||a instanceof qe(a).Element:!1}function Rr(a){return td()?a instanceof HTMLElement||a instanceof qe(a).HTMLElement:!1}function vv(a){return!td()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof qe(a).ShadowRoot}var gx=new Set(["inline","contents"]);function Vs(a){let{overflow:o,overflowX:t,overflowY:r,display:s}=br(a);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!gx.has(s)}var bx=new Set(["table","td","th"]);function bv(a){return bx.has(Ho(a))}var yx=[":popover-open",":modal"];function ea(a){return yx.some(o=>{try{return a.matches(o)}catch{return!1}})}var Ex=["transform","translate","scale","rotate","perspective"],Tx=["transform","translate","scale","rotate","perspective","filter"],xx=["paint","layout","strict","content"];function ed(a){let o=rd(),t=gr(a)?br(a):a;return Ex.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)||Tx.some(r=>(t.willChange||"").includes(r))||xx.some(r=>(t.contain||"").includes(r))}function yv(a){let o=xi(a);for(;Rr(o)&&!Go(o);){if(ed(o))return o;if(ea(o))return null;o=xi(o)}return null}function rd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Ax=new Set(["html","body","#document"]);function Go(a){return Ax.has(Ho(a))}function br(a){return qe(a).getComputedStyle(a)}function ra(a){return gr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function xi(a){if(Ho(a)==="html")return a;let o=a.assignedSlot||a.parentNode||vv(a)&&a.host||Or(a);return vv(o)?o.host:o}function Ev(a){let o=xi(a);return Go(o)?a.ownerDocument?a.ownerDocument.body:a.body:Rr(o)&&Vs(o)?o:Ev(o)}function zs(a,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=Ev(a),l=s===((r=a.ownerDocument)==null?void 0:r.body),c=qe(s);if(l){let f=id(c);return o.concat(c,c.visualViewport||[],Vs(s)?s:[],f&&t?zs(f):[])}return o.concat(s,zs(s,[],t))}function id(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function Av(a){let o=br(a),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Rr(a),l=s?a.offsetWidth:t,c=s?a.offsetHeight:r,f=Jn(t)!==l||Jn(r)!==c;return f&&(t=l,r=c),{width:t,height:r,$:f}}function gh(a){return gr(a)?a:a.contextElement}function Bs(a){let o=gh(a);if(!Rr(o))return Mr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:l}=Av(o),c=(l?Jn(t.width):t.width)/r,f=(l?Jn(t.height):t.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var Sx=Mr(0);function Sv(a){let o=qe(a);return!rd()||!o.visualViewport?Sx:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ix(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==qe(a)?!1:o}function Ko(a,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),l=gh(a),c=Mr(1);o&&(r?gr(r)&&(c=Bs(r)):c=Bs(a));let f=Ix(l,t,r)?Sv(l):Mr(0),y=(s.left+f.x)/c.x,A=(s.top+f.y)/c.y,F=s.width/c.x,W=s.height/c.y;if(l){let Q=qe(l),Z=r&&gr(r)?qe(r):r,et=Q,lt=id(et);for(;lt&&r&&Z!==et;){let dt=Bs(lt),gt=lt.getBoundingClientRect(),It=br(lt),wt=gt.left+(lt.clientLeft+parseFloat(It.paddingLeft))*dt.x,Zt=gt.top+(lt.clientTop+parseFloat(It.paddingTop))*dt.y;y*=dt.x,A*=dt.y,F*=dt.x,W*=dt.y,y+=wt,A+=Zt,et=qe(lt),lt=id(et)}}return Uo({width:F,height:W,x:y,y:A})}function bh(a,o){let t=ra(a).scrollLeft;return o?o.left+t:Ko(Or(a)).left+t}function Iv(a,o,t){t===void 0&&(t=!1);let r=a.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:bh(a,r)),l=r.top+o.scrollTop;return{x:s,y:l}}function _x(a){let{elements:o,rect:t,offsetParent:r,strategy:s}=a,l=s==="fixed",c=Or(r),f=o?ea(o.floating):!1;if(r===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=Mr(1),F=Mr(0),W=Rr(r);if((W||!W&&!l)&&((Ho(r)!=="body"||Vs(c))&&(y=ra(r)),Rr(r))){let Z=Ko(r);A=Bs(r),F.x=Z.x+r.clientLeft,F.y=Z.y+r.clientTop}let Q=c&&!W&&!l?Iv(c,y,!0):Mr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+F.y+Q.y}}function Cx(a){return Array.from(a.getClientRects())}function wx(a){let o=Or(a),t=ra(a),r=a.ownerDocument.body,s=$e(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),l=$e(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),c=-t.scrollLeft+bh(a),f=-t.scrollTop;return br(r).direction==="rtl"&&(c+=$e(o.clientWidth,r.clientWidth)-s),{width:s,height:l,x:c,y:f}}function kx(a,o){let t=qe(a),r=Or(a),s=t.visualViewport,l=r.clientWidth,c=r.clientHeight,f=0,y=0;if(s){l=s.width,c=s.height;let A=rd();(!A||A&&o==="fixed")&&(f=s.offsetLeft,y=s.offsetTop)}return{width:l,height:c,x:f,y}}var Nx=new Set(["absolute","fixed"]);function Lx(a,o){let t=Ko(a,!0,o==="fixed"),r=t.top+a.clientTop,s=t.left+a.clientLeft,l=Rr(a)?Bs(a):Mr(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,y=s*l.x,A=r*l.y;return{width:c,height:f,x:y,y:A}}function Tv(a,o,t){let r;if(o==="viewport")r=kx(a,t);else if(o==="document")r=wx(Or(a));else if(gr(o))r=Lx(o,t);else{let s=Sv(a);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return Uo(r)}function _v(a,o){let t=xi(a);return t===o||!gr(t)||Go(t)?!1:br(t).position==="fixed"||_v(t,o)}function Mx(a,o){let t=o.get(a);if(t)return t;let r=zs(a,[],!1).filter(f=>gr(f)&&Ho(f)!=="body"),s=null,l=br(a).position==="fixed",c=l?xi(a):a;for(;gr(c)&&!Go(c);){let f=br(c),y=ed(c);!y&&f.position==="fixed"&&(s=null),(l?!y&&!s:!y&&f.position==="static"&&!!s&&Nx.has(s.position)||Vs(c)&&!y&&_v(a,c))?r=r.filter(F=>F!==c):s=f,c=xi(c)}return o.set(a,r),r}function Ox(a){let{element:o,boundary:t,rootBoundary:r,strategy:s}=a,c=[...t==="clippingAncestors"?ea(o)?[]:Mx(o,this._c):[].concat(t),r],f=c[0],y=c.reduce((A,F)=>{let W=Tv(o,F,s);return A.top=$e(W.top,A.top),A.right=Xr(W.right,A.right),A.bottom=Xr(W.bottom,A.bottom),A.left=$e(W.left,A.left),A},Tv(o,f,s));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Rx(a){let{width:o,height:t}=Av(a);return{width:o,height:t}}function Px(a,o,t){let r=Rr(o),s=Or(o),l=t==="fixed",c=Ko(a,!0,l,o),f={scrollLeft:0,scrollTop:0},y=Mr(0);function A(){y.x=bh(s)}if(r||!r&&!l)if((Ho(o)!=="body"||Vs(s))&&(f=ra(o)),r){let Z=Ko(o,!0,l,o);y.x=Z.x+o.clientLeft,y.y=Z.y+o.clientTop}else s&&A();l&&!r&&s&&A();let F=s&&!r&&!l?Iv(s,f):Mr(0),W=c.left+f.scrollLeft-y.x-F.x,Q=c.top+f.scrollTop-y.y-F.y;return{x:W,y:Q,width:c.width,height:c.height}}function vh(a){return br(a).position==="static"}function xv(a,o){if(!Rr(a)||br(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Or(a)===t&&(t=t.ownerDocument.body),t}function Cv(a,o){let t=qe(a);if(ea(a))return t;if(!Rr(a)){let s=xi(a);for(;s&&!Go(s);){if(gr(s)&&!vh(s))return s;s=xi(s)}return t}let r=xv(a,o);for(;r&&bv(r)&&vh(r);)r=xv(r,o);return r&&Go(r)&&vh(r)&&!ed(r)?t:r||yv(a)||t}var Dx=async function(a){let o=this.getOffsetParent||Cv,t=this.getDimensions,r=await t(a.floating);return{reference:Px(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fx(a){return br(a).direction==="rtl"}var $x={convertOffsetParentRelativeRectToViewportRelativeRect:_x,getDocumentElement:Or,getClippingRect:Ox,getOffsetParent:Cv,getElementRects:Dx,getClientRects:Cx,getDimensions:Rx,getScale:Bs,isElement:gr,isRTL:Fx};function wv(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function zx(a,o){let t=null,r,s=Or(a);function l(){var f;clearTimeout(r),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=a.getBoundingClientRect(),{left:F,top:W,width:Q,height:Z}=A;if(f||o(),!Q||!Z)return;let et=ta(W),lt=ta(s.clientWidth-(F+Q)),dt=ta(s.clientHeight-(W+Z)),gt=ta(F),wt={rootMargin:-et+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:$e(0,Xr(1,y))||1},Zt=!0;function Gt(Qt){let se=Qt[0].intersectionRatio;if(se!==y){if(!Zt)return c();se?c(!1,se):r=setTimeout(()=>{c(!1,1e-7)},1e3)}se===1&&!wv(A,a.getBoundingClientRect())&&c(),Zt=!1}try{t=new IntersectionObserver(Gt,{...wt,root:s.ownerDocument})}catch{t=new IntersectionObserver(Gt,wt)}t.observe(a)}return c(!0),l}function kv(a,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=r,A=gh(a),F=s||l?[...A?zs(A):[],...zs(o)]:[];F.forEach(gt=>{s&>.addEventListener("scroll",t,{passive:!0}),l&>.addEventListener("resize",t)});let W=A&&f?zx(A,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(gt=>{let[It]=gt;It&&It.target===A&&Z&&(Z.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var wt;(wt=Z)==null||wt.observe(o)})),t()}),A&&!y&&Z.observe(A),Z.observe(o));let et,lt=y?Ko(a):null;y&&dt();function dt(){let gt=Ko(a);lt&&!wv(lt,gt)&&t(),lt=gt,et=requestAnimationFrame(dt)}return t(),()=>{var gt;F.forEach(It=>{s&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),W==null||W(),(gt=Z)==null||gt.disconnect(),Z=null,y&&cancelAnimationFrame(et)}}var Nv=mv;var Lv=uv,Mv=pv,Ov=fv;var Rv=hv;var Pv=(a,o,t)=>{let r=new Map,s={platform:$x,...t},l={...s.platform,_c:r};return cv(a,o,{...s,platform:l})};var od=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 l=window.setInterval(t,r,...s);return this.nameToIntervalId.set(o,l),l}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 l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},r,...s);return this.nameToTimeoutId.set(o,l),l}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(([,c])=>c===t))==null?void 0:r[0],s]}return[t,o.get(t)]}};var Ai=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 Vx=U`
|
|
2582
2582
|
:host {
|
|
2583
2583
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2584
2584
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2700,7 +2700,7 @@
|
|
|
2700
2700
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2701
2701
|
border-bottom-left-radius: 100%;
|
|
2702
2702
|
}
|
|
2703
|
-
`,Pv=[Vx];var nd=V.constructTagName("popoverportal"),sd=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var ad=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+1}px)`,s=this.popover.offsetHeight||0,l=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=`${l}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=`${l}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(nd),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===tt.DIALOG||this.popover.role===tt.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 F;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:l,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),y=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let W=y!=null&&y[s]?12-Math.abs(f[s]-y[s]):0;Math.round(W)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let S=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-S}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Lt(Ct(Ml(wl(Cl(X))))){constructor(){super();this.depthManager=new qi(this);this.id="";this.triggerID="";this.trigger=St.TRIGGER;this.placement=St.PLACEMENT;this.color=St.COLOR;this.visible=St.VISIBLE;this.offset=St.OFFSET;this.boundary=St.BOUNDARY;this.boundaryRoot=St.BOUNDARY_ROOT;this.focusTrap=St.FOCUS_TRAP;this.preventScroll=St.PREVENT_SCROLL;this.showArrow=St.ARROW;this.closeButton=St.CLOSE_BUTTON;this.interactive=St.INTERACTIVE;this.delay=St.DELAY;this.hideOnEscape=St.HIDE_ON_ESCAPE;this.propagateEventOnEscape=St.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=St.HIDE_ON_BLUR;this.hideOnOutsideClick=St.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=St.FOCUS_BACK;this.backdrop=St.BACKDROP;this.isBackdropInvisible=St.IS_BACKDROP_INVISIBLE;this.disableFlip=St.DISABLE_FLIP;this.size=St.SIZE;this.closeButtonAriaLabel=null;this.strategy=St.STRATEGY;this.role=St.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=St.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=St.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=St.ANIMATION_FRAME;this.elementIndexToReceiveFocus=null;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new od(this);this.parseTrigger=()=>{var l;let s=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(Me).includes(c)).length>0?this.trigger:St.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),l=this.backdropElement?r.includes(this.backdropElement):!1;(!s||l)&&(this.hide(),Ai.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ai.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:r}=t;this.contains(r)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var r,s,l,c;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(c=(l=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ei.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ei.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ei.HOVER),this.timers.clearTimeout(Ei.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ei.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ei.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,l=[Nv({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],c=this.offset;if(this.disableFlip||l.push(Lv({boundary:r,rootBoundary:s})),this.size){let f=S=>{this.style.setProperty("--mdc-popover-internal-available-height",`${S}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(Mv({boundary:r,rootBoundary:s,apply({availableHeight:S}){y&&(Object.assign(y.style,{maxHeight:`${S}px`,overflowY:"auto"}),f(S))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight,y=Math.sqrt(2*f**2)/2;c+=y,l.push(Ov({element:this.arrowElement,padding:12}))}l.push(kv(c)),this.floatingUICleanupFunction=wv(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:S,y:F,middlewareData:W,placement:Q}=await Rv(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(S,F),W.arrow&&this.arrowElement&&this.utils.updateArrowStyle(W.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new ad(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Ai.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(),Ai.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(kt).includes(this.placement)?this.placement:St.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values($o).includes(this.color)?this.color:St.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,r){var l,c;let{triggerElement:s}=this;t===r||!s||(r&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,y,S;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(S=this.setInitialFocus)==null||S.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Ai.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ai.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ei.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ei.OPEN),t())}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case 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}`,_`
|
|
2703
|
+
`,Dv=[Vx];var nd=V.constructTagName("popoverportal"),sd=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var ad=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=this.popover.triggerElement;if(t&&r){let s=this.popover.getBoundingClientRect(),l=r.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(s.top-l.bottom,l.top-s.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-s.right,s.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var 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(nd),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===tt.DIALOG||this.popover.role===tt.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 F;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:l,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),y=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let W=y!=null&&y[s]?12-Math.abs(f[s]-y[s]):0;Math.round(W)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Lt(Ct(Ml(wl(Cl(X))))){constructor(){super();this.depthManager=new qi(this);this.id="";this.triggerID="";this.trigger=St.TRIGGER;this.placement=St.PLACEMENT;this.color=St.COLOR;this.visible=St.VISIBLE;this.offset=St.OFFSET;this.boundary=St.BOUNDARY;this.boundaryRoot=St.BOUNDARY_ROOT;this.focusTrap=St.FOCUS_TRAP;this.preventScroll=St.PREVENT_SCROLL;this.showArrow=St.ARROW;this.closeButton=St.CLOSE_BUTTON;this.interactive=St.INTERACTIVE;this.delay=St.DELAY;this.hideOnEscape=St.HIDE_ON_ESCAPE;this.propagateEventOnEscape=St.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=St.HIDE_ON_BLUR;this.hideOnOutsideClick=St.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=St.FOCUS_BACK;this.backdrop=St.BACKDROP;this.isBackdropInvisible=St.IS_BACKDROP_INVISIBLE;this.disableFlip=St.DISABLE_FLIP;this.size=St.SIZE;this.closeButtonAriaLabel=null;this.strategy=St.STRATEGY;this.role=St.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=St.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=St.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=St.ANIMATION_FRAME;this.elementIndexToReceiveFocus=null;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new od(this);this.parseTrigger=()=>{var l;let s=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(Oe).includes(c)).length>0?this.trigger:St.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),l=this.backdropElement?r.includes(this.backdropElement):!1;(!s||l)&&(this.hide(),Ai.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ai.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:r}=t;this.contains(r)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var r,s,l,c;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(c=(l=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ei.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ei.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ei.HOVER),this.timers.clearTimeout(Ei.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ei.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ei.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,l=[Lv({boundary:r,rootBoundary:s,padding:this.boundaryPadding})];if(this.disableFlip||l.push(Mv({boundary:r,rootBoundary:s})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(Ov({boundary:r,rootBoundary:s,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Rv({element:this.arrowElement,padding:12}))}l.push(Nv(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=kv(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:W,placement:Q}=await Pv(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),W.arrow&&this.arrowElement&&this.utils.updateArrowStyle(W.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new ad(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Ai.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(),Ai.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(kt).includes(this.placement)?this.placement:St.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values($o).includes(this.color)?this.color:St.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,r){var l,c;let{triggerElement:s}=this;t===r||!s||(r&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Ai.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ai.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ei.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ei.OPEN),t())}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case 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}`,_`
|
|
2704
2704
|
<div part="popover-hover-bridge"></div>
|
|
2705
2705
|
${this.closeButton?_` <mdc-button
|
|
2706
2706
|
part="popover-close"
|
|
@@ -2714,7 +2714,7 @@
|
|
|
2714
2714
|
<div part="popover-content">
|
|
2715
2715
|
<slot></slot>
|
|
2716
2716
|
</div>
|
|
2717
|
-
`}};_t.styles=[...X.styles,...
|
|
2717
|
+
`}};_t.styles=[...X.styles,...Dv],m([u({type:String,reflect:!0})],_t.prototype,"id",2),m([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),m([u({type:String,reflect:!0})],_t.prototype,"trigger",2),m([u({type:String,reflect:!0})],_t.prototype,"placement",2),m([u({type:String,reflect:!0})],_t.prototype,"color",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),m([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],_t.prototype,"offset",2),m([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),m([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),m([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),m([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),m([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),m([u({type:String,reflect:!0})],_t.prototype,"delay",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),m([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),m([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),m([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),m([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),m([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0})],_t.prototype,"strategy",2),m([u({type:String,reflect:!0})],_t.prototype,"role",2),m([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),m([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),m([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),m([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2),m([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],_t.prototype,"elementIndexToReceiveFocus",2);var Xe=_t;var Fv=V.constructTagName("toggletip"),Wo={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:kt.TOP,CLICK:Oe.CLICK,SHOW_ARROW:!0};var Bx=U`
|
|
2718
2718
|
:host {
|
|
2719
2719
|
--mdc-toggletip-max-width: 400px;
|
|
2720
2720
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -2744,7 +2744,7 @@
|
|
|
2744
2744
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
|
2745
2745
|
margin-left: 2rem;
|
|
2746
2746
|
}
|
|
2747
|
-
|
|
2747
|
+
`,$v=[Bx];var Ji=class extends Xe{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=Wo.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:Wo.CLOSE_BUTTON,this.closeButtonAriaLabel=Wo.CLOSE_BUTTON_ARIA_LABEL,this.trigger=Wo.CLICK,this.showArrow=Wo.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(kt).includes(this.placement)||(this.placement=Wo.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return _`
|
|
2748
2748
|
${super.render()}
|
|
2749
2749
|
<mdc-screenreaderannouncer
|
|
2750
2750
|
identity="${J(this.screenreaderAnnouncerIdentity)}"
|
|
@@ -2752,12 +2752,12 @@
|
|
|
2752
2752
|
delay="300"
|
|
2753
2753
|
>
|
|
2754
2754
|
</mdc-screenreaderannouncer>
|
|
2755
|
-
`}};Ji.styles=[...Xe.styles
|
|
2755
|
+
`}};Ji.styles=[...Xe.styles,...$v],m([pu()],Ji.prototype,"defaultSlotNodes",2),m([pt()],Ji.prototype,"currentAnnouncement",2),m([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Ji.prototype,"screenreaderAnnouncerIdentity",2),m([u({type:String,reflect:!0})],Ji.prototype,"placement",2);var yh=Ji;function ld(a,o=500){let t,r=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...s)},o)};return r.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},r}var zv=V.constructTagName("screenreaderannouncer"),Ux={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Yo={ARIA_LIVE:Ux.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var Hx=[U`
|
|
2756
2756
|
:host {
|
|
2757
2757
|
display: none;
|
|
2758
2758
|
visibility: hidden;
|
|
2759
2759
|
}
|
|
2760
|
-
`],
|
|
2760
|
+
`],Vv=Hx;var Qr=class extends X{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Yo.ARIA_LIVE;this.delay=Yo.DELAY;this.timeout=Yo.TIMEOUT;this.debounceTime=Yo.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(t,r,s,l){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${Le()}`,y=document.createElement("div");y.setAttribute("id",f),y.setAttribute("aria-live",l),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(y);let A=window.setTimeout(()=>{let F=document.createElement("p");F.textContent=t,y.appendChild(F),this.ariaLiveAnnouncementIds.push(f);let W=window.setTimeout(()=>{y.remove()},s);this.timeOutIds.push(W)},r);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var r;(r=this.getElementByIdAcrossShadowRoot(t))==null||r.remove()})}getElementByIdAcrossShadowRoot(t){var l;let r=document.getElementById(t);if(r)return r;let s=this.findModalAncestor();return((l=s==null?void 0:s.shadowRoot)==null?void 0:l.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let r=document.createElement("style");r.textContent=`
|
|
2761
2761
|
.mdc-screenreaderannouncer__visually-hidden {
|
|
2762
2762
|
clip: rect(0 0 0 0);
|
|
2763
2763
|
clip-path: inset(50%);
|
|
@@ -2767,7 +2767,7 @@
|
|
|
2767
2767
|
white-space: nowrap;
|
|
2768
2768
|
width: 1px;
|
|
2769
2769
|
}
|
|
2770
|
-
`,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=ld(()=>{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=Yo.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=Yo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};Qr.styles=[...X.styles,...
|
|
2770
|
+
`,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=ld(()=>{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=Yo.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=Yo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};Qr.styles=[...X.styles,...Vv],m([u({type:String,reflect:!0})],Qr.prototype,"announcement",2),m([u({type:String,reflect:!0})],Qr.prototype,"identity",2),m([u({type:String,reflect:!0,attribute:"data-aria-live"})],Qr.prototype,"dataAriaLive",2),m([u({type:Number,reflect:!0})],Qr.prototype,"delay",2),m([u({type:Number,reflect:!0})],Qr.prototype,"timeout",2),m([u({type:Number,reflect:!0,attribute:"debounce-time"})],Qr.prototype,"debounceTime",2);var Eh=Qr;Eh.register(zv);var Gx=Eh;yh.register(Fv);var Kx=yh;var ve=a=>{class o extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,m([u({reflect:!0,type:String})],o.prototype,"name",2),m([u({reflect:!0,type:String})],o.prototype,"value",2),m([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),m([Kt("input")],o.prototype,"inputElement",2),o};var Wx=U`
|
|
2771
2771
|
:host {
|
|
2772
2772
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
|
2773
2773
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
|
@@ -2845,13 +2845,13 @@
|
|
|
2845
2845
|
pointer-events: none;
|
|
2846
2846
|
cursor: default;
|
|
2847
2847
|
}
|
|
2848
|
-
`,
|
|
2848
|
+
`,Bv=[bt,Wx];var Uv=a=>({[Ut.ERROR]:"error-legacy-badge-filled",[Ut.WARNING]:"warning-badge-filled",[Ut.SUCCESS]:"check-circle-badge-filled",[Ut.PRIORITY]:"priority-badge-filled",[Ut.DEFAULT]:""})[a]||"";var Ze=class extends jt(X){constructor(){super(...arguments);this.inputId=`mdc-el-${Le()}`;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
|
|
2849
2849
|
id="${Ot.HEADING_ID}"
|
|
2850
2850
|
tagname="${Zn.TAGNAME}"
|
|
2851
2851
|
type="${Zn.HEADER_TYPE}"
|
|
2852
2852
|
part="label"
|
|
2853
2853
|
>${this.label}</mdc-text
|
|
2854
|
-
>`:j}renderHelpTextIcon(){if(!this.helpText)return j;let t=
|
|
2854
|
+
>`:j}renderHelpTextIcon(){if(!this.helpText)return j;let t=Uv(this.helpTextType||Ot.VALIDATION);return t&&!this.disabled?_`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:j}renderHelpText(){return this.helpText?_`
|
|
2855
2855
|
<mdc-text
|
|
2856
2856
|
id="${Ot.HELPER_TEXT_ID}"
|
|
2857
2857
|
part="help-text"
|
|
@@ -2860,7 +2860,7 @@
|
|
|
2860
2860
|
>
|
|
2861
2861
|
${this.helpText}
|
|
2862
2862
|
</mdc-text>
|
|
2863
|
-
`:j}renderLabel(){if(!this.label)return j;let t=`toggletip-trigger-${
|
|
2863
|
+
`:j}renderLabel(){if(!this.label)return j;let t=`toggletip-trigger-${Le()}`,r=this.disabled||this.softDisabled;return _`<div part="label-text">
|
|
2864
2864
|
<slot name="label">${this.renderLabelElement()}</slot>
|
|
2865
2865
|
${this.required?_`<span part="required-indicator">*</span>`:j}
|
|
2866
2866
|
<slot name="toggletip">
|
|
@@ -2887,7 +2887,7 @@
|
|
|
2887
2887
|
</div>`}renderHelperText(){return this.helpText?_`<div part="help-text-container">
|
|
2888
2888
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
|
2889
2889
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
|
2890
|
-
</div>`:j}};Ze.styles=[...X.styles,...
|
|
2890
|
+
</div>`:j}};Ze.styles=[...X.styles,...Bv],m([u({reflect:!0,type:String})],Ze.prototype,"label",2),m([u({type:Boolean,reflect:!0,attribute:"required"})],Ze.prototype,"required",2),m([u({reflect:!0,attribute:"help-text-type"})],Ze.prototype,"helpTextType",2),m([u({type:String,reflect:!0,attribute:"help-text"})],Ze.prototype,"helpText",2),m([u({type:String,reflect:!0,attribute:"toggletip-text"})],Ze.prototype,"toggletipText",2),m([u({type:String,reflect:!0,attribute:"toggletip-placement"})],Ze.prototype,"toggletipPlacement",2),m([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],Ze.prototype,"toggletipStrategy",2),m([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Ze.prototype,"infoIconAriaLabel",2),m([u({type:Boolean,reflect:!0})],Ze.prototype,"readonly",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ze.prototype,"softDisabled",2);var Jt=Ze;var Yx=[U`
|
|
2891
2891
|
:host {
|
|
2892
2892
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
2893
2893
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -2957,7 +2957,7 @@
|
|
|
2957
2957
|
:host([soft-disabled]) {
|
|
2958
2958
|
pointer-events: none;
|
|
2959
2959
|
}
|
|
2960
|
-
`,...At(!0)],
|
|
2960
|
+
`,...At(!0)],Hv=Yx;var to=class extends Lt(Ct(Ne(ve(Ht(Jt))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=Jf.DEFAULT;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}click(){super.click(),this.toggleState()}handleKeyDown(t){var s;let r=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===qt.DEFAULT&&((this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault(),r===q.ENTER&&((s=this.form)==null||s.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===qt.SPATIAL&&!(this.readonly||this.softDisabled)&&r===q.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return _`
|
|
2961
2961
|
<mdc-staticcheckbox
|
|
2962
2962
|
part="static-checkbox"
|
|
2963
2963
|
class="mdc-focus-ring"
|
|
@@ -2987,7 +2987,7 @@
|
|
|
2987
2987
|
/>
|
|
2988
2988
|
</mdc-staticcheckbox>
|
|
2989
2989
|
${this.renderLabelAndHelperText()}
|
|
2990
|
-
`}};to.styles=[...Jt.styles,...
|
|
2990
|
+
`}};to.styles=[...Jt.styles,...Hv],to.shadowRootOptions={...Jt.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],to.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],to.prototype,"indeterminate",2),m([u({type:String,reflect:!0,attribute:"help-text-type"})],to.prototype,"helpTextType",2);var Th=to;Th.register(Qf);var jx=Th;var Gv=V.constructTagName("staticchip"),xh={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},dd={COLOR:xh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN};var qx=U`
|
|
2991
2991
|
:host {
|
|
2992
2992
|
height: 1.5rem;
|
|
2993
2993
|
gap: 0.25rem;
|
|
@@ -3059,12 +3059,12 @@
|
|
|
3059
3059
|
--mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
|
|
3060
3060
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
|
|
3061
3061
|
}
|
|
3062
|
-
`,
|
|
3062
|
+
`,Kv=[bt,qx];var Us=class extends ie(X){constructor(){super(...arguments);this.color=dd.COLOR}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return _`
|
|
3063
3063
|
${this.renderIcon()}
|
|
3064
3064
|
${this.label?_`<mdc-text part="label" type="${dd.TEXT_TYPE}" tagname="${dd.TAG_NAME}"
|
|
3065
3065
|
>${this.label}</mdc-text
|
|
3066
3066
|
>`:j}
|
|
3067
|
-
`}};Us.styles=[...X.styles,...
|
|
3067
|
+
`}};Us.styles=[...X.styles,...Kv],m([u({type:String,reflect:!0})],Us.prototype,"color",2),m([u({type:String})],Us.prototype,"label",2);var ia=Us;var Wv=V.constructTagName("chip"),Hs={COLOR:xh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:ko[24],ROLE:tt.BUTTON};var Xx=U`
|
|
3068
3068
|
:host {
|
|
3069
3069
|
cursor: pointer;
|
|
3070
3070
|
height: 1.5rem;
|
|
@@ -3158,12 +3158,12 @@
|
|
|
3158
3158
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3159
3159
|
cursor: auto;
|
|
3160
3160
|
}
|
|
3161
|
-
`,
|
|
3161
|
+
`,Yv=[bt,Xx,...At()];var Gs=class extends ie(ue){constructor(){super(...arguments);this.color=Hs.COLOR}connectedCallback(){super.connectedCallback(),this.role=Hs.ROLE,this.size=Hs.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return _`
|
|
3162
3162
|
${this.renderIcon()}
|
|
3163
3163
|
${this.label?_`<mdc-text part="label" type="${Hs.TEXT_TYPE}" tagname="${Hs.TAG_NAME}"
|
|
3164
3164
|
>${this.label}</mdc-text
|
|
3165
3165
|
>`:j}
|
|
3166
|
-
`}};Gs.styles=[...ia.styles,...
|
|
3166
|
+
`}};Gs.styles=[...ia.styles,...Yv],m([u({type:String,reflect:!0})],Gs.prototype,"color",2),m([u({type:String})],Gs.prototype,"label",2);var Ks=Gs;Ks.register(Wv);var Zx=Ks;var jv=V.constructTagName("coachmark"),jo={COLOR:$o.CONTRAST,TRIGGER:Oe.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var qo=class extends Xe{constructor(){super(...arguments);this.trigger=jo.TRIGGER;this.showArrow=jo.ARROW;this.closeButton=jo.CLOSE_BUTTON;this.disableAriaExpanded=jo.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=jo.COLOR,this.showArrow=jo.ARROW}};m([u({type:String,reflect:!0})],qo.prototype,"trigger",2),m([u({type:Boolean,attribute:"show-arrow"})],qo.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],qo.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],qo.prototype,"disableAriaExpanded",2);var Ah=qo;Ah.register(jv);var Qx=Ah;var cd=V.constructTagName("controltypeprovider"),hd={CONTROL_TYPE:"uncontrolled"},pd=["controlled","uncontrolled"];var Jx=cd,Sh=Jx;var md=class extends pe{constructor(){super({context:Sh});this.innerControlType=hd.CONTROL_TYPE}static get Context(){return Sh}set controlType(t){pd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};m([u({type:String,attribute:"control-type",reflect:!0})],md.prototype,"controlType",1);var Ih=md;Ih.register(cd);var _h=Ih;Ls.register(af);var tA=Ls;var oa=V.constructTagName("divider"),Xo={HORIZONTAL:"horizontal",VERTICAL:"vertical"},sa={SOLID:"solid",GRADIENT:"gradient"},yr={POSITIVE:"positive",NEGATIVE:"negative"},na={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Zo={ORIENTATION:Xo.HORIZONTAL,VARIANT:sa.SOLID,ARROW_DIRECTION:yr.NEGATIVE,BUTTON_DIRECTION:yr.NEGATIVE};var eA=[bt,U`
|
|
3167
3167
|
:host {
|
|
3168
3168
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
3169
3169
|
--mdc-divider-width: 0.0625rem;
|
|
@@ -3364,11 +3364,11 @@
|
|
|
3364
3364
|
:host([data-hidden]) {
|
|
3365
3365
|
display: none;
|
|
3366
3366
|
}
|
|
3367
|
-
`],
|
|
3367
|
+
`],qv=eA;var eo=class extends X{constructor(){super(...arguments);this.orientation=Zo.ORIENTATION;this.variant=Zo.VARIANT;this.arrowDirection=Zo.ARROW_DIRECTION;this.buttonPosition=Zo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(sa).includes(t)?t:Zo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(Xo).includes(t)?t:Zo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===Xo.HORIZONTAL?yr.NEGATIVE:yr.POSITIVE;Object.values(yr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(yr).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===Xo.HORIZONTAL,r=this.arrowDirection===yr.POSITIVE;return t?r?na.UP:na.DOWN:r?na.RIGHT:na.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let s=r.some(f=>f.tagName===Vn.toUpperCase()),l=r.some(f=>f.tagName===hi.toUpperCase());s&&!l?this.setAttribute("data-type","mdc-text-divider"):!s&&l&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return _`
|
|
3368
3368
|
<div></div>
|
|
3369
3369
|
<slot @slotchange=${this.inferDividerType}></slot>
|
|
3370
3370
|
<div></div>
|
|
3371
|
-
`}};eo.styles=[...X.styles,...
|
|
3371
|
+
`}};eo.styles=[...X.styles,...qv],m([u({type:String,reflect:!0})],eo.prototype,"orientation",2),m([u({type:String,reflect:!0})],eo.prototype,"variant",2),m([u({type:String,attribute:"arrow-direction",reflect:!0})],eo.prototype,"arrowDirection",2),m([u({type:String,attribute:"button-position",reflect:!0})],eo.prototype,"buttonPosition",2);var Ch=eo;Ch.register(oa);var rA=Ch;var iA=U`
|
|
3372
3372
|
:host([selected]) {
|
|
3373
3373
|
border: 2px solid;
|
|
3374
3374
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
|
@@ -3390,7 +3390,7 @@
|
|
|
3390
3390
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3391
3391
|
cursor: auto;
|
|
3392
3392
|
}
|
|
3393
|
-
`,
|
|
3393
|
+
`,Xv=[iA];var Zv=V.constructTagName("filterchip"),wh={ICON_NAME:"check-bold",COLOR:"default"};var aa=class extends Ks{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=wh.COLOR}setSelected(t){t?(this.iconName=wh.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)}};aa.styles=[...Ks.styles,...Xv],m([u({type:Boolean,reflect:!0})],aa.prototype,"selected",2);var kh=aa;kh.register(Zv);var oA=kh;var sA=U`
|
|
3394
3394
|
:host::part(container) {
|
|
3395
3395
|
display: flex;
|
|
3396
3396
|
flex-direction: column;
|
|
@@ -3402,7 +3402,7 @@
|
|
|
3402
3402
|
flex-direction: column;
|
|
3403
3403
|
gap: 0.25rem;
|
|
3404
3404
|
}
|
|
3405
|
-
`,
|
|
3405
|
+
`,Qv=[sA];var ud=class extends Ht(Jt){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0}render(){var t;return _`
|
|
3406
3406
|
<div
|
|
3407
3407
|
part="container"
|
|
3408
3408
|
role="${this.isRadio?tt.RADIOGROUP:tt.GROUP}"
|
|
@@ -3413,7 +3413,7 @@
|
|
|
3413
3413
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
|
3414
3414
|
<slot></slot>
|
|
3415
3415
|
</div>
|
|
3416
|
-
`}};ud.styles=[...Jt.styles,...
|
|
3416
|
+
`}};ud.styles=[...Jt.styles,...Qv];var Nh=ud;var Jv=V.constructTagName("formfieldgroup");Nh.register(Jv);var fd=Nh;$n.register(fl);var nA=$n;Wn.register(Dl);var aA=Wn;var Qo=fi(class extends Yr{constructor(a){if(super(a),a.type!==sr.PROPERTY&&a.type!==sr.ATTRIBUTE&&a.type!==sr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Tl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===ke||o===j)return o;let t=a.element,r=a.name;if(a.type===sr.PROPERTY){if(o===t[r])return ke}else if(a.type===sr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return ke}else if(a.type===sr.ATTRIBUTE&&t.getAttribute(r)===o+"")return ke;return xl(a),o}});Jt.register(Zf);var nr=Jt;var tg=V.constructTagName("input"),vd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Ws={OFF:"off",ON:"on"},ro={PASSWORD:"password",TEXT:"text",SEARCH:"search"},eg={MAX_LENGTH:10,VALIDATION:Ut.ERROR},Si={VALIDATION:Ut.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Bt.TERTIARY,CLEAR_BUTTON_SIZE:ur[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:Ws.OFF,INPUT_TYPE:ro.TEXT};var lA=[U`
|
|
3417
3417
|
:host {
|
|
3418
3418
|
--mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
|
|
3419
3419
|
--mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -3533,7 +3533,7 @@
|
|
|
3533
3533
|
opacity: 0;
|
|
3534
3534
|
pointer-events: none;
|
|
3535
3535
|
}
|
|
3536
|
-
`,...At(!0)],
|
|
3536
|
+
`,...At(!0)],rg=lA;var ge=class extends Ct(Ne(ve(Ht(nr)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=vd.OFF;this.autocomplete=Ws.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,r,s){super.attributeChangedCallback(t,r,s),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(l=>{this.onerror&&this.onerror(l)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}handleKeyDown(t){var r;this.getActionForKeyEvent(t)===q.ENTER&&this.getKeyboardNavMode()===qt.DEFAULT&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?_`
|
|
3537
3537
|
<mdc-icon
|
|
3538
3538
|
part="leading-icon"
|
|
3539
3539
|
name=${this.leadingIcon}
|
|
@@ -3548,7 +3548,7 @@
|
|
|
3548
3548
|
type="${Si.PREFIX_TEXT_TYPE}"
|
|
3549
3549
|
aria-hidden="true"
|
|
3550
3550
|
>
|
|
3551
|
-
${this.prefixText.slice(0,
|
|
3551
|
+
${this.prefixText.slice(0,eg.MAX_LENGTH)}
|
|
3552
3552
|
</mdc-text>
|
|
3553
3553
|
`:j}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?_`
|
|
3554
3554
|
<mdc-button
|
|
@@ -3596,7 +3596,7 @@
|
|
|
3596
3596
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
|
3597
3597
|
</div>
|
|
3598
3598
|
${this.helpText?this.renderHelperText():j}
|
|
3599
|
-
`}};ge.styles=[...nr.styles,...
|
|
3599
|
+
`}};ge.styles=[...nr.styles,...rg],m([u({type:String})],ge.prototype,"placeholder",2),m([u({type:String,attribute:"prefix-text"})],ge.prototype,"prefixText",2),m([u({type:String,attribute:"leading-icon"})],ge.prototype,"leadingIcon",2),m([u({type:Boolean,attribute:"trailing-button"})],ge.prototype,"trailingButton",2),m([u({type:Number})],ge.prototype,"maxlength",2),m([u({type:Number})],ge.prototype,"minlength",2),m([u({type:String})],ge.prototype,"autocapitalize",2),m([u({type:String})],ge.prototype,"autocomplete",2),m([u({type:String})],ge.prototype,"dirname",2),m([u({type:String})],ge.prototype,"pattern",2),m([u({type:String})],ge.prototype,"list",2),m([u({type:Number})],ge.prototype,"size",2),m([u({type:String,attribute:"clear-aria-label"})],ge.prototype,"clearAriaLabel",2),m([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],ge.prototype,"dataAriaDescribedby",2);var Pr=ge;Pr.register(tg);var dA=Pr;var cA=U`
|
|
3600
3600
|
:host {
|
|
3601
3601
|
height: 1.5rem;
|
|
3602
3602
|
gap: 0.25rem;
|
|
@@ -3632,7 +3632,7 @@
|
|
|
3632
3632
|
width: 1.25rem;
|
|
3633
3633
|
height: 1.25rem;
|
|
3634
3634
|
}
|
|
3635
|
-
`,
|
|
3635
|
+
`,ig=[bt,cA];var gd=V.constructTagName("inputchip"),bd={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var Jo=class extends ie(jt(X)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return _`
|
|
3636
3636
|
<slot name="prefix">
|
|
3637
3637
|
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:j}
|
|
3638
3638
|
</slot>
|
|
@@ -3650,7 +3650,7 @@
|
|
|
3650
3650
|
size="20"
|
|
3651
3651
|
@click="${this.handleClose}"
|
|
3652
3652
|
></mdc-button>
|
|
3653
|
-
`}};Jo.styles=[...X.styles,...
|
|
3653
|
+
`}};Jo.styles=[...X.styles,...ig],m([u({type:String})],Jo.prototype,"label",2),m([u({type:Boolean})],Jo.prototype,"error",2),m([u({type:String,attribute:"clear-aria-label"})],Jo.prototype,"clearAriaLabel",2);var Lh=Jo;Lh.register(gd);var hA=Lh;var pA=U`
|
|
3654
3654
|
:host([icon-name])::part(text) {
|
|
3655
3655
|
margin-inline-end: 0.25rem;
|
|
3656
3656
|
}
|
|
@@ -3721,7 +3721,7 @@
|
|
|
3721
3721
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
|
3722
3722
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
|
3723
3723
|
}
|
|
3724
|
-
`,
|
|
3724
|
+
`,og=[pA];var la=class extends ie(qr){constructor(){super(...arguments);this.size=ef.LINK_SIZE}getIconSize(){switch(this.size){case Nl.SMALL:return Ll.SMALL;case Nl.MIDSIZE:return Ll.MIDSIZE;default:return Ll.LARGE}}renderAnchorContent(){return _`<span part="text"><slot></slot></span>${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:j}`}};la.styles=[...qr.styles,...og],m([u({type:String,reflect:!0})],la.prototype,"size",2);var Mh=la;Mh.register(kl);var mA=Mh;var sg=V.constructTagName("linkbutton"),Ys={12:12,14:14,16:16},js={SIZE:Ys[16],ROLE:tt.BUTTON,INLINE:Ps.INLINE,INVERTED:Ps.INVERTED};var ng=a=>{switch(a){case Ys[12]:return .75;case Ys[14]:return .875;default:return 1}};var uA=U`
|
|
3725
3725
|
:host {
|
|
3726
3726
|
gap: 0.25rem;
|
|
3727
3727
|
cursor: pointer;
|
|
@@ -3820,10 +3820,10 @@
|
|
|
3820
3820
|
color: var(--mdc-link-color-disabled);
|
|
3821
3821
|
pointer-events: none;
|
|
3822
3822
|
}
|
|
3823
|
-
`,
|
|
3823
|
+
`,ag=[uA,...At()];var ts=class extends ie(ue){constructor(){super(...arguments);this.size=js.SIZE;this.inline=js.INLINE;this.inverted=js.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=js.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ys).includes(t)?`${t}`:js.SIZE.toString())}render(){return _`
|
|
3824
3824
|
<slot></slot>
|
|
3825
|
-
${this.iconName?_` <mdc-icon name=${this.iconName} size=${
|
|
3826
|
-
`}};ts.styles=[...qr.styles,...
|
|
3825
|
+
${this.iconName?_` <mdc-icon name=${this.iconName} size=${ng(this.size)} length-unit="rem"></mdc-icon> `:j}
|
|
3826
|
+
`}};ts.styles=[...qr.styles,...ag],m([u({type:Number,reflect:!0})],ts.prototype,"size",2),m([u({type:Boolean,reflect:!0})],ts.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],ts.prototype,"inverted",2);var Oh=ts;Oh.register(sg);var fA=Oh;qr.register(Vf);var vA=qr;var Yt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var qs=a=>{class o extends Lt(Ct(a)){constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=s=>{var f;let{target:l}=s,c=s instanceof CustomEvent&&((f=s.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof X&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=s=>{let l=s.target,c=this.getCurrentIndex(l);if(c!==-1){let f=!(this.navItems.at(c)!==l&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(c,void 0,f,!1)}};this.handleNavBeforeFocus=s=>{let l=Ac(s.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){s.preventDefault();let c=this.navItems.find(y=>y.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Yt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(s){super.firstUpdated(s),this.setInitialFocus()}setInitialFocus(){let s=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(s,void 0,!1)}handleNavigationKeyDown(s){let l=this.getActionForKeyEvent(s,!0),c=this.orientation==="vertical",f=new Set(c?[q.DOWN,q.UP,q.HOME,q.END]:[q.LEFT,q.RIGHT,q.HOME,q.END]);if(!l||!f.has(l))return;let y=s.target,A=this.getCurrentIndex(y);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case q.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case q.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case q.DOWN:case q.RIGHT:{let W=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?W:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case q.UP:case q.LEFT:{let W=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?W:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(s.stopPropagation(),s.preventDefault()))}getCurrentIndex(s){return s?this.navItems.findIndex(l=>l===s||!!(l.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(s,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(s)?s:0,y=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);y&&(y.setAttribute("tabindex","0"),l&&y.focus())}}resetTabIndexAndSetFocus(s,l,c=!0,f=!0){var F;let{navItems:y}=this;if(y.length===0)return!1;let A=(F=y.at(s))!=null?F:y.find(Boolean);return s===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?y.forEach(W=>W.setAttribute("tabindex","-1")):y.at(l)&&y.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===qt.SPATIAL?!1:this.loop!=="false"}}return o};var yd=V.constructTagName("listitem"),da={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},lg={VARIANT:da.FULL_WIDTH};var gA=a=>!!a,Jr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||gA,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Yt.CREATED,this.itemCreationHandler),this.host.addEventListener(Yt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Yt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Yt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!bu(this.cache.at(-1),o))return-1;let t=0,r=this.cache.length-1;for(;t<=r;){let s=Math.floor((t+r)/2);yu(this.cache[s],o)?t=s+1:r=s-1}return t}addItem(o,t=void 0){var s;let r=o;if(this.isValidItem(r)&&!this.cache.includes(r)){let l=t===void 0?this.getIndexToInsertInCache(r):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,r,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(r):l>=0&&this.cache.splice(l,0,r)}}delete(o){var r;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((r=this.onStoreUpdate)==null||r.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var io=a=>{class o extends a{constructor(...s){super(...s);this.handleItemCreation=s=>{let l=s.target;l&&l.addEventListener(Yt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Yt.DESTROYED&&(s.target.removeEventListener(Yt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Yt.CREATED,this.handleItemCreation)}}return o};var bA=U`
|
|
3827
3827
|
:host {
|
|
3828
3828
|
display: flex;
|
|
3829
3829
|
flex-direction: column;
|
|
@@ -3849,11 +3849,11 @@
|
|
|
3849
3849
|
scroll-padding-left: 0.25rem;
|
|
3850
3850
|
scroll-padding-right: 0.25rem;
|
|
3851
3851
|
}
|
|
3852
|
-
`,
|
|
3852
|
+
`,dg=[bA];var cg=V.constructTagName("list");var ca={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Ed={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:ca.VERTICAL};var es=class extends qs(io(X)){constructor(){super();this.loop=Ed.LOOP;this.initialFocus=Ed.INITIAL_FOCUS;this.orientation=Ed.ORIENTATION;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(Yt.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Jr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,r,s){if(r==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(r==="removed"&&t.tabIndex===0){let l=s+1;l>=this.navItems.length&&(l=s-1),this.resetTabIndexes(l,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${yd}:not([disabled])`)}render(){return _`
|
|
3853
3853
|
<slot name="list-header"></slot>
|
|
3854
3854
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
3855
3855
|
<slot part="container" role="presentation"></slot>
|
|
3856
|
-
`}};es.styles=[...X.styles,...
|
|
3856
|
+
`}};es.styles=[...X.styles,...dg],m([u({type:String,reflect:!0})],es.prototype,"loop",2),m([u({type:Number,reflect:!0,attribute:"initial-focus"})],es.prototype,"initialFocus",2),m([u({type:String,reflect:!0})],es.prototype,"orientation",2);var Xs=es;Xs.register(cg);var Rh=Xs;var yA=U`
|
|
3857
3857
|
:host {
|
|
3858
3858
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
|
3859
3859
|
--mdc-listheader-gap: 0.5rem;
|
|
@@ -3880,7 +3880,7 @@
|
|
|
3880
3880
|
:host::part(postfix-icon) {
|
|
3881
3881
|
flex-shrink: 0;
|
|
3882
3882
|
}
|
|
3883
|
-
`,
|
|
3883
|
+
`,hg=[yA];var oo=class extends X{constructor(){super(...arguments);this.disabled=!1}render(){return _`
|
|
3884
3884
|
${this.prefixIcon?_`<mdc-icon
|
|
3885
3885
|
part="prefix-icon"
|
|
3886
3886
|
name="${this.prefixIcon}"
|
|
@@ -3899,7 +3899,7 @@
|
|
|
3899
3899
|
size="1"
|
|
3900
3900
|
length-unit="rem"
|
|
3901
3901
|
></mdc-icon>`:j}
|
|
3902
|
-
`}};oo.styles=[...X.styles,...
|
|
3902
|
+
`}};oo.styles=[...X.styles,...hg],m([u({type:String,attribute:"prefix-icon"})],oo.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon"})],oo.prototype,"postfixIcon",2),m([u({type:String,attribute:"header-text"})],oo.prototype,"headerText",2),m([u({type:Boolean,reflect:!0})],oo.prototype,"disabled",2);var Ph=oo;var pg=V.constructTagName("listheader");Ph.register(pg);var EA=Ph;var mg=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Yt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Yt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Yt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}dispatchModifiedEvent(r){this.dispatchEvent(new CustomEvent(Yt.MODIFIED,{detail:{change:r,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var ha=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 TA=U`
|
|
3903
3903
|
:host {
|
|
3904
3904
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
3905
3905
|
--mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
|
|
@@ -4012,7 +4012,7 @@
|
|
|
4012
4012
|
flex-direction: row;
|
|
4013
4013
|
flex-shrink: 0;
|
|
4014
4014
|
}
|
|
4015
|
-
`,
|
|
4015
|
+
`,ug=[TA,...At()];var ze=class extends Lt(Ct(jt(Hr(mg(X))))){constructor(){super();this.variant=lg.VARIANT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||tt.LISTITEM}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let r=this.getActionForKeyEvent(t);!t.defaultPrevented&&(r===q.ENTER||r===q.SPACE)&&(this.isEventFromInsideListItem(t)||(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)))}isEventFromInsideListItem(t){let r=t.target;return r!==this&&document.activeElement===r&&this.contains(r)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let r=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(r)}getText(t,r,s){return _`
|
|
4016
4016
|
<slot name="${t}">
|
|
4017
4017
|
${s?_`<mdc-text part="${t}" type="${r}" tagname="${mt.SPAN}">${s}</mdc-text>`:j}
|
|
4018
4018
|
</slot>
|
|
@@ -4044,7 +4044,7 @@
|
|
|
4044
4044
|
${this.renderTrailingControls()}
|
|
4045
4045
|
</div>
|
|
4046
4046
|
</slot>
|
|
4047
|
-
`}};ze.styles=[...X.styles,...
|
|
4047
|
+
`}};ze.styles=[...X.styles,...ug],m([$t({slot:"leading-controls"})],ze.prototype,"leadingControlsSlot",2),m([$t({slot:"trailing-controls"})],ze.prototype,"trailingControlsSlot",2),m([u({type:String,reflect:!0})],ze.prototype,"variant",2),m([u({type:String,reflect:!0})],ze.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"secondary-label"})],ze.prototype,"secondaryLabel",2),m([u({type:String,reflect:!0,attribute:"tertiary-label"})],ze.prototype,"tertiaryLabel",2),m([u({type:String,reflect:!0,attribute:"side-header-text"})],ze.prototype,"sideHeaderText",2),m([u({type:String,reflect:!0,attribute:"subline-text"})],ze.prototype,"sublineText",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],ze.prototype,"softDisabled",2),m([u({type:Number,reflect:!0,attribute:"data-index"})],ze.prototype,"dataIndex",2),m([u({type:Boolean,reflect:!0,attribute:"active"})],ze.prototype,"active",2);var Ii=ze;Ii.register(yd);var xA=Ii;var AA=U`
|
|
4048
4048
|
:host {
|
|
4049
4049
|
--mdc-marker-width: 0.25rem;
|
|
4050
4050
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -4069,7 +4069,7 @@
|
|
|
4069
4069
|
var(--mdc-marker-striped-background-color) 0.375rem
|
|
4070
4070
|
);
|
|
4071
4071
|
}
|
|
4072
|
-
`,
|
|
4072
|
+
`,fg=[AA];var vg=V.constructTagName("marker"),gg={SOLID:"solid",STRIPED:"striped"};var pa=class extends X{constructor(){super(...arguments);this.variant=gg.SOLID}};pa.styles=[...X.styles,...fg],m([u({type:String,reflect:!0})],pa.prototype,"variant",2);var Dh=pa;Dh.register(vg);var SA=Dh;var le=V.constructTagName("menupopover"),Fh={PLACEMENT:kt.BOTTOM_START,ORIENTATION:"vertical"};var _i=V.constructTagName("menusection"),bg={DIVIDER_VARIANT:"solid"};var so=V.constructTagName("sidenavigation"),Qe={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},Td={VARIANT:Qe.FLEXIBLE};var ma=V.constructTagName("menubar"),yg={ORIENTATION:"vertical"};var IA=U`
|
|
4073
4073
|
:host {
|
|
4074
4074
|
display: flex;
|
|
4075
4075
|
}
|
|
@@ -4081,7 +4081,7 @@
|
|
|
4081
4081
|
:host([aria-orientation='vertical']) {
|
|
4082
4082
|
flex-direction: column;
|
|
4083
4083
|
}
|
|
4084
|
-
`,
|
|
4084
|
+
`,Eg=[IA];var ua=class extends Lt(Ct(X)){constructor(){super();this.depthManager=new qi(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(r=>r===this)){let r=t.target;if(!r||!this.isTopLevelMenuItem(r))return;let s=this.menuItems.filter(c=>c!==r);this.getVisibleSubMenusOfItems(s).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=yg.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(r=>{r.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),r=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],s=[],l=y=>{y.role===tt.MENUITEM&&!y.hasAttribute("disabled")?s.push(y):y.tagName.toLowerCase()===_i&&Array.from(y.children).forEach(l)};return r.forEach(l),s}getVisibleSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{var f;let l=s.getAttribute("id");if(!l)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${le}[triggerid="${l}"]`);c&&c.visible&&r.push(c)}),r}getAllPopovers(){var l,c;if(!this.menuItems.length)return[];let t=(c=(l=this.menuItems[0])==null?void 0:l.closest(so))!=null?c:this;if(!t)return[];let r=[],s=f=>{f.querySelectorAll(`${le}`).forEach(y=>{r.push(y)}),f.querySelectorAll("slot").forEach(y=>{y.assignedElements({flatten:!0}).forEach(s)})};return s(t),r}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((r,s)=>{let l=s===0?"0":"-1";r==null||r.setAttribute("tabindex",l)})}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t||r===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(r=>r.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(l=>l.getAttribute("id")===t))return;let s=this.getSubmenu(t);s&&s.show()}updatePopoverPlacement(){let t=kt.RIGHT_START;this.getAllPopovers().forEach(r=>{r.setAttribute("placement",t)})}updateTabIndexAndFocus(t,r,s){var l,c;s<0||r<0||(r!==s&&((l=t[r])==null||l.setAttribute("tabindex","-1"),(c=t[s])==null||c.setAttribute("tabindex","0")),t[s]&&(t[s].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,r,s=!1){var y;let{length:l}=this.menuItems;if(l===0)return;let c=t;if(this.getKeyboardNavMode()===qt.DEFAULT?c=r==="prev"?(t-1+l)%l:(t+1)%l:c=r==="prev"?Math.max(0,t-1):Math.min(t+1,l-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),s)){let A=(y=this.menuItems[c])==null?void 0:y.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let r=t.parentElement;if(!r||t.role!==tt.MENUITEM)return!1;let s=r.tagName.toLowerCase(),l=(c=r.parentElement)==null?void 0:c.tagName.toLowerCase();return s===ma||s===so||s===_i&&(l===ma||l===so)}isNestedMenuItem(t){return!!t.closest(le)&&t.role===tt.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(r=>this.contains(r));await Promise.all(t.map(r=>r.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===tt.MENUITEM){let s=t.closest(le),l=s==null?void 0:s.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===l);if(c){this.isTopLevelMenuItem(c)&&(s==null||s.hide()),await(s==null?void 0:s.updateComplete);let f=this.getCurrentIndex(c);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let r=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),r>=0&&this.navigateToMenuItem(r,"next",!0)}}getParentMenuItemIndex(t){let r=t.parentElement;for(;r;){if(r.tagName.toLowerCase()===le){let s=r.getAttribute("triggerid"),l=this.menuItems.find(c=>c.getAttribute("id")===s);if(l)return this.isTopLevelMenuItem(l)?this.menuItems.findIndex(c=>c===l):this.getParentMenuItemIndex(l)}r=r.parentElement}return-1}async handleKeyDown(t){let r=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case q.HOME:this.updateTabIndexAndFocus(this.menuItems,r,0);break;case q.END:this.updateTabIndexAndFocus(this.menuItems,r,this.menuItems.length-1);break;case q.LEFT:{let l=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnLeft(l);break}case q.RIGHT:{let l=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnRight(l);break}case q.UP:{this.navigateToMenuItem(r,"prev"),t.preventDefault();break}case q.DOWN:{this.navigateToMenuItem(r,"next"),t.preventDefault();break}default:break}}render(){return _`<slot></slot>`}};ua.styles=[...X.styles,...Eg],m([$t({selector:"mdc-menusection",flatten:!0})],ua.prototype,"menusections",2);var $h=ua;$h.register(ma);var _A=$h;var fa=V.constructTagName("menuitem"),va={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},zh={POSITIVE:"positive",NEGATIVE:"negative"},Vh={LEADING:"leading",TRAILING:"trailing"};var CA=U`
|
|
4085
4085
|
:host(:dir(rtl))::part(trailing-arrow),
|
|
4086
4086
|
:host(:dir(rtl))::part(leading-arrow) {
|
|
4087
4087
|
transform: rotate(180deg);
|
|
@@ -4090,7 +4090,7 @@
|
|
|
4090
4090
|
:host::part(leading-arrow) {
|
|
4091
4091
|
--mdc-icon-size: 1rem;
|
|
4092
4092
|
}
|
|
4093
|
-
`,
|
|
4093
|
+
`,Tg=[CA];var no=class extends Ii{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){this.getActionForKeyEvent(o)===q.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===q.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEM,this.variant=da.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===zh.NEGATIVE?va.LEFT:va.RIGHT;return _`
|
|
4094
4094
|
<slot
|
|
4095
4095
|
name="trailing-controls"
|
|
4096
4096
|
@click=${this.stopEventPropagation}
|
|
@@ -4106,7 +4106,7 @@
|
|
|
4106
4106
|
@keydown=${this.stopEventPropagation}
|
|
4107
4107
|
></slot>
|
|
4108
4108
|
${this.arrowPosition===Vh.LEADING?_`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:j}
|
|
4109
|
-
`}};no.styles=[...Ii.styles,...
|
|
4109
|
+
`}};no.styles=[...Ii.styles,...Tg],m([u({type:String,reflect:!0,attribute:"arrow-position"})],no.prototype,"arrowPosition",2),m([u({type:String,reflect:!0,attribute:"arrow-direction"})],no.prototype,"arrowDirection",2),m([u({type:String,reflect:!0})],no.prototype,"name",2),m([u({type:String,reflect:!0})],no.prototype,"value",2);var Er=no;Er.register(fa);var wA=Er;var xg=V.constructTagName("statictoggle"),kA={DEFAULT:"default",COMPACT:"compact"},Bh={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Ag={compact:.75,default:1.25},Sg={SIZE:kA.DEFAULT};var NA=[U`
|
|
4110
4110
|
:host {
|
|
4111
4111
|
--mdc-statictoggle-width: 3rem;
|
|
4112
4112
|
--mdc-statictoggle-height: 1.5rem;
|
|
@@ -4201,17 +4201,17 @@
|
|
|
4201
4201
|
border: 1px solid GrayText;
|
|
4202
4202
|
}
|
|
4203
4203
|
}
|
|
4204
|
-
`],
|
|
4204
|
+
`],Ig=NA;var ao=class extends jt(X){constructor(){super(...arguments);this.checked=!1;this.size=Sg.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return _`
|
|
4205
4205
|
<slot></slot>
|
|
4206
4206
|
<div part="slider">
|
|
4207
4207
|
<mdc-icon
|
|
4208
4208
|
name="${this.checked?Bh.CHECKED:Bh.UNCHECKED}"
|
|
4209
4209
|
part="toggle-icon"
|
|
4210
4210
|
length-unit="rem"
|
|
4211
|
-
size="${
|
|
4211
|
+
size="${Ag[this.size]}"
|
|
4212
4212
|
></mdc-icon>
|
|
4213
4213
|
</div>
|
|
4214
|
-
`}};ao.styles=[...X.styles,...
|
|
4214
|
+
`}};ao.styles=[...X.styles,...Ig],m([u({type:Boolean,reflect:!0})],ao.prototype,"checked",2),m([u({type:String,reflect:!0})],ao.prototype,"size",2),m([u({type:Boolean,reflect:!0})],ao.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ao.prototype,"softDisabled",2);var Uh=ao;Uh.register(xg);var LA=Uh;var ga=V.constructTagName("tooltip"),Tr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ve={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${Oe.MOUSEENTER} ${Oe.FOCUSIN}`,OFFSET:4,PLACEMENT:kt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Tr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var MA=U`
|
|
4215
4215
|
:host {
|
|
4216
4216
|
--mdc-tooltip-max-width: 400px;
|
|
4217
4217
|
--mdc-tooltip-padding: 0.75rem;
|
|
@@ -4235,14 +4235,14 @@
|
|
|
4235
4235
|
:host([color='contrast'])::part(popover-content) {
|
|
4236
4236
|
color: var(--mdc-tooltip-text-color-contrast);
|
|
4237
4237
|
}
|
|
4238
|
-
`,
|
|
4238
|
+
`,_g=[MA];var Zs=class extends Xe{constructor(){super(...arguments);this.tooltipType=Ve.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Ve.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=tt.TOOLTIP,this.ariaHidden=Ve.ARIA_HIDDEN,this.backdrop=Ve.BACKDROP,this.delay=this.delay||Ve.DELAY,this.disableAriaExpanded=Ve.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Ve.HIDE_ON_BLUR,this.hideOnEscape=Ve.HIDE_ON_ESCAPE,this.offset=this.offset||Ve.OFFSET,this.placement=this.placement||Ve.PLACEMENT,this.trigger=Ve.TRIGGER,this.closeButton=St.CLOSE_BUTTON,this.disableFlip=St.DISABLE_FLIP,this.focusBackToTrigger=St.FOCUS_BACK,this.focusTrap=St.FOCUS_TRAP,this.hideOnOutsideClick=St.HIDE_ON_CLICK_OUTSIDE,this.interactive=St.INTERACTIVE,this.preventScroll=St.PREVENT_SCROLL,this.size=St.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Tr).includes(t)?t:Ve.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Le()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Tr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Tr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(kt).includes(this.placement)||(this.placement=Ve.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(Tr).includes(this.tooltipType)||this.setTooltipType(Ve.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Tr.DESCRIPTION:r===Tr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Tr.LABEL:r===Tr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:r===Tr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):r===Tr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,r){let{triggerElement:s}=this;t===r||!s||(r||this.depthManager.remove([this]),await super.isOpenUpdated(t,r))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Tu(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};Zs.styles=[...Xe.styles,..._g],m([u({type:String,attribute:"tooltip-type",reflect:!0})],Zs.prototype,"tooltipType",2),m([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],Zs.prototype,"onlyShowWhenTriggerOverflows",2);var Hh=Zs;Hh.register(ga);var OA=Hh;var lo=fi(class extends Yr{constructor(a){var o;if(super(a),a.type!==sr.ATTRIBUTE||a.name!=="class"||((o=a.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(o=>a[o]).join(" ")+" "}update(a,[o]){var r,s;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(let l in o)o[l]&&!((r=this.nt)!=null&&r.has(l))&&this.st.add(l);return this.render(o)}let t=a.element.classList;for(let l of this.st)l in o||(t.remove(l),this.st.delete(l));for(let l in o){let c=!!o[l];c===this.st.has(l)||(s=this.nt)!=null&&s.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return ke}});var Cg=V.constructTagName("toggle"),ba={DEFAULT:"default",COMPACT:"compact"};var Gh={SIZE:ba.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var co=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=me.consume({host:this,context:_h.Context})}willUpdate(){this.controlType&&pd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=hd.CONTROL_TYPE)}}return m([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var xd=V.constructTagName("menuitemcheckbox"),ya={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},wg={INDICATOR:ya.CHECKBOX};var RA=U`
|
|
4239
4239
|
:host::part(checkmark-icon) {
|
|
4240
4240
|
--mdc-icon-fill-color: currentColor;
|
|
4241
4241
|
}
|
|
4242
4242
|
:host .hidden-checkmark {
|
|
4243
4243
|
visibility: hidden;
|
|
4244
4244
|
}
|
|
4245
|
-
`,
|
|
4245
|
+
`,kg=[RA];var Qs=class extends co(Er){constructor(){super();this.checked=!1;this.indicator=wg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===ya.CHECKBOX?_`
|
|
4246
4246
|
<mdc-staticcheckbox
|
|
4247
4247
|
slot="leading-controls"
|
|
4248
4248
|
?checked="${this.checked}"
|
|
@@ -4284,14 +4284,14 @@
|
|
|
4284
4284
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
|
4285
4285
|
</div>
|
|
4286
4286
|
</slot>
|
|
4287
|
-
`}};Qs.styles=[...Er.styles,...
|
|
4287
|
+
`}};Qs.styles=[...Er.styles,...kg],m([u({type:Boolean,reflect:!0})],Qs.prototype,"checked",2),m([u({type:String,reflect:!0})],Qs.prototype,"indicator",2);var Kh=Qs;Kh.register(xd);var PA=Kh;var Ad=V.constructTagName("menuitemradio"),Sd={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},Ng={INDICATOR:Sd.RADIO};var DA=U`
|
|
4288
4288
|
:host::part(checkmark-icon) {
|
|
4289
4289
|
--mdc-icon-fill-color: currentColor;
|
|
4290
4290
|
}
|
|
4291
4291
|
:host .hidden-checkmark {
|
|
4292
4292
|
visibility: hidden;
|
|
4293
4293
|
}
|
|
4294
|
-
`,
|
|
4294
|
+
`,Lg=[DA];var Js=class extends co(Er){constructor(){super();this.checked=!1;this.indicator=Ng.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${_i}, ${le}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===Sd.RADIO?_`
|
|
4295
4295
|
<mdc-staticradio
|
|
4296
4296
|
slot="leading-controls"
|
|
4297
4297
|
?checked="${this.checked}"
|
|
@@ -4325,7 +4325,7 @@
|
|
|
4325
4325
|
${this.renderCheckmarkIcon()}
|
|
4326
4326
|
</div>
|
|
4327
4327
|
</slot>
|
|
4328
|
-
`}};Js.styles=[...Er.styles,...
|
|
4328
|
+
`}};Js.styles=[...Er.styles,...Lg],m([u({type:Boolean,reflect:!0})],Js.prototype,"checked",2),m([u({type:String,reflect:!0})],Js.prototype,"indicator",2);var Wh=Js;Wh.register(Ad);var FA=Wh;var ho=V.constructTagName("navmenuitem"),Mg={DOT:vr.DOT,COUNTER:vr.COUNTER},Og={RIGHT_ARROW:"arrow-right-bold"},Yh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:ko[24],VARIANT:Qe.FLEXIBLE,CANNOT_ACTIVATE:!1};var $A=U`
|
|
4329
4329
|
:host::part(popover-content) {
|
|
4330
4330
|
padding: 0.75rem 0.5rem;
|
|
4331
4331
|
}
|
|
@@ -4333,7 +4333,7 @@
|
|
|
4333
4333
|
::slotted(mdc-divider) {
|
|
4334
4334
|
margin-block: 0.25rem;
|
|
4335
4335
|
}
|
|
4336
|
-
`,
|
|
4336
|
+
`,Rg=[$A];var Ea=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===tt.MENUITEM||o===tt.MENUITEMCHECKBOX||o===tt.MENUITEMRADIO},jh=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===le};var Ta=class extends Xe{constructor(){super();this.placement=Fh.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),l=this.backdropElement?r.includes(this.backdropElement):!1;(!s||l)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||(t.composedPath().find(s=>s.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let r=t.target;Ea(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,l=this.getCurrentIndex(s);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case q.HOME:{this.resetTabIndexAndSetFocus(0,l),r=!0;break}case q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),r=!0;break}case q.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),r=!0;break}case q.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),r=!0;break}case q.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),r=!0);break}case q.LEFT:{jh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),r=!0);break}case q.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),r=!0);break}case q.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case q.SPACE:{r=!0;break}default:break}r&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case q.SPACE:{!s.matches(`${Ad}, ${xd}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0));break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,l;let r=t.getAttribute("id");return r?(l=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:l.call(s,`${le}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(l=>l.tagName.toLowerCase()===_i?Array.from(l.children).filter(c=>Ea(c)):Ea(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let l=this.getSubMenuPopoverOfTarget(s);l&&l.visible&&r.push(l)}),r}connectedCallback(){super.connectedCallback(),this.role=tt.MENU,this.ariaOrientation=Fh.ORIENTATION,this.backdrop=!1,this.color=$o.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![fa,ho].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let l=this.getSubMenuPopoverOfTarget(s);l&&l.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(r=>r!==t&&jh(r))}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(r).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(fa)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(!(!Ea(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}};Ta.styles=[...Xe.styles,...Rg],m([u({type:String,reflect:!0})],Ta.prototype,"placement",2);var qh=Ta;qh.register(le);var zA=qh;var Id=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var s,l;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((l=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?l:[]).some(c=>c!==o&&c.tagName.toLowerCase()===le&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(le);if(!s)break;let l=s.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===ho)t.push(c),r=c;else break}return t}setCurrentActiveNavMenuItem(o){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};Id.context=so;var _d=Id;var VA=U`
|
|
4337
4337
|
:host {
|
|
4338
4338
|
--mdc-sidenavigation-expanded-width: 14.5rem;
|
|
4339
4339
|
--mdc-sidenavigation-expanded-left-padding: 1rem;
|
|
@@ -4471,7 +4471,7 @@
|
|
|
4471
4471
|
:host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
|
|
4472
4472
|
opacity: 1;
|
|
4473
4473
|
}
|
|
4474
|
-
`,
|
|
4474
|
+
`,Pg=[VA];var Ci=class extends pe{constructor(){super({context:_d.context,initialValue:new _d(Td.VARIANT,!0)});this.variant=Td.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===Qe.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var r;if((r=this.context)!=null&&r.value){let s=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(s)}};this.findNav=(t,r)=>t.find(s=>s.navId===r);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return _d.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case Qe.FIXED_EXPANDED:this.expanded=!0;break;case Qe.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===Qe.FLEXIBLE||this.variant===Qe.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext())}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${ho}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(Qe).includes(t)?t:Td.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===Qe.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===Vt.SPACE&&t.preventDefault()}render(){var t;return this.variant===Qe.HIDDEN?_``:_`
|
|
4475
4475
|
<div part="side-navigation-container" id="side-nav-container">
|
|
4476
4476
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
|
4477
4477
|
<slot name="scrollable-section">
|
|
@@ -4515,7 +4515,7 @@
|
|
|
4515
4515
|
aria-controls="side-nav-container"
|
|
4516
4516
|
></mdc-button>
|
|
4517
4517
|
</mdc-divider>`:j}
|
|
4518
|
-
`}};Ci.styles=[...X.styles,...
|
|
4518
|
+
`}};Ci.styles=[...X.styles,...Pg],m([u({type:String,reflect:!0})],Ci.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"footer-text"})],Ci.prototype,"footerText",2),m([u({type:Boolean,reflect:!0,attribute:"expanded"})],Ci.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Ci.prototype,"grabberBtnAriaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Ci.prototype,"hideFixedSectionDivider",2);var rs=Ci;var BA=U`
|
|
4519
4519
|
:host {
|
|
4520
4520
|
--mdc-menusection-divider-margin-block: 0.25rem;
|
|
4521
4521
|
--mdc-menusection-gap: 0rem;
|
|
@@ -4536,7 +4536,7 @@
|
|
|
4536
4536
|
:host::part(align-header) {
|
|
4537
4537
|
--mdc-listheader-padding: var(--mdc-menusection-header-padding);
|
|
4538
4538
|
}
|
|
4539
|
-
`,
|
|
4539
|
+
`,Dg=[BA];var ti=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=bg.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=me.consume({host:this,context:rs.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let r=(l=this.sideNavigationContext)==null?void 0:l.value;if(!r)return;let{expanded:s}=r;this.hideHeaderText=!s}renderHeader(){var t,r;return this.headerText?_` <mdc-listheader
|
|
4540
4540
|
part="header ${(r=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&r.expanded?"align-header":""}"
|
|
4541
4541
|
header-text="${this.headerText}"
|
|
4542
4542
|
prefix-icon="${J(this.prefixIcon)}"
|
|
@@ -4545,7 +4545,7 @@
|
|
|
4545
4545
|
${this.hideHeaderText?null:this.renderHeader()}
|
|
4546
4546
|
<slot part="container"></slot>
|
|
4547
4547
|
${this.showDivider?_`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
|
4548
|
-
`}};ti.styles=[...X.styles,...
|
|
4548
|
+
`}};ti.styles=[...X.styles,...Dg],m([u({type:String,reflect:!0,attribute:"aria-label"})],ti.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],ti.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],ti.prototype,"prefixIcon",2),m([u({type:Boolean,reflect:!0,attribute:"show-divider"})],ti.prototype,"showDivider",2),m([u({type:String,reflect:!0,attribute:"divider-variant"})],ti.prototype,"dividerVariant",2),m([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],ti.prototype,"hideHeaderText",2);var Xh=ti;Xh.register(_i);var UA=Xh;var HA=[bt,U`
|
|
4549
4549
|
:host {
|
|
4550
4550
|
--mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
|
|
4551
4551
|
--mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
|
|
@@ -4736,7 +4736,7 @@
|
|
|
4736
4736
|
background-color: ButtonText;
|
|
4737
4737
|
}
|
|
4738
4738
|
}
|
|
4739
|
-
`,...At()],
|
|
4739
|
+
`,...At()],Fg=HA;var ee=class extends Er{constructor(){super();this.cannotActivate=Yh.CANNOT_ACTIVATE;this.maxCounter=Yh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=me.consume({host:this,context:rs.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var s;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let r=(s=this.sideNavigationContext)==null?void 0:s.value;r&&(this.showLabel=this.isNested()?!0:r.expanded)}renderDynamicTooltip(){var r;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Le()}`);let t=document.createElement(ga);t.id=`mdc-navmenuitem-tooltip-${Le()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((r=this.tooltipBoundaryPadding)==null?void 0:r.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${ga}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===le)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:`${Mo(this.iconName)}-filled`}renderBadge(t){return Object.values(Mg).includes(this.badgeType)?_`
|
|
4740
4740
|
<mdc-badge
|
|
4741
4741
|
part="${t?"":"badge"}"
|
|
4742
4742
|
type="${J(this.badgeType)}"
|
|
@@ -4766,8 +4766,8 @@
|
|
|
4766
4766
|
</mdc-text>
|
|
4767
4767
|
${this.renderBadge(this.showLabel)}
|
|
4768
4768
|
`:j}
|
|
4769
|
-
${t!=null&&t.hasSiblingWithTriggerId(this)?_` <mdc-icon name=${
|
|
4770
|
-
`}};ee.styles=[...Er.styles,...
|
|
4769
|
+
${t!=null&&t.hasSiblingWithTriggerId(this)?_` <mdc-icon name=${Og.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:j}
|
|
4770
|
+
`}};ee.styles=[...Er.styles,...Fg],m([u({type:Boolean,reflect:!0})],ee.prototype,"active",2),m([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],ee.prototype,"cannotActivate",2),m([u({type:String,attribute:"icon-name",reflect:!0})],ee.prototype,"iconName",2),m([u({type:String,reflect:!0,attribute:"badge-type"})],ee.prototype,"badgeType",2),m([u({type:Number,reflect:!0})],ee.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],ee.prototype,"maxCounter",2),m([u({type:String,reflect:!0,attribute:"nav-id"})],ee.prototype,"navId",2),m([u({type:Boolean,reflect:!0,attribute:"show-label"})],ee.prototype,"showLabel",2),m([u({type:String,attribute:"aria-label"})],ee.prototype,"ariaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],ee.prototype,"disableAriaCurrent",2),m([u({type:String,reflect:!0,attribute:"tooltip-text"})],ee.prototype,"tooltipText",2),m([u({type:String,reflect:!0,attribute:"tooltip-placement"})],ee.prototype,"tooltipPlacement",2),m([u({type:String,reflect:!0,attribute:"tooltip-type"})],ee.prototype,"tooltipType",2),m([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],ee.prototype,"tooltipAppearance",2),m([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],ee.prototype,"tooltipBoundaryPadding",2),m([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],ee.prototype,"isActiveParentTooltipText",2),m([pt()],ee.prototype,"hasActiveChild",2);var Zh=ee;Zh.register(ho);var GA=Zh;var $g="check-bold",xr=V.constructTagName("option");var xa=V.constructTagName("optgroup"),Qh="header-id";var KA=U`
|
|
4771
4771
|
:host {
|
|
4772
4772
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
|
4773
4773
|
}
|
|
@@ -4783,7 +4783,7 @@
|
|
|
4783
4783
|
:host([data-hidden]) {
|
|
4784
4784
|
display: none;
|
|
4785
4785
|
}
|
|
4786
|
-
|
|
4786
|
+
`,zg=[KA];var tn=class extends Ht(jt(X)){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?_`
|
|
4787
4787
|
<mdc-text
|
|
4788
4788
|
id="${Qh}"
|
|
4789
4789
|
part="header-text"
|
|
@@ -4800,7 +4800,7 @@
|
|
|
4800
4800
|
${o}
|
|
4801
4801
|
<slot role="${tt.PRESENTATION}"></slot>
|
|
4802
4802
|
</div>
|
|
4803
|
-
`}};tn.styles=[...X.styles
|
|
4803
|
+
`}};tn.styles=[...X.styles,...zg],m([u({type:String,reflect:!0})],tn.prototype,"label",2),m([$t({selector:xr})],tn.prototype,"options",2);var Jh=tn;Jh.register(xa);var WA=Jh;var YA=[Gi,U`
|
|
4804
4804
|
:host {
|
|
4805
4805
|
--mdc-listitem-column-gap: 0.75rem;
|
|
4806
4806
|
--mdc-option-icon-width: 1rem;
|
|
@@ -4829,7 +4829,7 @@
|
|
|
4829
4829
|
:host([data-hidden]) {
|
|
4830
4830
|
display: none;
|
|
4831
4831
|
}
|
|
4832
|
-
`],
|
|
4832
|
+
`],Vg=YA;var is=class extends ve(Ii){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=tt.OPTION,this.variant=da.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,r){return _` <mdc-icon length-unit="rem" slot="${t}" name="${r}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",$g):j;return _`
|
|
4833
4833
|
<div part="leading">
|
|
4834
4834
|
<slot name="leading-controls">
|
|
4835
4835
|
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):j}
|
|
@@ -4840,7 +4840,7 @@
|
|
|
4840
4840
|
</div>
|
|
4841
4841
|
</div>
|
|
4842
4842
|
<div part="trailing">${t}</div>
|
|
4843
|
-
`}};is.styles=[...Ii.styles,...
|
|
4843
|
+
`}};is.styles=[...Ii.styles,...Vg],m([u({type:Boolean,reflect:!0})],is.prototype,"selected",2),m([u({type:String,reflect:!0,attribute:"prefix-icon"})],is.prototype,"prefixIcon",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],is.prototype,"ariaLabel",2);var tp=is;tp.register(xr);var jA=tp;var ep={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Bg=V.constructTagName("password");var po=class extends Pr{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?_`
|
|
4844
4844
|
<mdc-button
|
|
4845
4845
|
part="trailing-button"
|
|
4846
4846
|
class="own-focus-ring ${r?"":"hidden"}"
|
|
@@ -4851,7 +4851,7 @@
|
|
|
4851
4851
|
aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
|
|
4852
4852
|
prefix-icon=${this.showPassword?ep.HIDE_BOLD:ep.SHOW_BOLD}
|
|
4853
4853
|
></mdc-button>
|
|
4854
|
-
`:j}renderInputElement(t,r){let s=this.showPassword?ro.TEXT:ro.PASSWORD;return super.renderInputElement(s,r)}};po.styles=[...Pr.styles],m([u({type:String,attribute:"show-button-aria-label",reflect:!0})],po.prototype,"showButtonAriaLabel",2),m([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],po.prototype,"hideButtonAriaLabel",2),m([u({type:String,attribute:"help-text-type"})],po.prototype,"helpTextType",2),m([pt()],po.prototype,"showPassword",2);var rp=po;rp.register(
|
|
4854
|
+
`:j}renderInputElement(t,r){let s=this.showPassword?ro.TEXT:ro.PASSWORD;return super.renderInputElement(s,r)}};po.styles=[...Pr.styles],m([u({type:String,attribute:"show-button-aria-label",reflect:!0})],po.prototype,"showButtonAriaLabel",2),m([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],po.prototype,"hideButtonAriaLabel",2),m([u({type:String,attribute:"help-text-type"})],po.prototype,"helpTextType",2),m([pt()],po.prototype,"showPassword",2);var rp=po;rp.register(Bg);var qA=rp;Xe.register(Xf);sd.register(nd);var XA=Xe;var Cd=V.constructTagName("progressbar"),wd={DEFAULT:"default",INLINE:"inline"},Ug={VARIANT:wd.DEFAULT,VALIDATION:Ut.DEFAULT};var ZA=[bt,U`
|
|
4855
4855
|
:host {
|
|
4856
4856
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
4857
4857
|
--mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
|
|
@@ -4924,7 +4924,7 @@
|
|
|
4924
4924
|
border: var(--mdc-progressbar-border);
|
|
4925
4925
|
}
|
|
4926
4926
|
}
|
|
4927
|
-
`],
|
|
4927
|
+
`],Hg=ZA;var os=class extends Ht(nr){constructor(){super(...arguments);this.variant=Ug.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var l;let t=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,s=this.error?"100":`${this.clampedValue}`;return _`
|
|
4928
4928
|
<div
|
|
4929
4929
|
part="progress-container ${r?"gap":""}"
|
|
4930
4930
|
role="${tt.PROGRESSBAR}"
|
|
@@ -4936,7 +4936,7 @@
|
|
|
4936
4936
|
<div part="progress-bar ${t}" style="width: ${s}%"></div>
|
|
4937
4937
|
<div part="remaining"></div>
|
|
4938
4938
|
</div>
|
|
4939
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`${Cd}-${
|
|
4939
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`${Cd}-${Le()}`,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=Ut.ERROR:this.clampedValue===100?this.helpTextType=Ut.SUCCESS:this.helpTextType=Ut.DEFAULT,this.helpTextType}render(){let t=this.variant===wd.INLINE;return _`
|
|
4940
4940
|
${t?_`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:_`
|
|
4941
4941
|
<div part="label-container">
|
|
4942
4942
|
${this.renderLabelElement()}
|
|
@@ -4944,7 +4944,7 @@
|
|
|
4944
4944
|
</div>
|
|
4945
4945
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
|
4946
4946
|
`}
|
|
4947
|
-
`}};os.styles=[...nr.styles,...
|
|
4947
|
+
`}};os.styles=[...nr.styles,...Hg],m([u({type:String,reflect:!0})],os.prototype,"variant",2),m([u({type:String,reflect:!0})],os.prototype,"value",2),m([u({type:Boolean,attribute:"error"})],os.prototype,"error",2);var Aa=os;Aa.register(Cd);var QA=Aa;var Gg=V.constructTagName("progressspinner"),de={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},ip={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var op=a=>{if(a===0)return 0;let o=a/100*de.CIRCUMFERENCE-de.GAP_SIZE;return Math.max(o,.1*a)},Kg=a=>{let o=de.CIRCUMFERENCE-op(a)-2*de.GAP_SIZE;return a===0?de.CIRCUMFERENCE:o<0?0:o},Wg=a=>a===0?0:de.GAP_SIZE*.5,Yg=(a,o)=>{let t=o+de.GAP_SIZE*1.5;return a===0?0:t};var JA=U`
|
|
4948
4948
|
:host {
|
|
4949
4949
|
--mdc-spinner-size: 3rem;
|
|
4950
4950
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
@@ -4991,7 +4991,7 @@
|
|
|
4991
4991
|
color: var(--mdc-progress-error-color);
|
|
4992
4992
|
margin: calc(1 / 6 * var(--mdc-spinner-size));
|
|
4993
4993
|
}
|
|
4994
|
-
`,
|
|
4994
|
+
`,jg=[JA];var kd=class extends Aa{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 l;let o=op(this.clampedValue),t=Kg(this.clampedValue),r=Wg(this.clampedValue),s=Yg(this.clampedValue,o);return _`
|
|
4995
4995
|
<div
|
|
4996
4996
|
part="spinner-container ${this.variant}"
|
|
4997
4997
|
role="${tt.PROGRESSBAR}"
|
|
@@ -5037,7 +5037,7 @@
|
|
|
5037
5037
|
size="${de.SUCCESS_ICON_SIZE}"
|
|
5038
5038
|
length-unit="${de.ICON_LENGTH_UNIT}"
|
|
5039
5039
|
></mdc-icon>
|
|
5040
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():_` ${this.renderProgressSpinner()}`}};kd.styles=[...X.styles,...
|
|
5040
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():_` ${this.renderProgressSpinner()}`}};kd.styles=[...X.styles,...jg];var sp=kd;sp.register(Gg);var t0=sp;var e0=[bt,U`
|
|
5041
5041
|
:host {
|
|
5042
5042
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
5043
5043
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -5095,7 +5095,7 @@
|
|
|
5095
5095
|
:host([soft-disabled]) {
|
|
5096
5096
|
pointer-events: none;
|
|
5097
5097
|
}
|
|
5098
|
-
`,...At(!0)],
|
|
5098
|
+
`,...At(!0)],qg=e0;var Sa=class extends Lt(Ct(Ne(ve(Ht(Jt))))){constructor(){super(...arguments);this.checked=!1;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.updateTabIndex(),this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,r){this.updateComplete.then(()=>{t.forEach(s=>{s.setComponentValidity(r)})}).catch(s=>{this.onerror&&this.onerror(s)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let s=r.some(f=>f.required),l=!!r.find(f=>f.checked),c=s&&!l;this.setGroupValidity(r,!c)}this.internals.setFormValue(t)}handleChange(){var s;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(l=>{var f;let c=(f=l.shadowRoot)==null?void 0:f.querySelector("input");c&&(l.checked=!1,c.checked=!1)}),this.checked=!0;let r=(s=this.shadowRoot)==null?void 0:s.querySelector("input");r&&(r.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){super.click(),this.handleChange()}updateRadio(t,r){var s,l;(l=(s=t[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||l.focus(),t[r].handleChange()}handleKeyDown(t){var f;if(this.disabled)return;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault();let l=this.getAllRadiosWithinSameGroup().filter(y=>!y.disabled),c=l.indexOf(this);if(this.getKeyboardNavMode()!==qt.DEFAULT){r===q.ENTER&&(this.updateRadio(l,c),this.keyDownEventHandled()),this.getAllRadiosWithinSameGroup().forEach(A=>{var W;let F=(W=A.shadowRoot)==null?void 0:W.querySelector("input");F&&(F.tabIndex=0)});return}if(r===q.DOWN||r===q.RIGHT){let y=(c+1)%l.length;this.updateRadio(l,y)}else if(r===q.UP||r===q.LEFT){let y=(c-1+l.length)%l.length;this.updateRadio(l,y)}else r===q.SPACE&&this.updateRadio(l,c);this.updateTabIndex(),r===q.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),r=t.find(l=>l.checked),s=t.find(l=>!l.disabled);t.forEach(l=>{var f;let c=(f=l.shadowRoot)==null?void 0:f.querySelector("input");c&&(c.tabIndex=-1,(l===r||!r&&l===s)&&(c.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return _`
|
|
5099
5099
|
<mdc-staticradio
|
|
5100
5100
|
class="mdc-focus-ring"
|
|
5101
5101
|
?checked="${this.checked}"
|
|
@@ -5124,7 +5124,7 @@
|
|
|
5124
5124
|
/>
|
|
5125
5125
|
</mdc-staticradio>
|
|
5126
5126
|
${this.renderLabelAndHelperText()}
|
|
5127
|
-
`}};Sa.styles=[...Jt.styles,...
|
|
5127
|
+
`}};Sa.styles=[...Jt.styles,...qg],m([u({type:Boolean,reflect:!0})],Sa.prototype,"checked",2);var np=Sa;var Nd=V.constructTagName("radio");np.register(Nd);var r0=np;var Ia=class extends fd{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,r,s,l,c;(c=(l=(s=(r=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(f=>f.assignedElements({flatten:!0})))==null?void 0:s.filter(f=>f.tagName.toLowerCase()===Nd||f.tagName.toLowerCase()===jl))==null?void 0:l.filter(f=>!f.hasAttribute("name")))==null||c.forEach(f=>{f.setAttribute("name",this.name),this.required&&f.setAttribute("required",this.required.toString())})}};Ia.styles=[...fd.styles],m([u({type:String})],Ia.prototype,"name",2);var ap=Ia;var Xg=V.constructTagName("radiogroup");ap.register(Xg);var i0=ap;var o0=U`
|
|
5128
5128
|
:host::part(filters-container) {
|
|
5129
5129
|
display: flex;
|
|
5130
5130
|
gap: 0.25rem;
|
|
@@ -5154,7 +5154,7 @@
|
|
|
5154
5154
|
position: relative;
|
|
5155
5155
|
scrollbar-width: none;
|
|
5156
5156
|
}
|
|
5157
|
-
`,
|
|
5157
|
+
`,Zg=[o0];var Qg=V.constructTagName("searchfield"),_a={TYPE:ro.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:gd};var ss=class extends Lt(Pr){constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===q.ENTER&&(this.handleFilterContainerClick(),this.keyDownEventHandled())};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===q.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===q.ESCAPE&&(this.clearInputText(),this.keyDownEventHandled())}connectedCallback(){super.connectedCallback(),this.leadingIcon=_a.ICON,this.trailingButton=_a.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(_a.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 _`
|
|
5158
5158
|
${this.renderLabelElement()}
|
|
5159
5159
|
<div
|
|
5160
5160
|
class="${lo({"mdc-focus-ring":this.isInputFocused})}"
|
|
@@ -5174,7 +5174,7 @@
|
|
|
5174
5174
|
</div>
|
|
5175
5175
|
${this.renderTrailingButton(this.hasInputChips)}
|
|
5176
5176
|
</div>
|
|
5177
|
-
`}};ss.styles=[...Pr.styles,...
|
|
5177
|
+
`}};ss.styles=[...Pr.styles,...Zg],m([$t({slot:"filters"})],ss.prototype,"inputChips",2),m([pt()],ss.prototype,"isInputFocused",2),m([pt()],ss.prototype,"hasInputChips",2);var en=ss;en.register(Qg);var s0=en;var n0=U`
|
|
5178
5178
|
:host {
|
|
5179
5179
|
--mdc-searchpopover-width: 100%;
|
|
5180
5180
|
--mdc-searchpopover-popover-width: var(--mdc-searchpopover-width);
|
|
@@ -5194,7 +5194,7 @@
|
|
|
5194
5194
|
min-width: auto;
|
|
5195
5195
|
padding: 0.75rem 0.5rem;
|
|
5196
5196
|
}
|
|
5197
|
-
`,
|
|
5197
|
+
`,Jg=[n0];var tb=V.constructTagName("searchpopover"),lp={TYPE:ro.TEXT,DISPLAY_POPOVER:!1},dp="searchpopover-container-triggerid",Ld="searchpopover-popoverid";var mo=class extends en{constructor(){super(...arguments);this.displayPopover=lp.DISPLAY_POPOVER;this.placement=kt.BOTTOM_START;this.popoverZIndex=void 0}renderInputElement(){var r,s;let t=this.hasInputChips?"":this.placeholder;return _`<input
|
|
5198
5198
|
aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
|
|
5199
5199
|
part="input-text"
|
|
5200
5200
|
id="${this.inputId}"
|
|
@@ -5262,7 +5262,7 @@
|
|
|
5262
5262
|
>
|
|
5263
5263
|
<slot></slot>
|
|
5264
5264
|
</mdc-popover>
|
|
5265
|
-
`}};mo.styles=[...en.styles,...
|
|
5265
|
+
`}};mo.styles=[...en.styles,...Jg],m([u({type:Boolean,reflect:!0,attribute:"display-popover"})],mo.prototype,"displayPopover",2),m([u({type:String,reflect:!0})],mo.prototype,"placement",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],mo.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"popover-aria-label"})],mo.prototype,"popoverAriaLabel",2);var cp=mo;cp.register(tb);var a0=cp;var eb=V.constructTagName("select"),hp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Md="select-base-triggerid",rb="select-listbox",ib={DISABLE_FLIP:!1};var l0=U`
|
|
5266
5266
|
:host {
|
|
5267
5267
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
5268
5268
|
--mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
|
|
@@ -5371,7 +5371,7 @@
|
|
|
5371
5371
|
:host([soft-disabled])::part(base-text) {
|
|
5372
5372
|
--mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
5373
5373
|
}
|
|
5374
|
-
`,
|
|
5374
|
+
`,ob=[l0,...At(!0)];var Je=class extends qs(Ct(io(Ne(ve(Ht(Jt)))))){constructor(){super();this.placement=kt.BOTTOM_START;this.boundary=St.BOUNDARY;this.strategy=St.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=ib.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,r,s,l)=>{switch(r){case"added":t.setAttribute("tabindex",s===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(s);break;case"removed":{if(s===-1||l.length===0)return;let c=s+1;if(c>=l.length&&(c=s-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=s===0?l[c]:l[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${xr}:not([disabled])`);this.addEventListener(Yt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Jr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,r,s){var l;if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&s!==((l=this.selectedOption)==null?void 0:l.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),y=this.navItems.find(F=>F.value===s),A=null;if(y)A=y;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(F=>{this.onerror&&this.onerror(F)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let r=t.target,s=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{s&&s!==this.selectedOption?this.setSelectedOption(s):this.setSelectedOption(r);break}case"unselected":{s?this.setSelectedOption(s):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(r);break}case"disabled":{this.itemsStore.delete(r);break}default:break}}async firstUpdated(t){await this.updateComplete;let r=this.getFirstSelectedOption();if(r)this.initialSelectedOption=r,this.setSelectedOption(r);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstOption();this.setSelectedOption(s),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let r=t.target;r&&r.tagName===xr.toUpperCase()&&!r.hasAttribute("disabled")&&!r.hasAttribute("soft-disabled")&&(this.setSelectedOption(r),r.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var r,s,l;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(s=(r=this.selectedOption)==null?void 0:r.value)!=null?s:"",this.internals.setFormValue(this.value),(l=this.inputElement)==null||l.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(r=>{r!==t&&r.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,r;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()}formResetCallback(){var r;let t=this.initialSelectedOption||null;((r=this.selectedOption)==null?void 0:r.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var s;let r=this.navItems.find(l=>l.value===t||l.label===t);((s=this.selectedOption)==null?void 0:s.value)!==(r==null?void 0:r.value)&&(this.setSelectedOption(r||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=ld(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var r;return(r=this.debounceSearch)==null||r.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,r){return t.filter(s=>{var l;return(l=s.getAttribute("label"))==null?void 0:l.toLowerCase().startsWith(r.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let r=this.navItems.findIndex(f=>f.tabIndex===0)+1,s=[...this.navItems.slice(r),...this.navItems.slice(0,r)],l=this.filterOptionsBySearchKey(s,t),c=null;if(l.length)[c]=l;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[r],y=this.filterOptionsBySearchKey(s,t[0]),A=y.filter(F=>F===f);c=A.length?A[0]:y[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let r=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===qt.DEFAULT)switch(r){case q.DOWN:case q.UP:case q.ENTER:case q.SPACE:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case q.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case q.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else r===q.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let r=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(r)}handleKeydownPopover(t){this.getKeyboardNavMode()===qt.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,r,s,l,c,f;return _`
|
|
5375
5375
|
${this.renderLabel()}
|
|
5376
5376
|
<div part="container">
|
|
5377
5377
|
<div
|
|
@@ -5382,7 +5382,7 @@
|
|
|
5382
5382
|
tabindex="${this.disabled?"-1":"0"}"
|
|
5383
5383
|
class="${this.disabled?"":"mdc-focus-ring"}"
|
|
5384
5384
|
role="${tt.COMBOBOX}"
|
|
5385
|
-
aria-controls="${
|
|
5385
|
+
aria-controls="${rb}"
|
|
5386
5386
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
5387
5387
|
aria-labelledby="${this.label?Ot.HEADING_ID:""}"
|
|
5388
5388
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
|
@@ -5428,7 +5428,7 @@
|
|
|
5428
5428
|
aria-disabled="${J(this.disabled||this.softDisabled)}"
|
|
5429
5429
|
/>
|
|
5430
5430
|
<mdc-popover
|
|
5431
|
-
trigger="${
|
|
5431
|
+
trigger="${Oe.MANUAL}"
|
|
5432
5432
|
triggerid="${Md}"
|
|
5433
5433
|
interactive
|
|
5434
5434
|
?visible="${this.displayPopover}"
|
|
@@ -5454,7 +5454,7 @@
|
|
|
5454
5454
|
</mdc-popover>
|
|
5455
5455
|
</div>
|
|
5456
5456
|
${this.renderHelperText()}
|
|
5457
|
-
`}};Je.styles=[...Jt.styles,...
|
|
5457
|
+
`}};Je.styles=[...Jt.styles,...ob],m([u({type:String})],Je.prototype,"placeholder",2),m([u({type:String,reflect:!0})],Je.prototype,"placement",2),m([u({type:String,reflect:!0,attribute:"boundary"})],Je.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"strategy"})],Je.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Je.prototype,"popoverZIndex",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Je.prototype,"disableFlip",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Je.prototype,"backdropAppendTo",2),m([Kt(`[id="${Md}"]`)],Je.prototype,"visualCombobox",2),m([pt()],Je.prototype,"selectedOption",2),m([pt()],Je.prototype,"displayPopover",2);var pp=Je;pp.register(eb);var d0=pp;var mp=class extends X{connectedCallback(){super.connectedCallback(),this.role=tt.LISTBOX}createRenderRoot(){return this}},up=mp;var Od=V.constructTagName("selectlistbox");up.register(Od);var c0=up;rs.register(so);var h0=rs;var sb=V.constructTagName("skeleton"),nb={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},ab={VARIANT:nb.RECTANGULAR};var p0=U`
|
|
5458
5458
|
:host {
|
|
5459
5459
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
5460
5460
|
--mdc-skeleton-height: 100%;
|
|
@@ -5491,7 +5491,7 @@
|
|
|
5491
5491
|
::slotted(*) {
|
|
5492
5492
|
visibility: hidden;
|
|
5493
5493
|
}
|
|
5494
|
-
`,
|
|
5494
|
+
`,lb=p0;var Ca=class extends X{constructor(){super(...arguments);this.variant=ab.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>`}};Ca.styles=[...X.styles,lb],m([u({type:String,reflect:!0})],Ca.prototype,"variant",2);var fp=Ca;fp.register(sb);var m0=fp;var u0=[bt,U`
|
|
5495
5495
|
:host {
|
|
5496
5496
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
|
5497
5497
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
|
@@ -5555,11 +5555,11 @@
|
|
|
5555
5555
|
stroke-dashoffset: -292;
|
|
5556
5556
|
}
|
|
5557
5557
|
}
|
|
5558
|
-
`],
|
|
5558
|
+
`],db=u0;var cb=V.constructTagName("spinner"),f0={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},v0={STANDALONE:"standalone",BUTTON:"button"},Rd={VARIANT:v0.STANDALONE,SIZE:f0.MIDSIZE,INVERTED:!1};var uo=class extends X{constructor(){super(...arguments);this.inverted=Rd.INVERTED;this.size=Rd.SIZE;this.ariaLabel=null;this.variant=Rd.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?tt.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return _`
|
|
5559
5559
|
<svg part="container" viewBox="0 0 100 100">
|
|
5560
5560
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
|
5561
5561
|
</svg>
|
|
5562
|
-
`}};uo.styles=[...X.styles,...
|
|
5562
|
+
`}};uo.styles=[...X.styles,...db],m([u({type:Boolean,reflect:!0})],uo.prototype,"inverted",2),m([u({type:String,reflect:!0})],uo.prototype,"size",2),m([u({type:String,attribute:"aria-label"})],uo.prototype,"ariaLabel",2),m([u({type:String,reflect:!0})],uo.prototype,"variant",2);var vp=uo;vp.register(cb);var g0=vp;ia.register(Gv);var b0=ia;var y0={COMPLETE:"complete",INCOMPLETE:"incomplete"},gp={VERTICAL:"vertical",HORIZONTAL:"horizontal"},bp={STATUS:y0.INCOMPLETE,ORIENTATION:gp.HORIZONTAL},hb=V.constructTagName("stepperconnector");var pb=V.constructTagName("stepperitem"),yp={INLINE:"inline",STACKED:"stacked"},wi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Pd={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},Ep={VARIANT:yp.INLINE,STATUS:wi.NOT_STARTED};var Dd=V.constructTagName("stepper"),wa={ORIENTATION:gp.HORIZONTAL,VARIANT:yp.INLINE};var Fd=class{constructor(o,t){this.orientation=o,this.variant=t}};Fd.context=Dd;var $d=Fd;var E0=U`
|
|
5563
5563
|
:host {
|
|
5564
5564
|
gap: 0.5rem;
|
|
5565
5565
|
}
|
|
@@ -5596,7 +5596,7 @@
|
|
|
5596
5596
|
padding-top: 0.9375rem;
|
|
5597
5597
|
margin: 0 -3rem;
|
|
5598
5598
|
}
|
|
5599
|
-
`,
|
|
5599
|
+
`,mb=[bt,E0];var rn=class extends pe{constructor(){super({context:$d.context,initialValue:new $d(wa.ORIENTATION,wa.VARIANT)});this.orientation=wa.ORIENTATION;this.variant=wa.VARIANT}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}static get Context(){return $d.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return _` <slot></slot> `}};rn.styles=[...X.styles,...mb],m([u({type:String,reflect:!0})],rn.prototype,"orientation",2),m([u({type:String,reflect:!0})],rn.prototype,"variant",2);var ns=rn;ns.register(Dd);var T0=ns;var x0=U`
|
|
5600
5600
|
:host {
|
|
5601
5601
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
|
5602
5602
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -5631,7 +5631,7 @@
|
|
|
5631
5631
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
|
5632
5632
|
}
|
|
5633
5633
|
}
|
|
5634
|
-
`,
|
|
5634
|
+
`,ub=[x0];var on=class extends X{constructor(){super(...arguments);this.status=bp.STATUS;this.orientation=bp.ORIENTATION;this.stepperContext=me.consume({host:this,context:ns.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> `}};on.styles=[...X.styles,...ub],m([u({type:String,reflect:!0})],on.prototype,"status",2),m([u({type:String,reflect:!0})],on.prototype,"orientation",2);var Tp=on;Tp.register(hb);var A0=Tp;var S0=U`
|
|
5635
5635
|
:host {
|
|
5636
5636
|
gap: 0.5rem;
|
|
5637
5637
|
border-radius: 0.25rem;
|
|
@@ -5787,7 +5787,7 @@
|
|
|
5787
5787
|
:host([status='error-incomplete']:active) {
|
|
5788
5788
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
|
5789
5789
|
}
|
|
5790
|
-
`,
|
|
5790
|
+
`,fb=[bt,S0,...At()];var ki=class extends Lt(Ct(Hr(X))){constructor(){super();this.variant=Ep.VARIANT;this.status=Ep.STATUS;this.label="";this.stepperContext=me.consume({host:this,context:ns.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.variant||(this.variant=r.variant)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTITEM}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.add("pressed"),r===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.remove("pressed"),r===q.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===wi.COMPLETED?_`<mdc-icon part="status-icon" name=${Pd.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===wi.ERROR_CURRENT||this.status===wi.CURRENT?_`<mdc-icon part="status-icon" name=${Pd.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===wi.NOT_STARTED||this.status===wi.ERROR_INCOMPLETE)?_`<mdc-text part="step-number" tagname=${mt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
|
5791
5791
|
>${this.stepNumber}</mdc-text
|
|
5792
5792
|
>`:j}renderHelpText(){if(!this.helpText)return j;let t=_`<mdc-text
|
|
5793
5793
|
part="help-text"
|
|
@@ -5803,7 +5803,7 @@
|
|
|
5803
5803
|
>${this.label}</mdc-text
|
|
5804
5804
|
>`:j}
|
|
5805
5805
|
${this.renderHelpText()}
|
|
5806
|
-
</div>`}};ki.styles=[...X.styles,...
|
|
5806
|
+
</div>`}};ki.styles=[...X.styles,...fb],m([u({type:String,reflect:!0})],ki.prototype,"variant",2),m([u({type:String,reflect:!0})],ki.prototype,"status",2),m([u({type:String,reflect:!0})],ki.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"help-text"})],ki.prototype,"helpText",2),m([u({type:Number,reflect:!0,attribute:"step-number"})],ki.prototype,"stepNumber",2);var xp=ki;xp.register(pb);var I0=xp;var vb=V.constructTagName("tab"),Ap={GLASS:"glass",LINE:"line",PILL:"pill"},zd={VARIANT:Ap.PILL,ACTIVE:!1};var _0=[bt,U`
|
|
5807
5807
|
:host {
|
|
5808
5808
|
--mdc-tab-content-gap: 0.5rem;
|
|
5809
5809
|
--mdc-tab-height: 2rem;
|
|
@@ -6005,7 +6005,7 @@
|
|
|
6005
6005
|
--mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
|
6006
6006
|
--mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
|
|
6007
6007
|
}
|
|
6008
|
-
`,...At()],
|
|
6008
|
+
`,...At()],gb=_0;var fo=class extends ie(ue){constructor(){super(...arguments);this.active=zd.ACTIVE;this.variant=zd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=tt.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${Mo(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(Ap).includes(t)?t:zd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return _`
|
|
6009
6009
|
<div part="container">
|
|
6010
6010
|
<slot name="prefix">
|
|
6011
6011
|
${this.iconName?_` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:j}
|
|
@@ -6021,7 +6021,7 @@
|
|
|
6021
6021
|
<slot name="chip"></slot>
|
|
6022
6022
|
</div>
|
|
6023
6023
|
<div part="indicator"></div>
|
|
6024
|
-
`}};fo.styles=[...ue.styles,...
|
|
6024
|
+
`}};fo.styles=[...ue.styles,...gb],m([u({type:Boolean,reflect:!0})],fo.prototype,"active",2),m([u({type:String,reflect:!0})],fo.prototype,"text",2),m([u({type:String,reflect:!0})],fo.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"tab-id"})],fo.prototype,"tabId",2);var Ar=fo;Ar.register(vb);var C0=Ar;var w0=[Gi,U`
|
|
6025
6025
|
:host {
|
|
6026
6026
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
|
6027
6027
|
--mdc-tablist-gap: 0.5rem;
|
|
@@ -6051,7 +6051,7 @@
|
|
|
6051
6051
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
|
6052
6052
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
|
6053
6053
|
}
|
|
6054
|
-
`],
|
|
6054
|
+
`],bb=[...w0];var yb=V.constructTagName("tablist"),sn={FORWARD:"forward",BACKWARD:"backward"};var Vd=a=>a[0],Sp=a=>a[a.length-1],Eb=(a,o,t)=>{let r=a.findIndex(l=>o===l)-1,s=t?(r+a.length)%a.length:Math.max(0,r);return a[s]},Tb=(a,o,t)=>{let r=a.findIndex(l=>o===l)+1,s=t?r%a.length:Math.min(r,a.length-1);return a[s]},xb=(a,o)=>a.find(t=>t.tabId===o),Ip=a=>a.find(o=>o.active);var Dr=class extends Lt(Ct(X)){constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var s,l,c;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(f=>f.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(s=Vd(this.tabs))==null?void 0:s.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this)),(c=this.tabsContainer)==null||c.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,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=xb(this.tabs,this.activeTabId);if(!(r instanceof Ar))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 Ar||!(t.target instanceof Ar))return;let r=Ip(this.tabs||[]);r instanceof Ar&&await this.focusTab(r)}handleMousedown(t){t.target instanceof Ar&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let r=t.target;r instanceof Ar&&(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){return t instanceof Ar?(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility(),!0):!1}async handleKeydown(t){let r=t.target;if(!(r instanceof Ar)||!this.tabs)return;let s=this.getActionForKeyEvent(t,!0),l=this.getKeyboardNavMode()===qt.DEFAULT,c=Eb(this.tabs,r,l),f=Tb(this.tabs,r,l),y=Vd(this.tabs),A=Sp(this.tabs),F=!1;switch(s){case q.LEFT:t.preventDefault(),F=c!==r&&await this.focusTab(c);break;case q.RIGHT:t.preventDefault(),F=f!==r&&await this.focusTab(f);break;case q.HOME:F=await this.focusTab(y);break;case q.END:F=await this.focusTab(A);break;default:}F&&this.keyDownEventHandled()}shouldShowArrowButton(t){return t===sn.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Ip(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())}async handleArrowButtonVisibility(){var W,Q,Z;if(!this.tabs||!this.tabsContainer)return;let t=!1;((W=this.shadowRoot)==null?void 0:W.activeElement)instanceof Oo&&(t=!0);let r=Vd(this.tabs),s=Sp(this.tabs),l=r.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=s.getBoundingClientRect().right,y=(Z=this.tabsContainer)==null?void 0:Z.getBoundingClientRect().right,A=r.getBoundingClientRect().right,F=s.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>y?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}A>y?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,F<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var l;let r=this.isRtl()?-1:1,s=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===sn.FORWARD?r:s),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",s=l=>_` ${this.shouldShowArrowButton(l)?_`<mdc-button
|
|
6055
6055
|
variant="tertiary"
|
|
6056
6056
|
prefix-icon="arrow-${l===sn.FORWARD?t:r}-regular"
|
|
6057
6057
|
aria-label="Scroll tabs ${l===sn.FORWARD?t:r}"
|
|
@@ -6060,7 +6060,7 @@
|
|
|
6060
6060
|
<div part="container" role="${tt.TABLIST}" tabindex="-1" aria-label="${J(this.dataAriaLabel)}">
|
|
6061
6061
|
<slot></slot>
|
|
6062
6062
|
</div>
|
|
6063
|
-
${s(sn.FORWARD)}`}};Dr.styles=[...X.styles,...
|
|
6063
|
+
${s(sn.FORWARD)}`}};Dr.styles=[...X.styles,...bb],m([u({type:String,attribute:"active-tab-id",reflect:!0})],Dr.prototype,"activeTabId",2),m([u({type:String,attribute:"data-aria-label"})],Dr.prototype,"dataAriaLabel",2),m([Kt('[part="container"]')],Dr.prototype,"tabsContainer",2),m([Kt("mdc-button:not(:focus-visible)")],Dr.prototype,"notFocusedArrowButton",2),m([$t({selector:"mdc-tab"})],Dr.prototype,"tabs",2),m([pt()],Dr.prototype,"showForwardArrowButton",2),m([pt()],Dr.prototype,"showBackwardArrowButton",2);var _p=Dr;_p.register(yb);var k0=_p;var Ab=V.constructTagName("textarea"),Cp={HARD:"hard",SOFT:"soft"},Sb={OFF:"off",ON:"on"},ka={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Cp.SOFT};var N0=[U`
|
|
6064
6064
|
:host {
|
|
6065
6065
|
--mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
|
|
6066
6066
|
--mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -6185,7 +6185,7 @@
|
|
|
6185
6185
|
:host([disabled])::part(resize-button) {
|
|
6186
6186
|
cursor: default;
|
|
6187
6187
|
}
|
|
6188
|
-
`,...At(!0)],
|
|
6188
|
+
`,...At(!0)],Ib=N0;var ce=class extends Lt(Ct(Ne(ve(Ht(nr))))){constructor(){super(...arguments);this.rows=ka.ROWS;this.wrap=Cp.SOFT;this.autocapitalize=vd.OFF;this.autocomplete=Sb.OFF;this.resizable=!1;this.characterLimitExceedingFired=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let r=t.currentTarget;r&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||ka.ROWS,r.setPointerCapture(t.pointerId),r.addEventListener("pointermove",this.handlePointerMove),r.addEventListener("pointerup",this.handlePointerUp),r.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let r=t.clientY-this.resizeStartY,s=parseFloat(window.getComputedStyle(this.textarea).lineHeight),l=Math.round(r/s);this.rows=Math.max(1,this.resizeStartRows+l)};this.handlePointerUp=t=>{let r=t.currentTarget;r&&(t.type==="pointerup"&&r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),r.removeEventListener("pointermove",this.handlePointerMove),r.removeEventListener("pointerup",this.handlePointerUp),r.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Ut.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceMaxLengthWarning()}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceMaxLengthWarning()}announceMaxLengthWarning(){this.ariaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.ariaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.ariaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}onChange(t){this.updateValue();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?_`
|
|
6189
6189
|
<mdc-text part="character-counter" tagname="span" type=${ka.CHARACTER_COUNTER_TYPE}>
|
|
6190
6190
|
${this.value.length}/${this.maxCharacterLimit}
|
|
6191
6191
|
</mdc-text>
|
|
@@ -6236,7 +6236,7 @@
|
|
|
6236
6236
|
`:j}
|
|
6237
6237
|
</div>
|
|
6238
6238
|
${this.renderTextareaFooter()}
|
|
6239
|
-
`}};ce.styles=[...nr.styles,...
|
|
6239
|
+
`}};ce.styles=[...nr.styles,...Ib],m([u({type:String})],ce.prototype,"placeholder",2),m([u({type:Number,reflect:!0})],ce.prototype,"rows",2),m([u({type:Number})],ce.prototype,"cols",2),m([u({type:String})],ce.prototype,"wrap",2),m([u({type:String})],ce.prototype,"autocapitalize",2),m([u({type:String})],ce.prototype,"autocomplete",2),m([u({type:String})],ce.prototype,"dirname",2),m([u({type:Number})],ce.prototype,"maxlength",2),m([u({type:Number})],ce.prototype,"minlength",2),m([u({type:Number,attribute:"max-character-limit"})],ce.prototype,"maxCharacterLimit",2),m([u({type:String,attribute:"character-limit-announcement"})],ce.prototype,"characterLimitAnnouncement",2),m([u({type:Boolean,reflect:!0})],ce.prototype,"resizable",2),m([u({type:String,attribute:"resize-button-aria-label"})],ce.prototype,"resizeButtonAriaLabel",2),m([Kt("textarea")],ce.prototype,"inputElement",2),m([pt()],ce.prototype,"ariaLiveAnnouncer",2);var wp=ce;wp.register(Ab);var L0=wp;var _b=V.constructTagName("timepicker"),kp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},vo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},Np="timepicker-triggerid",Lp="timepicker-listbox",Re={TIME_FORMAT:vo.TWELVE_HOUR,INTERVAL:30,MIN_HOUR_12:1,MAX_HOUR_12:12,MIN_HOUR_24:0,MAX_HOUR_24:23,MIN_MINUTE:0,MAX_MINUTE:59,DISABLE_FLIP:!1};var M0=U`
|
|
6240
6240
|
:host {
|
|
6241
6241
|
--mdc-timepicker-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
6242
6242
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -6411,14 +6411,14 @@
|
|
|
6411
6411
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
6412
6412
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
6413
6413
|
}
|
|
6414
|
-
`,
|
|
6414
|
+
`,Cb=[M0,...At(!0)];var Rt=class extends ve(Ht(Jt)){constructor(){super(...arguments);this.timeFormat=Re.TIME_FORMAT;this.interval=Re.INTERVAL;this.placement=kt.BOTTOM_START;this.strategy=St.STRATEGY;this.disableFlip=Re.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){let t=this.getTimeOptions(),r=this.internalToValue(),s=t.findIndex(l=>l.value===r);this.focusedOptionIndex=s>=0?s:0,this.updateComplete.then(()=>{this.focusCurrentMenuItem()}).catch(()=>{})}focusCurrentMenuItem(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector(`#${Lp}`);if(!t)return;let r=t.querySelectorAll("mdc-option");r[this.focusedOptionIndex]&&r[this.focusedOptionIndex].focus()}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let r=parseInt(t[1],10),s=parseInt(t[2],10);r<0||r>23||s<0||s>59||(this.internalMinutes=String(s).padStart(2,"0"),this.timeFormat===vo.TWELVE_HOUR?r===0?(this.internalPeriod="AM",this.internalHours="12"):r<12?(this.internalPeriod="AM",this.internalHours=String(r).padStart(2,"0")):r===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(r-12).padStart(2,"0")):this.internalHours=String(r).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===vo.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],r=Math.max(1,Math.min(this.interval,60));for(let s=0;s<24*60;s+=r){let l=Math.floor(s/60),c=s%60,f=`${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`,y;if(this.timeFormat===vo.TWELVE_HOUR){let W=l<12?this.localeAmLabel:this.localePmLabel,Q=l%12;Q===0&&(Q=12);let Z=c===0?"00":String(c);y=`${Q}:${Z} ${W}`}else y=`${l}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,F=!this.max||f<=this.max;A&&F&&t.push({label:y,value:f})}return t}handleOptionClick(t){var r;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(r=this.dropdownButton)==null||r.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleSpinbuttonAreaClick(t){var s,l;this.disabled||this.softDisabled||this.readonly||t.target.getAttribute("role")==="spinbutton"||((s=this.hoursInput)==null||s.focus(),(l=this.hoursInput)==null||l.select())}handleBaseKeydown(t){var r;this.disabled||this.softDisabled||this.readonly||t.key===Vt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(r=this.dropdownButton)==null||r.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var l;let r=this.getTimeOptions(),s=r.length;if(s!==0)switch(t.key){case Vt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%s,this.focusCurrentMenuItem();break}case Vt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+s)%s,this.focusCurrentMenuItem();break}case Vt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<s&&this.handleOptionClick(r[this.focusedOptionIndex].value);break}case Vt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(l=this.dropdownButton)==null||l.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var r,s;switch(t.key){case Vt.ARROW_UP:case Vt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case Vt.TAB:break;case Vt.ARROW_LEFT:t.preventDefault(),(r=this.minutesInput)==null||r.focus(),(s=this.minutesInput)==null||s.select();break;default:{t.preventDefault();let l=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===l?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,r){var A,F,W,Q,Z,et;let s=this.timeFormat===vo.TWELVE_HOUR,l,c;r==="hours"?(l=s?Re.MIN_HOUR_12:Re.MIN_HOUR_24,c=s?Re.MAX_HOUR_12:Re.MAX_HOUR_24):(l=Re.MIN_MINUTE,c=Re.MAX_MINUTE);let f=r==="hours"?this.internalHours:this.internalMinutes,y=f?parseInt(f,10):l;switch(t.key){case Vt.ARROW_UP:{t.preventDefault(),y=y>=c?l:y+1,this.setSpinbuttonValue(r,y),this.commitValue();break}case Vt.ARROW_DOWN:{t.preventDefault(),y=y<=l?c:y-1,this.setSpinbuttonValue(r,y),this.commitValue();break}case Vt.ARROW_RIGHT:{t.preventDefault(),r==="hours"?((A=this.minutesInput)==null||A.focus(),(F=this.minutesInput)==null||F.select()):s&&((W=this.periodInput)==null||W.focus(),(Q=this.periodInput)==null||Q.select());break}case Vt.ARROW_LEFT:{t.preventDefault(),r==="minutes"&&((Z=this.hoursInput)==null||Z.focus(),(et=this.hoursInput)==null||et.select());break}case Vt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,r,l,c)):t.preventDefault();break}}}handleDigitInput(t,r,s,l){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>l&&(c=l),c<s&&(c=s),this.setSpinbuttonValue(r,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(r)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(l/10);if(c>f){let y=c;y>l&&(y=l),y<s&&(y=s),this.setSpinbuttonValue(r,y),this.pendingDigits="",this.commitValue(),this.advanceToNextField(r)}else this.setSpinbuttonValue(r,c),this.pendingDigitTimeout=setTimeout(()=>{let y=c;y<s&&(y=s),this.setSpinbuttonValue(r,y),this.pendingDigits="",this.commitValue(),this.advanceToNextField(r)},1e3)}}setSpinbuttonValue(t,r){let s=String(r).padStart(2,"0");t==="hours"?this.internalHours=s:this.internalMinutes=s,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var r,s;(r=this.minutesInput)==null||r.focus(),(s=this.minutesInput)==null||s.select()}).catch(()=>{}):this.timeFormat===vo.TWELVE_HOUR&&this.updateComplete.then(()=>{var r,s;(r=this.periodInput)==null||r.focus(),(s=this.periodInput)==null||s.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),r=this.internalToValue();return t.map(s=>_`
|
|
6415
6415
|
<mdc-option
|
|
6416
6416
|
label="${s.label}"
|
|
6417
6417
|
?selected="${s.value===r}"
|
|
6418
6418
|
aria-selected="${s.value===r?"true":"false"}"
|
|
6419
6419
|
@click="${()=>this.handleOptionClick(s.value)}"
|
|
6420
6420
|
></mdc-option>
|
|
6421
|
-
`)}render(){let t=this.timeFormat===vo.TWELVE_HOUR,r=t?
|
|
6421
|
+
`)}render(){let t=this.timeFormat===vo.TWELVE_HOUR,r=t?Re.MIN_HOUR_12:Re.MIN_HOUR_24,s=t?Re.MAX_HOUR_12:Re.MAX_HOUR_24;return _`
|
|
6422
6422
|
${this.renderLabel()}
|
|
6423
6423
|
<div part="container">
|
|
6424
6424
|
<div
|
|
@@ -6452,8 +6452,8 @@
|
|
|
6452
6452
|
part="spinbutton"
|
|
6453
6453
|
role="spinbutton"
|
|
6454
6454
|
aria-label="${this.localeMinutesLabel}"
|
|
6455
|
-
aria-valuemin="${
|
|
6456
|
-
aria-valuemax="${
|
|
6455
|
+
aria-valuemin="${Re.MIN_MINUTE}"
|
|
6456
|
+
aria-valuemax="${Re.MAX_MINUTE}"
|
|
6457
6457
|
aria-valuenow="${this.internalMinutes?parseInt(this.internalMinutes,10):""}"
|
|
6458
6458
|
aria-description="${this.localeSpinbuttonDescription}"
|
|
6459
6459
|
.value="${this.internalMinutes}"
|
|
@@ -6508,7 +6508,7 @@
|
|
|
6508
6508
|
aria-disabled="${J(this.disabled||this.softDisabled)}"
|
|
6509
6509
|
/>
|
|
6510
6510
|
<mdc-popover
|
|
6511
|
-
trigger="${
|
|
6511
|
+
trigger="${Oe.MANUAL}"
|
|
6512
6512
|
triggerid="${Np}"
|
|
6513
6513
|
interactive
|
|
6514
6514
|
?visible="${this.displayPopover}"
|
|
@@ -6541,7 +6541,7 @@
|
|
|
6541
6541
|
</mdc-popover>
|
|
6542
6542
|
</div>
|
|
6543
6543
|
${this.helpText?this.renderHelperText():j}
|
|
6544
|
-
`}};Rt.styles=[...Jt.styles,...
|
|
6544
|
+
`}};Rt.styles=[...Jt.styles,...Cb],m([u({type:String,reflect:!0,attribute:"time-format"})],Rt.prototype,"timeFormat",2),m([u({type:Number,reflect:!0})],Rt.prototype,"interval",2),m([u({type:String,reflect:!0})],Rt.prototype,"placement",2),m([u({type:String,reflect:!0})],Rt.prototype,"strategy",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Rt.prototype,"disableFlip",2),m([u({type:String,reflect:!0,attribute:"append-to"})],Rt.prototype,"appendTo",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Rt.prototype,"backdropAppendTo",2),m([u({type:String,reflect:!0})],Rt.prototype,"min",2),m([u({type:String,reflect:!0})],Rt.prototype,"max",2),m([u({type:String,attribute:"locale-hours-label"})],Rt.prototype,"localeHoursLabel",2),m([u({type:String,attribute:"locale-minutes-label"})],Rt.prototype,"localeMinutesLabel",2),m([u({type:String,attribute:"locale-period-label"})],Rt.prototype,"localePeriodLabel",2),m([u({type:String,attribute:"locale-hours-placeholder"})],Rt.prototype,"localeHoursPlaceholder",2),m([u({type:String,attribute:"locale-minutes-placeholder"})],Rt.prototype,"localeMinutesPlaceholder",2),m([u({type:String,attribute:"locale-period-placeholder"})],Rt.prototype,"localePeriodPlaceholder",2),m([u({type:String,attribute:"locale-am-label"})],Rt.prototype,"localeAmLabel",2),m([u({type:String,attribute:"locale-pm-label"})],Rt.prototype,"localePmLabel",2),m([u({type:String,attribute:"locale-show-time-picker-label"})],Rt.prototype,"localeShowTimePickerLabel",2),m([u({type:String,attribute:"locale-time-options-label"})],Rt.prototype,"localeTimeOptionsLabel",2),m([u({type:String,attribute:"locale-spinbutton-description"})],Rt.prototype,"localeSpinbuttonDescription",2),m([Kt('mdc-button[part="icon-container"]')],Rt.prototype,"dropdownButton",2),m([Kt("#hours-spinbutton")],Rt.prototype,"hoursInput",2),m([Kt("#minutes-spinbutton")],Rt.prototype,"minutesInput",2),m([Kt("#period-spinbutton")],Rt.prototype,"periodInput",2),m([pt()],Rt.prototype,"displayPopover",2),m([pt()],Rt.prototype,"internalHours",2),m([pt()],Rt.prototype,"internalMinutes",2),m([pt()],Rt.prototype,"internalPeriod",2),m([pt()],Rt.prototype,"focusedOptionIndex",2);var Mp=Rt;Mp.register(_b);var O0=Mp;var R0=[U`
|
|
6545
6545
|
:host {
|
|
6546
6546
|
display: block;
|
|
6547
6547
|
position: relative;
|
|
@@ -6555,7 +6555,7 @@
|
|
|
6555
6555
|
:host::part(typewriter-hidden) {
|
|
6556
6556
|
display: none;
|
|
6557
6557
|
}
|
|
6558
|
-
`],
|
|
6558
|
+
`],wb=R0;var kb=V.constructTagName("typewriter"),as={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},ei={TYPE:xe.TYPE,TEXT_ELEMENT_TAGNAME:xe.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 Fr=class extends X{constructor(){super(...arguments);this.type=ei.TYPE;this.tagname=ei.TEXT_ELEMENT_TAGNAME;this.speed=ei.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(ei.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(ei.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return as.SLOW;case"fast":return as.FAST;case"very-slow":return as.VERY_SLOW;case"very-fast":return as.VERY_FAST;case"normal":return as.NORMAL;default:{let r=parseInt(t,10);return Number.isNaN(r)?as.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(l=>l.nodeType===Node.TEXT_NODE||l.nodeType===Node.ELEMENT_NODE).map(l=>l.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],l=this.displayedText+s;l!==this.displayedText&&(this.displayedText=l,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(ei.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 _`
|
|
6559
6559
|
<div part="${ei.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
|
|
6560
6560
|
<mdc-text
|
|
6561
6561
|
part="${ei.CSS_PART_TEXT}"
|
|
@@ -6566,7 +6566,7 @@
|
|
|
6566
6566
|
>
|
|
6567
6567
|
<slot @slotchange=${this.handleSlotChange} part="${ei.CSS_PART_HIDDEN}"></slot>
|
|
6568
6568
|
</div>
|
|
6569
|
-
`}};Fr.styles=[...X.styles,...
|
|
6569
|
+
`}};Fr.styles=[...X.styles,...wb],m([u({attribute:"type",reflect:!0,type:String})],Fr.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Fr.prototype,"tagname",2),m([u({attribute:"speed",reflect:!0})],Fr.prototype,"speed",2),m([u({attribute:"max-queue-size",type:Number,reflect:!0})],Fr.prototype,"maxQueueSize",2),m([pt()],Fr.prototype,"displayedText",2),m([pt()],Fr.prototype,"originalText",2),m([pt()],Fr.prototype,"typingComplete",2);var Op=Fr;Op.register(kb);var P0=Op;var Bd=V.constructTagName("themeprovider"),Rp={THEMECLASS:"mds-theme-stable-darkWebex"};var Ud=class{constructor(o){this.themeclass=o}};Ud.context=Bd;var Hd=Ud;var D0=U`
|
|
6570
6570
|
:host {
|
|
6571
6571
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
|
6572
6572
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
|
@@ -6593,7 +6593,7 @@
|
|
|
6593
6593
|
* {
|
|
6594
6594
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
|
6595
6595
|
}
|
|
6596
|
-
`,
|
|
6596
|
+
`,Nb=[D0];var nn=class extends pe{constructor(){super({context:Hd.context,initialValue:new Hd(Rp.THEMECLASS)});this.themeclass=Rp.THEMECLASS}static get Context(){return Hd.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(" "))}};nn.styles=[...pe.styles,...Nb],m([pt()],nn.prototype,"currentThemeClass",2),m([u({type:String})],nn.prototype,"themeclass",2);var Pp=nn;Pp.register(Bd);var F0=Pp;var Lb=V.constructTagName("toast"),Na={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Gd={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},tr={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:ur[20],BUTTON:hi,PRIMARY_BUTTON:Bt.PRIMARY,SECONDARY_BUTTON:Bt.SECONDARY,TERTIARY_BUTTON:Bt.TERTIARY,VARIANT:Na.CUSTOM};var Mb=a=>{switch(a){case Na.SUCCESS:return Gd.SUCCESS_ICON_NAME;case Na.WARNING:return Gd.WARNING_ICON_NAME;case Na.ERROR:return Gd.ERROR_ICON_NAME;default:return null}};var $0=U`
|
|
6597
6597
|
:host {
|
|
6598
6598
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
6599
6599
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -6678,7 +6678,7 @@
|
|
|
6678
6678
|
mdc-text::part(text) {
|
|
6679
6679
|
margin: 0;
|
|
6680
6680
|
}
|
|
6681
|
-
`,
|
|
6681
|
+
`,Ob=[$0];var Be=class extends ks(X){constructor(){super(...arguments);this.variant=tr.VARIANT;this.headerTagName=tr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,r;this.hasDetailedSlot=(r=(t=this.detailedElements)==null?void 0:t.some(s=>{var l;return(l=s.textContent)==null?void 0:l.trim()}))!=null?r:!1}updateFooterButtonsPresence(){var t,r,s,l;this.hasFooterButtons=((r=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?r:0)>0||((l=(s=this.footerButtonSecondary)==null?void 0:s.length)!=null?l:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?_`
|
|
6682
6682
|
<mdc-icon name="${t}" size="${tr.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
|
|
6683
6683
|
`:j}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?_`
|
|
6684
6684
|
<mdc-button
|
|
@@ -6707,7 +6707,7 @@
|
|
|
6707
6707
|
</div>
|
|
6708
6708
|
</slot>`}render(){var t;return _`
|
|
6709
6709
|
<div part="content-container">
|
|
6710
|
-
${this.variant===tr.VARIANT?_`<slot name="content-prefix"></slot>`:_`${this.renderIcon((t=
|
|
6710
|
+
${this.variant===tr.VARIANT?_`<slot name="content-prefix"></slot>`:_`${this.renderIcon((t=Mb(this.variant))!=null?t:"")}`}
|
|
6711
6711
|
<div part="toast-content">
|
|
6712
6712
|
${this.renderHeader()}
|
|
6713
6713
|
<slot name="toast-body-normal"></slot>
|
|
@@ -6725,7 +6725,7 @@
|
|
|
6725
6725
|
></mdc-button>
|
|
6726
6726
|
</div>
|
|
6727
6727
|
${this.renderFooter()}
|
|
6728
|
-
`}};Be.styles=[...X.styles,...
|
|
6728
|
+
`}};Be.styles=[...X.styles,...Ob],m([u({type:String,reflect:!0})],Be.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Be.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Be.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Be.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Be.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"show-more-text"})],Be.prototype,"showMoreText",2),m([u({type:String,reflect:!0,attribute:"show-less-text"})],Be.prototype,"showLessText",2),m([pt()],Be.prototype,"isDetailVisible",2),m([pt()],Be.prototype,"hasDetailedSlot",2),m([$t({slot:"toast-body-detailed",flatten:!0})],Be.prototype,"detailedElements",2),m([pt()],Be.prototype,"hasFooterButtons",2);var Dp=Be;Dp.register(Lb);var z0=Dp;var V0=[bt,U`
|
|
6729
6729
|
:host {
|
|
6730
6730
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
6731
6731
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -6803,7 +6803,7 @@
|
|
|
6803
6803
|
:host([soft-disabled]) {
|
|
6804
6804
|
pointer-events: none;
|
|
6805
6805
|
}
|
|
6806
|
-
`,...At(!0)],
|
|
6806
|
+
`,...At(!0)],Rb=V0;var ls=class extends Ct(co(Ne(ve(Ht(nr))))){constructor(){super(...arguments);this.checked=!1;this.size=Gh.SIZE;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault(),r===q.ENTER&&this.getKeyboardNavMode()===qt.DEFAULT&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ba).includes(t)?t:Gh.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return _`
|
|
6807
6807
|
<mdc-statictoggle
|
|
6808
6808
|
?checked="${this.checked}"
|
|
6809
6809
|
?disabled="${this.disabled}"
|
|
@@ -6833,10 +6833,10 @@
|
|
|
6833
6833
|
/>
|
|
6834
6834
|
</mdc-statictoggle>
|
|
6835
6835
|
${this.renderLabelAndHelperText()}
|
|
6836
|
-
`}};ls.styles=[...nr.styles,...
|
|
6836
|
+
`}};ls.styles=[...nr.styles,...Rb],ls.shadowRootOptions={...nr.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],ls.prototype,"checked",2),m([u({type:String,reflect:!0})],ls.prototype,"size",2);var Fp=ls;Fp.register(Cg);var B0=Fp;function ds(a,o,t){var c;let r=(c=t.initialDeps)!=null?c:[],s;function l(){var f,y,A,F;let W;t.key&&((f=t.debug)!=null&&f.call(t))&&(W=Date.now());let Q=a();if(!(Q.length!==r.length||Q.some((lt,dt)=>r[dt]!==lt)))return s;r=Q;let et;if(t.key&&((y=t.debug)!=null&&y.call(t))&&(et=Date.now()),s=o(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let lt=Math.round((Date.now()-W)*100)/100,dt=Math.round((Date.now()-et)*100)/100,gt=dt/16,It=(wt,Zt)=>{for(wt=String(wt);wt.length<Zt;)wt=" "+wt;return wt};console.info(`%c\u23F1 ${It(dt,5)} /${It(lt,5)} ms`,`
|
|
6837
6837
|
font-size: .6rem;
|
|
6838
6838
|
font-weight: bold;
|
|
6839
|
-
color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,s),s}return l.updateDeps=f=>{r=f},l}function $p(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var Rb=(a,o)=>Math.abs(a-o)<1.01,Pb=(a,o,t)=>{let r;return function(...s){a.clearTimeout(r),r=a.setTimeout(()=>o.apply(this,s),t)}};var Db=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},U0=a=>a,zp=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},zb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=c=>{let{width:f,height:y}=c;o({width:Math.round(f),height:Math.round(y)})};if(s(Db(t)),!r.ResizeObserver)return()=>{};let l=new r.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let S=y.borderBoxSize[0];if(S){s({width:S.inlineSize,height:S.blockSize});return}}s(Db(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},Fb={passive:!0};var $b=typeof window>"u"?!0:"onscrollend"in window,Vb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=0,l=a.options.useScrollendEvent&&$b?()=>{}:Pb(r,()=>{o(s,!1)},a.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:W,isRtl:Q}=a.options;s=W?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),o(s,F)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,Fb);let S=a.options.useScrollendEvent&&$b;return S&&t.addEventListener("scrollend",y,Fb),()=>{t.removeEventListener("scroll",f),S&&t.removeEventListener("scrollend",y)}};var H0=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Bb=(a,{adjustments:o=0,behavior:t},r)=>{var s,l;let c=a+o;(l=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||l.call(s,{[r.options.horizontal?"left":"top"]:c,behavior:t})},Kd=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var l;return(l=r())==null?void 0:l.observe(s,{box:"border-box"})},unobserve:s=>{var l;return(l=r())==null?void 0:l.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:U0,rangeExtractor:zp,onChange:()=>{},measureElement:H0,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=ds(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,r)=>{let s=new Map,l=new Map;for(let c=r-1;c>=0;c--){let f=t[c];if(s.has(f.lane))continue;let y=l.get(f.lane);if(y==null||f.end>y.end?l.set(f.lane,f):f.end<y.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=ds(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=ds(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let S=this.measurementsCache.slice(0,y);for(let F=y;F<t;F++){let W=l(F),Q=this.options.lanes===1?S[F-1]:this.getFurthestMeasurement(S,F),Z=Q?Q.end+this.options.gap:r+s,et=f.get(W),lt=typeof et=="number"?et:this.options.estimateSize(F),dt=Z+lt,gt=Q?Q.lane:F%this.options.lanes;S[F]={index:F,start:Z,size:lt,end:dt,key:W,lane:gt}}return this.measurementsCache=S,S},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ds(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,l)=>this.range=t.length>0&&r>0?G0({measurements:t,outerSize:r,scrollOffset:s,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ds(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),l=this.measurementsCache[s];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var f;let s=this.measurementsCache[t];if(!s)return;let l=(f=this.itemSizeCache.get(s.key))!=null?f:s.size,c=r-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=ds(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],y=r[f];s.push(y)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return $p(r[Ub(0,r.length-1,s=>$p(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let l=this.getSize(),c=this.getScrollOffset();r==="auto"&&(r=t>=c+l?"end":"start"),r==="center"?t+=(s-l)/2:r==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let l=this.getSize(),c=this.getScrollOffset();if(r==="auto")if(s.end>=c+l-this.options.scrollPaddingEnd)r="end";else if(s.start<=c+this.options.scrollPaddingStart)r="start";else return[c,r];let f=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let l=0,c=10,f=S=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,S);if(!F){console.warn("Failed to get offset for index:",t);return}let[W,Q]=F;this._scrollToOffset(W,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),et=this.getOffsetForIndex(t,Q);if(!et){console.warn("Failed to get offset for index:",t);return}Rb(et[0],Z)||y(Q)})},y=S=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(S)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var l;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(l=(t=r[r.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=r.length-1;for(;f>=0&&c.some(y=>y===null);){let y=r[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}s=Math.max(...c.filter(y=>y!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Ub=(a,o,t,r)=>{for(;a<=o;){let s=(a+o)/2|0,l=t(s);if(l<r)a=s+1;else if(l>r)o=s-1;else return s}return a>0?a-1:0};function G0({measurements:a,outerSize:o,scrollOffset:t,lanes:r}){let s=a.length-1,l=y=>a[y].start;if(a.length<=r)return{startIndex:0,endIndex:s};let c=Ub(0,s,l,t),f=c;if(r===1)for(;f<s&&a[f].end<t+o;)f++;else if(r>1){let y=Array(r).fill(0);for(;f<s&&y.some(F=>F<t+o);){let F=a[f];y[F.lane]=F.end,f++}let S=Array(r).fill(t+o);for(;c>=0&&S.some(F=>F>=t);){let F=a[c];S[F.lane]=F.start,c--}c=Math.max(0,c-c%r),f=Math.min(s,f+(r-1-f%r))}return{startIndex:c,endIndex:f}}var Vp=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,s,l)}};this.virtualizer=new Kd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Wd=class extends Vp{constructor(o,t){super(o,{observeElementRect:zb,observeElementOffset:Vb,scrollToFn:Bb,...t})}};var K0={includeEnd:!1},Yd=class{constructor(o,t,r={}){let s={...K0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,l=Math.min(t,r),c=Math.max(t,r);return s?o>=l&&o<=c:o>=l&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:r,end:s}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(r?f>s:f>=s)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var jd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,l)=>o.call(t,r,this.getIndex(r),l))}forEach(o,t){this.items.forEach((r,s,l)=>{o.call(t,r,this.getIndex(r),l)})}findIndex(o,t){let r=this.items.find((s,l,c)=>o.call(t,s,this.getIndex(s),c));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,l)=>o.call(t,r,this.getIndex(r),l))}};var W0=[U`
|
|
6839
|
+
color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,s),s}return l.updateDeps=f=>{r=f},l}function $p(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var Pb=(a,o)=>Math.abs(a-o)<1.01,Db=(a,o,t)=>{let r;return function(...s){a.clearTimeout(r),r=a.setTimeout(()=>o.apply(this,s),t)}};var Fb=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},U0=a=>a,zp=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},Vb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=c=>{let{width:f,height:y}=c;o({width:Math.round(f),height:Math.round(y)})};if(s(Fb(t)),!r.ResizeObserver)return()=>{};let l=new r.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let A=y.borderBoxSize[0];if(A){s({width:A.inlineSize,height:A.blockSize});return}}s(Fb(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},$b={passive:!0};var zb=typeof window>"u"?!0:"onscrollend"in window,Bb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=0,l=a.options.useScrollendEvent&&zb?()=>{}:Db(r,()=>{o(s,!1)},a.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:W,isRtl:Q}=a.options;s=W?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),o(s,F)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,$b);let A=a.options.useScrollendEvent&&zb;return A&&t.addEventListener("scrollend",y,$b),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",y)}};var H0=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Ub=(a,{adjustments:o=0,behavior:t},r)=>{var s,l;let c=a+o;(l=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||l.call(s,{[r.options.horizontal?"left":"top"]:c,behavior:t})},Kd=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var l;return(l=r())==null?void 0:l.observe(s,{box:"border-box"})},unobserve:s=>{var l;return(l=r())==null?void 0:l.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:U0,rangeExtractor:zp,onChange:()=>{},measureElement:H0,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=ds(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,r)=>{let s=new Map,l=new Map;for(let c=r-1;c>=0;c--){let f=t[c];if(s.has(f.lane))continue;let y=l.get(f.lane);if(y==null||f.end>y.end?l.set(f.lane,f):f.end<y.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=ds(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=ds(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,y);for(let F=y;F<t;F++){let W=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),Z=Q?Q.end+this.options.gap:r+s,et=f.get(W),lt=typeof et=="number"?et:this.options.estimateSize(F),dt=Z+lt,gt=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:Z,size:lt,end:dt,key:W,lane:gt}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ds(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,l)=>this.range=t.length>0&&r>0?G0({measurements:t,outerSize:r,scrollOffset:s,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ds(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),l=this.measurementsCache[s];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var f;let s=this.measurementsCache[t];if(!s)return;let l=(f=this.itemSizeCache.get(s.key))!=null?f:s.size,c=r-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=ds(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],y=r[f];s.push(y)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return $p(r[Hb(0,r.length-1,s=>$p(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let l=this.getSize(),c=this.getScrollOffset();r==="auto"&&(r=t>=c+l?"end":"start"),r==="center"?t+=(s-l)/2:r==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let l=this.getSize(),c=this.getScrollOffset();if(r==="auto")if(s.end>=c+l-this.options.scrollPaddingEnd)r="end";else if(s.start<=c+this.options.scrollPaddingStart)r="start";else return[c,r];let f=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[W,Q]=F;this._scrollToOffset(W,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),et=this.getOffsetForIndex(t,Q);if(!et){console.warn("Failed to get offset for index:",t);return}Pb(et[0],Z)||y(Q)})},y=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var l;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(l=(t=r[r.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=r.length-1;for(;f>=0&&c.some(y=>y===null);){let y=r[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}s=Math.max(...c.filter(y=>y!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Hb=(a,o,t,r)=>{for(;a<=o;){let s=(a+o)/2|0,l=t(s);if(l<r)a=s+1;else if(l>r)o=s-1;else return s}return a>0?a-1:0};function G0({measurements:a,outerSize:o,scrollOffset:t,lanes:r}){let s=a.length-1,l=y=>a[y].start;if(a.length<=r)return{startIndex:0,endIndex:s};let c=Hb(0,s,l,t),f=c;if(r===1)for(;f<s&&a[f].end<t+o;)f++;else if(r>1){let y=Array(r).fill(0);for(;f<s&&y.some(F=>F<t+o);){let F=a[f];y[F.lane]=F.end,f++}let A=Array(r).fill(t+o);for(;c>=0&&A.some(F=>F>=t);){let F=a[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%r),f=Math.min(s,f+(r-1-f%r))}return{startIndex:c,endIndex:f}}var Vp=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,s,l)}};this.virtualizer=new Kd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Wd=class extends Vp{constructor(o,t){super(o,{observeElementRect:Vb,observeElementOffset:Bb,scrollToFn:Ub,...t})}};var K0={includeEnd:!1},Yd=class{constructor(o,t,r={}){let s={...K0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,l=Math.min(t,r),c=Math.max(t,r);return s?o>=l&&o<=c:o>=l&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:r,end:s}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(r?f>s:f>=s)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var jd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,l)=>o.call(t,r,this.getIndex(r),l))}forEach(o,t){this.items.forEach((r,s,l)=>{o.call(t,r,this.getIndex(r),l)})}findIndex(o,t){let r=this.items.find((s,l,c)=>o.call(t,s,this.getIndex(s),c));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,l)=>o.call(t,r,this.getIndex(r),l))}};var W0=[U`
|
|
6840
6840
|
:host {
|
|
6841
6841
|
height: 100%;
|
|
6842
6842
|
}
|
|
@@ -6866,7 +6866,7 @@
|
|
|
6866
6866
|
::slotted(mdc-listitem) {
|
|
6867
6867
|
position: relative;
|
|
6868
6868
|
}
|
|
6869
|
-
`],
|
|
6869
|
+
`],Gb=W0;var Kb=V.constructTagName("virtualizedlist"),HJ=V.constructTagName("virtualizedwrapper"),La={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var er=class extends Ht(Xs){constructor(){super();this.virtualizerProps=La.VIRTUALIZER_PROPS;this.loop=La.LOOP;this.scrollAnchoring=La.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=La.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var r,s;this.observeSizeChanges&&this.navItems.find(l=>l===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.orientation=ca.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Yt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,l;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(l=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?l:"data-index";this.virtualizedNavItems=new jd(super.navItems,f=>Number(f.getAttribute(c)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Wd(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==ca.VERTICAL&&(this.orientation=ca.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,l;this.observeSizeChanges&&((l=(s=this.virtualizer)==null?void 0:s.measureElement)==null||l.call(s,r))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var l,c;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let f=Math.abs(this.virtualizerProps.count-((l=t==null?void 0:t.count)!=null?l:0)),y=this.selectedIndex,A=this.firstKey,F=new Yd(y-f,y+f,{includeEnd:!0}),W=(c=Array.from(F).find(Z=>r.options.getItemKey(Z)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(W),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&y!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let Z=r.measurementsCache[this.selectedIndex].end-s[y].end;this.scrollRef.scrollTop+=Z}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var r,s,l,c,f;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(l=this.virtualizer)==null?void 0:l.getVirtualItems)==null?void 0:c.call(l))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var y,A,F,W;let{navItems:r,virtualizerProps:s,virtualizer:l}=this,c=(A=(y=s.rangeExtractor)==null?void 0:y.call(s,t))!=null?A:zp(t);return this.hiddenIndexes.forEach(Q=>{let Z=r.at(Q);Z&&(Z.removeAttribute("data-virtualized-hidden"),Z.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(W=(F=this.virtualizer)==null?void 0:F.options.getItemKey(this.firstIndex))!=null?W:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var Z;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((Z=l==null?void 0:l.options.count)!=null?Z:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,Z)=>Q-Z),c}updateHiddenItemsPosition(t){let{navItems:r,virtualizerProps:s,virtualizer:l}=this;if(!l||s.count===0)return;let{measurementsCache:c}=l;this.hiddenIndexes.forEach(f=>{let y=r.at(f);if(y){let A=Math.max(t.startIndex-t.overscan,0),F=c[A],W=c[f];y.setAttribute("data-virtualized-hidden","true"),y.style.setProperty("--mdc-virtualizedlist-hidden-top",`${W.start-F.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t)}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var s,l,c,f;switch(this.getActionForKeyEvent(t)){case q.HOME:{(l=(s=this.virtualizer)==null?void 0:s.scrollToIndex)==null||l.call(s,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case q.END:{let y=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,y,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(y));break}case q.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s=!0,l=s){if(this.navItems.find(y=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(y))===t})===void 0)return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s,l),this.setSelectedIndex(t)}),!0;let f=super.resetTabIndexAndSetFocus(t,r,s,l);return this.setSelectedIndex(t),f}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,l;(l=(s=this.virtualizer).scrollToIndex)==null||l.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var l;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),r=(l=t==null?void 0:t.start)!=null?l:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return _`
|
|
6870
6870
|
<slot name="list-header"></slot>
|
|
6871
6871
|
<div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
|
|
6872
6872
|
<div part="wrapper">
|
|
@@ -6875,7 +6875,7 @@
|
|
|
6875
6875
|
</div>
|
|
6876
6876
|
</div>
|
|
6877
6877
|
</div>
|
|
6878
|
-
`}};er.styles=[...Xs.styles,...
|
|
6878
|
+
`}};er.styles=[...Xs.styles,...Gb],m([u({type:Object})],er.prototype,"virtualizerProps",2),m([u({type:String,reflect:!0})],er.prototype,"loop",2),m([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],er.prototype,"scrollAnchoring",2),m([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],er.prototype,"observeSizeChanges",2),m([u({type:Boolean,reflect:!0,attribute:"revert-list"})],er.prototype,"revertList",2),m([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],er.prototype,"atBottomThreshold",2),m([Kt('[part="scroll"]',!0)],er.prototype,"scrollRef",2),m([Kt('[part="wrapper"]',!0)],er.prototype,"wrapperRef",2),m([Kt('[part="container"]',!0)],er.prototype,"containerRef",2),m([cu({passive:!0})],er.prototype,"onScrollHandler",1);var Bp=er;Bp.register(Kb);var Y0=Bp;ue.register(mu);var Wb=V.constructTagName("combobox"),Up={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Yb="list";var Hp="combobox-trigger-id";var an=class{static dispatchComboboxEvent(o,t,r,s=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:r==null?void 0:r.value,label:r==null?void 0:r.label},composed:!0,bubbles:s}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var j0=U`
|
|
6879
6879
|
:host {
|
|
6880
6880
|
--mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
6881
6881
|
--mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -6980,7 +6980,7 @@
|
|
|
6980
6980
|
--mdc-icon-fill-color: ButtonText;
|
|
6981
6981
|
}
|
|
6982
6982
|
}
|
|
6983
|
-
`,
|
|
6983
|
+
`,jb=[j0];var be=class extends Lt(Ct(io(Ne(ve(Ht(co(Jt))))))){constructor(){super();this.placement=kt.BOTTOM_START;this.boundary=St.BOUNDARY;this.strategy=St.STRATEGY;this.popoverZIndex=void 0;this.isOpen=!1;this.filteredValue="";this.forceValueUpdate=!1;this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,r,s,l)=>{switch(r){case"added":t.setAttribute("tabindex",s===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(c=>c.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let c=t;if(c&&(!this.isValidItem(c)||c.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===c);if(f===-1)return;let y=f+1;y>=this.navItems.length&&(y=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled")return;let r=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;r&&r.value!==this.value&&this.setSelectedValue(r,!1);break}case"unselected":{r&&this.setSelectedValue(r,!1);break}default:break}};this.addEventListener(Yt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Jr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(xr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}toggleDropdown(){this.isOpen=!this.isOpen}compareOptionWithValue(t,r){return(t.getAttribute("label")||"").toLowerCase().startsWith(r==null?void 0:r.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(r=>this.compareOptionWithValue(r,t))}setSelectedValue(t,r=!0){if(this.controlType==="controlled"&&!this.forceValueUpdate){an.onChangeCombobox(this,t);return}this.forceValueUpdate=!1,this.filteredValue=(t==null?void 0:t.getAttribute("label"))||"",this.value=(t==null?void 0:t.getAttribute("value"))||"",this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.setInputValidity(),this.resetHelpText(),r&&(an.onInputCombobox(this,t),an.onChangeCombobox(this,t))}resetSelectedValue(){this.controlType!=="controlled"&&(this.value=""),this.internals.setFormValue(this.value),this.resetHelpText()}resetHelpText(){this.invalidCustomValueText&&this.helpText===this.invalidCustomValueText&&(this.helpText="",this.helpTextType=Ut.DEFAULT)}attributeChangedCallback(t,r,s){if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&this.navItems.length&&this.controlType!=="controlled"){let l=this.getFirstSelectedOption(),c=this.navItems.find(y=>y.value===s),f=null;if(c)f=c;else if(this.placeholder)f=null;else if(l)f=l;else return;this.updateComplete.then(()=>{this.setSelectedValue(f)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let r=this.getFirstSelectedOption();r&&this.controlType!=="controlled"?(this.initialSelectedOption=r,this.setSelectedValue(r)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}updateValueBasedSelection(){this.forceValueUpdate=!0;let t=this.navItems.find(r=>r.value===this.value);t&&this.setSelectedValue(t)}updated(t){super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,r;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var r;let t=this.initialSelectedOption||null;this.setSelectedValue(t),this.controlType!=="controlled"&&(this.filteredValue=(r=t==null?void 0:t.label)!=null?r:""),this.setInputValidity()}formStateRestoreCallback(t){let r=this.navItems.find(s=>s.value===t||s.label===t);this.setSelectedValue(r||null)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(r=>{r.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,r){t!==void 0&&(r?t.setAttribute("data-focused",""):t.removeAttribute("data-focused"),t.setAttribute("aria-selected",r.toString()))}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),r=t.findIndex(s=>s.hasAttribute("data-focused"));if(r!==-1){this.setSelectedValue(t[r]),this.closePopover();return}r===-1&&this.filteredValue!==""&&this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Ut.ERROR),this.setInputValidity()}updateFocusAndScrollIntoView(t,r,s){var l;this.updateOptionAttributes(t[r],!1),this.updateOptionAttributes(t[s],!0),(l=t[s])==null||l.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let r=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),s=r.findIndex(c=>c.hasAttribute("data-focused")),l=this.getKeyboardNavMode()===qt.SPATIAL;switch(this.getActionForKeyEvent(t)){case q.DOWN:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=r.length-1===s?0:s+1;this.updateFocusAndScrollIntoView(r,s,c),t.preventDefault(),this.keyDownEventHandled();break}case q.UP:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=s===-1||s===0?r.length-1:s-1;this.updateFocusAndScrollIntoView(r,s,c),t.preventDefault(),this.keyDownEventHandled();break}case q.ENTER:{if(l&&!this.isOpen)this.openPopover();else{if(s===-1)return;this.setSelectedValue(r[s]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case q.ESCAPE:{s!==-1&&this.updateOptionAttributes(r[s],!1),r.length&&this.shouldDisplayPopover(r.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case q.TAB:{this.closePopover(),this.keyDownEventHandled();break}case q.HOME:case q.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){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,l;(r=t.parentElement)!=null&&r.matches(xa)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length===0&&(t.parentElement.setAttribute("data-hidden",""),(l=t.parentElement.nextElementSibling)!=null&&l.matches(oa)&&t.parentElement.nextElementSibling.setAttribute("data-hidden",""))}showOptionGroupAndDivider(t){var r,s,l;(r=t.parentElement)!=null&&r.matches(xa)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length>0&&(t.parentElement.removeAttribute("data-hidden"),(l=t.parentElement.nextElementSibling)!=null&&l.matches(oa)&&t.parentElement.nextElementSibling.removeAttribute("data-hidden"))}handleInputChange(t){var r;this.controlType!=="controlled"&&(this.filteredValue=t.target.value),this.resetSelectedValue(),this.resetFocusedOption(),this.updateHiddenOptions(),(r=this.getFirstSelectedOption())==null||r.removeAttribute("selected"),this.isOpen===!1&&this.openPopover()}handleOptionsClick(t){var s;let r=(s=t.target.closest(xr))!=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 _`
|
|
6984
6984
|
<input
|
|
6985
6985
|
id="${this.inputId}"
|
|
6986
6986
|
name="${this.name}"
|
|
@@ -7011,7 +7011,7 @@
|
|
|
7011
7011
|
@input=${this.handleInputChange}
|
|
7012
7012
|
@keydown=${this.handleInputKeydown}
|
|
7013
7013
|
@blur="${this.handleBlurChange}"
|
|
7014
|
-
aria-autocomplete="${
|
|
7014
|
+
aria-autocomplete="${Yb}"
|
|
7015
7015
|
aria-describedby="${J(this.helpText?Ot.HELPER_TEXT_ID:"")}"
|
|
7016
7016
|
aria-disabled="${this.disabled?"true":"false"}"
|
|
7017
7017
|
aria-expanded="${this.isOpen?"true":"false"}"
|
|
@@ -7065,7 +7065,7 @@
|
|
|
7065
7065
|
role=""
|
|
7066
7066
|
size
|
|
7067
7067
|
strategy="${J(this.strategy)}"
|
|
7068
|
-
trigger="${
|
|
7068
|
+
trigger="${Oe.MANUAL}"
|
|
7069
7069
|
triggerid="${Hp}"
|
|
7070
7070
|
z-index="${J(this.popoverZIndex)}"
|
|
7071
7071
|
>
|
|
@@ -7074,7 +7074,7 @@
|
|
|
7074
7074
|
</mdc-popover>
|
|
7075
7075
|
</div>
|
|
7076
7076
|
${this.renderHelperText()}
|
|
7077
|
-
`}};be.styles=[...Pr.styles,...Jt.styles,...
|
|
7077
|
+
`}};be.styles=[...Pr.styles,...Jt.styles,...jb],m([u({type:String})],be.prototype,"placeholder",2),m([u({type:String,reflect:!0})],be.prototype,"placement",2),m([u({type:String,attribute:"no-result-text",reflect:!0})],be.prototype,"noResultText",2),m([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],be.prototype,"invalidCustomValueText",2),m([u({type:String,reflect:!0})],be.prototype,"boundary",2),m([u({type:String,reflect:!0})],be.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],be.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],be.prototype,"backdropAppendTo",2),m([Kt(`[role="${tt.COMBOBOX}"]`)],be.prototype,"visualCombobox",2),m([Kt('[part="combobox-button"]')],be.prototype,"dropDownButton",2),m([$t({selector:Od})],be.prototype,"slottedListboxes",2),m([pt()],be.prototype,"isOpen",2),m([pt()],be.prototype,"filteredValue",2),m([pt()],be.prototype,"forceValueUpdate",2);var Gp=be;Gp.register(Wb);var q0=Gp;var qb=(a,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(a[s],s);return r},Xb=fi(class extends Yr{constructor(a){if(super(a),a.type!==sr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let s=[],l=[],c=0;for(let f of a)s[c]=r?r(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:s}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,r]){var lt;let s=Yu(a),{values:l,keys:c}=this.dt(o,t,r);if(!Array.isArray(s))return this.ut=c,l;let f=(lt=this.ut)!=null?lt:this.ut=[],y=[],A,F,W=0,Q=s.length-1,Z=0,et=l.length-1;for(;W<=Q&&Z<=et;)if(s[W]===null)W++;else if(s[Q]===null)Q--;else if(f[W]===c[Z])y[Z]=ji(s[W],l[Z]),W++,Z++;else if(f[Q]===c[et])y[et]=ji(s[Q],l[et]),Q--,et--;else if(f[W]===c[et])y[et]=ji(s[W],l[et]),ws(a,y[et+1],s[W]),W++,et--;else if(f[Q]===c[Z])y[Z]=ji(s[Q],l[Z]),ws(a,s[W],s[Q]),Q--,Z++;else if(A===void 0&&(A=qb(c,Z,et),F=qb(f,W,Q)),A.has(f[W]))if(A.has(f[Q])){let dt=F.get(c[Z]),gt=dt!==void 0?s[dt]:null;if(gt===null){let It=ws(a,s[W]);ji(It,l[Z]),y[Z]=It}else y[Z]=ji(gt,l[Z]),ws(a,s[W],gt),s[dt]=null;Z++}else Al(s[Q]),Q--;else Al(s[W]),W++;for(;Z<=et;){let dt=ws(a,y[et+1]);ji(dt,l[Z]),y[Z++]=dt}for(;W<=Q;){let dt=s[W++];dt!==null&&Al(dt)}return this.ut=c,xl(a,y),ke}});var Zb=V.constructTagName("slider"),X0={START:"start",END:"end",UNDEFINED:void 0},go={MIN:0,MAX:100,STEP:1,STATE:X0.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var Z0=U`
|
|
7078
7078
|
:host {
|
|
7079
7079
|
width: 100%;
|
|
7080
7080
|
--mdc-slider-tooltip-left: 0;
|
|
@@ -7296,7 +7296,7 @@
|
|
|
7296
7296
|
border: 1px solid;
|
|
7297
7297
|
}
|
|
7298
7298
|
}
|
|
7299
|
-
`,
|
|
7299
|
+
`,Qb=[Gi,Z0];var Mt=class extends Lt(Ct(X)){constructor(){super();this.thumbFocused=go.STATE;this.thumbHovered=go.STATE;this.range=!1;this.min=go.MIN;this.max=go.MAX;this.step=go.STEP;this.spatialNavEditMode=!1;this.addEventListener("keydown",this.handleKeyEvent.bind(this)),this.addEventListener("mousedown",this.preventChange.bind(this))}updated(t){super.updated(t),(t.has("value")||t.has("step")||t.has("min")||t.has("max")||t.has("disabled")||t.has("softDisabled")||t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.updateTrackStyling(),t.has("softDisabled")&&this.setSoftDisabled(),(t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.initializeRangeSlider()}preventChange(t){this.softDisabled&&(t.preventDefault(),t.stopPropagation())}handleKeyEvent(t){var s;let r=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===qt.SPATIAL){if(this.softDisabled)return;let l=(s=this.shadowRoot)==null?void 0:s.activeElement,c=(l==null?void 0:l.tagName)==="INPUT";if(t.preventDefault(),!c){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&r===q.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((r===q.ENTER||r===q.ESCAPE||r===q.UP||r===q.DOWN)&&(this.spatialNavEditMode=!1,(r===q.ENTER||r===q.ESCAPE)&&this.keyDownEventHandled()),r===q.LEFT&&(l==null||l.stepDown(),this.keyDownEventHandled(),this.handleInput(l)),r===q.RIGHT&&(l==null||l.stepUp(),this.keyDownEventHandled(),this.handleInput(l)))}else this.softDisabled&&r!==q.TAB&&(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.inputElements.forEach(this.handleInput,this)}handleInput(t){let r=Array.from(this.inputElements);if(!r.includes(t))return;if(r.length===1){this.value=Number(t.value);return}let s=r.indexOf(t),l=r[s];if(s===0){if(!this.valueEnd)return;let c=Number(l.value);c>this.valueEnd?(l.value=String(this.valueEnd),this.valueStart=this.valueEnd):c>=this.min&&c<this.valueEnd?this.valueStart=c:c<this.min&&(l.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let c=Number(l.value);c<this.valueStart?(l.value=String(this.valueStart),this.valueEnd=this.valueStart):c<=this.max&&c>this.valueStart?this.valueEnd=c:c>this.max&&(l.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,r){return typeof t=="string"&&t.length>0?_`<mdc-icon
|
|
7300
7300
|
name="${t}"
|
|
7301
7301
|
part="${r}"
|
|
7302
7302
|
length-unit="${go.ICON_LENGTH_UNIT}"
|
|
@@ -7312,8 +7312,8 @@
|
|
|
7312
7312
|
${r} ${y}%,
|
|
7313
7313
|
${r} 100%
|
|
7314
7314
|
)`}else{if(!this.inputElements[0])return;let s=Number(this.inputElements[0].value),l=Number(this.inputElements[0].max)||1,c=Math.max(0,Math.min(100,(s-this.min)/(l-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${c}%, ${r} ${c}%)`}}onInput(t){let r=t.target;this.handleInput(r)}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 c=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);s.push(c)}if(this.range&&this.inputElements[1]){let c=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);s.push(c)}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">
|
|
7315
|
-
${
|
|
7316
|
-
</div>`:j}render(){var t,r,s,l,c,f,y,
|
|
7315
|
+
${Xb(t,r=>r,r=>_`<span part="slider-tick" style=${this.getTickStyles(r)}></span>`)}
|
|
7316
|
+
</div>`:j}render(){var t,r,s,l,c,f,y,A,F,W,Q,Z,et,lt,dt,gt,It;return _`
|
|
7317
7317
|
${this.label?_`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
|
|
7318
7318
|
<div part="slider-track">
|
|
7319
7319
|
${this.iconTemplate(this.leadingIcon,"leading-icon")}
|
|
@@ -7357,7 +7357,7 @@
|
|
|
7357
7357
|
name="${(y=this.nameEnd)!=null?y:""}"
|
|
7358
7358
|
aria-valuemin="${this.min}"
|
|
7359
7359
|
aria-valuemax="${this.max}"
|
|
7360
|
-
aria-valuenow="${(
|
|
7360
|
+
aria-valuenow="${(A=this.valueEnd)!=null?A:this.max}"
|
|
7361
7361
|
aria-label="${this.endAriaLabel||this.label||""}"
|
|
7362
7362
|
aria-valuetext="${this.endAriaValueText||this.valueLabelEnd||this.valueEnd||""}"
|
|
7363
7363
|
tabindex="${this.disabled?-1:0}"
|
|
@@ -7403,7 +7403,7 @@
|
|
|
7403
7403
|
${this.labelStart?_`<span part="slider-label-start">${this.labelStart}</span>`:null}
|
|
7404
7404
|
${this.labelEnd?_`<span part="slider-label-end">${this.labelEnd}</span>`:null}
|
|
7405
7405
|
</div>
|
|
7406
|
-
`}};Mt.styles=[...X.styles,...
|
|
7406
|
+
`}};Mt.styles=[...X.styles,...Qb],m([pt()],Mt.prototype,"thumbFocused",2),m([pt()],Mt.prototype,"thumbHovered",2),m([u({reflect:!0,type:Boolean})],Mt.prototype,"range",2),m([u({reflect:!0,type:Number})],Mt.prototype,"min",2),m([u({reflect:!0,type:Number})],Mt.prototype,"max",2),m([u({reflect:!0,type:Boolean})],Mt.prototype,"disabled",2),m([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Mt.prototype,"softDisabled",2),m([u({reflect:!0,type:String,attribute:"leading-icon"})],Mt.prototype,"leadingIcon",2),m([u({reflect:!0,type:String,attribute:"trailing-icon"})],Mt.prototype,"trailingIcon",2),m([u({reflect:!0,type:Number})],Mt.prototype,"value",2),m([u({reflect:!0,type:Number,attribute:"value-start"})],Mt.prototype,"valueStart",2),m([u({reflect:!0,type:Number,attribute:"value-end"})],Mt.prototype,"valueEnd",2),m([u({reflect:!0,type:Number})],Mt.prototype,"step",2),m([u({reflect:!0,type:String})],Mt.prototype,"label",2),m([u({reflect:!0,type:String,attribute:"label-start"})],Mt.prototype,"labelStart",2),m([u({reflect:!0,type:String,attribute:"label-end"})],Mt.prototype,"labelEnd",2),m([u({reflect:!0,type:String,attribute:"value-label"})],Mt.prototype,"valueLabel",2),m([u({reflect:!0,type:String,attribute:"value-label-start"})],Mt.prototype,"valueLabelStart",2),m([u({reflect:!0,type:String,attribute:"value-label-end"})],Mt.prototype,"valueLabelEnd",2),m([u({reflect:!0,type:String})],Mt.prototype,"name",2),m([u({reflect:!0,type:String,attribute:"name-start"})],Mt.prototype,"nameStart",2),m([u({reflect:!0,type:String,attribute:"name-end"})],Mt.prototype,"nameEnd",2),m([u({reflect:!0,type:String,attribute:"data-aria-label"})],Mt.prototype,"dataAriaLabel",2),m([u({reflect:!0,type:String,attribute:"start-aria-label"})],Mt.prototype,"startAriaLabel",2),m([u({reflect:!0,type:String,attribute:"end-aria-label"})],Mt.prototype,"endAriaLabel",2),m([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Mt.prototype,"dataAriaValuetext",2),m([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Mt.prototype,"startAriaValuetext",2),m([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Mt.prototype,"endAriaValueText",2),m([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Mt.prototype,"hideTooltip",2),m([hu('input[type="range"]')],Mt.prototype,"inputElements",2);var Kp=Mt;Kp.register(Zb);var Q0=Kp;var J0=U`
|
|
7407
7407
|
:host {
|
|
7408
7408
|
--mdc-listbox-max-height: auto;
|
|
7409
7409
|
|
|
@@ -7420,7 +7420,7 @@
|
|
|
7420
7420
|
::slotted(mdc-option) {
|
|
7421
7421
|
width: 100%;
|
|
7422
7422
|
}
|
|
7423
|
-
`,
|
|
7423
|
+
`,Jb=[J0];var cs=class extends qs(io(X)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Jr(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTBOX}handleModifiedEvent(t){let 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(`${xr}: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>`}};cs.styles=[...Rh.styles,...Jb],m([u({type:String,reflect:!0})],cs.prototype,"name",2),m([u({type:String,reflect:!0})],cs.prototype,"value",2),m([pt()],cs.prototype,"selectedOption",2);var Wp=cs;var ty=V.constructTagName("listbox");Wp.register(ty);var tS=Wp;var ey=V.constructTagName("banner"),ln={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},Ma={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},qd={VARIANT:ln.CUSTOM,PREFIX_ICON_SIZE:1.25};var eS=U`
|
|
7424
7424
|
:host {
|
|
7425
7425
|
--mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
7426
7426
|
--mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -7503,7 +7503,7 @@
|
|
|
7503
7503
|
gap: var(--mdc-banner-gap);
|
|
7504
7504
|
flex-wrap: wrap;
|
|
7505
7505
|
}
|
|
7506
|
-
`,
|
|
7506
|
+
`,ry=[eS];var iy=a=>{switch(a){case ln.INFORMATIONAL:return Ma.INFORMATIONAL_ICON_NAME;case ln.SUCCESS:return Ma.SUCCESS_ICON_NAME;case ln.WARNING:return Ma.WARNING_ICON_NAME;case ln.ERROR:return Ma.ERROR_ICON_NAME;default:return null}};var hs=class extends X{constructor(){super(...arguments);this.variant=qd.VARIANT}renderIcon(t){return t?_`
|
|
7507
7507
|
<mdc-icon name="${t}" size="${qd.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
|
|
7508
7508
|
`:j}getTextLabel(){return this.label?_`
|
|
7509
7509
|
<mdc-text
|
|
@@ -7522,7 +7522,7 @@
|
|
|
7522
7522
|
<slot name="content">
|
|
7523
7523
|
<div part="leading">
|
|
7524
7524
|
<slot name="leading-icon">
|
|
7525
|
-
${this.variant!==qd.VARIANT?this.renderIcon(
|
|
7525
|
+
${this.variant!==qd.VARIANT?this.renderIcon(iy(this.variant)):j}
|
|
7526
7526
|
</slot>
|
|
7527
7527
|
<slot name="leading-text">
|
|
7528
7528
|
<div part="leading-text">${this.getTextLabel()}</div>
|
|
@@ -7532,7 +7532,7 @@
|
|
|
7532
7532
|
<slot name="trailing-actions"></slot>
|
|
7533
7533
|
</div>
|
|
7534
7534
|
</slot>
|
|
7535
|
-
`}};hs.styles=[...X.styles,...
|
|
7535
|
+
`}};hs.styles=[...X.styles,...ry],m([u({type:String,reflect:!0})],hs.prototype,"variant",2),m([u({type:String,reflect:!0})],hs.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"secondary-label"})],hs.prototype,"secondaryLabel",2);var Yp=hs;Yp.register(ey);var rS=Yp;})();
|
|
7536
7536
|
/*! Bundled license information:
|
|
7537
7537
|
|
|
7538
7538
|
lottie-web/build/player/lottie_light.js:
|